Author Topic: eRROR WHILE COMPILING WXWIDGETS  (Read 19554 times)

ac506in

  • Guest
eRROR WHILE COMPILING WXWIDGETS
« on: July 31, 2006, 04:41:58 pm »
hI ALL

This is first time i am trying to use wxwidgets with c::B.
I am trying to compile wxwidgets and getting following error
D:\wxWidgets-2.6.2\build\msw>mingw32-make -f makefile.gcc  MONOLITHIC=1 SHARED=1
 UNICODE=1 BUILD=release
if not exist gcc_mswudll mkdir gcc_mswudll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: [gcc_mswudll] Error 2 (ignored)
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: *** [..\..\lib\gcc_dll] Error 2



I guess mingw32-make.exe doesnt understand syntax properly. I tried to build it with VC++2005 and it compiled with no errors.

But i need to use C::B , can someone help me so that i can use gcc compiler...

thanks...

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #1 on: July 31, 2006, 04:42:49 pm »
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #2 on: July 31, 2006, 05:14:57 pm »
...and do not use MSYS...
Be patient!
This bug will be fixed soon...

sethjackson

  • Guest
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #3 on: July 31, 2006, 11:15:05 pm »
...and make sure the caps lock key is off when you type..... ;)

Offline kidmosey

  • Multiple posting newcomer
  • *
  • Posts: 95
    • MUSITU International
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #4 on: August 01, 2006, 05:14:03 am »
...and do not use MSYS...

What's wrong with MSYS?  It works fine for me.
3 years until google knows more than god.

ac506in

  • Guest
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #5 on: August 01, 2006, 06:53:35 am »
I am already using make with version 3.80 and what is MSYS????

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #6 on: August 01, 2006, 08:46:06 am »
...and do not use MSYS...

What's wrong with MSYS?  It works fine for me.


If you run make from within MSYS, it runs it in the "unix-way", i.e. it doesn't use the DOS interpreter. This essentially means that commands like this
Code
if not exist gcc_mswudll mkdir gcc_mswudll
are invalid (the above command is in DOS-style syntax).

In other words, if you open the MSYS window you open a unix-like shell interpreter. The above command would only work under a DOS interpreter.
And, although I haven't used it, I think the same goes for cygwin too...
Be patient!
This bug will be fixed soon...

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #7 on: August 01, 2006, 08:50:18 am »
I've always compiled wxWidgets with MSYS with no problems. Don Corleone could just mean "don't use MSYS' make to do it the MinGW way".

Quote from: www.mingw.org
MSYS: A Minimal SYStem to provide POSIX/Bourne configure scripts the ability to execute and create a Makefile used by make.

Basically: a console and a bunch of other utilities to do *nix like things under Windows using MinGW as compiler.

ac506in

  • Guest
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #8 on: August 01, 2006, 08:52:18 am »
Any idea what is wrong with makefile.gcc???

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #9 on: August 01, 2006, 08:55:23 am »
Any idea what is wrong with makefile.gcc???

Nothing 's wrong with it.
Be patient!
This bug will be fixed soon...

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #10 on: August 01, 2006, 09:00:31 am »
Did you check the output of make -v tells you it's version 3.80 or bigger?

What's the error this time?

ac506in

  • Guest
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #11 on: August 01, 2006, 09:12:56 am »
See following flow:

>mingw32-make -v
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

>cd c:\wx\build

C:\wx\build>cd msw

C:\wx\build\msw>mingw32-make -f makefile.gcc  MONOLITHIC=1 SHARED=1 UNICODE=1 BU
ILD=release
if not exist gcc_mswudll mkdir gcc_mswudll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: [gcc_mswudll] Error 2 (ignored)
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
Syntax error: end of file unexpected (expecting "then")
mingw32-make: *** [..\..\lib\gcc_dll] Error 2


C:\wx\build\msw>










Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #12 on: August 01, 2006, 10:12:22 am »
Please post the output of
Code
echo %PATH%
Be patient!
This bug will be fixed soon...

ac506in

  • Guest
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #13 on: August 01, 2006, 10:25:39 am »

C:\wx\build\msw>echo %PATH%
C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\OpenSSH\bin;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Progra
m Files\Microsoft SDK\Bin;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program F
iles\Visual Networks\Dial Analysis\;C:\Program Files\Microsoft Visual Studio 8\V
C\bin;D:\Program Files\CodeBlocks\bin;D:\Program Files\CodeBlocks\mingw32\bin

ac506in

  • Guest
Re: eRROR WHILE COMPILING WXWIDGETS
« Reply #14 on: August 01, 2006, 10:53:04 am »
any ideas guys???