User forums > Using Code::Blocks
A matching debug configuration cannot be found in the wxWidgets directory...
MortenMacFly:
--- Quote from: ljones on June 25, 2012, 09:48:48 pm ---Debug build: http://pastebin.com/FRGKtvRE
Release build: http://pastebin.com/sN3KTZTs
--- End quote ---
LOL... I meant he build log of your application inside C::B, not wxWidgets (but leave it there for reference...).
ljones:
When I click "Next" through the "matching debug configuration..." warning, I get an identical warning for the Release build. Attempts to compile give me:
--- Code: ----------------- Build: Debug in test ---------------
Compiling: testApp.cpp
In file included from C:\libraries\wxWidgets-2.8.12\include/wx/defs.h:21:0,
from C:\libraries\wxWidgets-2.8.12\include/wx/event.h:15,
from C:\libraries\wxWidgets-2.8.12\include/wx/app.h:20,
from M:\cppstuff\wxfirst\test\testApp.h:13,
from M:\cppstuff\wxfirst\test\testApp.cpp:18:
C:\libraries\wxWidgets-2.8.12\include/wx/platform.h:196: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
--- End code ---
I have setup.h files in several directories within the wxWidgets library directory, but copying each of those into "C:\libraries\wxWidgets-2.8.12\include/wx/" gives me various errors as well.
Copying C:\libraries\wxWidgets-2.8.12\include\msvc\wx\setup.h, C:\libraries\wxWidgets-2.8.12\include\wx\univ\setup.h, C:\libraries\wxWidgets-2.8.12\include\wx\msw\setup.h, C:\libraries\wxWidgets-2.8.12\include\wx\msw\wince\setup.h, C:\libraries\wxWidgets-2.8.12\lib\gcc_dll\mswu\wx\setup.h, C:\libraries\wxWidgets-2.8.12\lib\gcc_dll\mswud\wx\setup.h, or C:\libraries\wxWidgets-2.8.12\contrib\include\wx\deprecated\setup.h to "C:\libraries\wxWidgets-2.8.12\include/wx/" results in
--- Code: ----------------- Build: Debug in test ---------------
Linking executable: bin\Debug\test.exe
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28u
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: cannot find -lwxpng
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: cannot find -lwxjpeg
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: cannot find -lwxtiff
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: cannot find -lwxzlib
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
5 errors, 0 warnings
--- End code ---
ollydbg:
--- Quote from: ljones on June 26, 2012, 03:01:11 am ---
--- Code: ----------------- Build: Debug in test ---------------
Linking executable: bin\Debug\test.exe
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28u
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: cannot find -lwxpng
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: cannot find -lwxjpeg
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: cannot find -lwxtiff
c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: cannot find -lwxzlib
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
5 errors, 0 warnings
--- End code ---
--- End quote ---
From the log above, I see that your project is configured with multiply wx libs, but you have only monolithic wx library. (you build it with MONOLITHIC=1)
Mostly I guess you need to change your project configurations, or you need to run the project wizard to create a wx app which links to monolithic wx library.
ljones:
--- Quote from: ollydbg on June 26, 2012, 04:01:57 am ---From the log above, I see that your project is configured with multiply wx libs, but you have only monolithic wx library. (you build it with MONOLITHIC=1)
Mostly I guess you need to change your project configurations, or you need to run the project wizard to create a wx app which links to monolithic wx library.
--- End quote ---
I'm not sure if this covers what you're telling me, but as I said in the original post, I checked the "wxWidgets is built as a monolithic library" box when creating the project. Based on search results, I added "C:\libraries\wxWidgets-2.8.12\lib\gcc_dll" as a Linker search directory. After doing this and copying the setup.h from "C:\libraries\wxWidgets-2.8.12\lib\gcc_dll\mswud\wx" (debug build, mswu is the release) into "C:\libraries\wxWidgets-2.8.12\include\wx", it builds as expected, but then it tells me "wxmsw28u_gcc_custom.dll is missing" from my computer when I try to run the resulting binary.
Also, is copying setup.h into the include directory really how I'm supposed to make it work? What's the point of a separate debug and release build in that case? Also, it still gives me both warnings when creating a new project.
ollydbg:
--- Quote from: ljones on June 26, 2012, 04:56:54 am ---I checked the "wxWidgets is built as a monolithic library" box when creating the project. Based on search results, I added "C:\libraries\wxWidgets-2.8.12\lib\gcc_dll" as a Linker search directory. After doing this and copying the setup.h from "C:\libraries\wxWidgets-2.8.12\lib\gcc_dll\mswud\wx" (debug build, mswu is the release) into "C:\libraries\wxWidgets-2.8.12\include\wx", it builds as expected, but then it tells me "wxmsw28u_gcc_custom.dll is missing" from my computer when I try to run the resulting binary.
--- End quote ---
It looks like you have already build a exe, that's great!
--- Quote ---Also, is copying setup.h into the include directory really how I'm supposed to make it work? What's the point of a separate debug and release build in that case? Also, it still gives me both warnings when creating a new project.
--- End quote ---
No, manually copying the setup.h is not necessary.
Did you set the "wx" variable correctly. If you set it correctly, you don't need to change anything after your create a wxWidgets project, you just click the "build" button, and it should build and run successfully.
See:
http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version