make install not installing wx-config or headers?

384 views
Skip to first unread message

Mike Ray

unread,
Aug 8, 2015, 7:03:49 PM8/8/15
to wx-u...@googlegroups.com
Hello,

I'm new to wxWidgets programming.

I'm totally blind and was please to note that wxWidgets seems to be
totally accessible on Windows and, so far for my GTK versions of 'Hello
World!' so far, accessible there as well.

But I have a couple of problems cross-compiling for Windows on Linux...

1. I get seemingly random build failures, especially with -jN where N
is more than 1.

2. make install does not seem to install wx-config. I can do this by
running make install-wxconfig though.

3. But, and this more of a headache, the build does not seem to install
headers at all in any path returned by wx-config --cxxflags.

I've done a lot of Googling and cannout find any reference to the header
problem. I can not understand the apparently random build failures at all.

Thanks.

Building on Debian Jessie with the mingw cross-compilers from the repo
and wxWidgets version 3.0.2.

Mike


--
Michael A. Ray
Analyst/Programmer
Witley, Surrey, South-east UK

"In the beginning there was Debian. And Ubuntu was without form, and void"

Eyes-free Linux:
http://eyesfreelinux.ninja

Igor Korot

unread,
Aug 8, 2015, 7:18:16 PM8/8/15
to wx-u...@googlegroups.com

Hi Mike,
What is you compiler version? Do you compile for 32- or 64-bit? Any special configure optitons?

Thank you.

Vadim Zeitlin

unread,
Aug 8, 2015, 7:42:57 PM8/8/15
to wx-u...@googlegroups.com
On Sat, 8 Aug 2015 22:51:51 +0100 Mike Ray wrote:

MR> I'm totally blind and was please to note that wxWidgets seems to be
MR> totally accessible on Windows and, so far for my GTK versions of 'Hello
MR> World!' so far, accessible there as well.

Hello,

Unfortunately accessibility situation in wxWidgets is not that ideal, as
you will probably soon discover. Any patches improving it would be very
welcome.

MR> But I have a couple of problems cross-compiling for Windows on Linux...
MR>
MR> 1. I get seemingly random build failures, especially with -jN where N
MR> is more than 1.

Sorry, impossible to say anything about this without knowing that the
build failures are.

MR> 2. make install does not seem to install wx-config.

This is really strange. Are you sure it's really not installed or could it
be installed but not found because wx-config --host option is not used?

MR> 3. But, and this more of a headache, the build does not seem to install
MR> headers at all in any path returned by wx-config --cxxflags.

Does this return the right header path?

I admit, using wx-config for cross-builds is not the most commonly tested
case but I thought it was supposed to work. If it doesn't, we really ought
to fix this and I might try to do it.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/

Mike Ray

unread,
Aug 8, 2015, 8:29:02 PM8/8/15
to wx-u...@googlegroups.com
Hello,

I've tried to build 3.0.2 with:

* Cygwin 32 and 64 bit versions with the latest mingw-w64-x86 and
mingw-w64-x86_64 tool-chains. And Cygwin's own compilers.

* msys 1.0, again with the above compilers.

* msys 2, with the same compilers.

* Cross-compile on Debian Linux using the mingw-w64-xxx compilers from
the repo.

Some builds (very few) work and then fail with exactly the same
configurations immediately afterwards. For a long time I thought it was
something to do with multiple jobs running so I've stopped using
parallel processes with the -j switch.

I'll assemble more details of what is happening. I've been at this for
several days and I'm tearing my hair out.

I know you might think that once it works once I'd stop there but I need
to be able to reproduce different builds with ease.

I found the stuff online about not having either 'cygwin' or 'msys' in
the $PATH. I was getting the infamous 'create process' errors when it was.

Accessibility:

I've been able to compile applications on both Linux and Windows, I
think 2.9 and have not come across any accessibility problems yet. But
I've not looked at every control.

If I can get the build process right and consistent I'll look at whether
I can contribute any accessibility fixes.

