Code::Blocks Forums

User forums => Help => Topic started by: Yuki on April 02, 2007, 12:56:36 pm

Title: Can't build wxWidgets 2.8.3
Post by: Yuki on April 02, 2007, 12:56:36 pm
Hi.
I download wxWidgets 2.8.3 and install it . but I can't build it
I use make -f makefile.gcc , but an error occurs .. I fail to build it on mingw and cygwin. I don't know how to do.Please help me.

Error Message :
aa@SCU-ASDFFDSA /e/wxWidgets-2.8.3/build/msw
$ make -f makefile.gcc
if not exist gcc_mswd mkdir gcc_mswd
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
make: [gcc_mswd] Error 2 (ignored)
if not exist ..\..\lib\gcc_lib mkdir ..\..\lib\gcc_lib
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
make: *** [..\..\lib\gcc_lib] Error 2

Thanks..
Title: Re: Can't build wxWidgets 2.8.3
Post by: TDragon on April 02, 2007, 01:42:34 pm
$ make -f makefile.gcc
Use the plain Windows command shell to build wxWidgets, not mSYS or Cygwin.
Title: Re: Can't build wxWidgets 2.8.3
Post by: Biplab on April 02, 2007, 01:52:22 pm
Also remove any reference of MSYS or CygWin from the PATH variable.
Title: Re: Can't build wxWidgets 2.8.3
Post by: Yuki on April 02, 2007, 04:35:16 pm
Thank you very much . I can build it now .
Title: Re: Can't build wxWidgets 2.8.3
Post by: Outis on May 16, 2007, 07:53:40 am
I get exactly the same error message. But I can't find MSYS nor Cygwin (isn't installed at all) in my PATH  and I even reinstalled mingw - without success.  :(

I'm using "mingw32-make -f makefile.gcc [OPTIONS]" in the shell, WinXP, latest Mingw 8), wxWidgets 2.8.4
Mingw and wxWidgets dirs are in D:\

Please help - thanks.
Title: Re: Can't build wxWidgets 2.8.3
Post by: raph on May 16, 2007, 10:41:42 am
Please give us the exact commands you used and the error message.
Since if you haven't cygwin or msys installed, the error message should be different.

Furthermore it would be helpful to post the output of the
Code
path
command.

Just for the case you don't know how to copy from the cmd.exe console:
Right click->Select Mark, mark the text with the left mouse button, press enter then the text is in the clipboard.

Regards
raph
Title: Re: Can't build wxWidgets 2.8.3
Post by: David Perfors on May 16, 2007, 11:11:23 am
if you don't have msys or cygwin installed, you have to use mingw32-make instead of make
Title: Re: Can't build wxWidgets 2.8.3
Post by: Outis on May 16, 2007, 04:47:22 pm
Thanks for helping.
MSYS is installed (but shouldn't be in path), Cygwin isn't.
Code
D:\wxWidgets-2.8.4\build\msw>mingw32-make -f makefile.gcc
if not exist gcc_mswd mkdir gcc_mswd
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make: [gcc_mswd] Error 258 (ignored)
if not exist ..\..\lib\gcc_lib mkdir ..\..\lib\gcc_lib
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make: *** [..\..\lib\gcc_lib] Error 258

D:\wxWidgets-2.8.4\build\msw>
Code
D:\wxWidgets-2.8.4\build\msw>path
PATH=c:\programme\imagemagick-6.3.0-q16;C:\Programme\Ctrl\WinAVR\bin;C:\Programm
e\Ctrl\WinAVR\utils\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
C:\Programme\Gemeinsame Dateien\Ulead Systems\MPEG;C:\Programme\Gemeinsame Datei
en\Ulead Systems\DVD;C:\Programme\Executive Software\DiskeeperLite\;"D:\program
files\";"c:\Programme\Ctrl\WinAVR\avrdude\avrdude.exe";C:\Programme\ATI Technolo
gies\ATI.ACE\;D:\Mingw\bin;E:\Programme\Wormux 0.7\bin   <--  ;-)

Quote
Just for the case you don't know how to copy from the cmd.exe console:
Right click->Select Mark, mark the text with the left mouse button, press enter then the text is in the clipboard.
I know I since yesterday :)
Title: Re: Can't build wxWidgets 2.8.3
Post by: stahta01 on May 16, 2007, 05:45:09 pm
Thanks for helping.
MSYS is installed (but shouldn't be in path), Cygwin isn't.
Code
D:\wxWidgets-2.8.4\build\msw>mingw32-make -f makefile.gcc
if not exist gcc_mswd mkdir gcc_mswd
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make: [gcc_mswd] Error 258 (ignored)
if not exist ..\..\lib\gcc_lib mkdir ..\..\lib\gcc_lib
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-make: *** [..\..\lib\gcc_lib] Error 258

D:\wxWidgets-2.8.4\build\msw>
Code
D:\wxWidgets-2.8.4\build\msw>path
PATH=c:\programme\imagemagick-6.3.0-q16;C:\Programme\Ctrl\WinAVR\bin;C:\Programm
e\Ctrl\WinAVR\utils\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
C:\Programme\Gemeinsame Dateien\Ulead Systems\MPEG;C:\Programme\Gemeinsame Datei
en\Ulead Systems\DVD;C:\Programme\Executive Software\DiskeeperLite\;"D:\program
files\";"c:\Programme\Ctrl\WinAVR\avrdude\avrdude.exe";C:\Programme\ATI Technolo
gies\ATI.ACE\;D:\Mingw\bin;E:\Programme\Wormux 0.7\bin   <--  ;-)

