Dear all,
Is there anything wrong with my compilation of wxWidgets? I use a cmd file to compile on a XP machine with SP2. The commands are as follow:-
set path=C:\MinGW\bin;C:\MinGW\mingw32\bin
C:
cd \wxWidgets-2.8.4\build\msw
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx
Thanks.
zac
I put all my clean together at the top.
I have no idea what RUNTIME_LIBS=static means in building wxWidgets, so it might be causing an problem.
Tim S
set path=C:\MinGW\bin;C:\MinGW\mingw32\bin
C:
cd \wxWidgets-2.8.4\build\msw
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx
Thanks Tim,
However, I still got error when compiling.
:: === wxUseDll, Debug ===
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.h:13: wx/app.h: No such file or directory
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.h:16: error: expected class-name before '{' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:14: wx/frame.h: No such file or directory
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:15: wx/menu.h: No such file or directory
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:16: wx/statusbr.h: No such file or directory
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:20: error: expected class-name before '{' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:23: error: expected `)' before '*' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:29: error: variable or field `OnQuit' declared void
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:29: error: expected `;' before '(' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:30: error: variable or field `OnAbout' declared void
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:30: error: expected `;' before '(' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:40: error: ISO C++ forbids declaration of `wxStatusBar' with no type
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:40: error: expected `;' before '*' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:44: error: ISO C++ forbids declaration of `DECLARE_EVENT_TABLE' with no type
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:44: error: expected `;' before '}' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:44: error: expected `;' before '}' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:14: wx/image.h: No such file or directory
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:17: error: expected constructor, destructor, or type conversion before ';' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:: In member function `virtual bool wxUseDllApp::OnInit()':
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:23: error: `wxInitAllImageHandlers' undeclared (first use this function)
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:23: error: (Each undeclared identifier is reported only once for each function it appears in.)
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:26: error: no matching function for call to `wxUseDllFrame::wxUseDllFrame(int)'
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:20: note: candidates are: wxUseDllFrame::wxUseDllFrame()
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:20: note: wxUseDllFrame::wxUseDllFrame(const wxUseDllFrame&)
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:27: error: 'class wxUseDllFrame' has no member named 'Show'
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:28: error: `SetTopWindow' undeclared (first use this function)
:: === Build finished: 25 errors, 0 warnings ===
I've set the Global Variables to point to K:\DEV\bin\wxWidgets-2.8.4\lib\msw\gcc_dll and all other leave blanks.
Also, if I use the wizard to create a new project, I'll get error saying that wxWidgets' files not found.
Regards,
zac
[attachment deleted by admin]
Dear Tim,
I've not using any SVN, I just download the wxWidgets source and compile by myself using the following command within a cmd file running on a Windows XP SP2 machine,
set path=K:\DEV\bin\MinGW-5.1.3\bin;K:\DEV\bin\MinGW-5.1.3\mingw32\bin
K:
cd K:\DEV\bin\wxWidgets-2.8.4\build\msw
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx
With the above command, I think I have compiled both the release and debug version of the library as I can find the wxmsw28u_gcc_xxx.dll and wxmsw28ud_gcc_zac.dll under K:\DEV\bin\wxWidgets-2.8.4\lib\msw\gcc_dll folder.
Biplab, I have changed the global variable settings to have base pointed to K:\DEV\bin\wxWidgets-2.8.4, include pointed to K:\DEV\bin\wxWidgets-2.8.4\include and lib pointed to K:\DEV\bin\wxWidgets-2.8.4\lib, but I got error when using the wizard to create a new project. This back to the original question of how to make CB to use the wxmsw28u_gcc_xxx.dll as CB seems to look for wxmsw28u_gcc_custom.dll instead.
Regards,
zac
[attachment deleted by admin]
Dear Tim,
I'm using SVN4425 build Aug 28 2007, 22:11:52 - wx2.8.4 (Windows, unicode).
After change the "Compiler Logging" to "Full Command Line", I've got the following building messages:
:: === wxUseDll, Release ===
K:\DEV\bin\wxWidgets-2.8.4\include\wx\platform.h:196: wx/setup.h: No such file or directory
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:98: #error "wxUSE_DYNLIB_CLASS must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:106: #error "wxUSE_EXCEPTIONS must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:114: #error "wxUSE_FILESYSTEM must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:122: #error "wxUSE_FS_ARCHIVE must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:135: #error "wxUSE_DYNAMIC_LOADER must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:143: #error "wxUSE_LOG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:151: #error "wxUSE_LONGLONG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:159: #error "wxUSE_MIMETYPE must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:175: #error "wxUSE_PRINTF_POS_PARAMS must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:183: #error "wxUSE_PROTOCOL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:225: #error "wxUSE_REGEX must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:233: #error "wxUSE_STDPATHS must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:241: #error "wxUSE_XML must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:249: #error "wxUSE_SOCKETS must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:257: #error "wxUSE_STREAMS must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:265: #error "wxUSE_STOPWATCH must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:273: #error "wxUSE_TEXTBUFFER must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:281: #error "wxUSE_TEXTFILE must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:297: #error "wxUSE_URL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:305: #error "wxUSE_VARIANT must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:325: #error "wxUSE_ABOUTDLG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:333: #error "wxUSE_ACCEL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:341: #error "wxUSE_ANIMATIONCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:349: #error "wxUSE_BITMAPCOMBOBOX must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:357: #error "wxUSE_BMPBUTTON must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:365: #error "wxUSE_BUTTON must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:373: #error "wxUSE_CALENDARCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:381: #error "wxUSE_CARET must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:389: #error "wxUSE_CHECKBOX must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:405: #error "wxUSE_CHOICE must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:413: #error "wxUSE_CHOICEBOOK must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:421: #error "wxUSE_CHOICEDLG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:429: #error "wxUSE_CLIPBOARD must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:437: #error "wxUSE_COLLPANE must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:445: #error "wxUSE_COLOURDLG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:453: #error "wxUSE_COLOURPICKERCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:461: #error "wxUSE_COMBOBOX must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:469: #error "wxUSE_COMBOCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:477: #error "wxUSE_DATAOBJ must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:485: #error "wxUSE_DATAVIEWCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:493: #error "wxUSE_DATEPICKCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:501: #error "wxUSE_DIRPICKERCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:509: #error "wxUSE_DISPLAY must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:517: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:525: #error "wxUSE_FILEDLG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:533: #error "wxUSE_FILEPICKERCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:541: #error "wxUSE_FONTDLG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:549: #error "wxUSE_FONTMAP must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:557: #error "wxUSE_FONTPICKERCTRL must be defined."
:: More errors follow but not being shown.
:: Edit the max errors limit in compiler options...
:: === Build finished: 50 errors, 0 warnings ===
Thanks.
Regards,
zac
Dear Biplab,
I cannot find any libwxmsw28u.a files under K:\DEV\bin\MinGW-5.1.3\lib. And yes, I cannot find setup.h inside K:\DEV\bin\wxWidgets-2.8.4\lib\gcc_dll\mswu\wx. So, should I recompile wxWidgets?
I'll use the following to recompile once more to see any difference.
set path=K:\DEV\bin\MinGW-5.1.3\bin;K:\DEV\bin\MinGW-5.1.3\mingw32\bin
K:
cd \DEV\bin\wxWidgets-2.8.4\build\msw
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx
Thanks.
Regards,
zac