Fatal error wx setup h no such file or directory

Hi, I'm new to all the wxWidgets thing. I successfully complied and used wxWidgets-3.0.5 in CodeBlocks, but i couldn't do the same for wxsqlite3. wxWidgets was compiled with this options: m...

I tried different builds of wxWidgets including the pre-built wxWidgets DLLs, i also tried to build wxSQLite3 with release_dll_win32 option and the other options, but i’m still getting setup.h not found.

Well, this is not a wxSQLite3 issue, but a configuration issue with your wxWidgets installation. The error messages in your first post clearly indicate that either the path to wxWidgets was not set properly or the requested wxWidgets build is not available.

Configuration file config.gcc allows to set wxRootDir ?= $(WXWIN) That is, it is expected that environment variable WXWIN points to the root directory of wxWidgets. It seems you managed to configure this, otherwise you would have got many more error messages from the compiler.

Now, the question is, which builds of wxWidgets do you really have built successfully. Please inspect the lib directory of your wxWidgets installation. You should find directories there with names like gcc_x64_dll or gcc810_x64_dll. And below these directories there have to be additional directories mswu (Release) and mswud (Debug). If you use pre-compiled libraries, you have to use the development builds (having Dev in their file name) (not the release builds, because they don’t have the mswu / mswud subdirectories).

The next step is to check whether the C++ header file search path is set up correctly. Invoke make in verbose mode and check the command line for the -I options. If the paths in these options are not correct, you have to adjust the settings in config.gcc accordingly.

I have wxWidgets in path, as you can see form the error, it did find wxWidgets root folder.

That is good, but not enough. The relevant subdirectories in the lib directory have to exist, too.

Additionally, I would strongly recommend to clean up the wxSQLite3 build directory — for example, by removing the obj subdirectory, so that a complete new build is done. From the messages presented I get the impression that the wxSQLite3 library itself is not properly built and therefore the link step for the dependent samples fails.

The wxSQLite3 library/DLL should be found in lib/gcc_x64_dll, if the sources could be compiled and linked successfully.

Good luck!

Topic: fatal error: wx/setup.h: No such file or directory  (Read 21038 times)

Making libs with mingw32-make and makefile.gcc in windows XP, then with wxsqlite3 extracting, premake4 using for making C::B projects, then open and run, C::B says

C:wxWidgets-2.9.4includewxplatform.h|154|fatal error: wx/setup.h: No such file or directory

In search dir’s  properties it lookin for wx/setup.h  in

C:wxWidgets-2.9.4libvc_dllmswud
C:wxWidgets-2.9.4include

But there is no such dirs.

Bellow building way.

cd C:wxWidgets-2.9.4buildmsw
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release clean
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=debug clean

mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=debug
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=release
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=debug

mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 MONOLITHIC=1 BUILD=release
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 MONOLITHIC=1 BUILD=debug
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 MONOLITHIC=1 BUILD=release
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 MONOLITHIC=1 BUILD=debug

What i must do?


Logged


Interesting:

C:wxWidgets-2.9.4libvc_dllmswud

Why «vc_dll»???? visuall c++ dll?

Next time, when you have build errors, please full log.


Logged

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.


I have no errors compiling wxWidgets.

When with premake4 making C::B project at wxSQLite3 with code …

cd C:wxsqlite3-3.0.3build29
mingw32-make -f makefile.gcc
cd C:wxsqlite3-3.0.3
premake4 --cc=gcc --os=windows  --platform=x32  --version=2.9 --file=premake4.lua clean
premake4 --cc=gcc --os=windows  --platform=x32  --version=2.9 --file=premake4.lua codeblocks
cd C:wxsqlite3-3.0.3premake
premake4 --cc=gcc --os=windows  --platform=x32  --version=2.9 --file=wxwidgets.lua clean
premake4 --cc=gcc --os=windows  --platform=x32  --version=2.9 --file=wxwidgets.lua codeblocks

and then opening C::B projects at

C:wxsqlite3-3.0.3buildwxsqlite3libwxsqlite3lib.cbp
C:wxsqlite3-3.0.3buildwxsqlite3dllwxsqlite3dll.cbp
C:wxsqlite3-3.0.3buildminimalminimal.cbp

all projects demand wx/setup.h  file on bellow dirs
$(WXWIN)libvc_dllmswud
$(WXWIN)include

What must do?


Logged



Logged

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.

When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org


log

———————————————
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:Documents and SettingsOwner>cd C:wxsqlite3-3.0.3premake

C:wxsqlite3-3.0.3premake>premake4 —cc=gcc —os=windows  —platform=x32  —ver
sion=2.9 —file=wxwidgets.lua codeblocks
premake4 (Premake Build Script Generator) 4.4-beta4

C:wxsqlite3-3.0.3premake>

Opening C:wxsqlite3-3.0.3buildwxsqlite3dllwxsqlite3dll.cbp  …
Log
———————————————
————— Clean: Debug in wxsqlite3lib (compiler: GNU GCC Compiler)—————

Cleaned «wxsqlite3lib — Debug»

————— Build: Debug in wxsqlite3lib (compiler: GNU GCC Compiler)—————

mingw32-g++.exe  -g -DWIN32 -D_WINDOWS -D_LIB -DWXMAKINGLIB_WXSQLITE3 -DwxUSE_DYNAMIC_SQLITE3_LOAD=0 -DWXSQLITE3_HAVE_METADATA=1 -DWXSQLITE3_HAVE_CODEC=1 -DWXSQLITE3_HAVE_LOAD_EXTENSION=0 -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DDEBUG -D_DEBUG -D_UNICODE -D__WXDEBUG__ -DWXUSINGDLL -D__WXMSW__    -I….include -I….sqlite3include -IC:wxWidgets-2.9.4\libvc_dllmswud -IC:wxWidgets-2.9.4\include  -c C:wxsqlite3-3.0.3srcwxsqlite3.cpp -o objDebugsrcwxsqlite3.o
In file included from C:wxWidgets-2.9.4\include/wx/defs.h:28:0,
                 from C:wxWidgets-2.9.4\include/wx/wxprec.h:13,
                 from C:wxsqlite3-3.0.3srcwxsqlite3.cpp:18:
C:wxWidgets-2.9.4\include/wx/platform.h:154:22: fatal error: wx/setup.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)


Logged


@dkaip:

Please create a thread on wxWidgets Forum; because this is off topic for this site.
Please link to the created thread.
I will try to help you on that site.

«Compiler / Linking / IDE Related» This seems to be a valid group for the post,
http://forums.wxwidgets.org/viewforum.php?f=19&sid=16ec0c049b65ed4eb6b2fce7f69c0b3e

The source of the problem is in «premake/wxwidgets.lua» which is part of wxsqlite.
WindowsCompiler needs to be set to «gcc» because it defaults to «vc».

Edit2: I would suggest editing wxsqlite’s «premake4.lua» to set the value of WindowsCompiler; since it looks like you already edited that to do wx 2.9.

Tim S.

« Last Edit: July 10, 2013, 04:46:00 pm by stahta01 »


Logged

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.

When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org


325 / 304 / 173

Регистрация: 16.11.2010

Сообщений: 1,069

Записей в блоге: 9

1

22.07.2017, 19:49. Показов 12768. Ответов 6


Всем привет!
Решил освоить wxWidgets на CodeBlocks. Установил версию с MinGW, консольники компилируются. Все ок.
Скачал с оф. сайта wxWidgets 3.0.3, установил на C:wxWidgets-3.0.3
Создаю новый проект с wxWidgets: выбираю версию wxWidgets-3.0.x, далее гуи-конструктор wxsmith, тип приложения Frame based, указываю C:wxWidgets-3.0.3 в wxWidget’s location. Дебаг и релиз конфигурации оставляю по умолчанию, Enable Unicode ставлю галочку. Компоненты. Финиш.
Компилирую, ошибка:

C:wxWidgets-3.0.3include/wx/platform.h:183:22: fatal error: wx/setup.h: No such file or directory
#include «wx/setup.h»

Судя по ошибке, компилятор ищет в папке C:wxWidgets-3.0.3include/wx/wx/ файл setup.h и не находит. Ест-но его там нет…
Что я распаковал неправильно? Вроде все по инструкции делал
Пробовал прописать глобальные переменные C:wxWidgets-3.0.3include и C:wxWidgets-3.0.3lib, та же ошибка



0



2431 / 1831 / 404

Регистрация: 15.12.2013

Сообщений: 8,166

22.07.2017, 20:45

2

netBool, судя по ошибке, вы не собрали библиотеку.

Цитата
Сообщение от netBool
Посмотреть сообщение

Вроде все по инструкции делал

По какой инструкции?



0



325 / 304 / 173

Регистрация: 16.11.2010

Сообщений: 1,069

Записей в блоге: 9

23.07.2017, 13:05

 [ТС]

3

Цитата
Сообщение от S_el
Посмотреть сообщение

По какой инструкции?

Делал по этой. Да, вы правы, не собрал. Теперь другая ошибка, при сборке выдает ошибку точки входа в libintl-8.dll, как на картинке.
Пробовал разные ключи:

