News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

problem compiling wxwidgets

Started by shurecki, April 30, 2007, 09:30:44 PM

Previous topic - Next topic

shurecki

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?
Newbie
Sorry about my poor english

dje

Hi !

windres does not support spaces.
You wrote
QuoteC:\wxWidgets-2.8.3
and
Quotecd 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 UNICODE=1 instead of UNICODE=0 if you do not really need an ASCII build.

Dje

shurecki

Quote from: dje on April 30, 2007, 09:44:16 PM
Hi !

windres does not support spaces.
You wrote
QuoteC:\wxWidgets-2.8.3
and
Quotecd 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


Quote from: dje on April 30, 2007, 09:44:16 PM
The standard build for C::B is UNICODE. You have to use UNICODE=1 instead of UNICODE=0 if you do not really need an ASCII build.

Dje

ok
i tryed this too and i got the same error message
Newbie
Sorry about my poor english

TDragon

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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

gnewt

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  |;^)


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>                                     

dje

Hi !

Don't hesitate to look in the wiki. There is a nice page concerning MinGW installation.
Official version is 3.4.5.

Dje

kkez

#6
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.

shurecki

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
Newbie
Sorry about my poor english

rhf

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

TDragon

Quote from: rhf on May 10, 2007, 12:28:10 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. :)
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

rhf

Quote from: TDragon on May 10, 2007, 03:12:26 PM
Quote from: rhf on May 10, 2007, 12:28:10 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!