set path=c:\mingw\bin;c:\mingw\mingw32\binThe last command was about 1 hour long.
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0
-------------- Build: Debug in bla ---------------
Compiling: blaMain.cpp
In file included from C:/wxWidgets-2.8.3/include/wx/defs.h:21,
from C:/wxWidgets-2.8.3/include/wx/wxprec.h:13,
from C:\My Documents\projects\bla\blaApp.h:13,
from C:\My Documents\projects\bla\blaMain.h:13,
from C:\My Documents\projects\bla\blaMain.cpp:18:
C:/wxWidgets-2.8.3/include/wx/platform.h:196:22: wx/setup.h: No such file or directory
In file included from C:/wxWidgets-2.8.3/include/wx/platform.h:279,
from C:/wxWidgets-2.8.3/include/wx/defs.h:21,
from C:/wxWidgets-2.8.3/include/wx/wxprec.h:13,
from C:\My Documents\projects\bla\blaApp.h:13,
from C:\My Documents\projects\bla\blaMain.h:13,
from C:\My Documents\projects\bla\blaMain.cpp:18:
C:/wxWidgets-2.8.3/include/wx/chkconf.h:98:9: #error "wxUSE_DYNLIB_CLASS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:106:9: #error "wxUSE_EXCEPTIONS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:114:9: #error "wxUSE_FILESYSTEM must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:122:9: #error "wxUSE_FS_ARCHIVE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:135:9: #error "wxUSE_DYNAMIC_LOADER must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:143:9: #error "wxUSE_LOG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:151:9: #error "wxUSE_LONGLONG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:159:9: #error "wxUSE_MIMETYPE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:175:9: #error "wxUSE_PRINTF_POS_PARAMS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:183:9: #error "wxUSE_PROTOCOL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:225:9: #error "wxUSE_REGEX must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:233:9: #error "wxUSE_STDPATHS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:241:9: #error "wxUSE_XML must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:249:9: #error "wxUSE_SOCKETS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:257:9: #error "wxUSE_STREAMS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:265:9: #error "wxUSE_STOPWATCH must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:273:9: #error "wxUSE_TEXTBUFFER must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:281:9: #error "wxUSE_TEXTFILE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:297:9: #error "wxUSE_URL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:305:9: #error "wxUSE_VARIANT must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:325:9: #error "wxUSE_ABOUTDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:333:9: #error "wxUSE_ACCEL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:341:9: #error "wxUSE_ANIMATIONCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:349:9: #error "wxUSE_BITMAPCOMBOBOX must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:357:9: #error "wxUSE_BMPBUTTON must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:365:9: #error "wxUSE_BUTTON must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:373:9: #error "wxUSE_CALENDARCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:381:9: #error "wxUSE_CARET must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:389:9: #error "wxUSE_CHECKBOX must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:405:9: #error "wxUSE_CHOICE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:413:9: #error "wxUSE_CHOICEBOOK must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:421:9: #error "wxUSE_CHOICEDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:429:9: #error "wxUSE_CLIPBOARD must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:437:9: #error "wxUSE_COLLPANE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:445:9: #error "wxUSE_COLOURDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:453:9: #error "wxUSE_COLOURPICKERCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:461:9: #error "wxUSE_COMBOBOX must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:469:9: #error "wxUSE_COMBOCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:477:9: #error "wxUSE_DATAOBJ must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:485:9: #error "wxUSE_DATAVIEWCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:493:9: #error "wxUSE_DATEPICKCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:501:9: #error "wxUSE_DIRPICKERCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:509:9: #error "wxUSE_DISPLAY must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:517:9: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:525:9: #error "wxUSE_FILEDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:533:9: #error "wxUSE_FILEPICKERCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:541:9: #error "wxUSE_FONTDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:549:9: #error "wxUSE_FONTMAP must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:557:9: #error "wxUSE_FONTPICKERCTRL must be defined."
Process terminated with status 1 (0 minutes, 24 seconds)
50 errors, 0 warnings
-------------- Build: Debug in bla ---------------
so go through the same steps again but use "BUILD=debug" instead of "BUILD=release"?
yaaay it compiles. Thanks for the great help!!!
I do have a minor thing I wish I could change. the program's (exe) will not run unless "mingwm10.dll" and "wxmsw28d_gcc_custom.dll" are in the same folder. I does not matter because I have "mingwm10.dll" for code blocks and I just went and got "wxmsw28d_gcc_custom.dll" for lib in wxwidgets. Is there a way I could could rename these files??? This would be handy but If I cant I'm still very much happy with what I have
... I saw there is a "wxmsw28_gcc_custom.dll" in "wxWidget installation folder"/lib, but... where must i copy this file to run?
But, I have another question... If I run the app successfully, and i want my project to run in other machines, i have to copy these two files too? There is no manner to avoid this?
If you could explain what am i doing wrong please...
and how to compile wxwidgets as a static library
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=0 UNICODE=0 BUILD=release
mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=0 UNICODE=0 BUILD=release
mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=0 UNICODE=0 BUILD=release
:: === wxSmith, Release ===
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x470):: undefined reference to `jpeg_resync_to_restart'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x4e9):: undefined reference to `jpeg_std_error'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x53a):: undefined reference to `jpeg_destroy_decompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x5b4):: undefined reference to `jpeg_CreateDecompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x5d7):: undefined reference to `jpeg_read_header'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x603):: undefined reference to `jpeg_start_decompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x642):: undefined reference to `jpeg_finish_decompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x64a):: undefined reference to `jpeg_destroy_decompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x6ed):: undefined reference to `jpeg_read_scanlines'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x849):: undefined reference to `jpeg_finish_decompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x851):: undefined reference to `jpeg_destroy_decompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xa57):: undefined reference to `jpeg_std_error'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xab8):: undefined reference to `jpeg_destroy_compress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xb47):: undefined reference to `jpeg_CreateCompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xba5):: undefined reference to `jpeg_set_defaults'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xc92):: undefined reference to `jpeg_set_quality'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xfa7):: undefined reference to `jpeg_start_compress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x100c):: undefined reference to `jpeg_write_scanlines'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x1038):: undefined reference to `jpeg_finish_compress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x1046):: undefined reference to `jpeg_destroy_compress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x50a):: undefined reference to `TIFFClientOpen'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x56a):: undefined reference to `TIFFClientOpen'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x69b):: undefined reference to `TIFFSetWarningHandler'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x6a7):: undefined reference to `TIFFSetErrorHandler'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x9db):: undefined reference to `TIFFSetWarningHandler'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x9e7):: undefined reference to `TIFFSetErrorHandler'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xba8):: undefined reference to `TIFFSetDirectory'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xbbe):: undefined reference to `TIFFClose'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xc1b):: undefined reference to `TIFFGetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xc33):: undefined reference to `TIFFGetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xc47):: undefined reference to `_TIFFmalloc'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xc94):: undefined reference to `_TIFFfree'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xd19):: undefined reference to `TIFFReadRGBAImage'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xd2f):: undefined reference to `_TIFFfree'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xe37):: undefined reference to `_TIFFfree'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xe3f):: undefined reference to `TIFFClose'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xed4):: undefined reference to `TIFFReadDirectory'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xee1):: undefined reference to `TIFFClose'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xf93):: undefined reference to `TIFFSetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xfb4):: undefined reference to `TIFFSetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xfd5):: undefined reference to `TIFFSetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xff0):: undefined reference to `TIFFSetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1010):: undefined reference to `TIFFSetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x142a):: undefined reference to `TIFFScanlineSize'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1458):: undefined reference to `TIFFScanlineSize'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1460):: undefined reference to `_TIFFmalloc'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x148c):: undefined reference to `TIFFDefaultStripSize'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x14a7):: undefined reference to `TIFFSetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x157f):: undefined reference to `TIFFWriteScanline'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x18f8):: undefined reference to `TIFFClose'
:: More errors follow but not being shown.
:: Edit the max errors limit in compiler options...
:: === Build finished: 50 errors, 0 warnings ===
:: === wxSmith, Release ===
ld.exe:: cannot find -lwxmsw28u_dbgrid
:: === Build finished: 1 errors, 0 warnings ===
Hey, I solved all the errors. When finishing the new project wizard, you have to select all the libraries. Now I only have one error compiling the wxSmith project. It says:Quote:: === wxSmith, Release ===
ld.exe:: cannot find -lwxmsw28u_dbgrid
:: === Build finished: 1 errors, 0 warnings ===
I have searched in google, but there is no post?!