Discussion:
Compilation Problem wxWidgets-3.0.1
Doug Crompton
2014-09-01 05:35:34 UTC
Permalink
I am getting an error in compiling wxWidgets-3.0.1

Using -

mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=release clean

mingw32-make -f makefile.gcc -j4 SHARED=0 UNICODE=1 BUILD=release

and getting the following error -

gcc -c -o gcc_mswu\wxtiff_tif_zip.o -O2 -mthreads -DHAVE_W32API_H
-DNDEBUG -I..\..\src\zlib -I..\..\src\jpeg -I..\..\src\tiff\libtiff
-MTgcc_mswu\wxtiff_tif_zip.o -MFgcc_mswu\wxtiff_tif_zip.o.d -MD -MP
../../src/tiff/libtiff/tif_zip.c
gcc -c -o gcc_mswu\wxexpat_xmlparse.o -O2 -mthreads -DHAVE_W32API_H
-DNDEBUG -I..\..\lib\gcc_lib -DCOMPILED_FROM_DSP
-MTgcc_mswu\wxexpat_xmlparse.o -MFgcc_mswu\wxexpat_xmlparse.o.d -MD -MP
../../src/expat/lib/xmlparse.c
gcc -c -o gcc_mswu\wxexpat_xmlrole.o -O2 -mthreads -DHAVE_W32API_H
-DNDEBUG -I..\..\lib\gcc_lib -DCOMPILED_FROM_DSP
-MTgcc_mswu\wxexpat_xmlrole.o -MFgcc_mswu\wxexpat_xmlrole.o.d -MD -MP
../../src/expat/lib/xmlrole.c
gcc -c -o gcc_mswu\wxexpat_xmltok.o -O2 -mthreads -DHAVE_W32API_H
-DNDEBUG -I..\..\lib\gcc_lib -DCOMPILED_FROM_DSP
-MTgcc_mswu\wxexpat_xmltok.o -MFgcc_mswu\wxexpat_xmltok.o.d -MD -MP
../../src/expat/lib/xmltok.c
g++ -c -o gcc_mswu\wxscintilla_LexA68k.o -O2 -mthreads -DHAVE_W32API_H
-DNDEBUG -I..\..\src\stc\scintilla\include -I..\..\src\stc\scintilla\lexlib
-I..\..\src\stc\scintilla\src -D__WX__ -DSCI_LEXER -DLINK_LEXERS
-I..\..\lib\gcc_lib\mswu -I..\..\include -D__WXMSW__ -D_UNICODE
-MTgcc_mswu\wxscintilla_LexA68k.o -MFgcc_mswu\wxscintilla_LexA68k.o.d -MD
-MP ../../src/stc/scintilla/lexers/LexA68k.cxx
makefile.gcc:6064: recipe for target 'gcc_mswu\wxscintilla_LexA68k.o' failed
process_begin: CreateProcess(NULL, g++ -c -o gcc_mswu\wxscintilla_LexA68k.o
-O2 -mthreads -DHAVE_W32API_H -DNDEBUG -I..\..\src\stc\scintilla\include
-I..\..\src\stc\scintilla\lexlib -I..\..\src\stc\scintilla\src -D__WX__
-DSCI_LEXER -DLINK_LEXERS -I..\..\lib\gcc_lib\mswu -I..\..\include
-D__WXMSW__ -D_UNICODE -MTgcc_mswu\wxscintilla_LexA68k.o
-MFgcc_mswu\wxscintilla_LexA68k.o.d -MD -MP
../../src/stc/scintilla/lexers/LexA68k.cxx, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [gcc_mswu\wxscintilla_LexA68k.o] Error 2
mingw32-make: *** Waiting for unfinished jobs....

I copied some extra lines to show that it is finding files and the file it
is looking for is I believe there.

This is on a 64 bit win7 cygwin64

Any ideas on what might be happening? I have the following env vars setup -

in path ....C:\MinGW\bin;

WXWIN c:\wxWidgets-3.0.1
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-09-02 11:05:07 UTC
Permalink
On Sun, 31 Aug 2014 22:35:34 -0700 (PDT) Doug Crompton wrote:

DC> I am getting an error in compiling wxWidgets-3.0.1
...
DC> mingw32-make -f makefile.gcc -j4 SHARED=0 UNICODE=1 BUILD=release
...
DC> g++ -c -o gcc_mswu\wxscintilla_LexA68k.o -O2 -mthreads -DHAVE_W32API_H
DC> -DNDEBUG -I..\..\src\stc\scintilla\include -I..\..\src\stc\scintilla\lexlib
DC> -I..\..\src\stc\scintilla\src -D__WX__ -DSCI_LEXER -DLINK_LEXERS
DC> -I..\..\lib\gcc_lib\mswu -I..\..\include -D__WXMSW__ -D_UNICODE
DC> -MTgcc_mswu\wxscintilla_LexA68k.o -MFgcc_mswu\wxscintilla_LexA68k.o.d -MD
DC> -MP ../../src/stc/scintilla/lexers/LexA68k.cxx
DC> makefile.gcc:6064: recipe for target 'gcc_mswu\wxscintilla_LexA68k.o' failed
DC> process_begin: CreateProcess(NULL, g++ -c -o gcc_mswu\wxscintilla_LexA68k.o
DC> -O2 -mthreads -DHAVE_W32API_H -DNDEBUG -I..\..\src\stc\scintilla\include
DC> -I..\..\src\stc\scintilla\lexlib -I..\..\src\stc\scintilla\src -D__WX__
DC> -DSCI_LEXER -DLINK_LEXERS -I..\..\lib\gcc_lib\mswu -I..\..\include
DC> -D__WXMSW__ -D_UNICODE -MTgcc_mswu\wxscintilla_LexA68k.o
DC> -MFgcc_mswu\wxscintilla_LexA68k.o.d -MD -MP
DC> ../../src/stc/scintilla/lexers/LexA68k.cxx, ...) failed.
DC> make (e=2): The system cannot find the file specified.

Sorry, I don't know what is happening here. Could it be that you're
running out of memory? I know it doesn't really explain errno=2, but I'm
just grasping at straws here...

Can you try running this command "g++ -c ..." manually by copying and
pasting it? Does it work then?

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Bob Paddock
2014-09-02 13:35:19 UTC
Permalink
Post by Doug Crompton
../../src/stc/scintilla/lexers/LexA68k.cxx, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [gcc_mswu\wxscintilla_LexA68k.o] Error 2
mingw32-make: *** Waiting for unfinished jobs....
Error 2 frequently indicates that some tool is missing. Such as
Make.exe is found but g++.exe is not (or some other tool component).

Redirect the output to a file and run with the -d Make option to see
if that sheds any light on what might be missing:

# How to redirect the output of Make to a file under DOS:
# make -d>make_erros.txt 2>&1
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...