Author Topic: Compiling Problem  (Read 3107 times)

Offline Knx

  • Multiple posting newcomer
  • *
  • Posts: 41
Compiling Problem
« on: March 17, 2007, 07:27:18 pm »
Quote
First, 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. [...]

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

Code
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
Using:
• Code::Blocks SVN        • wxWidGets 2.8.6
• Windows XP SP2          • MinGW Latest  Wish List • Code folding (For wxSmith and more options like NetBeans)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7594
    • My Best Post
Re: Compiling Problem
« Reply #1 on: March 18, 2007, 04:57:20 am »
Quote
First, 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. [...]

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
Code
mingw32-make.exe --version

Code
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.
Code
make --version

Code
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.

Code
cd <wxDir>\build\msw
OK

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

Code
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



« Last Edit: March 18, 2007, 05:22:56 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Knx

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: Compiling Problem
« Reply #2 on: March 18, 2007, 05:52:09 am »
I don't know why I wrote 5.2...

Code
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
Using:
• Code::Blocks SVN        • wxWidGets 2.8.6
• Windows XP SP2          • MinGW Latest  Wish List • Code folding (For wxSmith and more options like NetBeans)