mingw32-make -f makefile.gcc BUILD=debug SHARED=0 MONOLITHIC=0 UNICODE=1 WXUNIV=0

и так

mingw32-make -f makefile.gcc BUILD=release SHARED=0 MONOLITHIC=0 UNICODE=1 WXUNIV=0

предварительно очищал mingw32-make -f makefile.gcc clean. Очистка проходит без ошибок

Миниатюры

Wx/setup.h: No such file or directory
 



0



325 / 304 / 173

Регистрация: 16.11.2010

Сообщений: 1,069

Записей в блоге: 9

23.07.2017, 13:09

 [ТС]

4

Ошибка

Миниатюры

Wx/setup.h: No such file or directory
 



0



2431 / 1831 / 404

Регистрация: 15.12.2013

Сообщений: 8,166

23.07.2017, 14:16

5

Лучший ответ Сообщение было отмечено netBool как решение

Решение

Цитата
Сообщение от netBool
Посмотреть сообщение

Теперь другая ошибка, при сборке выдает ошибку точки входа в libintl-8.dll, как на картинке.

Я с таким не сталкивался, но посмотрите, может подойдут варианты из этого SO вопроса:
MinGW “The procedure entry point libintl_setlocale could not be located …”



1



GoshaM

410 / 145 / 48

Регистрация: 02.06.2016

Сообщений: 331

24.07.2017, 10:34

6

Цитата
Сообщение от netBool
Посмотреть сообщение

Делал по этой.

Первые грабли с которыми сталкиваются начинающие разработчики, — это неверная установка используемого для сборки библиотеки компилятора. Большинство устанавливают MinGW вместо TDM-GCC, на котором собственно и ведется разработка wxWidgets под Windows.

Вопреки тому, что там написано можно собрать компилятором, который идет с Code::Blocks.
И ничего нигде в переменных окружения не надо прописывать, путь к компилятору просто можно подставить в *.bat.
Создаете *.bat вот примерно такого содержания:

Windows Batch file
1
2
3
Set PATH=C:Program Files (x86)CodeBlocksMinGWbin;
mingw32-make.exe -f makefile.gcc  BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1 WXUNIV=0 CXXFLAGS=-std=gnu++11
mingw32-make.exe -f makefile.gcc  BUILD=debug SHARED=0 MONOLITHIC=1 UNICODE=1 WXUNIV=0 CXXFLAGS=-std=gnu++11

Кладете его в …buildmsw
Запускаете командную строку, и переходите в папку где лежит *.bat
Запускаете *.bat



1



325 / 304 / 173

Регистрация: 16.11.2010

Сообщений: 1,069

Записей в блоге: 9

24.07.2017, 16:10

 [ТС]

7

Спасибо всем! Все уже заработало. Проблема была в том, что libintl-8.dll дублировался в GTKSharp — скорее всего ставил когда-то как дополнение для студии. Переименовал, все собралось



0



Содержание

  1. wxWidgets Discussion Forum
  2. «wx/setup.h» not found
  3. «wx/setup.h» not found
  4. wxWidgets Discussion Forum
  5. wx/setup.h: No such file or directory
  6. wx/setup.h: No such file or directory
  7. Re: wx/setup.h: No such file or directory
  8. Re: wx/setup.h: No such file or directory
  9. Re: wx/setup.h: No such file or directory
  10. Re: wx/setup.h: No such file or directory
  11. Re: wx/setup.h: No such file or directory
  12. Re: wx/setup.h: No such file or directory
  13. Re: wx/setup.h: No such file or directory
  14. Re: wx/setup.h: No such file or directory
  15. Re: wx/setup.h: No such file or directory
  16. Re: wx/setup.h: No such file or directory
  17. Re: wx/setup.h: No such file or directory
  18. Re: wx/setup.h: No such file or directory
  19. Re: wx/setup.h: No such file or directory
  20. Re: wx/setup.h: No such file or directory
  21. wxWidgets Discussion Forum
  22. [3.0.2] Linux — missing wx/setup.h
  23. [3.0.2] Linux — missing wx/setup.h
  24. Re: [3.0.2] Linux — missing wx/setup.h
  25. Re: [3.0.2] Linux — missing wx/setup.h
  26. Re: [3.0.2] Linux — missing wx/setup.h
  27. Re: [3.0.2] Linux — missing wx/setup.h
  28. Re: [3.0.2] Linux — missing wx/setup.h
  29. Re: [3.0.2] Linux — missing wx/setup.h
  30. wxWidgets Discussion Forum
  31. fatal error: wx/setup.h: No such file Topic is solved
  32. fatal error: wx/setup.h: No such file
  33. Re: fatal error: wx/setup.h: No such file
  34. wxwidgets setup.h «no such file»
  35. 4 Answers 4

Official forum for the wxWidgets Cross-Platform GUI Toolkit

«wx/setup.h» not found

«wx/setup.h» not found

Post by hannesvdc » Wed Dec 22, 2010 10:06 am

I changed from Qt to wxwidgets because qt is too big for what i need to do. So downloaded wxwidgets via the ubuntu sofware centre( gui toolkit and non GUI help classes). I made a simple
main file to show a wxGrid:

It says something about «wx/setup.h» not found, and indeed,
when i open «usr/include/wx-2.8/wx» where «platform.h» is located, there is no directory «wx/setup.h», not even a «setup» file in usr/include/wx-2.8/wx.

How can this be solved?

Post by briceandre » Wed Dec 22, 2010 10:12 am

The setup file is generally located in the lib directory and depends on the compilation options you use.

Note that you will also have to specify link options in your makefile.

Did you envisage using the tool wx-config to write your makefile ?

Post by hannesvdc » Wed Dec 22, 2010 10:17 am

Thanks for reply. I don’t know the wx-config tool to generate makefiles. Could you tell me where to get it?

Post by briceandre » Wed Dec 22, 2010 10:26 am

It will not generate your makefile, but you can use it (if available on your platform). It is not available on Windows, and you should have done a complete wx install to have it on linux.

Once you have it, you can use it like this:

Note the inverse quote `wx-config —libs` : it will replace the result of the wx-config command in your makefile.

EDIT : I made a lot of typo errors in Makefile chunk. Should be OK now.

Post by DavidHart » Wed Dec 22, 2010 1:22 pm

First, that should ideally be:
`wx-config —c xxflags`
cppflags usually results in the same output, but that isn’t guaranteed.

Too simple, I’m afraid. For a wx app, (unless you really know what you’re doing) you must use the IMPLEMENT_APP macro instead of writing your own ‘main()’. See e.g. the ‘minimal’ sample that comes with the wx source or, in ubuntu, the wx2.8-examples package which installs to /usr/share/doc/wx-examples/.

The wx samples are a major resource for seeing how things are done in wxWidgets; and adapting ‘minimal’ (or one of the others more specific to your situation) is a good way to get started writing your app.

Источник

Official forum for the wxWidgets Cross-Platform GUI Toolkit

wx/setup.h: No such file or directory

wx/setup.h: No such file or directory

Post by Dezash » Thu Aug 06, 2015 12:08 pm

I’m getting an error when trying to compile my C++ project.

Re: wx/setup.h: No such file or directory

Post by PB » Thu Aug 06, 2015 12:56 pm

Re: wx/setup.h: No such file or directory

Post by Dezash » Thu Aug 06, 2015 2:10 pm

Re: wx/setup.h: No such file or directory

Post by doublemax » Thu Aug 06, 2015 5:56 pm

From the menu select Project -> Build options

Click on «Search directories»

In the tree on the left click on the project name (not debug or release)
The path there should point to the general wxWidgets include directory, in your case probably:
C:UsersGabrieliusDocumentsC++wxwidgetsinclude

Now click on «debug». The path entered there is specific to the used compiler and configuration. In your case it *could* be:
C:UsersGabrieliusDocumentsC++wxwidgetslibgcc_libmswud

For «release» configuration:
C:UsersGabrieliusDocumentsC++wxwidgetslibgcc_libmswu

Re: wx/setup.h: No such file or directory

Post by PB » Thu Aug 06, 2015 5:59 pm

Re: wx/setup.h: No such file or directory

Post by Dezash » Thu Aug 06, 2015 6:04 pm

Re: wx/setup.h: No such file or directory

Post by doublemax » Thu Aug 06, 2015 6:17 pm

Where / how did you get wxWidgets itself? If you downloaded the source, you have to build the libraries first. The build process will create the files and directories in /libs.

Re: wx/setup.h: No such file or directory

Post by Dezash » Thu Aug 06, 2015 6:46 pm

Re: wx/setup.h: No such file or directory

Post by doublemax » Thu Aug 06, 2015 6:52 pm

The «configure» part is for when you’re using Cygwin.

Scroll a little bit lower in the install.txt file to «* Using plain makefiles».

Re: wx/setup.h: No such file or directory

Post by Dezash » Thu Aug 06, 2015 7:07 pm

Re: wx/setup.h: No such file or directory

Post by doublemax » Thu Aug 06, 2015 7:25 pm

Re: wx/setup.h: No such file or directory