On Windows I use the NVDA screen-reader and Orca on Linux (of course).

Mike Ray

unread,
Aug 8, 2015, 8:46:44 PM8/8/15
to wx-u...@googlegroups.com
On 09/08/2015 00:42, Vadim Zeitlin wrote:
Hello,


One attempt to cross-compile 3.0.2 on Debian:

My cross-compile script (32-bit build on x86_64 machine:

-- snip --
#!/bin/bash

TARGET=i686-w64-mingw32
#TARGET=x86_64-w64-mingw32

CFLAGS=/usr/${TARGET}/include/windows.h
PREFIX=/usr/local/wxWidgets/wxMSW/Unicode


../configure --prefix=${PREFIX} \
--host=${TARGET} \
--enable-unicode \
--disable-debug \
--disable-debug_gdb \
--with-msw \
--without-subdirs

-- snip --

And here are the top 20 and bottom 20 lines of the recorded script:

-- snip --

/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxregex_regcomp.o -DNDEBUG -D__WXMSW__ -D_FILE_OFFSET_BITS=64
-DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/regex/regcomp.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxregex_regexec.o -DNDEBUG -D__WXMSW__ -D_FILE_OFFSET_BITS=64
-DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/regex/regexec.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxregex_regerror.o -DNDEBUG -D__WXMSW__ -D_FILE_OFFSET_BITS=64
-DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/regex/regerror.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxregex_regfree.o -DNDEBUG -D__WXMSW__ -D_FILE_OFFSET_BITS=64
-DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/regex/regfree.c
rm -f /home/mike/wxWidgets/mybuild/lib/libwxregexu-3.0-i686-w64-mingw32.a
i686-w64-mingw32-ar rcu
/home/mike/wxWidgets/mybuild/lib/libwxregexu-3.0-i686-w64-mingw32.a
wxregex_regcomp.o wxregex_regexec.o wxregex_regerror.o wxregex_regfree.o
i686-w64-mingw32-ranlib
/home/mike/wxWidgets/mybuild/lib/libwxregexu-3.0-i686-w64-mingw32.a
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxzlib_adler32.o -DNDEBUG -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/zlib/adler32.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxzlib_compress.o -DNDEBUG -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/zlib/compress.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxzlib_crc32.o -DNDEBUG -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/zlib/crc32.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxzlib_deflate.o -DNDEBUG -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/zlib/deflate.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxzlib_gzclose.o -DNDEBUG -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/zlib/gzclose.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxzlib_gzlib.o -DNDEBUG -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/zlib/gzlib.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxzlib_gzread.o -DNDEBUG -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/zlib/gzread.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxzlib_gzwrite.o -DNDEBUG -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/zlib/gzwrite.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxzlib_infback.o -DNDEBUG -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/zlib/infback.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxzlib_inffast.o -DNDEBUG -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/zlib/inffast.c
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-gcc -c -o
wxzlib_inflate.o -DNDEBUG -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -mthreads -Wall -Wundef -O2 -fno-strict-aliasing -mthreads
../src/zlib/inflate.c

-- middle snipped --





/home/mike/wxWidgets/mybuild/bk-make-pch
./.pch/wxprec_richtextdll/wx/wxprec.h.gch wx/wxprec.h
i686-w64-mingw32-g++ -I./.pch/wxprec_richtextdll -D__WXMSW__
-DWXBUILDING -I/home/mike/wxWidgets/mybuild/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_RICHTEXT
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
i686-w64-mingw32-windres -i../src/msw/version.rc
-orichtextdll_version_rc.o --define __WXMSW__ --define
WXBUILDING --define WXDLLNAME=wxmsw30u_richtext_gcc_custom --include-dir
/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
--include-dir ../include --include-dir
/home/mike/wxWidgets/mybuild/src/tiff/libtiff --include-dir
../src/tiff/libtiff --include-dir ../src/jpeg --include-dir ../src/png
--include-dir ../src/zlib --include-dir ../src/regex --include-dir
../src/expat/lib --define WXUSINGDLL --define WXMAKINGDLL_RICHTEXT
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-g++ -c -o
richtextdll_richtextbuffer.o -I./.pch/wxprec_richtextdll -D__WXMSW__
-DWXBUILDING -I/home/mike/wxWidgets/mybuild/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_RICHTEXT
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
../src/richtext/richtextbuffer.cpp
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-g++ -c -o
richtextdll_richtextctrl.o -I./.pch/wxprec_richtextdll -D__WXMSW__
-DWXBUILDING -I/home/mike/wxWidgets/mybuild/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_RICHTEXT
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
../src/richtext/richtextctrl.cpp
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-g++ -c -o
richtextdll_richtextformatdlg.o -I./.pch/wxprec_richtextdll -D__WXMSW__
-DWXBUILDING -I/home/mike/wxWidgets/mybuild/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_RICHTEXT
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
../src/richtext/richtextformatdlg.cpp
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-g++ -c -o
richtextdll_richtexthtml.o -I./.pch/wxprec_richtextdll -D__WXMSW__
-DWXBUILDING -I/home/mike/wxWidgets/mybuild/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_RICHTEXT
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
../src/richtext/richtexthtml.cpp
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-g++ -c -o
richtextdll_richtextimagedlg.o -I./.pch/wxprec_richtextdll -D__WXMSW__
-DWXBUILDING -I/home/mike/wxWidgets/mybuild/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_RICHTEXT
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
../src/richtext/richtextimagedlg.cpp
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-g++ -c -o
richtextdll_richtextprint.o -I./.pch/wxprec_richtextdll -D__WXMSW__
-DWXBUILDING -I/home/mike/wxWidgets/mybuild/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_RICHTEXT
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
../src/richtext/richtextprint.cpp
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-g++ -c -o
richtextdll_richtextstyledlg.o -I./.pch/wxprec_richtextdll -D__WXMSW__
-DWXBUILDING -I/home/mike/wxWidgets/mybuild/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_RICHTEXT
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
../src/richtext/richtextstyledlg.cpp
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-g++ -c -o
richtextdll_richtextstyles.o -I./.pch/wxprec_richtextdll -D__WXMSW__
-DWXBUILDING -I/home/mike/wxWidgets/mybuild/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_RICHTEXT
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
../src/richtext/richtextstyles.cpp
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-g++ -c -o
richtextdll_richtextsymboldlg.o -I./.pch/wxprec_richtextdll -D__WXMSW__
-DWXBUILDING -I/home/mike/wxWidgets/mybuild/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_RICHTEXT
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
../src/richtext/richtextsymboldlg.cpp
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-g++ -c -o
richtextdll_richtextxml.o -I./.pch/wxprec_richtextdll -D__WXMSW__
-DWXBUILDING -I/home/mike/wxWidgets/mybuild/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_RICHTEXT
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
../src/richtext/richtextxml.cpp
/home/mike/wxWidgets/mybuild/bk-deps i686-w64-mingw32-g++ -c -o
richtextdll_xh_richtext.o -I./.pch/wxprec_richtextdll -D__WXMSW__
-DWXBUILDING -I/home/mike/wxWidgets/mybuild/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_RICHTEXT
-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
../src/xrc/xh_richtext.cpp
i686-w64-mingw32-g++ -shared -o
/home/mike/wxWidgets/mybuild/lib/wxmsw30u_richtext_gcc_custom.dll
richtextdll_version_rc.o richtextdll_richtextbuffer.o
richtextdll_richtextctrl.o richtextdll_richtextformatdlg.o
richtextdll_richtexthtml.o richtextdll_richtextimagedlg.o
richtextdll_richtextprint.o richtextdll_richtextstyledlg.o
richtextdll_richtextstyles.o richtextdll_richtextsymboldlg.o
richtextdll_richtextxml.o richtextdll_xh_richtext.o
-L/home/mike/wxWidgets/mybuild/lib -L/home/mike/wxWidgets/mybuild/lib
-L/home/mike/wxWidgets/mybuild/lib -L/home/mike/wxWidgets/mybuild/lib
-L/home/mike/wxWidgets/mybuild/lib -L/home/mike/wxWidgets/mybuild/lib
-Wl,--out-implib=/home/mike/wxWidgets/mybuild/lib/libwx_mswu_richtext-3.0-i686-w64-mingw32.dll.a -mthreads -lwxtiff-3.0-i686-w64-mingw32 -lwxjpeg-3.0-i686-w64-mingw32 -lwxpng-3.0-i686-w64-mingw32 -lwxzlib-3.0-i686-w64-mingw32 -lwxregexu-3.0-i686-w64-mingw32 -lwxexpat-3.0-i686-w64-mingw32 -mthreads -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32 -lwx_mswu_adv-3.0-i686-w64-mingw32 -lwx_mswu_html-3.0-i686-w64-mingw32 -lwx_baseu_xml-3.0-i686-w64-mingw32 -lwx_mswu_core-3.0-i686-w64-mingw32 -lwx_baseu-3.0-i686-w64-mingw32 -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32
/home/mike/wxWidgets/mybuild/bk-make-pch
./.pch/wxprec_stcdll/wx/wxprec.h.gch wx/wxprec.h i686-w64-mingw32-g++
-I./.pch/wxprec_stcdll -D__WXMSW__ -DWXBUILDING
-I/home/mike/wxWidgets/mybuild/src/tiff/libtiff -I../src/tiff/libtiff
-I../src/jpeg -I../src/png -I../src/zlib -I../src/regex
-I../src/expat/lib -I../src/stc/scintilla/include
-I../src/stc/scintilla/lexlib -I../src/stc/scintilla/src -D__WX__
-DSCI_LEXER -DLINK_LEXERS -DWXUSINGDLL -DWXMAKINGDLL_STC -Wall -Wundef
-Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual
-D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0
-I/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
-I../include -DWX_PRECOMP -mthreads -O2 -fno-strict-aliasing
i686-w64-mingw32-windres -i../src/msw/version.rc -ostcdll_version_rc.o
--define __WXMSW__ --define WXBUILDING --define
WXDLLNAME=wxmsw30u_stc_gcc_custom --include-dir
/home/mike/wxWidgets/mybuild/lib/wx/include/i686-w64-mingw32-msw-unicode-3.0
--include-dir ../include --include-dir
/home/mike/wxWidgets/mybuild/src/tiff/libtiff --include-dir
../src/tiff/libtiff --include-dir ../src/jpeg --include-dir ../src/png
--include-dir ../src/zlib --include-dir ../src/regex --include-dir
../src/expat/lib --include-dir ../src/stc/scintilla/include
--include-dir ../src/stc/scintilla/lexlib --include-dir
../src/stc/scintilla/src --define __WX__ --define SCI_LEXER --define
LINK_LEXERS --define WXUSINGDLL --define WXMAKINGDLL_STC
cd ../src/stc && ./gen_iface.py
/usr/bin/env: python
: No such file or directory
Makefile:40666: recipe for target '../include/wx/stc/stc.h' failed
make: *** [../include/wx/stc/stc.h] Error 127

-- snip --

Outputs from gcc and g++ versions:

i686-w64-mingw32-gcc (GCC) 4.9.1
Copyright (C) 2014 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.

i686-w64-mingw32-g++ (GCC) 4.9.1
Copyright (C) 2014 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.


More to follow.

Igor Korot

unread,
Aug 8, 2015, 8:54:41 PM8/8/15
to wx-u...@googlegroups.com
Hi,
Do you have python installed?
Apparently you need to have python in order to do the build...

THank you.

>
> Outputs from gcc and g++ versions:
>
> i686-w64-mingw32-gcc (GCC) 4.9.1
> Copyright (C) 2014 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.
>
> i686-w64-mingw32-g++ (GCC) 4.9.1
> Copyright (C) 2014 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.
>
>
> More to follow.
>
> Mike
>
>
>
>
> --
> Michael A. Ray
> Analyst/Programmer
> Witley, Surrey, South-east UK
>
> "In the beginning there was Debian. And Ubuntu was without form, and void"
>
> Eyes-free Linux:
> http://eyesfreelinux.ninja
>

Mike Ray

unread,
Aug 8, 2015, 9:02:17 PM8/8/15
to wx-u...@googlegroups.com

>
> Do you have python installed?
> Apparently you need to have python in order to do the build...
>
> THank you.
>

Yep got both 2.7 and 3.

Not sure the Python locale is correctly set up though. If that makes a
difference.

Mike Ray

unread,
Aug 8, 2015, 9:09:01 PM8/8/15
to wx-u...@googlegroups.com
On 09/08/2015 02:02, Mike Ray wrote:
>
>>
>> Do you have python installed?
>> Apparently you need to have python in order to do the build...
>>
>> THank you.
>>
>
> Yep got both 2.7 and 3.
>
> Not sure the Python locale is correctly set up though. If that makes a
> difference.
>
>

AHA!

$ file ./src/stc/gen_iface.py

gen_iface.py: Python script, ASCII text executable, with CRLF line
terminators

Failing because of the CrLf line endings!

Igor Korot

unread,
Aug 8, 2015, 9:10:11 PM8/8/15
to wx-u...@googlegroups.com
Hi,

On Sat, Aug 8, 2015 at 9:02 PM, Mike Ray <mi...@eyesfreelinux.ninja> wrote:
>
>>
>> Do you have python installed?
>> Apparently you need to have python in order to do the build...
>>
>> THank you.
>>
>
> Yep got both 2.7 and 3.
>
> Not sure the Python locale is correctly set up though. If that makes a
> difference.

So if you just run python what happened?
Also check it is installed in the proper place.

Thank you.

>
>
> --
> Michael A. Ray
> Analyst/Programmer
> Witley, Surrey, South-east UK
>
> "In the beginning there was Debian. And Ubuntu was without form, and void"
>
> Eyes-free Linux:
> http://eyesfreelinux.ninja
>

Mike Ray

unread,
Aug 8, 2015, 9:13:41 PM8/8/15
to wx-u...@googlegroups.com
On 09/08/2015 02:10, Igor Korot wrote:
> Hi,
>
> On Sat, Aug 8, 2015 at 9:02 PM, Mike Ray <mi...@eyesfreelinux.ninja> wrote:
>>
>>>
>>> Do you have python installed?
>>> Apparently you need to have python in order to do the build...
>>>
>>> THank you.
>>>
>>
>> Yep got both 2.7 and 3.
>>
>> Not sure the Python locale is correctly set up though. If that makes a
>> difference.
>
> So if you just run python what happened?
> Also check it is installed in the proper place.
>
> Thank you.
>
>>
>>

See my last email re CrLf line endings. That'll teach me to find the
.bz2 instead of the .zip.

Mike Ray

unread,
Aug 8, 2015, 9:39:02 PM8/8/15
to wx-u...@googlegroups.com

On Linux I had been using the source from the wxWidgets-3.0.2.zip
instead of the .bz2 file.

This meant the line-endings of all the Python scripts were CrLf instead
of Lf. For some reason it worked once or twice, possibly I chose build
options that meant Python wasn't called during build.

But the Makefile parts for installing wx-config and the headers either
use Python or bash scripts which failed with 'bad interpreter'.

And on Windows I guess in my efforts to clean up the PATH to remove all
of what I thought were extraneous portions I removed Python from it.

On Linux that explains why I was able to build 3.1.x from git, no CrLf
line-endings.

Mike
Reply all
Reply to author
Forward
0 new messages