From: Michael Goffioul [mailto:address@hidden Sent: Thursday, June 20, 2013 5:54 PM To: John D Cc: Philip Nienhuis; Octave Maintainers List Subject: Re: MXE: qt error with native build On Thu, Jun 20, 2013 at 5:13 PM, John D <address@hidden> wrote:
-----Original Message----- From: Philip Nienhuis [mailto:address@hidden] Sent: Thursday, June 20, 2013 4:56 PM To: John D Cc: address@hidden Subject: Re: MXE: qt error with native build
John D wrote: > > > -----Original Message----- > From: Philip Nienhuis [mailto:address@hidden] > Sent: Thursday, June 20, 2013 4:11 PM > To: John D > Cc: address@hidden > Subject: Re: MXE: qt error with native build > > John D wrote: > <snip> >> X:/MinGW/msys/1.0/home/Philip/mxe-octave/tmp-qt/qt-everywhere-opensou >> r >> ce-src >> -4.8.3//projects.pro >> -o Makefile -spec win32-g++ >> "make" -w -- JOBS=1 -f Makefile >> make[3]: Entering directory >> `/home/Philip/mxe-octave/tmp-qt/qt-everywhere-opensource-src-4.8.3' >> make[3]: *** No rule to make target `-f'. Stop. >> ------------------------------ >> >> It does the same on mine >> Running just normal 'make' to create octave works fine though > > Not here: > > : > make[8]: Entering directory > `/home/Philip/mxe-octave/tmp-qt/qt-everywhere-opensource-src-4.8.3/src > /plugi > ns/imageformats/mng' > X:/MinGW/msys/1.0/home/Philip/mxe-octave/tmp-qt/qt-everywhere-opensour > ce-src > -4.8.3/bin/qmake > X:/MinGW/msys/1.0/home/Philip/mxe-octave/tmp-qt/qt-everywhere-opensour > ce-src -4.8.3/src/plugins/imageformats/mng/mng.pro > -o Makefile -spec win32-g++ > Project ERROR: Package libmng not found > make[8]: *** [all] Error 2 > > Philip > > ----- > > > That's from running make from the mxe-octave root directory?
Of course. It wasn't obvious to me from what other subdir I should run make.
I suppose ~/mxe-octave/tmp-qt/qt-everywhere-opensource-src-4.8.3 ? (just tried - see below)
<from your other email:> > > Have you set PKG_CONFIG_PATH to > `/home/Philip/mxe-octave/usr/i686-pc-mingw/lib/pkgconfig ?
No, but after checking I'll rather set it to: /home/Philip/mxe-octave/usr/i686-pc-mingw32/lib/pkgconfig
(Hmmmm just tried the above - I still get:
: cd mng/ && make -f Makefile make[3]: Entering directory `/home/Philip/mxe-octave/tmp-qt/qt-everywhere-opensource-src-4.8.3/src/plugi ns/imageformats/mng' X:/MinGW/msys/1.0/home/Philip/mxe-octave/tmp-qt/qt-everywhere-opensource-src -4.8.3/bin/qmake X:/MinGW/msys/1.0/home/Philip/mxe-octave/tmp-qt/qt-everywhere-opensource-src -4.8.3/src/plugins/imageformats/mng/mng.pro -o Makefile -spec win32-g++ 'pkg-config' is not recognized as an internal or external command, operable program or batch file. Project ERROR: Package libmng not found make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/Philip/mxe-octave/tmp-qt/qt-everywhere-opensource-src-4.8.3/src/plugi ns/imageformats/mng' make[2]: *** [sub-mng-make_default] Error 2 make[2]: Leaving directory `/home/Philip/mxe-octave/tmp-qt/qt-everywhere-opensource-src-4.8.3/src/plugi ns/imageformats' make[1]: *** [sub-imageformats-make_default] Error 2 make[1]: Leaving directory `/home/Philip/mxe-octave/tmp-qt/qt-everywhere-opensource-src-4.8.3/src/plugi ns' make: *** [sub-plugins-make_default-ordered] Error 2
From where should I start over?
Thanks,
P.
-----
Check that mng was installed - installed-packages/libmng, and if it was: export /home/Philip/mxe-octave/usr/i686-pc-mingw32/lib/pkgconfig make
(in the /home/Philip/mxe-octave) folder and see what happens.
Also, just for info, I created a script in tools/set_mxe_env.sh you can run as source tools/set_mxe_env.sh, that sets all the bin/lib/config paths that may help. I created it for compiling the octave_hg versions of code in mingw after having a working mxe-octave. It isn't much use for anything except for native mingw builds.
I only followed the discussion a little bit, but I've the impression these specific variables should be set by the top-level Makefile. They are(with the exception of PKG_CONFIG_PATH, which used to be there, but I believe no longer is) My script is more for use with compiling the octave directly from the main hg repo than for compiling mxe-octave. |