wxWidgets 3.0.0 Compile Errors on CodeLite 5.4 (GCC 4.8.1)

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
rro4785
In need of some credit
In need of some credit
Posts: 5
Joined: Sat Mar 08, 2014 2:44 am
Location: Caracas, Edo. Miranda. Venezuela.

wxWidgets 3.0.0 Compile Errors on CodeLite 5.4 (GCC 4.8.1)

Post by rro4785 »

Hello!

I'm new in wxWidgets. I'm trying testing the tutorial's sample (http://zetcode.com/gui/wxwidgets/firstprograms/) but when I'm compiling, the output shows me this:

Code: Select all

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 2 -e -f  Makefile"
"----------Building project:[ Proyect_App - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App'
g++  -c  "F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -ID:/Herramientas/wxWidgets/lib/gcc_dll/mswud -ID:/Herramientas/wxWidgets/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport    -o ./Debug/main.o -ID:/Herramientas/MinGW/include  -I.
g++  -c  "F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App/simple.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -ID:/Herramientas/wxWidgets/lib/gcc_dll/mswud -ID:/Herramientas/wxWidgets/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport    -o ./Debug/simple.o -ID:/Herramientas/MinGW/include  -I.
In file included from D:/Herramientas/wxWidgets/include/wx/msw/gccpriv.h:40:0,
                 from D:/Herramientas/wxWidgets/include/wx/platform.h:466,
                 from D:/Herramientas/wxWidgets/include/wx/defs.h:27,
                 from D:/Herramientas/wxWidgets/include/wx/wxprec.h:12,
                 from F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App/main.h:1,
                 from F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App/main.cpp:1:
d:\herramientas\mingw\include\w32api.h:27:2: warning: #warning WARNING - The w32api.h header file is deprecated and will be removed. [-Wcpp]
 #warning WARNING - The w32api.h header file is deprecated and will be removed.
  ^
In file included from D:/Herramientas/wxWidgets/include/wx/msw/gccpriv.h:40:0,
                 from D:/Herramientas/wxWidgets/include/wx/platform.h:466,
                 from D:/Herramientas/wxWidgets/include/wx/defs.h:27,
                 from D:/Herramientas/wxWidgets/include/wx/wxprec.h:12,
                 from F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App/simple.h:1,
                 from F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App/simple.cpp:1:
d:\herramientas\mingw\include\w32api.h:27:2: warning: #warning WARNING - The w32api.h header file is deprecated and will be removed. [-Wcpp]
 #warning WARNING - The w32api.h header file is deprecated and will be removed.
  ^
