This post picks up from here
Ok… So I’m picking my mom up for Christmas and it’s early in the morning and of course I’m on the computer..
But first I need to make some coffee.
Darn things is I copied my password down wrong and I can’t get in my blog…
So I storing this in google docs and I’ll copy it over later on.
Last time I was at this was Thanksgiving. http://www.metalshaperman.com/?p=104
Hopefully, this time I’ll keep better notes..
I fired up code::blocks and created a default wxformbuilder project to see if it would compile.
Close but no cookie..
So…. the compiler error looks like this:
||=== test, Release ===|
C:\wxWidgets-2.8.9\include\wx\platform.h|196|wx/setup.h: No such file or directory|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|103|#error “wxUSE_DYNLIB_CLASS must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|111|#error “wxUSE_EXCEPTIONS must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|119|#error “wxUSE_FILESYSTEM must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|127|#error “wxUSE_FS_ARCHIVE must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|140|#error “wxUSE_DYNAMIC_LOADER must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|148|#error “wxUSE_LOG must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|156|#error “wxUSE_LONGLONG must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|164|#error “wxUSE_MIMETYPE must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|180|#error “wxUSE_PRINTF_POS_PARAMS must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|188|#error “wxUSE_PROTOCOL must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|230|#error “wxUSE_REGEX must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|238|#error “wxUSE_STDPATHS must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|246|#error “wxUSE_XML must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|254|#error “wxUSE_SOCKETS must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|262|#error “wxUSE_STREAMS must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|270|#error “wxUSE_STOPWATCH must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|278|#error “wxUSE_TEXTBUFFER must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|286|#error “wxUSE_TEXTFILE must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|302|#error “wxUSE_URL must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|310|#error “wxUSE_VARIANT must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|330|#error “wxUSE_ABOUTDLG must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|338|#error “wxUSE_ACCEL must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|346|#error “wxUSE_ANIMATIONCTRL must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|354|#error “wxUSE_BITMAPCOMBOBOX must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|362|#error “wxUSE_BMPBUTTON must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|370|#error “wxUSE_BUTTON must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|378|#error “wxUSE_CALENDARCTRL must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|386|#error “wxUSE_CARET must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|394|#error “wxUSE_CHECKBOX must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|410|#error “wxUSE_CHOICE must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|418|#error “wxUSE_CHOICEBOOK must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|426|#error “wxUSE_CHOICEDLG must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|434|#error “wxUSE_CLIPBOARD must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|442|#error “wxUSE_COLLPANE must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|450|#error “wxUSE_COLOURDLG must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|458|#error “wxUSE_COLOURPICKERCTRL must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|466|#error “wxUSE_COMBOBOX must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|474|#error “wxUSE_COMBOCTRL must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|482|#error “wxUSE_DATAOBJ must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|490|#error “wxUSE_DATAVIEWCTRL must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|498|#error “wxUSE_DATEPICKCTRL must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|506|#error “wxUSE_DIRPICKERCTRL must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|514|#error “wxUSE_DISPLAY must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|522|#error “wxUSE_DOC_VIEW_ARCHITECTURE must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|530|#error “wxUSE_FILEDLG must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|538|#error “wxUSE_FILEPICKERCTRL must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|546|#error “wxUSE_FONTDLG must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|554|#error “wxUSE_FONTMAP must be defined.”|
C:\wxWidgets-2.8.9\include\wx\chkconf.h|562|#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 ===|
I found some information at this link:http://www.wxwidgets.org/docs/faqmsw.htm#setuph
It says:
Why do I get errors about setup.h not being found?
When you build the wxWidgets library, setup.h is copied from include/wx/msw/setup.h to e.g. lib/vc_msw/mswd/wx/setup.h (the path depends on the configuration you’re building). So you need to add this include path if building using the static Debug library:
lib/vc_lib/mswd
or if building the static Release library, lib/vc_lib/msw.
See also the wxWiki Contents for more information.
So…this led me to here:
http://wiki.wxwidgets.org/Compiling_WxWidgets
Ok… I want to display the files that have setup.h here..
So… I need to go start->run and type in cmd..
Type type cd :\ to get to the root dir.
then I entered dir *setup.h/s >junk.txt
Volume in drive C has no label.
Volume Serial Number is 2075-ABF8Directory of C:\wxWidgets-2.8.9\contrib\include\wx\deprecated
08/06/2007 04:42 PM 2,034 setup.h
1 File(s) 2,034 bytesDirectory of C:\wxWidgets-2.8.9\include\msvc\wx
08/06/2007 04:41 PM 9,263 setup.h
1 File(s) 9,263 bytesDirectory of C:\wxWidgets-2.8.9\include\wx\msw
05/19/2008 08:51 AM 46,122 setup.h
1 File(s) 46,122 bytesDirectory of C:\wxWidgets-2.8.9\include\wx\msw\wince
05/19/2008 08:51 AM 43,883 setup.h
1 File(s) 43,883 bytesDirectory of C:\wxWidgets-2.8.9\include\wx\univ
11/19/2007 09:55 AM 42,674 setup.h
1 File(s) 42,674 bytesDirectory of C:\wxWidgets-2.8.9\samples\ipc
08/06/2007 04:45 PM 880 ipcsetup.h
1 File(s) 880 bytesTotal Files Listed:
6 File(s) 144,856 bytes
0 Dir(s) 45,401,522,176 bytes free
Ok… I think I need to build the library..
I went to this link: http://wiki.wxwidgets.org/Compiling_WxWidgets_With_MSYS-MinGW
and followed the instructions.
Ok… So I’m being asked which components to install.
I’m not sure this is correct but I selected:
MinGw base tools
g++ compiler
MinGw make
I accepted the default C:\MinGw destination folder.
Also the MinGw Start folder.
The next thing in the instructions tells me to download MSYS.
It appears that I have 3 possibilities. I chose MSYS Base System, dated August 27,2008 which appears to be the most current.
Ok… I’m not sure what to do here…. I was sort of hoping for a .exe but it appears that everything is a tar…
Ok…. It seems that if you go to the bottom, you’ll find an .exe one less than the latest and greatest..
So….. I choose
MSYS-1.0.10.exe
Is clicked on a MSYS desktop icon and got what looks like a Linux termimal….
Next per the instructions I went to
change to the directory you installed the wx source to
cd c:wxWidgets-2.8.9
mkdir msw-debug
cd msw-debug
../configure --disable-shared --enable-debug
make
…. This seems to be taking a while…. Probably time to go out and shovel some snow…
make install
Back to shoveling.
Ok…
The next instruction didn’t work for me:
test your build. If you see a windows application open up, your wxWidgets has built correctly ($ cd samples/minimal; make && minimal.exe).
I tried:
make minimal and it tried to do the follow the following:
g++ minimal.cpp -o minimal
It squacked abouh the being able to find wx/wxprec.h among other things.
I searched for wxprech.h and found it in a couple of places… But unfortunately, my fun time is over ;(
I think something is buggered on my search paths… I need to look at this later
More on this later….
Pingback: The metal shaper man’s blog » Code::Blocks Wxwidgets and XP