Code::Blocks Forums

User forums => Help => Topic started by: Knx on March 17, 2007, 07:27:18 PM

Title: Compiling Problem
Post by: Knx on March 17, 2007, 07:27:18 PM
QuoteFirst, make sure C:\MingGW\bin is in your path, during the build some programs will be called that reside in the the MinGW\bin directory. Also, Make has to be version 3.80 or above. [...] (http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook#wxWidgets)

cd <wxDir>\build\msw OK
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean OK
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 ERROR

gcc: installation problem, cannot exec `cc1': No such file or directory
mingw32-make: *** [gcc_mswudll\wxregex_regcomp.o] Error 1



I'm having this problem when I try to compile wxWidgets 2.6.3-1...
What's wrong? I've set %PATH% to hold MingW\bin ...

make version = 5.2
Title: Re: Compiling Problem
Post by: stahta01 on March 18, 2007, 04:57:20 AM
Quote from: Knx on March 17, 2007, 07:27:18 PM
QuoteFirst, make sure C:\MingGW\bin is in your path, during the build some programs will be called that reside in the the MinGW\bin directory. Also, Make has to be version 3.80 or above. [...] (http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook#wxWidgets)

I'm having this problem when I try to compile wxWidgets 2.6.3-1...
What's wrong? I've set %PATH% to hold MingW\bin ...

make version = 5.2

Make version being 5.2 is wrong, make for minGW is normally 3.79, 3.79.1, 3.80, 3.81 any other values mean you don't know how to get the value or your make is not a recent minGW make (as in last few years.)

The best way to check minGW make version

mingw32-make.exe --version



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.



The common way to check minGW make version, in my case it uses my MSys make which is 3.79.1
Note: Having MSys or Cygwin installed can cause issues building wxWidgets using makefiles.

make --version



GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-msys
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        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.


Quote from: Knx on March 17, 2007, 07:27:18 PM
cd <wxDir>\build\msw OK

After cd command and before mingw32-make.exe command Add


SET PATH=C:\MingGW\bin;C:\MingGW\mingw32\bin


Note: I am assigning a new short value to PATH to avoid issues with others software you have installed, this is the best way to build wxWidgets as per the C::B wiki as of the last time I read/updated it.

I am creating a wiki page to build 2.6.3

http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.3_to_develop_Code::Blocks_%28MSW%29#Checking_make_version

If you want I can use you to help verify it.

Tim S



Title: Re: Compiling Problem
Post by: Knx on March 18, 2007, 05:52:09 AM
I don't know why I wrote 5.2...

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.


I don't know why... It just worked now.

Well... Thanks!  :D