g++ -o ./Debug/Proyect_App @"Proyect_App.txt" -LD:/Herramientas/MinGW/lib  -L.   -mwindows  -mthreads -LD:/Herramientas/wxWidgets/lib/gcc_dll -lwxmsw30ud_richtext -lwxmsw30ud_xrc -lwxmsw30ud_aui -lwxmsw30ud_html -lwxmsw30ud_adv -lwxmsw30ud_core -lwxbase30ud_xml -lwxbase30ud_net -lwxbase30ud -lwxscintillad -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
./Debug/main.o: In function `ZN8wxStringD1Ev':
D:/Herramientas/wxWidgets/include/wx/string.h:393: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()'
./Debug/main.o: In function `ZN8wxStringC1EPKw':
D:/Herramientas/wxWidgets/include/wx/string.h:1268: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, std::allocator<wchar_t> const&)'
./Debug/main.o:main.cpp:(.eh_frame$_ZN8wxStringC1EPKw+0x13): undefined reference to `__gxx_personality_v0'
./Debug/main.o:main.cpp:(.eh_frame+0x6b): undefined reference to `__gxx_personality_v0'
./Debug/simple.o: In function `ZN8wxStringC1ERKS_':
D:/Herramientas/wxWidgets/include/wx/string.h:1220: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
./Debug/simple.o: In function `ZN8wxStringC1EPKc':
D:/Herramientas/wxWidgets/include/wx/string.h:1242: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, std::allocator<wchar_t> const&)'
./Debug/simple.o: In function `ZN8wxStringaSERKS_':
D:/Herramientas/wxWidgets/include/wx/string.h:1883: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator=(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
./Debug/simple.o:simple.cpp:(.eh_frame$_ZN8wxString7ImplStrEPKcRK8wxMBConv+0x13): undefined reference to `__gxx_personality_v0'
./Debug/simple.o:simple.cpp:(.eh_frame$_ZN8wxStringC1EPKc+0x13): undefined reference to `__gxx_personality_v0'
./Debug/simple.o:simple.cpp:(.eh_frame$_ZNK12wxWindowBase13GetClientSizeEv+0x13): undefined reference to `__gxx_personality_v0'
./Debug/simple.o:simple.cpp:(.eh_frame$_ZN12wxWindowBase16SetMinClientSizeERK6wxSize+0x13): undefined reference to `__gxx_personality_v0'
./Debug/simple.o:simple.cpp:(.eh_frame$_ZN12wxWindowBase16SetMaxClientSizeERK6wxSize+0x13): undefined reference to `__gxx_personality_v0'
./Debug/simple.o:simple.cpp:(.eh_frame$_ZNK12wxWindowBase16GetMinClientSizeEv+0x13): more undefined references to `__gxx_personality_v0' follow
D:/Herramientas/MinGW/lib/libstdc++.a(allocator-inst.o):allocator-inst.cc:(.text$_ZN9__gnu_cxx12__pool_allocIcE8allocateEjPKv[__ZN9__gnu_cxx12__pool_allocIcE8allocateEjPKv]+0x3d): undefined reference to `_Unwind_SjLj_Register'
D:/Herramientas/MinGW/lib/libstdc++.a(allocator-inst.o):allocator-inst.cc:(.text$_ZN9__gnu_cxx12__pool_allocIcE8allocateEjPKv[__ZN9__gnu_cxx12__pool_allocIcE8allocateEjPKv]+0x86): undefined reference to `_Unwind_SjLj_Unregister'
d:/herramientas/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: D:/Herramientas/MinGW/lib/libstdc++.a(allocator-inst.o): bad reloc address 0x86 in section `.text$_ZN9__gnu_cxx12__pool_allocIcE8allocateEjPKv[__ZN9__gnu_cxx12__pool_allocIcE8allocateEjPKv]'
d:/herramientas/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [Debug/Proyect_App] Error 1
Proyect_App.mk:81: recipe for target 'Debug/Proyect_App' failed
mingw32-make.exe[1]: Leaving directory 'F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
14 errors, 4 warnings, total time: 00:01:44 seconds
I'm using CodeLite 5.4, wxWidgets 3.0.0 and GCC 4.8.1 with MinGW on Windows 7 32-bits. I understand that code is not wrong, then what is error? What can I do? :? :? :?
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Re: wxWidgets 3.0.0 Compile Errors on CodeLite 5.4 (GCC 4.8.

Post by eranif »

How did you build your wxWidgets?
Is it a pre-compiled package? if so, where did you get it from?

Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
rro4785
In need of some credit
In need of some credit
Posts: 5
Joined: Sat Mar 08, 2014 2:44 am
Location: Caracas, Edo. Miranda. Venezuela.

Re: wxWidgets 3.0.0 Compile Errors on CodeLite 5.4 (GCC 4.8.

Post by rro4785 »

Hello! Thanks for you answer, really I don't remember where I downloaded the installer (wxwidgets-3.0-tdm-gcc-481-32-devel.exe), I have downloaded the sources (wxWidgets-3.0.0.7z, wxWidgets-3.0.0_headers.7z) and the binaries (wxMSW-3.0.0_gcc481TDM_Dev.7z, wxMSW-3.0.0_gcc481TDM_ReleaseDLL.7z)

But none has worked. When I compiled the source with:

Code: Select all

mingw32-make -f makefile.gcc UNICODE=1 SHARED=1 MONOLITHIC=1 BUILD=debug
Like I saw in this site: http://codelite.org/WxWidgets/GettingRe ... derWindows the cmd shows me some errors like that:

Code: Select all

gcc -E "..\..\include\wx\msw\genrcdefs.h" > "..\..\lib\gcc_dll\mswud\wx\msw\rcdefs.h"
gcc -c -o gcc_mswuddll\wxregex_regcomp.o -g -O0 -mthreads  -DHAVE_W32API_H -DNDEBUG -I..\..\include -I..\..\lib\gcc_dll\mswud -D__WXMSW__  -D_UNICODE   -MTgcc_mswuddll\wx
regex_regcomp.o -MFgcc_mswuddll\wxregex_regcomp.o.d -MD -MP ../../src/regex/regcomp.c
gcc: unrecognized option `-MTgcc_mswuddll\wxregex_regcomp.o'
gcc: unrecognized option `-MFgcc_mswuddll\wxregex_regcomp.o.d'
gcc: unrecognized option `-MP'
In file included from ..\..\src\regex\regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
..\..\src\regex\regcustom.h:32: stdio.h: No such file or directory
..\..\src\regex\regcustom.h:33: stdlib.h: No such file or directory
..\..\src\regex\regcustom.h:34: ctype.h: No such file or directory
..\..\src\regex\regcustom.h:35: limits.h: No such file or directory
..\..\src\regex\regcustom.h:36: string.h: No such file or directory
In file included from ..\..\include\wx\platform.h:466,
                 from ..\..\include\wx\defs.h:27,
                 from ..\..\src\regex\regcustom.h:39,
                 from ..\..\src\regex\regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
..\..\include\wx\msw\gccpriv.h:21: _mingw.h: No such file or directory
..\..\include\wx\msw\gccpriv.h:40: w32api.h: No such file or directory
In file included from ..\..\src\regex\regcustom.h:39,
                 from ..\..\src\regex\regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
..\..\include\wx\defs.h:682: stddef.h: No such file or directory
..\..\include\wx\defs.h:890: sys\types.h: No such file or directory
In file included from ..\..\src\regex\regcustom.h:40,
                 from ..\..\src\regex\regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
..\..\include\wx\chartype.h:68: wchar.h: No such file or directory
In file included from ..\..\src\regex\regcustom.h:41,
                 from ..\..\src\regex\regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
..\..\include\wx\wxcrtbase.h:34: stdio.h: No such file or directory
..\..\include\wx\wxcrtbase.h:35: string.h: No such file or directory
..\..\include\wx\wxcrtbase.h:36: ctype.h: No such file or directory
..\..\include\wx\wxcrtbase.h:37: wctype.h: No such file or directory
..\..\include\wx\wxcrtbase.h:38: time.h: No such file or directory
..\..\include\wx\wxcrtbase.h:41: io.h: No such file or directory
In file included from ../../src/regex/regcomp.c:33:
..\..\src\regex\regguts.h:46: stdio.h: No such file or directory
..\..\src\regex\regguts.h:47: stdlib.h: No such file or directory
..\..\src\regex\regguts.h:48: ctype.h: No such file or directory
..\..\src\regex\regguts.h:49: limits.h: No such file or directory
..\..\src\regex\regguts.h:50: string.h: No such file or directory
..\..\src\regex\regguts.h:60: assert.h: No such file or directory
..\..\src\regex\regguts.h:107: limits.h: No such file or directory
makefile.gcc:5698: recipe for target 'gcc_mswuddll\wxregex_regcomp.o' failed
mingw32-make: *** [gcc_mswuddll\wxregex_regcomp.o] Error 1
Then I changed the folder content by the binaries like shown here: http://sourceforge.net/projects/wxwindo ... /binaries/ and also none has worked.

After that, I found the installer in one of many sites that I visited.

Now I changed the wxWidget by the binaries and when I build the test app then shows me this:

Code: Select all

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 2 -e -f  Makefile"
"----------Building project:[ Proyect_App - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App'
g++: error: wx-config: No such file or directory
g++: error: wx-config: No such file or directory
g++: error: Error:: Invalid argument
g++: error: Error:: Invalid argument
g++: error: Unable: No such file or directory
g++: error: Unable: No such file or directory
g++: error: to: No such file or directory
g++: error: to: No such file or directory
g++: error: open: No such file or directory
g++: error: open: No such file or directory
g++: error: file: No such file or directory
g++: error: file: No such file or directory
g++: error: 'D:/Herramientas/wxWidgets/build/msw/config.gcc'.: Invalid argument
g++: error: 'D:/Herramientas/wxWidgets/build/msw/config.gcc'.: Invalid argument
mingw32-make.exe[1]: *** [Debug/main.o.d] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
mingw32-make.exe[1]: *** [Debug/simple.o.d] Error 1
Proyect_App.mk:98: recipe for target 'Debug/main.o.d' failed
Proyect_App.mk:106: recipe for target 'Debug/simple.o.d' failed
mingw32-make.exe[1]: Leaving directory 'F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
0 errors, 0 warnings
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Re: wxWidgets 3.0.0 Compile Errors on CodeLite 5.4 (GCC 4.8.

Post by eranif »

Start by this:
- Uninstall CodeLite
- Manually delete the folder %APPDATA%\CodeLite
- Also recommended to delete the installation folder of CodeLite (usually it is under C:\Program Files (x86)\CodeLite)

Now, the best way to start with CodeLite and wxWidgets is to download all the binaries from CodeLite's download page.

1. Download CodeLite + MinGW from here: http://downloads.codelite.org/downloads.php?windows
The above link will install codelite + MinGW compiler

2. Next, download wxWidgets built with that exact compiler from here:
http://sourceforge.net/projects/codelit ... e/download

When installing, accept the default paths to avoid any problems (i.e. C:\MinGW, C:\wxWidgets-3.0.0 etc)

Follow the simple hello world example of wxCrafter + CodeLite:

http://codelite.org/LiteEditor/WxCrafterHelloWorld

HTH,
Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
rro4785
In need of some credit
In need of some credit
Posts: 5
Joined: Sat Mar 08, 2014 2:44 am
Location: Caracas, Edo. Miranda. Venezuela.

Re: wxWidgets 3.0.0 Compile Errors on CodeLite 5.4 (GCC 4.8.

Post by rro4785 »

Hello!

Thanks for you answer, I did everything you say, except install in the default installation directory, for lack of space on the C drive. When I compile the project, it throws me the following message:

Code: Select all

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 2 -e -f  Makefile"
"----------Building project:[ Proyect_App - Debug ]----------"
process_begin: CreateProcess(NULL, wx-config --rcflags, ...) failed.
process_begin: CreateProcess(NULL, wx-config --debug=yes --libs --unicode=yes, ...) failed.
process_begin: CreateProcess(NULL, wx-config --cxxflags --unicode=yes --debug=yes, ...) failed.
process_begin: CreateProcess(NULL, wx-config --cxxflags --unicode=yes --debug=yes, ...) failed.
mingw32-make.exe[1]: Entering directory 'F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App'
g++  -c  "F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App/main.cpp" -g -O0 -Wall   -o ./Debug/main.o -ID:/Herramientas/MinGW/include  -I.
g++  -c  "F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App/simple.cpp" -g -O0 -Wall   -o ./Debug/simple.o -ID:/Herramientas/MinGW/include  -I.
In file included from F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App/simple.cpp:1:0:
F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App/simple.h:1:19: fatal error: wx/wx.h: No such file or directory
 #include <wx/wx.h>
                              ^
compilation terminated.
In file included from F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App/main.cpp:1:0:
F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App/main.h:1:19: fatal error: wx/wx.h: No such file or directory
 #include <wx/wx.h>
                              ^
compilation terminated.
mingw32-make.exe[1]: *** [Debug/main.o] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
mingw32-make.exe[1]: *** [Debug/simple.o] Error 1
Proyect_App.mk:96: recipe for target 'Debug/main.o' failed
Proyect_App.mk:104: recipe for target 'Debug/simple.o' failed
mingw32-make.exe[1]: Leaving directory 'F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
2 errors, 2 warnings
rro4785
In need of some credit
In need of some credit
Posts: 5
Joined: Sat Mar 08, 2014 2:44 am
Location: Caracas, Edo. Miranda. Venezuela.

Re: wxWidgets 3.0.0 Compile Errors on CodeLite 5.4 (GCC 4.8.

Post by rro4785 »

Hello!

I changed the project setting, like you can see below (both fields "Include Paths"):
Project Resource Setting
Project Resource Setting
ProjectResourcesSetting.png (45.05 KiB) Viewed 9625 times
And:
Project Compiler Setting
Project Compiler Setting
ProjectCompilerSetting.png (56.86 KiB) Viewed 9625 times
Then changed the error:

Code: Select all

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 2 -e -f  Makefile"
"----------Building project:[ Proyect_App - Debug ]----------"
process_begin: CreateProcess(NULL, wx-config --rcflags, ...) failed.
process_begin: CreateProcess(NULL, wx-config --debug=yes --libs --unicode=yes, ...) failed.
process_begin: CreateProcess(NULL, wx-config --cxxflags --unicode=yes --debug=yes, ...) failed.
process_begin: CreateProcess(NULL, wx-config --cxxflags --unicode=yes --debug=yes, ...) failed.
mingw32-make.exe[1]: Entering directory 'F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App'
g++ -c  D:\Herramientas\wxWidgets\include -g -O0 -Wall   -ID:/Herramientas/MinGW/include  -I. -ID:/Herramientas/wxWidgets/include
g++: warning: D:\Herramientas\wxWidgets\include: linker input file unused because linking not done
mingw32-make.exe[1]: Leaving directory 'F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App'
process_begin: CreateProcess(NULL, wx-config --rcflags, ...) failed.
process_begin: CreateProcess(NULL, wx-config --debug=yes --libs --unicode=yes, ...) failed.
process_begin: CreateProcess(NULL, wx-config --cxxflags --unicode=yes --debug=yes, ...) failed.
process_begin: CreateProcess(NULL, wx-config --cxxflags --unicode=yes --debug=yes, ...) failed.
mingw32-make.exe[1]: Entering directory 'F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App'
In file included from D:/Herramientas/wxWidgets/include/wx/platform.h:603:0,
                 from D:/Herramientas/wxWidgets/include/wx/defs.h:27,
                 from D:/Herramientas/wxWidgets/include/wx/wx.h:14,
                 from main.h:1,
                 from main.cpp:1:
D:/Herramientas/wxWidgets/include/wx/chkconf.h:88:9: error: #error "wxUSE_ANY must be defined, please read comment near the top of this file."
 #       error "wxUSE_ANY must be defined, please read comment near the top of this file."
         ^
In file included from D:/Herramientas/wxWidgets/include/wx/platform.h:603:0,
                 from D:/Herramientas/wxWidgets/include/wx/defs.h:27,
                 from D:/Herramientas/wxWidgets/include/wx/wx.h:14,
                 from simple.h:1,
                 from simple.cpp:1:
D:/Herramientas/wxWidgets/include/wx/chkconf.h:88:9: error: #error "wxUSE_ANY must be defined, please read comment near the top of this file."
 #       error "wxUSE_ANY must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:96:9: error: #error "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file."
 #       error "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:96:9: error: #error "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file."
 #       error "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:104:9: error: #error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
 #       error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:104:9: error: #error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
 #       error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:112:9: error: #error "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."
 #       error "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:112:9: error: #error "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."
 #       error "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:120:9: error: #error "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file."
 #       error "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:120:9: error: #error "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file."
 #       error "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:128:9: error: #error "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file."
 #       error "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:128:9: error: #error "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file."
 #       error "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:136:9: error: #error "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file."
 #       error "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:136:9: error: #error "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file."
 #       error "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:144:9: error: #error "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file."
 #       error "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:152:9: error: #error "wxUSE_FSVOLUME must be defined, please read comment near the top of this file."
 #       error "wxUSE_FSVOLUME must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:160:9: error: #error "wxUSE_FSWATCHER must be defined, please read comment near the top of this file."
 #       error "wxUSE_FSWATCHER must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:168:9: error: #error "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file."
 #       error "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:176:9: error: #error "wxUSE_INTL must be defined, please read comment near the top of this file."
 #       error "wxUSE_INTL must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:184:9: error: #error "wxUSE_IPV6 must be defined, please read comment near the top of this file."
 #       error "wxUSE_IPV6 must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:192:9: error: #error "wxUSE_LOG must be defined, please read comment near the top of this file."
 #       error "wxUSE_LOG must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:200:9: error: #error "wxUSE_LONGLONG must be defined, please read comment near the top of this file."
 #       error "wxUSE_LONGLONG must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:208:9: error: #error "wxUSE_MIMETYPE must be defined, please read comment near the top of this file."
 #       error "wxUSE_MIMETYPE must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:216:9: error: #error "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file."
 #       error "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:224:9: error: #error "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file."
 #       error "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:232:9: error: #error "wxUSE_PROTOCOL must be defined, please read comment near the top of this file."
 #       error "wxUSE_PROTOCOL must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:274:9: error: #error "wxUSE_REGEX must be defined, please read comment near the top of this file."
 #       error "wxUSE_REGEX must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:282:9: error: #error "wxUSE_STDPATHS must be defined, please read comment near the top of this file."
 #       error "wxUSE_STDPATHS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:290:9: error: #error "wxUSE_XML must be defined, please read comment near the top of this file."
 #       error "wxUSE_XML must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:298:9: error: #error "wxUSE_SOCKETS must be defined, please read comment near the top of this file."
 #       error "wxUSE_SOCKETS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:144:9: error: #error "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file."
 #       error "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:152:9: error: #error "wxUSE_FSVOLUME must be defined, please read comment near the top of this file."
 #       error "wxUSE_FSVOLUME must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:306:9: error: #error "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file."
 #       error "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:160:9: error: #error "wxUSE_FSWATCHER must be defined, please read comment near the top of this file."
 #       error "wxUSE_FSWATCHER must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:314:9: error: #error "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file."
 #       error "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:168:9: error: #error "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file."
 #       error "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:322:9: error: #error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
 #       error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:176:9: error: #error "wxUSE_INTL must be defined, please read comment near the top of this file."
 #       error "wxUSE_INTL must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:184:9: error: #error "wxUSE_IPV6 must be defined, please read comment near the top of this file."
 #       error "wxUSE_IPV6 must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:192:9: error: #error "wxUSE_LOG must be defined, please read comment near the top of this file."
 #       error "wxUSE_LOG must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:200:9: error: #error "wxUSE_LONGLONG must be defined, please read comment near the top of this file."
 #       error "wxUSE_LONGLONG must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:330:9: error: #error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
 #       error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:338:9: error: #error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
 #       error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:346:9: error: #error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
 #       error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:362:9: error: #error "wxUSE_URL must be defined, please read comment near the top of this file."
 #       error "wxUSE_URL must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:208:9: error: #error "wxUSE_MIMETYPE must be defined, please read comment near the top of this file."
 #       error "wxUSE_MIMETYPE must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:370:9: error: #error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
 #       error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:216:9: error: #error "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file."
 #       error "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:378:9: error: #error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
 #       error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:224:9: error: #error "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file."
 #       error "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:232:9: error: #error "wxUSE_PROTOCOL must be defined, please read comment near the top of this file."
 #       error "wxUSE_PROTOCOL must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:274:9: error: #error "wxUSE_REGEX must be defined, please read comment near the top of this file."
 #       error "wxUSE_REGEX must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:282:9: error: #error "wxUSE_STDPATHS must be defined, please read comment near the top of this file."
 #       error "wxUSE_STDPATHS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:290:9: error: #error "wxUSE_XML must be defined, please read comment near the top of this file."
 #       error "wxUSE_XML must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:298:9: error: #error "wxUSE_SOCKETS must be defined, please read comment near the top of this file."
 #       error "wxUSE_SOCKETS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:306:9: error: #error "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file."
 #       error "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:314:9: error: #error "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file."
 #       error "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:322:9: error: #error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
 #       error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:330:9: error: #error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
 #       error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:338:9: error: #error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
 #       error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:346:9: error: #error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
 #       error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:362:9: error: #error "wxUSE_URL must be defined, please read comment near the top of this file."
 #       error "wxUSE_URL must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:370:9: error: #error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
 #       error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
         ^
D:/Herramientas/wxWidgets/include/wx/chkconf.h:378:9: error: #error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
 #       error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
         ^
In file included from D:/Herramientas/wxWidgets/include/wx/chkconf.h:1222:0,
                 from D:/Herramientas/wxWidgets/include/wx/platform.h:603,
                 from D:/Herramientas/wxWidgets/include/wx/defs.h:27,
                 from D:/Herramientas/wxWidgets/include/wx/wx.h:14,
                 from simple.h:1,
                 from simple.cpp:1:
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:19:10: error: #error "wxUSE_ACTIVEX must be defined."
 #        error "wxUSE_ACTIVEX must be defined."
          ^
In file included from D:/Herramientas/wxWidgets/include/wx/chkconf.h:1222:0,
                 from D:/Herramientas/wxWidgets/include/wx/platform.h:603,
                 from D:/Herramientas/wxWidgets/include/wx/defs.h:27,
                 from D:/Herramientas/wxWidgets/include/wx/wx.h:14,
                 from main.h:1,
                 from main.cpp:1:
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:19:10: error: #error "wxUSE_ACTIVEX must be defined."
 #        error "wxUSE_ACTIVEX must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:27:9: error: #error "wxUSE_CRASHREPORT must be defined."
 #       error "wxUSE_CRASHREPORT must be defined."
         ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:35:9: error: #error "wxUSE_DC_CACHEING must be defined"
 #       error "wxUSE_DC_CACHEING must be defined"
         ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:43:10: error: #error "wxUSE_DIALUP_MANAGER must be defined."
 #        error "wxUSE_DIALUP_MANAGER must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:51:10: error: #error "wxUSE_MS_HTML_HELP must be defined."
 #        error "wxUSE_MS_HTML_HELP must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:59:10: error: #error "wxUSE_INICONF must be defined."
 #        error "wxUSE_INICONF must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:67:10: error: #error "wxUSE_OLE must be defined."
 #        error "wxUSE_OLE must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:75:10: error: #error "wxUSE_OLE_AUTOMATION must be defined."
 #        error "wxUSE_OLE_AUTOMATION must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:83:9: error: #error "wxUSE_TASKBARICON_BALLOONS must be defined."
 #       error "wxUSE_TASKBARICON_BALLOONS must be defined."
         ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:91:10: error: #error "wxUSE_UNICODE_MSLU must be defined."
 #        error "wxUSE_UNICODE_MSLU must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:99:10: error: #error "wxUSE_UXTHEME must be defined."
 #        error "wxUSE_UXTHEME must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:27:9: error: #error "wxUSE_CRASHREPORT must be defined."
 #       error "wxUSE_CRASHREPORT must be defined."
         ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:35:9: error: #error "wxUSE_DC_CACHEING must be defined"
 #       error "wxUSE_DC_CACHEING must be defined"
         ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:43:10: error: #error "wxUSE_DIALUP_MANAGER must be defined."
 #        error "wxUSE_DIALUP_MANAGER must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:51:10: error: #error "wxUSE_MS_HTML_HELP must be defined."
 #        error "wxUSE_MS_HTML_HELP must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:59:10: error: #error "wxUSE_INICONF must be defined."
 #        error "wxUSE_INICONF must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:67:10: error: #error "wxUSE_OLE must be defined."
 #        error "wxUSE_OLE must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:75:10: error: #error "wxUSE_OLE_AUTOMATION must be defined."
 #        error "wxUSE_OLE_AUTOMATION must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:83:9: error: #error "wxUSE_TASKBARICON_BALLOONS must be defined."
 #       error "wxUSE_TASKBARICON_BALLOONS must be defined."
         ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:91:10: error: #error "wxUSE_UNICODE_MSLU must be defined."
 #        error "wxUSE_UNICODE_MSLU must be defined."
          ^
D:/Herramientas/wxWidgets/include/wx/msw/chkconf.h:99:10: error: #error "wxUSE_UXTHEME must be defined."
 #        error "wxUSE_UXTHEME must be defined."
          ^
mingw32-make.exe[1]: *** [Debug/main.o.d] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
mingw32-make.exe[1]: *** [Debug/simple.o.d] Error 1
Proyect_App.mk:103: recipe for target 'Debug/main.o.d' failed
Proyect_App.mk:111: recipe for target 'Debug/simple.o.d' failed
mingw32-make.exe[1]: Leaving directory 'F:/Proyectos/GCC/CodeLite/C++/Proyect App/Proyect_App'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
86 errors, 4 warnings
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Re: wxWidgets 3.0.0 Compile Errors on CodeLite 5.4 (GCC 4.8.

Post by eranif »

It seems as if wx-config is not in your path. (which is installed by codelite under the same installation path where codelite is installed)
Did you change any of the environment variables?
Usually this is done from Settings -> environment variables
Can you please paste the content of the environment variables you have defined in codelite? (settings -> environment variables)
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
rro4785
In need of some credit
In need of some credit
Posts: 5
Joined: Sat Mar 08, 2014 2:44 am
Location: Caracas, Edo. Miranda. Venezuela.

Re: wxWidgets 3.0.0 Compile Errors on CodeLite 5.4 (GCC 4.8.

Post by rro4785 »

Hello! Sure:
CodeLite - Settings - Environment Variables
CodeLite - Settings - Environment Variables
CodeLiteSettingsEnvironmentVariables.png (35.82 KiB) Viewed 9599 times
I don't have UnitTest++ installed, but when I delete, it is recreated, I don't know why.
Post Reply