I have downloaded and compiled wxWidgets 2.8.6
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)
I made a project with wxsmith...
I didn't change that label and 2 buttons...
I tried to compile and I got this error:
C:\cb\wx\include\wx\platform.h|196|wx/setup.h: No such file or directory|
I tried to copy C:\cb\wx\include\wx\msw\setup.h to C:\cb\wx\include\wx\
Then I tried to compile again and...
-------------- Build: Release in Test ---------------
Compiling: TestMain.cpp
Compiling: resource.rc
Compiling: TestApp.cpp
Linking executable: bin\Release\Test.exe
mingw32-g++.exe: bin\Release\Test.exe: No such file or directory
Process terminated with status 1 (0 minutes, 4 seconds)
0 errors, 0 warnings
No errors but no exe's...
What's wrong?
$(#wx)
Base: C:\cb\wx
Include: C:\cb\wx\include
Lib: C:\cb\wx\lib
-------------- Build: Release in Test ---------------
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Wall -O2 -IC:\cb\wx\include -IC:\cb\wx\contrib\include -I\msw -c C:\cb\project\Test\TestMain.cpp -o obj\Release\TestMain.o
In file included from C:/cb/wx/include/wx/defs.h:21,
from C:/cb/wx/include/wx/wx.h:15,
from C:\cb\project\Test\TestMain.h:14,
from C:\cb\project\Test\TestMain.cpp:18:
C:/cb/wx/include/wx/platform.h:196:22: wx/setup.h: No such file or directory
In file included from C:/cb/wx/include/wx/platform.h:279,
from C:/cb/wx/include/wx/defs.h:21,
from C:/cb/wx/include/wx/wx.h:15,
from C:\cb\project\Test\TestMain.h:14,
from C:\cb\project\Test\TestMain.cpp:18:
C:/cb/wx/include/wx/chkconf.h:103:9: #error "wxUSE_DYNLIB_CLASS must be defined."
C:/cb/wx/include/wx/chkconf.h:111:9: #error "wxUSE_EXCEPTIONS must be defined."
C:/cb/wx/include/wx/chkconf.h:119:9: #error "wxUSE_FILESYSTEM must be defined."
C:/cb/wx/include/wx/chkconf.h:127:9: #error "wxUSE_FS_ARCHIVE must be defined."
C:/cb/wx/include/wx/chkconf.h:140:9: #error "wxUSE_DYNAMIC_LOADER must be defined."
C:/cb/wx/include/wx/chkconf.h:148:9: #error "wxUSE_LOG must be defined."
C:/cb/wx/include/wx/chkconf.h:156:9: #error "wxUSE_LONGLONG must be defined."
C:/cb/wx/include/wx/chkconf.h:164:9: #error "wxUSE_MIMETYPE must be defined."
C:/cb/wx/include/wx/chkconf.h:180:9: #error "wxUSE_PRINTF_POS_PARAMS must be defined."
C:/cb/wx/include/wx/chkconf.h:188:9: #error "wxUSE_PROTOCOL must be defined."
C:/cb/wx/include/wx/chkconf.h:230:9: #error "wxUSE_REGEX must be defined."
C:/cb/wx/include/wx/chkconf.h:238:9: #error "wxUSE_STDPATHS must be defined."
C:/cb/wx/include/wx/chkconf.h:246:9: #error "wxUSE_XML must be defined."
C:/cb/wx/include/wx/chkconf.h:254:9: #error "wxUSE_SOCKETS must be defined."
C:/cb/wx/include/wx/chkconf.h:262:9: #error "wxUSE_STREAMS must be defined."
C:/cb/wx/include/wx/chkconf.h:270:9: #error "wxUSE_STOPWATCH must be defined."
C:/cb/wx/include/wx/chkconf.h:278:9: #error "wxUSE_TEXTBUFFER must be defined."
C:/cb/wx/include/wx/chkconf.h:286:9: #error "wxUSE_TEXTFILE must be defined."
C:/cb/wx/include/wx/chkconf.h:302:9: #error "wxUSE_URL must be defined."
C:/cb/wx/include/wx/chkconf.h:310:9: #error "wxUSE_VARIANT must be defined."
C:/cb/wx/include/wx/chkconf.h:330:9: #error "wxUSE_ABOUTDLG must be defined."
C:/cb/wx/include/wx/chkconf.h:338:9: #error "wxUSE_ACCEL must be defined."
C:/cb/wx/include/wx/chkconf.h:346:9: #error "wxUSE_ANIMATIONCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:354:9: #error "wxUSE_BITMAPCOMBOBOX must be defined."
C:/cb/wx/include/wx/chkconf.h:362:9: #error "wxUSE_BMPBUTTON must be defined."
C:/cb/wx/include/wx/chkconf.h:370:9: #error "wxUSE_BUTTON must be defined."
C:/cb/wx/include/wx/chkconf.h:378:9: #error "wxUSE_CALENDARCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:386:9: #error "wxUSE_CARET must be defined."
C:/cb/wx/include/wx/chkconf.h:394:9: #error "wxUSE_CHECKBOX must be defined."
C:/cb/wx/include/wx/chkconf.h:410:9: #error "wxUSE_CHOICE must be defined."
C:/cb/wx/include/wx/chkconf.h:418:9: #error "wxUSE_CHOICEBOOK must be defined."
C:/cb/wx/include/wx/chkconf.h:426:9: #error "wxUSE_CHOICEDLG must be defined."
C:/cb/wx/include/wx/chkconf.h:434:9: #error "wxUSE_CLIPBOARD must be defined."
C:/cb/wx/include/wx/chkconf.h:442:9: #error "wxUSE_COLLPANE must be defined."
C:/cb/wx/include/wx/chkconf.h:450:9: #error "wxUSE_COLOURDLG must be defined."
C:/cb/wx/include/wx/chkconf.h:458:9: #error "wxUSE_COLOURPICKERCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:466:9: #error "wxUSE_COMBOBOX must be defined."
C:/cb/wx/include/wx/chkconf.h:474:9: #error "wxUSE_COMBOCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:482:9: #error "wxUSE_DATAOBJ must be defined."
C:/cb/wx/include/wx/chkconf.h:490:9: #error "wxUSE_DATAVIEWCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:498:9: #error "wxUSE_DATEPICKCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:506:9: #error "wxUSE_DIRPICKERCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:514:9: #error "wxUSE_DISPLAY must be defined."
C:/cb/wx/include/wx/chkconf.h:522:9: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
C:/cb/wx/include/wx/chkconf.h:530:9: #error "wxUSE_FILEDLG must be defined."
C:/cb/wx/include/wx/chkconf.h:538:9: #error "wxUSE_FILEPICKERCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:546:9: #error "wxUSE_FONTDLG must be defined."
C:/cb/wx/include/wx/chkconf.h:554:9: #error "wxUSE_FONTMAP must be defined."
C:/cb/wx/include/wx/chkconf.h:562:9: #error "wxUSE_FONTPICKERCTRL must be defined."
Process terminated with status 1 (0 minutes, 1 seconds)
50 errors, 0 warnings
-------------- Build: Release in Test ---------------
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Wall -O2 -IC:\cb\wx\include -IC:\cb\wx\contrib\include -I\msw -c C:\cb\project\Test\TestMain.cpp -o obj\Release\TestMain.o
You must add to compiler search path:
$(#WX.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)
This path content subdirectory wx and have file setup.h
Analogically path you must add to linker search path
Search "Project build options" dialog. Page "Search directories".
For example, you can open Build options for Codeblocks.cbp project.
Good luck!
$(#WX.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)
Didn't work.
But setting to
C:\cb\wx\lib\gcc_dll\mswu
worked.
BUT...
new error:
ld.exe||cannot find -lwxmsw_core|
I've clean wx, and rebuild.
Start a new project, but this time it says that can't find Release configuration $(#wx) is the same as before
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release clean
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release