Author Topic: install wxwidgets 2.6.1  (Read 10227 times)

sheph

  • Guest
install wxwidgets 2.6.1
« on: August 19, 2005, 11:31:21 am »
I have a problem trying to compile wxWidgets 2.6.1 with Code::Blocks/MinGW integrated package.
I always get an error telling "gcc: installation problem, cannot exec 'cc1'
What's wrong with my setup as I only installed C::B and MinGW together ?
Thanks

Error message i get:


D:\Programmer\wx\build\msw>make -f makefile.gcc BUILD=release
if not exist gcc_msw mkdir gcc_msw
if not exist ..\..\lib\gcc_lib\msw mkdir ..\..\lib\gcc_lib\msw
if not exist ..\..\lib\gcc_lib\msw\wx mkdir ..\..\lib\gcc_lib\msw\wx
if not exist ..\..\lib\gcc_lib\msw\wx\setup.h copy ..\..\include\wx\msw\setup.h
..\..\lib\gcc_lib\msw\wx\setup.h
1 fil(er) kopieret.
gcc -c -o gcc_msw\wxregex_regcomp.o -O2 -mthreads -DHAVE_W32API_H -I..\..\incl
ude -I..\..\lib\gcc_lib\msw -D__WXMSW__ ../../src/regex/regcomp.c
gcc: installation problem, cannot exec `cc1': No such file or directory
d:\programmer\codeblocks\bin\make.exe: *** [gcc_msw\wxregex_regcomp.o] Error 1

EDIT:

have the same problem with mingw32-make

« Last Edit: August 19, 2005, 11:34:01 am by sheph »

Offline ThomasG

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: install wxwidgets 2.6.1
« Reply #1 on: August 22, 2005, 03:53:20 pm »
Hi,

I have the same problem. Googled a lot, but couldn't find a thing.
Is there a way to find out where make is looking for cc1.exe? I guess it's simply looking in the wrong directory, because i found the cc1.exe file in C:\Program Files\CodeBlocks\libexec\gcc\mingw32\3.4.4.

Regards,
Thomas

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Re: install wxwidgets 2.6.1
« Reply #2 on: August 22, 2005, 04:06:41 pm »
then you should add the directory to the path. than it should work
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Offline ThomasG

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: install wxwidgets 2.6.1
« Reply #3 on: August 22, 2005, 07:31:51 pm »
I added the path to my PATH variable. But still the same issue.

I call the cc1.exe file from my home directory, and it gives the following:
Code: [Select]
C:\Documents and Settings\Thomas>cc1.exe -v
ignoring nonexistent directory "/mingw/include"
ignoring nonexistent directory "/mingw/include"
ignoring nonexistent directory "/mingw/lib/gcc/mingw32/3.4.4/include"
ignoring nonexistent directory "/mingw/mingw32/include"
ignoring nonexistent directory "/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
End of search list.

That tells me the path is setup correctly to cc1.exe but I'm missing something else. What is in these directories? How come they are not intalled?

Thanks,
Thomas

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Re: install wxwidgets 2.6.1
« Reply #4 on: August 22, 2005, 07:40:38 pm »
In those directories you will find header files.. could you find it on you're harddisk? if not, I think you should install mingw by yourself...
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Offline Profic

  • Multiple posting newcomer
  • *
  • Posts: 56
Re: install wxwidgets 2.6.1
« Reply #5 on: August 22, 2005, 08:10:18 pm »
What is output of this two commands?
Code: [Select]
gcc --verbose
gcc -print-search-dirs
Not fear, nor tears can reach me now, the light seems so clear as the night fades away (c) Tristania - Beyond The Veil

Offline ThomasG

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: install wxwidgets 2.6.1
« Reply #6 on: August 22, 2005, 08:18:43 pm »
@mispunt: I couldn't find these directories on my harddrive. I wonder why they are not there.

@Profic:
Here the output of the 2 commands you aseked for:
Code: [Select]
C:\wxWidgets-2.6.1\build\msw>gcc --verbose
Using built-in specs.
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable
-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --e
nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-ja
va-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchroniz
ation --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.4 (mingw special)

C:\wxWidgets-2.6.1\build\msw>gcc -print-search-dirs
install: /mingw/lib/gcc/mingw32/3.4.4/
programs: =../libexec/gcc/mingw32/3.4.4/;../libexec/gcc/;/mingw/libexec/gcc/ming
w32/3.4.4/;/mingw/libexec/gcc/mingw32/3.4.4/;/mingw/libexec/gcc/mingw32/;/mingw/
lib/gcc/mingw32/3.4.4/;/mingw/lib/gcc/mingw32/;/usr/libexec/gcc/mingw32/3.4.4/;/
usr/libexec/gcc/mingw32/;/usr/lib/gcc/mingw32/3.4.4/;/usr/lib/gcc/mingw32/;../mi
ngw32/bin/mingw32/3.4.4/;../mingw32/bin/;/mingw/mingw32/bin/mingw32/3.4.4/;/ming
w/mingw32/bin/
libraries: =../lib/gcc/mingw32/3.4.4/;../lib/gcc/;/mingw/lib/gcc/mingw32/3.4.4/;
/usr/lib/gcc/mingw32/3.4.4/;../mingw32/lib/mingw32/3.4.4/;../mingw32/lib/;/mingw
/mingw32/lib/mingw32/3.4.4/;/mingw/mingw32/lib/;/mingw/lib/mingw32/3.4.4/;/mingw
/lib/;../lib/mingw32/3.4.4/;../lib/;/mingw/lib/mingw32/3.4.4/;/mingw/lib/;/lib/m
ingw32/3.4.4/;/lib/;/usr/lib/mingw32/3.4.4/;/usr/lib/


Thanks,
Thomas

Offline Profic

  • Multiple posting newcomer
  • *
  • Posts: 56
Re: install wxwidgets 2.6.1
« Reply #7 on: August 22, 2005, 09:25:54 pm »
There is my output:
Code: [Select]
E:\work\web\SDN\recipe-nddocs\cpp>gcc --verbose
Reading specs from c:/devel/mingw/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw
 --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --e
nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --ena
ble-interpreter --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)

E:\work\web\SDN\recipe-nddocs\cpp>gcc -print-search-dirs
install: /mingw/lib/gcc/mingw32/3.4.2/
programs: =c:/devel/mingw/bin/../libexec/gcc/mingw32/3.4.2/;c:/devel/mingw/bin/../libexec/gcc/;/mingw/libexec/gcc/mingw3
2/3.4.2/;/mingw/libexec/gcc/mingw32/3.4.2/;/mingw/libexec/gcc/mingw32/;/mingw/lib/gcc/mingw32/3.4.2/;/mingw/lib/gcc/ming
w32/;/usr/libexec/gcc/mingw32/3.4.2/;/usr/libexec/gcc/mingw32/;/usr/lib/gcc/mingw32/3.4.2/;/usr/lib/gcc/mingw32/;c:/deve
l/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/bin/mingw32/3.4.2/;c:/devel/mingw/bin/../lib/gcc/mingw32/3.4.2/
../../../../mingw32/bin/;/mingw/mingw32/bin/mingw32/3.4.2/;/mingw/mingw32/bin/
libraries: =c:/devel/mingw/bin/../lib/gcc/mingw32/3.4.2/;c:/devel/mingw/bin/../lib/gcc/;/mingw/lib/gcc/mingw32/3.4.2/;/u
sr/lib/gcc/mingw32/3.4.2/;c:/devel/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib/mingw32/3.4.2/;c:/devel/mi
ngw/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib/;/mingw/mingw32/lib/mingw32/3.4.2/;/mingw/mingw32/lib/;/mingw/l
ib/mingw32/3.4.2/;/mingw/lib/;c:/devel/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../mingw32/3.4.2/;c:/devel/mingw/bin/../
lib/gcc/mingw32/3.4.2/../../../;/mingw/lib/mingw32/3.4.2/;/mingw/lib/;/lib/mingw32/3.4.2/;/lib/;/usr/lib/mingw32/3.4.2/;
/usr/lib/

E:\work\web\SDN\recipe-nddocs\cpp>
Strage things are: use of internal specs and use of releative paths in search dirs.
However specs is not really needed. At least cc1 will be called w/out them.
But paths seems to be relevant.
Do you have C:\Program Files\CodeBlocks\libexec\gcc\mingw32\3.4.4, C:\Program Files\CodeBlocks\lib\gcc\mingw32\3.4.4 and C:\Program Files\CodeBlocks\include\c++\3.4.4 directories?
Not fear, nor tears can reach me now, the light seems so clear as the night fades away (c) Tristania - Beyond The Veil

Offline ThomasG

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: install wxwidgets 2.6.1
« Reply #8 on: August 22, 2005, 09:33:09 pm »
I checked the path you mentioned. They are on my harddrive. But I don't have them in my path variable.

Can you give me your path setup? Then I can later look at it and compare piece by piece with my settings.

Thanks,
Thomas

Offline grv575

  • Official tester
  • Regular
  • ***
  • Posts: 381
Re: install wxwidgets 2.6.1
« Reply #9 on: August 22, 2005, 10:38:16 pm »
It looks like gcc looks in your path for the bin directory where it resides and then uses relative paths from there to find programs and libraries.  The only codeblocks or mingw stuff in my path is
C:\MinGW\bin

and gcc -print-search-dirs:
Code: [Select]
install: /mingw/lib/gcc/mingw32/3.4.4/
programs: =C:/MinGW/bin/../libexec/gcc/mingw32/3.4.4/;C:/MinGW/bin/../libexec/gc
c/;/mingw/libexec/gcc/mingw32/3.4.4/;/mingw/libexec/gcc/mingw32/3.4.4/;/mingw/li
bexec/gcc/mingw32/;/mingw/lib/gcc/mingw32/3.4.4/;/mingw/lib/gcc/mingw32/;/usr/li
bexec/gcc/mingw32/3.4.4/;/usr/libexec/gcc/mingw32/;/usr/lib/gcc/mingw32/3.4.4/;/
usr/lib/gcc/mingw32/;C:/MinGW/bin/../lib/gcc/mingw32/3.4.4/../../../../mingw32/b
in/mingw32/3.4.4/;C:/MinGW/bin/../lib/gcc/mingw32/3.4.4/../../../../mingw32/bin/
;/mingw/lib/gcc/mingw32/3.4.4/../../../../mingw32/bin/mingw32/3.4.4/;/mingw/lib/
gcc/mingw32/3.4.4/../../../../mingw32/bin/
libraries: =C:/MinGW/bin/../lib/gcc/mingw32/3.4.4/;C:/MinGW/bin/../lib/gcc/;/min
gw/lib/gcc/mingw32/3.4.4/;/usr/lib/gcc/mingw32/3.4.4/;C:/MinGW/bin/../lib/gcc/mi
ngw32/3.4.4/../../../../mingw32/lib/mingw32/3.4.4/;C:/MinGW/bin/../lib/gcc/mingw
32/3.4.4/../../../../mingw32/lib/;/mingw/lib/gcc/mingw32/3.4.4/../../../../mingw
32/lib/mingw32/3.4.4/;/mingw/lib/gcc/mingw32/3.4.4/../../../../mingw32/lib/;/min
gw/lib/mingw32/3.4.4/;/mingw/lib/;C:/MinGW/bin/../lib/gcc/mingw32/3.4.4/../../..
/mingw32/3.4.4/;C:/MinGW/bin/../lib/gcc/mingw32/3.4.4/../../../;/mingw/lib/gcc/m
ingw32/3.4.4/../../../mingw32/3.4.4/;/mingw/lib/gcc/mingw32/3.4.4/../../../;/lib
/mingw32/3.4.4/;/lib/;/usr/lib/mingw32/3.4.4/;/usr/lib/

Offline Profic

  • Multiple posting newcomer
  • *
  • Posts: 56
Re: install wxwidgets 2.6.1
« Reply #10 on: August 23, 2005, 12:43:45 am »
Seems I understand what is going here.
Make sure gcc.exe is not somewhere else in your %path% except C:\Program Files\CodeBlocks\bin
The only way I can get this error is to copy single gcc.exe to some directory and call it from there.

If there is none try to do the following as last resort:
Code: [Select]
echo int main() { return 0; } > dummy.c
gcc --verbose -o dummy dummy.c
and show full output. But I don't think this will be helpfull, but who knows...
Not fear, nor tears can reach me now, the light seems so clear as the night fades away (c) Tristania - Beyond The Veil

Offline pjk

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: install wxwidgets 2.6.1
« Reply #11 on: August 23, 2005, 05:46:40 am »
I seem to remember that mingw32 should be installed to a directory that does not contain spaces in the path. I always avoid"Program Files" for this reason. I am not sure what symptoms are exhibited by incorrect installation or if this applies to the codeblocks install but try installing to C:\codeblocks or similar.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: install wxwidgets 2.6.1
« Reply #12 on: August 23, 2005, 09:53:24 am »
Do you have cygwin on your computer? In that case, it may be that you are actually invoking the wrong make. I once had that, took me three days to find out. This produces the exact same error message.

Apart from that, I always deem it a good idea to have MinGW installed in C:\mingw. Keep everything as simple and clear as possible (it gets complicated on its own).
One installation, and only one. No complicated pathnames, no ambiguous stuff.

Then, before you call make, you should type:
Code: [Select]
set path=C:\mingw;C:\mingw\mingw32 so there are no questions about your path, either. wxWidgets is still a hideous beast, and it can still fail to compile, but it is less likely if you have eliminated all the obvious troublemakers.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: install wxwidgets 2.6.1
« Reply #13 on: August 23, 2005, 10:35:18 am »
...Then, before you call make, you should type:
Code: [Select]
set path=C:\mingw;C:\mingw\mingw32...

sorry but i think this isn't correct: if "C:\MinGW" is the install directory, then
it should read more like
Code: [Select]
set path=C:\MinGW\bin;%PATH%that is what i do with a patchfile called "envgcc.bat"  (set environment for gcc)
and works perfectly since years. actually i use MinGW gcc 3.4.4, make 3.8.0

Offline ThomasG

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: install wxwidgets 2.6.1
« Reply #14 on: August 24, 2005, 03:26:00 pm »
Hi,

I know it's not exactly the right forum to ask, but since we went so far, what has to be in the path variable to get MinGW32 working?

@tiwag

could you post your "envgcc.bat" file or send it to me via email?

Thanks,
Thomas