Post by Dezash » Fri Aug 07, 2015 7:31 am

I tried this command: «mingw32-make -f makefile.gcc SHELL=CMD» but I got an error:
makefile.gcc:11946: recipe for target ‘gcc_mswudbaselib_wxcrt.o’ failed
mingw32-make: *** [gcc_mswudbaselib_wxcrt.o] Error 1

I have: «C:MinGWbin;C:MinGWmsys1.0bin;C:MinGWlibexecgccmingw324.8.1;» in my Path variable. Do I remove the msys one?
Should I try «The input line is too long» solution?

Re: wx/setup.h: No such file or directory

Post by PB » Fri Aug 07, 2015 7:55 am

Re: wx/setup.h: No such file or directory

Post by Dezash » Fri Aug 07, 2015 8:07 am

C:UsersGabrieliusDocumentsC++wxwidgetsbuildmsw>mingw32-make -f makefile.g
cc
if not exist ….libgcc_libmswud mkdir ….libgcc_libmswud
g++ -c -o gcc_mswudbaselib_wxcrt.o -g -O0 -mthreads -DHAVE_W32API_H -D__WXMSW_
_ -D_UNICODE -I….libgcc_libmswud -I….include -W -Wall -DWXBUIL
DING -I….srctifflibtiff -I….srcjpeg -I….srcpng -I….srczlib
-I….srcregex -I….srcexpatlib -DwxUSE_GUI=0 -DwxUSE_BASE=1 -Wno-ctor
-dtor-privacy -MTgcc_mswudbaselib_wxcrt.o -MFgcc_mswudbaselib_wxcrt.o.d -MD
-MP ../../src/common/wxcrt.cpp
../../src/common/wxcrt.cpp: In function ‘int wxVsprintf(wchar_t*, const wxString
&, va_list)’:
../../src/common/wxcrt.cpp:663:47: error: invalid conversion from ‘const wchar_t
*’ to ‘size_t ‘ [-fpermissive]
return wxCRT_VsprintfW(str, format.wc_str(), argptr);
^
../../src/common/wxcrt.cpp:663:56: error: cannot convert ‘va_list ‘ t
o ‘const wchar_t*’ for argument ‘3’ to ‘int vswprintf(wchar_t*, size_t, const wc
har_t*, char*)’
return wxCRT_VsprintfW(str, format.wc_str(), argptr);
^
../../src/common/wxcrt.cpp:673:1: warning: control reaches end of non-void funct
ion [-Wreturn-type]
>
^
makefile.gcc:11946: recipe for target ‘gcc_mswudbaselib_wxcrt.o’ failed
mingw32-make: *** [gcc_mswudbaselib_wxcrt.o] Error 1

I removed the msys from Path and got Error 1 when trying to mingw32-make -f makefile.gcc

Re: wx/setup.h: No such file or directory

Post by PB » Fri Aug 07, 2015 2:56 pm

I have no idea about that.

I would make sure the source tree is clear of previous build attempts, i.e. I would delete all the folders starting with «gcc_» in both WXWINlib and WXWINbuildmsw. Sometimes even building with clear apparently isn’t enough. I would try again then. Just to be sure I would start first with default unmodified setup.h. Of course, I assume you have just one GCC-toolchain in the PATH now.

By the way, it may be useful if you reported exactly which version of wxWidgets and gcc are you using.

Источник

Official forum for the wxWidgets Cross-Platform GUI Toolkit

[3.0.2] Linux — missing wx/setup.h

[3.0.2] Linux — missing wx/setup.h

Post by Rizzen » Thu Feb 12, 2015 3:01 pm

I am returning to programming in C++ and with wxWidgets 3.0 becoming available with built-in UTF-8 support.

I tried the openSUSE Tumbleweed packages of 3.0.2 and compiled from source when I encountered error stating wx/setup.h is missing. Even building from source I encounter issue of missing wx/setup.h. Looking at include directory, I do not find the wxsetup.h files that is requested by /usr/local/include/wx-3.0/wx/platform.h at line 183.

What am I doing incorrect?

OS: openSUSE Tumbleweed
IDE: KDevelop 4.7.0
wxWidgets: 3.0.2
Source code: famous wxWidgets Hello World example

Added to CMakeLists.txt in order to find the headers:

PS: like to know the option to build in OpenGL support

Error message taken from KDevelop:

Re: [3.0.2] Linux — missing wx/setup.h

Post by Manolo » Thu Feb 12, 2015 5:59 pm

Donwload wxWidgets source from http://wxwidgets.org/downloads/
Unpack it somewhere, let’s say ‘mywxdir’.
Enter into mywxdir and create your ‘buildgtk3’ sub-dir.
Enter ‘buildgtk3’ and use ‘configure’ and ‘make’ (not Cmake).

For OGL support, add ‘—with-opengl’ option to configure. Likely you also need ‘mesa-common-dev’ and ‘libglu1-mesa-dev’ packages.

Re: [3.0.2] Linux — missing wx/setup.h

Post by Rizzen » Thu Feb 12, 2015 6:11 pm

Thanx for the OpenGL option that I was needing.

I followed the instructions for compiling wxwidgets using only make. Still having issue of missing wx/setup.h.

Re: [3.0.2] Linux — missing wx/setup.h

Post by Manolo » Thu Feb 12, 2015 6:24 pm

Re: [3.0.2] Linux — missing wx/setup.h

Post by DavidHart » Thu Feb 12, 2015 7:59 pm

If you want to use cmake eventually that’s fine; it’s harder but can be made to work. However:

The standard way on Linux to locate a particular wx build, and therefore setup.h, is to use the wx-config script. Try doing, in a terminal:
wx-config —list
If that fails to provide sensible output, either /usr/local/bin isn’t in your $PATH or your build/install failed.

If it does show your wx build, you can use the wx-config script inside your IDE. I don’t know kdevelop, but it will almost certainly have somewhere to put compiler settings, and somewhere else for linker settings; and some way of calling a script. So your compiler settings might include: $(wx-config —cxxflags)
and the linker settings might include : $(wx-config —libs std,gl) plus any other non-standard wx libs you need e.g. aui or stc.
I’m guessing about the $() syntax; you’ll need to read the kdevelop docs.

Re: [3.0.2] Linux — missing wx/setup.h

Post by Rizzen » Fri Feb 13, 2015 4:50 am

Ran make
Once completed without errors, I ran su
Ran make install
Ran ldconfig

Ran wx-config —list

Re: [3.0.2] Linux — missing wx/setup.h

Post by DavidHart » Fri Feb 13, 2015 9:38 am

Источник

Official forum for the wxWidgets Cross-Platform GUI Toolkit

fatal error: wx/setup.h: No such file Topic is solved

fatal error: wx/setup.h: No such file

Post by Nico » Sun Dec 08, 2013 8:46 pm

I am trying to build an older codeblocks plugin that depends on wxWidgets, so my problem might be related to a version difference but I hope somebody here can tell me how to fix it.