Quote
Just for the case you don't know how to copy from the cmd.exe console:
Right click->Select Mark, mark the text with the left mouse button, press enter then the text is in the clipboard.
I know I since yesterday :)

Try the following commands in CMD window, note I am assuming wxWidgets in "D:\wxWidgets-2.8.4" and minGW in "D:\Mingw"

Tim S

Code
CD D:\wxWidgets-2.8.4\build\msw
SET PATH=D:\Mingw\bin;D:\Mingw\mingw32\bin
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
Title: Re: Can't build wxWidgets 2.8.3
Post by: Outis on May 16, 2007, 07:52:49 pm
Well, it builds now, but:

Code
../../src/msw/version.rc:12:24: wx/version.h: No such file or directory
windres: gcc exited with status 1
mingw32-make: *** [gcc_mswudll\monodll_version_rc.o] Error 1

wxWidgets can be annoying  :(
Title: Re: Can't build wxWidgets 2.8.3
Post by: raph on May 16, 2007, 08:44:30 pm
Well, it builds now, but:

Code
../../src/msw/version.rc:12:24: wx/version.h: No such file or directory
windres: gcc exited with status 1
mingw32-make: *** [gcc_mswudll\monodll_version_rc.o] Error 1
I just tested it and can reproduce that error with binutils-2.17.50-20070129-1.tar.gz (e.g. binutils-2.17.50-20060824-1.tar.gz works well).

wxWidgets can be annoying  :(
As far as I can remember I switched to an older version of binutils cause i couldn't compile fltk.

Greetings
raph
Title: Re: Can't build wxWidgets 2.8.3
Post by: Mc.Michael on May 16, 2007, 09:32:17 pm
Hi.
I download wxWidgets 2.8.3 and install it . but I can't build it
I use make -f makefile.gcc , but an error occurs .. I fail to build it on mingw and cygwin. I don't know how to do.Please help me.

Error Message :
aa@SCU-ASDFFDSA /e/wxWidgets-2.8.3/build/msw
$ make -f makefile.gcc
if not exist gcc_mswd mkdir gcc_mswd
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
make: [gcc_mswd] Error 2 (ignored)
if not exist ..\..\lib\gcc_lib mkdir ..\..\lib\gcc_lib
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
make: *** [..\..\lib\gcc_lib] Error 2

Thanks..
You can try
wxWidgets 2.8.4
ftp://ftp.wxwidgets.org/pub/2.8.4/

It tested on latest MinGW without MSYS .
Title: Re: Can't build wxWidgets 2.8.3
Post by: Outis on May 16, 2007, 10:35:45 pm
YEAH!  :D

Thank you guys! I used now older binutils (great tip, raph!) and it compiled safly with 10 million warnigs, but without any error.