Author Topic: problem compiling wxwidgets  (Read 7341 times)

Offline shurecki

  • Single posting newcomer
  • *
  • Posts: 9
problem compiling wxwidgets
« 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?
Newbie
Sorry about my poor english

Offline dje

  • Lives here!
  • ****
  • Posts: 682
Re: problem compiling wxwidgets
« Reply #1 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

Offline shurecki

  • Single posting newcomer
  • *
  • Posts: 9
Re: problem compiling wxwidgets
« Reply #2 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
Newbie
Sorry about my poor english

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: problem compiling wxwidgets
« Reply #3 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.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline gnewt

  • Single posting newcomer
  • *
  • Posts: 4
Re: problem compiling wxwidgets
« Reply #4 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>                                     

Offline dje

  • Lives here!
  • ****
  • Posts: 682
Re: problem compiling wxwidgets
« Reply #5 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.
Official version is 3.4.5.

Dje

Offline kkez

  • Almost regular
  • **
  • Posts: 153
    • WinapiZone
Re: problem compiling wxwidgets
« Reply #6 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.
« Last Edit: May 01, 2007, 11:22:50 am by kkez »

Offline shurecki

  • Single posting newcomer
  • *
  • Posts: 9
Re: problem compiling wxwidgets
« Reply #7 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
Newbie
Sorry about my poor english

Offline rhf

  • Multiple posting newcomer
  • *
  • Posts: 123
Re: problem compiling wxwidgets
« Reply #8 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

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: problem compiling wxwidgets
« Reply #9 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. :)
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline rhf

  • Multiple posting newcomer
  • *
  • Posts: 123
Re: problem compiling wxwidgets
« Reply #10 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!