User forums > Help

Problems compiling wxWidgets template

(1/3) > >>

sggarps:
Hi,

I'm having problems compiling the wxWidgets template provided by code blocks. I get the following errors:

-------------- Build: Debug in wxWidgetsTest ---------------

Compiling: resource.rc
C:\...\COMPUT~1\CODEBL~1\WXWIDG~1\resource.rc:3:24: wx/msw/wx.rc: No such file or directory
gcc: Files\wxWidgets-2.8.8\include: No such file or directory
gcc: Files\wxWidgets-2.8.8\lib\gcc_dll\mswu: No such file or directory
windres.exe: preprocessing failed.
Process terminated with status 1 (0 minutes, 0 seconds)
2 errors, 0 warnings

I recently compiled wxWidgets using MinGW and MSYS with the options: MONOLITHIC=1 UNICODE=1 SHARED=1, and I've configured the project with these options as well.

Does anybody have any idea what i've done wrong?

TDragon:
Code::Blocks' wxWidgets wizard doesn't support MSYS-compiled wxWidgets; you'll either have to adjust your project's options manually or do a regular mingw32-make build (see the wxWindowsQuickRef for details).

sggarps:
I tried a regular MS-DOS command line (i'#m on windows XP Pro SP3) mingw32-make build, but it didn't work, I just get the following:

C:\PROGRA~1\wxWidgets-2.8.8\build\msw>mingw32-make -f makefile.gcc
if not exist gcc_mswd mkdir gcc_mswd
process_begin: CreateProcess(NULL, -c "if not exist gcc_mswd mkdir gcc_mswd", ..
.) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: [gcc_mswd] Error 2 (ignored)
if not exist ..\..\lib\gcc_lib mkdir ..\..\lib\gcc_lib
process_begin: CreateProcess(NULL, -c "if not exist ..\..\lib\gcc_lib mkdir ..\.
.\lib\gcc_lib", ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [..\..\lib\gcc_lib] Error 2

Have I done something wrong here?

Which project options do i need to change to change to get this working?

sggarps:
I also recieved the same project compilation errors using wxWidgets installed from wxPack, if that's worth anything.

TDragon:
I failed to notice another problem occurring in your first message: windres' dislike for spaces in paths. You should also try reinstalling wxWidgets to a path without spaces.

As to your error building wxWidgets from the Windows command shell, no idea what that's about; please post here if you figure it out so I can add it to the wxWindowsQuickRef FAQ.

Navigation

[0] Message Index

[#] Next page

Go to full version