Code::Blocks Forums

User forums => Help => Topic started by: shurecki on April 30, 2007, 09:30:44 pm

Title: problem compiling wxwidgets
Post by: shurecki on April 30, 2007, 09:30:44 pm
hi, im trying to compile wxwidgets 2.8.3 but i got some error messages

i instaled wxwidget in C:\wxWidgets-2.8.3
opened the prompt under win XP and
cd wxwidgets 2.8.3\build\msw
mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0

after a few seconds i got:

windres --use-temp-file -i../../src/msw/version.rc -ogcc_mswdll\monodll_version_rc.o   --define __WXMSW__         --include-dir ..\..\lib\gcc_dll\msw --include-dir ..\../include --define WXDLLNAME=wxmsw28_gcc_custom
gcc: ABRI~1\CONFIG~1\Temp: No such file or directory
../../src/msw/version.rc:12:24: wx/version.h: No such file or directory
windres: gcc exited with status 1
mingw32-make.exe: *** [gcc_mswdll\monodll_version_rc.o] Error 1

what i have to do?
Title: Re: problem compiling wxwidgets
Post by: dje on April 30, 2007, 09:44:16 pm
Hi !

windres does not support spaces.
You wrote
Quote
C:\wxWidgets-2.8.3
and
Quote
cd wxwidgets 2.8.3\build\msw
You sould first work with a path without spaces.

The standard build for C::B is UNICODE. You have to use
Code
UNICODE=1
instead of
Code
UNICODE=0
if you do not really need an ASCII build.

Dje
Title: Re: problem compiling wxwidgets
Post by: shurecki on May 01, 2007, 02:25:20 am
Hi !

windres does not support spaces.
You wrote
Quote
C:\wxWidgets-2.8.3
and
Quote
cd wxwidgets 2.8.3\build\msw
You sould first work with a path without spaces.

i'm sorry, i wrote it wrong at the second time
the right path is "C:\wxWidgets-2.8.3\", without spaces


The standard build for C::B is UNICODE. You have to use
Code
UNICODE=1
instead of
Code
UNICODE=0
if you do not really need an ASCII build.

Dje

ok
i tryed this too and i got the same error message
Title: Re: problem compiling wxwidgets
Post by: TDragon on May 01, 2007, 05:26:32 am
Try downgrading to binutils-2.17.50-20060824-1, mingw32-make-3.81-1, mingw-runtime-3.11, and w32api-3.7. I'm not sure which combination of these is necessary to build wxWidgets, but these are the ones I have marked for myself to use as opposed to the newer ones.
Title: Re: problem compiling wxwidgets
Post by: gnewt on May 01, 2007, 06:41:06 am
Hi shurecki

Not sure if this helps, but here's my MingW setup (Win2K) and your make works fine (from "DOS"). Are you building from within C::B??

Cheers
Greg  |;^)

Code
C:\MinGW>type installed.ini                    
[settings]                                     
mirror=                                       
installtype=current                           
                                               
[components]                                   
runtime=mingw-runtime-3.12.tar.gz             
w32api=w32api-3.9.tar.gz                       
binutils=binutils-2.16.91-20060119-1.tar.gz   
core=gcc-core-3.4.2-20040916-1.tar.gz         
gpp=gcc-g++-3.4.2-20040916-1.tar.gz           
g77=                                           
ada=                                           
java=                                         
objc=                                         
make=mingw32-make-3.81-2.tar.gz               
                                               
C:\MinGW>                                     
Title: Re: problem compiling wxwidgets
Post by: dje on May 01, 2007, 10:11:58 am
Hi !

Don't hesitate to look in the wiki. There is a nice page concerning MinGW installation (http://wiki.codeblocks.org/index.php?title=MinGW_installation).
Official version is 3.4.5.

Dje
Title: Re: problem compiling wxwidgets
Post by: kkez on May 01, 2007, 11:21:19 am
I got the exactly same problemi with windres. Did you update it with the snapshot version (maybe to fix the spaces issues?). If yes, just go back to the current version of windres.exe - if you don't have a backup, just download the whole binutils package (http://prdownloads.sf.net/mingw/binutils-2.15.91-20040904-1.tar.gz?download).
Title: Re: problem compiling wxwidgets
Post by: shurecki on May 02, 2007, 09:51:55 am
thanks to all

i downloaded mingw again (i was using mingw c++ toolbox because of ogre), then i tryed to compile wxwidgets again and all works fine

thanks
Title: Re: problem compiling wxwidgets
Post by: rhf on May 10, 2007, 12:28:10 pm
This thread has been useful to me with several helpful suggestions.

Using MinGW-5.1.3.exe and binutils-2.17.50-20070129-1, I had problems compiling wxWidgets-2.8.3.
Based on comments here, I reverted to windres.exe from binutils-2.17.50-20040824-1, and wxWidgets compiled successfully.

I do have one question, however. When I update the CB source code (using SVN), is it necessary to re-compile wxWidgets with each CB update? In other words, does the creation of the wxWidget dll depend on the CB code?

Thanks,
Bob
Title: Re: problem compiling wxwidgets
Post by: TDragon on May 10, 2007, 03:12:26 pm
When I update the CB source code (using SVN), is it necessary to re-compile wxWidgets with each CB update? In other words, does the creation of the wxWidget dll depend on the CB code?
No. :)
Title: Re: problem compiling wxwidgets
Post by: rhf on May 10, 2007, 03:21:51 pm
When I update the CB source code (using SVN), is it necessary to re-compile wxWidgets with each CB update? In other words, does the creation of the wxWidget dll depend on the CB code?
No. :)
Thanks!