The plugin includes $(#wx)includewxplatform.h where in my case $(#wx) refers to C:wxWidgets-3.0.0.

In plathform.h I get a fatal error:
C:wxWidgets-3.0.0includewxplatform.h|189|fatal error: wx/setup.h: No such file or directory

because this include seems to be impossible:

I have checked and indeed there is no «C:wxWidgets-3.0.0includewxsetup.h» like there was in wxWidgets 2.8.11.
Just in case it is of any importance: I’m using code::blocks 13.12 RC1 and the plugin is cbGcov (add code coverage to code::blocks)

My questions:
Using wxWidgets 3.0.0 in 32bit mode on windows 8 with gcc 4.7.1 compiler, how can i get this program to compile without causing future problems with the wxWidgets installation? Can I create an empty setup.h? Can I create a setup.h file with the proper content? Should I omit the include in platform.h ( I would probably feel uncomfortable doing that as I don’t know what side effects it might have)? Should I add some other search-directory? Is there an other solution?

I hope somebody here is willing and able to help me on this one.

Re: fatal error: wx/setup.h: No such file

Post by doublemax » Sun Dec 08, 2013 8:51 pm

A project needs at least two include paths.

Источник

A quick Google search of this issue shows it’s common, I just can’t for the life of me figure out the solution in my case.

I have a straight forward install of wxWidgets 2.8.8 for Windows straight from the wxWidgets website.

Whenever I try to compile anything (such as the sample app described in «First Programs for wxWidgets» — http://zetcode.com/tutorials/wxwidgetstutorial/firstprograms/ ) I get:

wx/setup.h: No such file or directory

I’ve included both C:wxWidgets-2.8.8include and C:wxWidgets-2.8.8includewx in my compiler search list.

It should be simple — but it’s not! 🙁

The same thing happens if I try to use an IDE integrated with wxWidgets (such as Code::Blocks) — and this, I would have thought, would have just worked out the box.

So, some help please. Why is setup.h not found?

4 Answers 4

wxWidgets is not built into useable libraries when you «install» the wxMSW installer. This is because there are so many configurable elements, which is precisely what the setup.h you refer to is for.

If you just want to build it with default options as quickly as possible and move on, here is how:

Start the «Visual Studio Command Prompt.» You’ll find this in the start menu under «Microsoft Visual Studio -> Visual Studio Tools».

Change to folder: [WXWIN root]buildmsw

Build default debug configuration: nmake -f makefile.vc BUILD=debug

Build default release configuration: nmake -f makefile.vc BUILD=release

Make sure the DLLs are in your PATH. They’ll be found in [WXWIN root]libvc_dll

Under the DLL folder mentioned above, you will find subfolders for each build variant (The instructions above made two, debug and release.) In each variant folder you’ll find a ‘wx’ folder containing a ‘setup.h» file. You’ll see that the setup.h files are actually different for each build variant. These are the folders you need to add to your project build configuration include path, one per build variant. So, for example, you’d add [WXWIN root]libvc_dllmswud to the include path for your debug build, [WXWIN root]libvc_dllmswu for your release build.

It is possible to build lots of other variant combinations: static libs, monolithic single library, non-Unicode, etc. See [WXWIN root]docsmswinstall.txt for much more extensive instructions.

When building wxWidgets, it dynamically creates a setup.h file for each build configuration that is built. The generated setup.h files are stored in folders below the lib folder, for instance (Visual Studio on Windows):

To successfully build a project based on wxWidgets, each build configuration in the project must be set up with its own Additional Include Directory that points to the corresponding wxWidgets build folder under lib, such as the one listed above.

In addition, an Additional Include Directory that is common for all build configurations in the project must be set to point to wxWidget’s main include folder. This folder is typically set up in a user property sheet that can be used in any project. E.g.:

For linking, an Additional Library Directory common for all build configurations is set up to point to the wxWidgets lib folder. E.g.:

And then, specific to each build configuration, Additional Dependency entries are set up to include libraries of the corresponding wxWidgets libraries. E.g., for a Unicode, Debug build (u = Unicode, d = Debug):

Then, to use wxWidgets in your project, start out by including the generated setup.h file:

Источник

I want to setup wxWidgets 3.2.1 in Code::Blocks 20.03, but with no success.

Here are the steps I took so far:

  1. Installed GCC 12.2.0 MinGW-W64
  2. Installed Code::Blocks 20.03 mingw setup
  3. Installed wxWidgets 3.2.1 using the Windows Installer
  4. Created a wxWidgets project in Code::Blocks: File > New > Project > wxWidgets Project
  5. Selected wxWidgets 3.1.x (since there is no entry for wxWidgets 3.2.x)
  6. Selected project and author information, «Preferred GUI Builder» and «Application Type»
  7. In the wxWidgets’ location I enterd C:wxWidgets-3.2.1 (where it’s currently installed)
  8. Checked both Create "Debug" configuration and Create "Release" configuration
  9. Checked all the checkboxes in «wxWidgets Library Settings»:
    • Use wxWidgets DLL
    • wxWidgets is built as a monolithic library
    • Enable unicode

When I proceed, I get the following two warnings:

A matching Debug configuration cannot be found in the wxWidgets directory you specified.
This means that Debug targets of your project will not be built.

Are you sure you want to continue with these settings?

A matching Release configuration cannot be found in the wxWidgets directory you specified.
This means that Release targets of your project will not be built.

Are you sure you want to continue with these settings?

If I continue and try to compile my project, I get 3 of the following error:

C:wxWidgets-3.2.1includewxplatform.h 159 fatal error: wx/setup.h: No such file or directory

I headed to C:wxWidgets-3.2.1includewx and found that setup.h is missing: it’s actually located in C:wxWidgets-3.2.1includewxmsw (one folder deeper).

Any ideas on how to correctly setup wxWidgets to work with Code::Blocks?

asked Oct 5, 2022 at 14:16

Zakk's user avatar

ZakkZakk

1035 bronze badges

Actually, using the Windows Installer only installed the source code. I had to build it myself:

cd /D C:wxWidgets-3.2.1buildmsw

And then

mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-inline-dllexport 2>log.txt

After that, I followed the same steps above starting from step 4. The project is created without problems.

Next, since there’s no entry for wxWidgets 3.2.x in Code::BLocks 20.03 (step 5 above), I had to change libwxmsw31u.a to libwxmsw32u.a under:

  • Project > Build options > Debug > Linker settings
  • Project > Build options > Release > Linker settings

Compiled and run the project, and it did work.

Setting up wxWidgets with Code::Blocks in Windows was of great help.

answered Oct 9, 2022 at 12:39

Zakk's user avatar

ZakkZakk

1035 bronze badges

спасибо, Вы правы.все исправил и…….

Код:

$ g++ -I/usr/local/include/wx-2.8/ HelloWorldApp.cpp main.cpp -o HelloWorldApp
In file included from /usr/local/include/wx-2.8/wx/defs.h:21,
                 from /usr/local/include/wx-2.8/wx/wxprec.h:13,
                 from HelloWorldApp.cpp:2:
/usr/local/include/wx-2.8/wx/platform.h:196:22: error: wx/setup.h: No such file or directory
In file included from /usr/local/include/wx-2.8/wx/platform.h:293,
                 from /usr/local/include/wx-2.8/wx/defs.h:21,
                 from /usr/local/include/wx-2.8/wx/wxprec.h:13,
                 from HelloWorldApp.cpp:2:
/usr/local/include/wx-2.8/wx/chkconf.h:103:9: error: #error «wxUSE_DYNLIB_CLASS must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:111:9: error: #error «wxUSE_EXCEPTIONS must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:119:9: error: #error «wxUSE_FILESYSTEM must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:127:9: error: #error «wxUSE_FS_ARCHIVE must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:140:9: error: #error «wxUSE_DYNAMIC_LOADER must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:148:9: error: #error «wxUSE_LOG must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:156:9: error: #error «wxUSE_LONGLONG must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:164:9: error: #error «wxUSE_MIMETYPE must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:172:9: error: #error «wxUSE_ON_FATAL_EXCEPTION must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:180:9: error: #error «wxUSE_PRINTF_POS_PARAMS must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:188:9: error: #error «wxUSE_PROTOCOL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:230:9: error: #error «wxUSE_REGEX must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:238:9: error: #error «wxUSE_STDPATHS must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:246:9: error: #error «wxUSE_XML must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:254:9: error: #error «wxUSE_SOCKETS must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:262:9: error: #error «wxUSE_STREAMS must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:270:9: error: #error «wxUSE_STOPWATCH must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:278:9: error: #error «wxUSE_TEXTBUFFER must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:286:9: error: #error «wxUSE_TEXTFILE must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:302:9: error: #error «wxUSE_URL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:310:9: error: #error «wxUSE_VARIANT must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:330:9: error: #error «wxUSE_ABOUTDLG must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:338:9: error: #error «wxUSE_ACCEL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:346:9: error: #error «wxUSE_ANIMATIONCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:354:9: error: #error «wxUSE_BITMAPCOMBOBOX must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:362:9: error: #error «wxUSE_BMPBUTTON must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:370:9: error: #error «wxUSE_BUTTON must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:378:9: error: #error «wxUSE_CALENDARCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:386:9: error: #error «wxUSE_CARET must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:394:9: error: #error «wxUSE_CHECKBOX must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:402:9: error: #error «wxUSE_CHECKLISTBOX must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:410:9: error: #error «wxUSE_CHOICE must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:418:9: error: #error «wxUSE_CHOICEBOOK must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:426:9: error: #error «wxUSE_CHOICEDLG must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:434:9: error: #error «wxUSE_CLIPBOARD must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:442:9: error: #error «wxUSE_COLLPANE must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:450:9: error: #error «wxUSE_COLOURDLG must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:458:9: error: #error «wxUSE_COLOURPICKERCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:466:9: error: #error «wxUSE_COMBOBOX must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:474:9: error: #error «wxUSE_COMBOCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:482:9: error: #error «wxUSE_DATAOBJ must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:490:9: error: #error «wxUSE_DATAVIEWCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:498:9: error: #error «wxUSE_DATEPICKCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:506:9: error: #error «wxUSE_DIRPICKERCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:514:9: error: #error «wxUSE_DISPLAY must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:522:9: error: #error «wxUSE_DOC_VIEW_ARCHITECTURE must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:530:9: error: #error «wxUSE_FILEDLG must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:538:9: error: #error «wxUSE_FILEPICKERCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:546:9: error: #error «wxUSE_FONTDLG must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:554:9: error: #error «wxUSE_FONTMAP must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:562:9: error: #error «wxUSE_FONTPICKERCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:570:9: error: #error «wxUSE_GAUGE must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:578:9: error: #error «wxUSE_GRAPHICS_CONTEXT must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:587:9: error: #error «wxUSE_GRID must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:595:9: error: #error «wxUSE_HELP must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:603:9: error: #error «wxUSE_HYPERLINKCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:611:9: error: #error «wxUSE_HTML must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:632:9: error: #error «wxUSE_ICO_CUR must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:640:9: error: #error «wxUSE_IFF must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:648:9: error: #error «wxUSE_IMAGLIST must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:656:9: error: #error «wxUSE_JOYSTICK must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:664:9: error: #error «wxUSE_LISTBOOK must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:672:9: error: #error «wxUSE_LISTBOX must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:680:9: error: #error «wxUSE_LISTCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:688:9: error: #error «wxUSE_LOGGUI must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:696:9: error: #error «wxUSE_LOGWINDOW must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:704:9: error: #error «wxUSE_LOG_DIALOG must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:712:9: error: #error «wxUSE_MDI must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:720:9: error: #error «wxUSE_MDI_ARCHITECTURE must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:728:9: error: #error «wxUSE_MENUS must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:736:9: error: #error «wxUSE_MSGDLG must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:744:9: error: #error «wxUSE_NOTEBOOK must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:752:9: error: #error «wxUSE_ODCOMBOBOX must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:760:9: error: #error «wxUSE_PALETTE must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:768:9: error: #error «wxUSE_POPUPWIN must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:776:9: error: #error «wxUSE_PRINTING_ARCHITECTURE must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:784:9: error: #error «wxUSE_RADIOBOX must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:792:9: error: #error «wxUSE_RADIOBTN must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:800:9: error: #error «wxUSE_SASH must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:808:9: error: #error «wxUSE_SCROLLBAR must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:816:9: error: #error «wxUSE_SLIDER must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:824:9: error: #error «wxUSE_SOUND must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:832:9: error: #error «wxUSE_SPINBTN must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:840:9: error: #error «wxUSE_SPINCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:848:9: error: #error «wxUSE_SPLASH must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:856:9: error: #error «wxUSE_SPLITTER must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:864:9: error: #error «wxUSE_STATBMP must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:872:9: error: #error «wxUSE_STATBOX must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:880:9: error: #error «wxUSE_STATLINE must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:888:9: error: #error «wxUSE_STATTEXT must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:896:9: error: #error «wxUSE_STATUSBAR must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:904:9: error: #error «wxUSE_TAB_DIALOG must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:912:9: error: #error «wxUSE_TEXTCTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:920:9: error: #error «wxUSE_TIPWINDOW must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:928:9: error: #error «wxUSE_TOOLBAR must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:936:9: error: #error «wxUSE_TOOLTIPS must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:944:9: error: #error «wxUSE_TREECTRL must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:952:9: error: #error «wxUSE_VALIDATORS must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:960:9: error: #error «wxUSE_WXHTML_HELP must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:968:9: error: #error «wxUSE_XRC must be defined.»
/usr/local/include/wx-2.8/wx/chkconf.h:1765:9: error: #error «wxMessageBox is always needed»
In file included from /usr/local/include/wx-2.8/wx/wxprec.h:13,
                 from HelloWorldApp.cpp:2:
/usr/local/include/wx-2.8/wx/defs.h:42:13: error: #error «No Target! You should use wx-config program for compilation flags!»
In file included from /usr/local/include/wx-2.8/wx/memory.h:16,
                 from /usr/local/include/wx-2.8/wx/object.h:20,
                 from /usr/local/include/wx-2.8/wx/wx.h:16,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/string.h:164:4: error: #error «Please define string case-insensitive compare for your OS/compiler»
In file included from /usr/local/include/wx-2.8/wx/cmndata.h:17,
                 from /usr/local/include/wx-2.8/wx/wx.h:65,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/encinfo.h:64:6: error: #error «Unsupported toolkit»
In file included from /usr/local/include/wx-2.8/wx/wxprec.h:13,
                 from HelloWorldApp.cpp:2:
/usr/local/include/wx-2.8/wx/defs.h:212: error: redeclaration of C++ built-in type ‘bool’
In file included from /usr/local/include/wx-2.8/wx/wxprec.h:13,
                 from HelloWorldApp.cpp:2:
/usr/local/include/wx-2.8/wx/defs.h:816: error: zero width for bit-field ‘wxAssert_817::Wchar_tMustBeExactly2Bytes’
In file included from /usr/local/include/wx-2.8/wx/memory.h:16,
                 from /usr/local/include/wx-2.8/wx/object.h:20,
                 from /usr/local/include/wx-2.8/wx/wx.h:16,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/string.h:827: error: ‘wxChar& wxString::operator[](unsigned int)’ cannot be overloaded
/usr/local/include/wx-2.8/wx/string.h:824: error: with ‘wxChar& wxString::operator[](size_t)’
In file included from /usr/local/include/wx-2.8/wx/event.h:22,
                 from /usr/local/include/wx-2.8/wx/wx.h:25,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/cursor.h: In destructor ‘wxBusyCursorSuspender::~wxBusyCursorSuspender()’:
/usr/local/include/wx-2.8/wx/cursor.h:74: error: invalid use of incomplete type ‘const struct wxCursor’
/usr/local/include/wx-2.8/wx/gdicmn.h:33: error: forward declaration of ‘const struct wxCursor’
In file included from /usr/local/include/wx-2.8/wx/wx.h:25,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/event.h: At global scope:
/usr/local/include/wx-2.8/wx/event.h:921: error: field ‘m_cursor’ has incomplete type
/usr/local/include/wx-2.8/wx/event.h: In constructor ‘wxSetCursorEvent::wxSetCursorEvent(wxCoord, wxCoord)’:
/usr/local/include/wx-2.8/wx/event.h:900: error: class ‘wxSetCursorEvent’ does not have any field named ‘m_cursor’
/usr/local/include/wx-2.8/wx/event.h: In copy constructor ‘wxSetCursorEvent::wxSetCursorEvent(const wxSetCursorEvent&)’:
/usr/local/include/wx-2.8/wx/event.h:907: error: class ‘wxSetCursorEvent’ does not have any field named ‘m_cursor’
/usr/local/include/wx-2.8/wx/event.h:907: error: ‘const class wxSetCursorEvent’ has no member named ‘m_cursor’
/usr/local/include/wx-2.8/wx/event.h: In member function ‘void wxSetCursorEvent::SetCursor(const wxCursor&)’:
/usr/local/include/wx-2.8/wx/event.h:913: error: ‘m_cursor’ was not declared in this scope
/usr/local/include/wx-2.8/wx/event.h: In member function ‘const wxCursor& wxSetCursorEvent::GetCursor() const’:
/usr/local/include/wx-2.8/wx/event.h:914: error: ‘m_cursor’ was not declared in this scope
/usr/local/include/wx-2.8/wx/event.h: In member function ‘bool wxSetCursorEvent::HasCursor() const’:
/usr/local/include/wx-2.8/wx/event.h:915: error: ‘m_cursor’ was not declared in this scope
In file included from /usr/local/include/wx-2.8/wx/wx.h:26,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/app.h: In constructor ‘wxAppInitializer::wxAppInitializer(wxAppConsole* (*)())’:
/usr/local/include/wx-2.8/wx/app.h:637: error: ‘wxApp’ has not been declared
In file included from /usr/local/include/wx-2.8/wx/window.h:26,
                 from /usr/local/include/wx-2.8/wx/wx.h:36,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/region.h: In member function ‘bool wxRegionBase::Intersect(const wxRect&)’:
/usr/local/include/wx-2.8/wx/region.h:251: error: invalid use of incomplete type ‘struct wxRegion’
/usr/local/include/wx-2.8/wx/gdicmn.h:38: error: forward declaration of ‘struct wxRegion’
/usr/local/include/wx-2.8/wx/region.h: In member function ‘bool wxRegionBase::Subtract(const wxRect&)’:
/usr/local/include/wx-2.8/wx/region.h:256: error: invalid use of incomplete type ‘struct wxRegion’
/usr/local/include/wx-2.8/wx/gdicmn.h:38: error: forward declaration of ‘struct wxRegion’
/usr/local/include/wx-2.8/wx/region.h: In member function ‘bool wxRegionBase::Xor(const wxRect&)’:
/usr/local/include/wx-2.8/wx/region.h:261: error: invalid use of incomplete type ‘struct wxRegion’
/usr/local/include/wx-2.8/wx/gdicmn.h:38: error: forward declaration of ‘struct wxRegion’
In file included from /usr/local/include/wx-2.8/wx/wx.h:36,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/window.h: At global scope:
/usr/local/include/wx-2.8/wx/window.h:82: error: field ‘font’ has incomplete type
/usr/local/include/wx-2.8/wx/window.h:85: error: field ‘colFg’ has incomplete type
/usr/local/include/wx-2.8/wx/window.h:89: error: field ‘colBg’ has incomplete type
/usr/local/include/wx-2.8/wx/window.h:1133: error: ‘WXWidget’ does not name a type
/usr/local/include/wx-2.8/wx/window.h:1135: error: ‘WXWidget’ has not been declared
/usr/local/include/wx-2.8/wx/window.h:1230: error: field ‘m_cursor’ has incomplete type
/usr/local/include/wx-2.8/wx/window.h:1231: error: field ‘m_font’ has incomplete type
/usr/local/include/wx-2.8/wx/window.h:1232: error: field ‘m_backgroundColour’ has incomplete type
/usr/local/include/wx-2.8/wx/window.h:1233: error: field ‘m_foregroundColour’ has incomplete type
/usr/local/include/wx-2.8/wx/window.h:1240: error: field ‘m_updateRegion’ has incomplete type
/usr/local/include/wx-2.8/wx/window.h: In member function ‘const wxRegion& wxWindowBase::GetUpdateRegion() const’:
/usr/local/include/wx-2.8/wx/window.h:761: error: ‘m_updateRegion’ was not declared in this scope
/usr/local/include/wx-2.8/wx/window.h: In member function ‘wxRegion& wxWindowBase::GetUpdateRegion()’:
/usr/local/include/wx-2.8/wx/window.h:762: error: ‘m_updateRegion’ was not declared in this scope
/usr/local/include/wx-2.8/wx/window.h: In member function ‘const wxCursor& wxWindowBase::GetCursor() const’:
/usr/local/include/wx-2.8/wx/window.h:850: error: ‘m_cursor’ was not declared in this scope
/usr/local/include/wx-2.8/wx/window.h: In member function ‘wxWindow* wxWindowBase::GetGrandParent() const’:
/usr/local/include/wx-2.8/wx/window.h:1547: error: invalid use of incomplete type ‘struct wxWindow’
/usr/local/include/wx-2.8/wx/utils.h:51: error: forward declaration of ‘struct wxWindow’
In file included from /usr/local/include/wx-2.8/wx/panel.h:15,
                 from /usr/local/include/wx-2.8/wx/wx.h:38,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/generic/panelg.h: At global scope:
/usr/local/include/wx-2.8/wx/generic/panelg.h:31: error: invalid use of incomplete type ‘struct wxWindow’
/usr/local/include/wx-2.8/wx/utils.h:51: error: forward declaration of ‘struct wxWindow’
In file included from /usr/local/include/wx-2.8/wx/wx.h:39,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/toplevel.h:119: error: invalid use of incomplete type ‘struct wxWindow’
/usr/local/include/wx-2.8/wx/utils.h:51: error: forward declaration of ‘struct wxWindow’
/usr/local/include/wx-2.8/wx/toplevel.h: In member function ‘virtual bool wxTopLevelWindowBase::IsActive()’:
/usr/local/include/wx-2.8/wx/toplevel.h:183: error: ‘FindFocus’ was not declared in this scope
/usr/local/include/wx-2.8/wx/toplevel.h: In member function ‘virtual bool wxTopLevelWindowBase::IsVisible() const’:
/usr/local/include/wx-2.8/wx/toplevel.h:235: error: ‘IsShown’ was not declared in this scope
/usr/local/include/wx-2.8/wx/toplevel.h: In member function ‘virtual void wxTopLevelWindowBase::DoGetScreenPosition(int*, int*) const’:
/usr/local/include/wx-2.8/wx/toplevel.h:273: error: ‘DoGetPosition’ was not declared in this scope
In file included from /usr/local/include/wx-2.8/wx/wx.h:40,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/frame.h: At global scope:
/usr/local/include/wx-2.8/wx/frame.h:53: error: expected class-name before ‘{‘ token
In file included from /usr/local/include/wx-2.8/wx/wx.h:48,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/dc.h:841: error: field ‘m_pen’ has incomplete type
/usr/local/include/wx-2.8/wx/dc.h:842: error: field ‘m_brush’ has incomplete type
/usr/local/include/wx-2.8/wx/dc.h:843: error: field ‘m_backgroundBrush’ has incomplete type
/usr/local/include/wx-2.8/wx/dc.h:844: error: field ‘m_textForegroundColour’ has incomplete type
/usr/local/include/wx-2.8/wx/dc.h:845: error: field ‘m_textBackgroundColour’ has incomplete type
/usr/local/include/wx-2.8/wx/dc.h:846: error: field ‘m_font’ has incomplete type
/usr/local/include/wx-2.8/wx/dc.h: In constructor ‘wxDCBase::wxDCBase()’:
/usr/local/include/wx-2.8/wx/dc.h:121: error: class ‘wxDCBase’ does not have any field named ‘m_pen’
/usr/local/include/wx-2.8/wx/dc.h:122: error: class ‘wxDCBase’ does not have any field named ‘m_brush’
/usr/local/include/wx-2.8/wx/dc.h:123: error: class ‘wxDCBase’ does not have any field named ‘m_backgroundBrush’
/usr/local/include/wx-2.8/wx/dc.h:124: error: class ‘wxDCBase’ does not have any field named ‘m_textForegroundColour’
/usr/local/include/wx-2.8/wx/dc.h:125: error: class ‘wxDCBase’ does not have any field named ‘m_textBackgroundColour’
/usr/local/include/wx-2.8/wx/dc.h:126: error: class ‘wxDCBase’ does not have any field named ‘m_font’
/usr/local/include/wx-2.8/wx/dc.h: In member function ‘wxBitmap wxDCBase::GetAsBitmap(const wxRect*) const’:
/usr/local/include/wx-2.8/wx/dc.h:318: error: return type ‘struct wxBitmap’ is incomplete
/usr/local/include/wx-2.8/wx/dc.h:319: error: invalid use of incomplete type ‘struct wxBitmap’
/usr/local/include/wx-2.8/wx/gdicmn.h:30: error: forward declaration of ‘struct wxBitmap’
/usr/local/include/wx-2.8/wx/dc.h: In member function ‘virtual const wxBrush& wxDCBase::GetBackground() const’:
/usr/local/include/wx-2.8/wx/dc.h:527: error: ‘m_backgroundBrush’ was not declared in this scope
/usr/local/include/wx-2.8/wx/dc.h: In member function ‘virtual const wxBrush& wxDCBase::GetBrush() const’:
/usr/local/include/wx-2.8/wx/dc.h:528: error: ‘m_brush’ was not declared in this scope
/usr/local/include/wx-2.8/wx/dc.h: In member function ‘virtual const wxFont& wxDCBase::GetFont() const’:
/usr/local/include/wx-2.8/wx/dc.h:529: error: ‘m_font’ was not declared in this scope
/usr/local/include/wx-2.8/wx/dc.h: In member function ‘virtual const wxPen& wxDCBase::GetPen() const’:
/usr/local/include/wx-2.8/wx/dc.h:530: error: ‘m_pen’ was not declared in this scope
/usr/local/include/wx-2.8/wx/dc.h: In member function ‘virtual const wxColour& wxDCBase::GetTextForeground() const’:
/usr/local/include/wx-2.8/wx/dc.h:532: error: ‘m_textForegroundColour’ was not declared in this scope
/usr/local/include/wx-2.8/wx/dc.h: In member function ‘virtual const wxColour& wxDCBase::GetTextBackground() const’:
/usr/local/include/wx-2.8/wx/dc.h:533: error: ‘m_textBackgroundColour’ was not declared in this scope
/usr/local/include/wx-2.8/wx/dc.h: In member function ‘virtual void wxDCBase::SetTextForeground(const wxColour&)’:
/usr/local/include/wx-2.8/wx/dc.h:535: error: ‘m_textForegroundColour’ was not declared in this scope
/usr/local/include/wx-2.8/wx/dc.h: In member function ‘virtual void wxDCBase::SetTextBackground(const wxColour&)’:
/usr/local/include/wx-2.8/wx/dc.h:537: error: ‘m_textBackgroundColour’ was not declared in this scope
/usr/local/include/wx-2.8/wx/dc.h: In member function ‘virtual wxBitmap wxDCBase::DoGetAsBitmap(const wxRect*) const’:
/usr/local/include/wx-2.8/wx/dc.h:733: error: return type ‘struct wxBitmap’ is incomplete
/usr/local/include/wx-2.8/wx/dc.h: At global scope:
/usr/local/include/wx-2.8/wx/dc.h:921: error: field ‘m_colFgOld’ has incomplete type
/usr/local/include/wx-2.8/wx/dc.h: In constructor ‘wxDCTextColourChanger::wxDCTextColourChanger(wxDC&)’:
/usr/local/include/wx-2.8/wx/dc.h:898: error: class ‘wxDCTextColourChanger’ does not have any field named ‘m_colFgOld’
/usr/local/include/wx-2.8/wx/dc.h: In destructor ‘wxDCTextColourChanger::~wxDCTextColourChanger()’:
/usr/local/include/wx-2.8/wx/dc.h:907: error: ‘m_colFgOld’ was not declared in this scope
/usr/local/include/wx-2.8/wx/dc.h:908: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/local/include/wx-2.8/wx/dc.h: In member function ‘void wxDCTextColourChanger::Set(const wxColour&)’:
/usr/local/include/wx-2.8/wx/dc.h:913: error: ‘m_colFgOld’ was not declared in this scope
/usr/local/include/wx-2.8/wx/dc.h:914: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/local/include/wx-2.8/wx/dc.h:915: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/local/include/wx-2.8/wx/dc.h: At global scope:
/usr/local/include/wx-2.8/wx/dc.h:948: error: field ‘m_penOld’ has incomplete type
/usr/local/include/wx-2.8/wx/dc.h: In constructor ‘wxDCPenChanger::wxDCPenChanger(wxDC&, const wxPen&)’:
/usr/local/include/wx-2.8/wx/dc.h:934: error: class ‘wxDCPenChanger’ does not have any field named ‘m_penOld’
/usr/local/include/wx-2.8/wx/dc.h:934: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/local/include/wx-2.8/wx/dc.h:936: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/local/include/wx-2.8/wx/dc.h: In destructor ‘wxDCPenChanger::~wxDCPenChanger()’:
/usr/local/include/wx-2.8/wx/dc.h:941: error: ‘m_penOld’ was not declared in this scope
/usr/local/include/wx-2.8/wx/dc.h:942: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/local/include/wx-2.8/wx/dc.h: At global scope:
/usr/local/include/wx-2.8/wx/dc.h:975: error: field ‘m_brushOld’ has incomplete type
/usr/local/include/wx-2.8/wx/dc.h: In constructor ‘wxDCBrushChanger::wxDCBrushChanger(wxDC&, const wxBrush&)’:
/usr/local/include/wx-2.8/wx/dc.h:961: error: class ‘wxDCBrushChanger’ does not have any field named ‘m_brushOld’
/usr/local/include/wx-2.8/wx/dc.h:961: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/local/include/wx-2.8/wx/dc.h:963: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/local/include/wx-2.8/wx/dc.h: In destructor ‘wxDCBrushChanger::~wxDCBrushChanger()’:
/usr/local/include/wx-2.8/wx/dc.h:968: error: ‘m_brushOld’ was not declared in this scope
/usr/local/include/wx-2.8/wx/dc.h:969: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/local/include/wx-2.8/wx/dc.h: In constructor ‘wxDCClipper::wxDCClipper(wxDC&, const wxRegion&)’:
/usr/local/include/wx-2.8/wx/dc.h:989: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/local/include/wx-2.8/wx/dc.h: In constructor ‘wxDCClipper::wxDCClipper(wxDC&, const wxRect&)’:
/usr/local/include/wx-2.8/wx/dc.h:991: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/local/include/wx-2.8/wx/dc.h: In constructor ‘wxDCClipper::wxDCClipper(wxDC&, wxCoord, wxCoord, wxCoord, wxCoord)’:
/usr/local/include/wx-2.8/wx/dc.h:993: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/local/include/wx-2.8/wx/dc.h: In destructor ‘wxDCClipper::~wxDCClipper()’:
/usr/local/include/wx-2.8/wx/dc.h:995: error: invalid use of incomplete type ‘struct wxDC’
/usr/local/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
In file included from /usr/local/include/wx-2.8/wx/wx.h:50,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/dcmemory.h: In member function ‘void wxMemoryDCBase::SelectObject(wxBitmap&)’:
/usr/local/include/wx-2.8/wx/dcmemory.h:35: error: invalid use of incomplete type ‘struct wxBitmap’
/usr/local/include/wx-2.8/wx/gdicmn.h:30: error: forward declaration of ‘struct wxBitmap’
/usr/local/include/wx-2.8/wx/dcmemory.h:36: error: invalid use of incomplete type ‘struct wxBitmap’
/usr/local/include/wx-2.8/wx/gdicmn.h:30: error: forward declaration of ‘struct wxBitmap’
In file included from /usr/local/include/wx-2.8/wx/wx.h:61,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/dialog.h: At global scope:
/usr/local/include/wx-2.8/wx/dialog.h:33: error: expected class-name before ‘{‘ token
In file included from /usr/local/include/wx-2.8/wx/wx.h:65,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/cmndata.h:49: error: field ‘m_dataColour’ has incomplete type
/usr/local/include/wx-2.8/wx/cmndata.h:50: error: field ‘m_custColours’ has incomplete type
/usr/local/include/wx-2.8/wx/cmndata.h: In member function ‘void wxColourData::SetColour(const wxColour&)’:
/usr/local/include/wx-2.8/wx/cmndata.h:38: error: ‘m_dataColour’ was not declared in this scope
/usr/local/include/wx-2.8/wx/cmndata.h: In member function ‘const wxColour& wxColourData::GetColour() const’:
/usr/local/include/wx-2.8/wx/cmndata.h:39: error: ‘m_dataColour’ was not declared in this scope
/usr/local/include/wx-2.8/wx/cmndata.h: In member function ‘wxColour& wxColourData::GetColour()’:
/usr/local/include/wx-2.8/wx/cmndata.h:40: error: ‘m_dataColour’ was not declared in this scope
/usr/local/include/wx-2.8/wx/cmndata.h: At global scope:
/usr/local/include/wx-2.8/wx/cmndata.h:125: error: field ‘m_fontColour’ has incomplete type
/usr/local/include/wx-2.8/wx/cmndata.h:129: error: field ‘m_initialFont’ has incomplete type
/usr/local/include/wx-2.8/wx/cmndata.h:130: error: field ‘m_chosenFont’ has incomplete type
/usr/local/include/wx-2.8/wx/cmndata.h: In copy constructor ‘wxFontData::wxFontData(const wxFontData&)’:
/usr/local/include/wx-2.8/wx/cmndata.h:65: error: class ‘wxFontData’ does not have any field named ‘m_fontColour’
/usr/local/include/wx-2.8/wx/cmndata.h:65: error: ‘const class wxFontData’ has no member named ‘m_fontColour’
/usr/local/include/wx-2.8/wx/cmndata.h:69: error: class ‘wxFontData’ does not have any field named ‘m_initialFont’
/usr/local/include/wx-2.8/wx/cmndata.h:69: error: ‘const class wxFontData’ has no member named ‘m_initialFont’
/usr/local/include/wx-2.8/wx/cmndata.h:70: error: class ‘wxFontData’ does not have any field named ‘m_chosenFont’
/usr/local/include/wx-2.8/wx/cmndata.h:70: error: ‘const class wxFontData’ has no member named ‘m_chosenFont’
/usr/local/include/wx-2.8/wx/cmndata.h: In member function ‘wxFontData& wxFontData::operator=(const wxFontData&)’:
/usr/local/include/wx-2.8/wx/cmndata.h:81: error: ‘m_fontColour’ was not declared in this scope
/usr/local/include/wx-2.8/wx/cmndata.h:81: error: ‘const class wxFontData’ has no member named ‘m_fontColour’
/usr/local/include/wx-2.8/wx/cmndata.h:85: error: ‘m_initialFont’ was not declared in this scope
/usr/local/include/wx-2.8/wx/cmndata.h:85: error: ‘const class wxFontData’ has no member named ‘m_initialFont’
/usr/local/include/wx-2.8/wx/cmndata.h:86: error: ‘m_chosenFont’ was not declared in this scope
/usr/local/include/wx-2.8/wx/cmndata.h:86: error: ‘const class wxFontData’ has no member named ‘m_chosenFont’
/usr/local/include/wx-2.8/wx/cmndata.h: In member function ‘void wxFontData::SetColour(const wxColour&)’:
/usr/local/include/wx-2.8/wx/cmndata.h:97: error: ‘m_fontColour’ was not declared in this scope
/usr/local/include/wx-2.8/wx/cmndata.h: In member function ‘const wxColour& wxFontData::GetColour() const’:
/usr/local/include/wx-2.8/wx/cmndata.h:98: error: ‘m_fontColour’ was not declared in this scope
/usr/local/include/wx-2.8/wx/cmndata.h: In member function ‘void wxFontData::SetInitialFont(const wxFont&)’:
/usr/local/include/wx-2.8/wx/cmndata.h:106: error: ‘m_initialFont’ was not declared in this scope
/usr/local/include/wx-2.8/wx/cmndata.h: In member function ‘wxFont wxFontData::GetInitialFont() const’:
/usr/local/include/wx-2.8/wx/cmndata.h:107: error: return type ‘struct wxFont’ is incomplete
/usr/local/include/wx-2.8/wx/cmndata.h:107: error: ‘m_initialFont’ was not declared in this scope
/usr/local/include/wx-2.8/wx/cmndata.h: In member function ‘void wxFontData::SetChosenFont(const wxFont&)’:
/usr/local/include/wx-2.8/wx/cmndata.h:109: error: ‘m_chosenFont’ was not declared in this scope
/usr/local/include/wx-2.8/wx/cmndata.h: In member function ‘wxFont wxFontData::GetChosenFont() const’:
/usr/local/include/wx-2.8/wx/cmndata.h:110: error: return type ‘struct wxFont’ is incomplete
/usr/local/include/wx-2.8/wx/cmndata.h:110: error: ‘m_chosenFont’ was not declared in this scope
In file included from /usr/local/include/wx-2.8/wx/wx.h:84,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/scrolwin.h: In member function ‘wxSize wxScrollHelper::GetTargetSize() const’:
/usr/local/include/wx-2.8/wx/scrolwin.h:185: error: invalid use of incomplete type ‘struct wxWindow’
/usr/local/include/wx-2.8/wx/utils.h:51: error: forward declaration of ‘struct wxWindow’
/usr/local/include/wx-2.8/wx/scrolwin.h: In constructor ‘wxScrolledWindow::wxScrolledWindow()’:
/usr/local/include/wx-2.8/wx/scrolwin.h:274: error: no matching function for call to ‘wxScrollHelper::wxScrollHelper(wxScrolledWindow* const)’
/usr/local/include/wx-2.8/wx/scrolwin.h:240: note: candidates are: wxScrollHelper::wxScrollHelper(const wxScrollHelper&)
/usr/local/include/wx-2.8/wx/scrolwin.h:55: note:                 wxScrollHelper::wxScrollHelper(wxWindow*)
/usr/local/include/wx-2.8/wx/scrolwin.h: In constructor ‘wxScrolledWindow::wxScrolledWindow(wxWindow*, wxWindowID, const wxPoint&, const wxSize&, long int, const wxString&)’:
/usr/local/include/wx-2.8/wx/scrolwin.h:281: error: no matching function for call to ‘wxScrollHelper::wxScrollHelper(wxScrolledWindow* const)’
/usr/local/include/wx-2.8/wx/scrolwin.h:240: note: candidates are: wxScrollHelper::wxScrollHelper(const wxScrollHelper&)
/usr/local/include/wx-2.8/wx/scrolwin.h:55: note:                 wxScrollHelper::wxScrollHelper(wxWindow*)
In file included from /usr/local/include/wx-2.8/wx/wx.h:89,
                 from HelloWorldApp.cpp:5:
/usr/local/include/wx-2.8/wx/sizer.h: In member function ‘void wxSizerItem::SetMinSize(const wxSize&)’:
/usr/local/include/wx-2.8/wx/sizer.h:292: error: invalid use of incomplete type ‘struct wxWindow’
/usr/local/include/wx-2.8/wx/utils.h:51: error: forward declaration of ‘struct wxWindow’
In file included from HelloWorldApp.cpp:8:
HelloWorldApp.h: At global scope:
HelloWorldApp.h:7: error: expected class-name before ‘{‘ token
HelloWorldApp.cpp: In function ‘wxAppConsole* wxCreateApp()’:
HelloWorldApp.cpp:10: error: cannot convert ‘HelloWorldApp*’ to ‘wxAppConsole*’ in return
HelloWorldApp.cpp: In function ‘HelloWorldApp& wxGetApp()’:
HelloWorldApp.cpp:10: error: ‘wxApp’ was not declared in this scope
HelloWorldApp.cpp:10: error: expected primary-expression before ‘*’ token
HelloWorldApp.cpp:10: error: expected primary-expression before ‘)’ token
HelloWorldApp.cpp:10: error: ‘wxApp’ is not a class or namespace
HelloWorldApp.cpp: In member function ‘virtual bool HelloWorldApp::OnInit()’:
HelloWorldApp.cpp:15: error: invalid use of incomplete type ‘struct wxFrame’
/usr/local/include/wx-2.8/wx/log.h:556: error: forward declaration of ‘struct wxFrame’
HelloWorldApp.cpp:16: error: invalid use of incomplete type ‘struct wxFrame’
/usr/local/include/wx-2.8/wx/log.h:556: error: forward declaration of ‘struct wxFrame’
HelloWorldApp.cpp:17: error: invalid use of incomplete type ‘struct wxFrame’
/usr/local/include/wx-2.8/wx/log.h:556: error: forward declaration of ‘struct wxFrame’
HelloWorldApp.cpp:18: error: invalid use of incomplete type ‘struct wxFrame’
/usr/local/include/wx-2.8/wx/log.h:556: error: forward declaration of ‘struct wxFrame’
HelloWorldApp.cpp:19: error: ‘SetTopWindow’ was not declared in this scope
In file included from main.cpp:1:
HelloWorldApp.h:7: error: expected class-name before ‘{‘ token
main.cpp:3: error: expected constructor, destructor, or type conversion before ‘int’

  • Forum
  • General C++ Programming
  • Building wxWidgets with MinGW

Building wxWidgets with MinGW

I’m having a whole lot of problems trying to build wxWidgets. I followed the directions step by step.

instructions from http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef#Build_and_Run

For some reason mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 doesnt work in command prompt… Can someone please hlpe me out?? It says that mingw32-make isn’t a command.

Last edited on

please?

Is the mingw/bin directory in your PATH? Also, if you have MSYS installed try make

Edit: It is compiling for me following the directions on your link, but I am using the mingw shell that comes with my installation.

Last edited on

MinGW shell?? I have no clue how I’m supposed to install this…

I dont have MSYS, whatever that is. «make» isn’t a recognized command prompt command, so I can’t use it.

MinGW: C:MinGW
wxWidgets (un-‘built’): C:Program FilesCodeblockswxWidgets

Last edited on

http://www.mingw.org/wiki/MSYS

As for mingw shell, it came with my mingw installation I believe. Actually, I think it comes with MSYS. I access it under the mingw entry in Programs menu.

Last edited on

The link you provided me will make me re-install MinGW. Currently, i have MinGW working perfectly with the boost library, and I would like it to stay that way.

Thank you for your help. If you cvould provide me with the link to installation of MSYS independently, I would appreciate it. I will do some searching though.

Alright. Thank you so much for yuour help!

I will post any other problems I have with this here. I just hope there aren’t any. :)

So i tried following the instructions using MSYS, and it still didnt work… MSYS doesn’t have a ‘make’ command either.

Am I missing something??

Last edited on

I have make.exe in mingw/bin and mingw/msys/1.0/bin. Are you using mingw shell?

Im using MSYS…..

I’m not exactly sure how to use a shell.

Last edited on

Go to start>programs>mingw>mingw shell or run msys/1.0/msys.bat

thats what I have been using and it keeps telling me that «mingw32-make isnt a command».

Did you check for make.exe?

NVM!

It (i think…) recognizes it, but doesn’t do a thing.

When I try to build a wxWidgets Project (blank, nothing but the ‘close()’ command) it keeps showing this error:

C:Program FilesCodeBlockswxWidgets-2.8.12includewxplatform.h|196|fatal error: wx/setup.h: No such file or directory|

The command I’m entering into the consol:

mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1

Last edited on

See the FAQ at the bottom of the page you linked in your first post.

Wow i feel dumb …

Well, adding «$(#wx.lib)gcc_dllmswu» to the compiler search direstories didnt help. (under the first tab)

I’ve tried as many different program «configuratoons as i can think of, and I still get that same damn error.

EDIT1 — I’ve tried adding «$(#wx.lib)gcc_dllmswu» under a lot of build options and none of it seems to help. The project is set for monolithic, dll, and unicode. I dont know what that is supposed to mean, but apparently it has to be set up that way for «$(#wx.lib)gcc_dllmswu» to work, which it doesn’t anyway. wxWidgets, Y U NO WORK?!?!

Any help is greatly appreciated. I have done some searches and most of what I get is about VISUAL, not MinGW, but none about my problem specifically.

Last edited on

After a bit more un-conclusive searching, I am wondering what the problem is…

I’ve read some stuff about ‘compiling the wxWidgets library wrong’, if that’s even possible…, and other stuff that refers to the same link in my first post. I can not figure out how to get widgets to work!!

If someone could provide step by step instructions so that they can ‘diagnose’ what’s wrong with it, i would be very grateful. I’m about to abandon my attempts to make GUIs all together if I can’t get this to simply work.

I would also like to note that attempts at building the wxWidgets using the instructions provided in the link of my first post, didn’t seem to do anything. I put in the command and almost as fast as I pressed enter it showed me the input «>», and nothing more. No buils statistics/directories, etc, nothing. It was as if it didn’t even try to build the library, so I’m going to take that as a confirmation that the wxWidgets library is properly built, until someone tells me otherwise.

I’m learning this on my own, this is not part of a school project, or otherwise. Any help you give is greatly appreciated.

Last edited on

When building you will see the compiler output, it also takes some time (I think about 45 mins for me). I’m thinking either you aren’t entering the command correctly, your PATH doesn’t have necessary directories or there is an issue with your mingw installation. Where you able to find the mingw shell I mentioned? If so try this command that worked for me

make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1

You can also try a more recent version of wxwidgets, the version I compiled was 2.9.4, but I doubt that is the issue.

Edit: Don’t give up, while it can be a pain in the ass to build/link/use external libs it is necessary skill you will need to learn to be productive as a programmer.

Last edited on

@naraku
Alright, i will keep trying.

make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1

That was the exact code i used, except i used

instead of

. It didnt give me «not a command» or nothing. It just simply acted as though i didnt enter anything at all… I will try make instead though.

Also, I followed the instructions and changed the directory (C:Program FilesCodeBlockswxWidgets-2.8.12buildmsw) if that changes anything.

Well, the entire FREAKING folder that contains All my prograsmming tools, wtc… is READ-ONLY! that

must

be half of my problem right there. Why in hell would my computer do this?? It wont let me change this from read only!!!!

Last edited on

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Fatal error unable to find gruntfile
  • Fatal error wiring h no such file or directory
  • Fatal error unable to copy game data 2 rage mp
  • Fatal error windows h нет такого файла или каталога
  • Fatal error unable to copy game data 2 gta 5 rp

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии