|
From: | Doug Stewart |
Subject: | Re: mex and gdal |
Date: | Thu, 18 Feb 2016 23:44:01 -0500 |
I am trying it with out -j3On Thu, Feb 18, 2016 at 3:16 PM, JohnD <address@hidden> wrote:
From: Doug Stewart [mailto:address@hidden]
Sent: Thursday, February 18, 2016 2:31 PM
To: JohnD
Cc: octave-maintainers
Subject: Re: mex and gdal
On Thu, Feb 18, 2016 at 1:46 PM, JohnD <address@hidden> wrote:
From: Doug Stewart [mailto:address@hidden]
Sent: Thursday, February 18, 2016 1:17 PM
To: JohnD
Cc: octave-maintainers
Subject: Re: mex and gdal
On Thu, Feb 18, 2016 at 1:02 PM, JohnD <address@hidden> wrote:
> -----Original Message-----
> From: JohnD [mailto:address@hidden]
> Sent: Thursday, February 18, 2016 12:34 PM
> To: address@hidden; 'Doug Stewart'
> Subject: RE: mex and gdal
>
> >
> > Message: 2
> > Date: Thu, 18 Feb 2016 08:09:10 -0500
> > From: Doug Stewart <address@hidden>
> > To: octave-maintainers <address@hidden>
> > Subject: mex and gdal
> > Message-ID:
> > <CAAohRsaRCYAcpXtQGBL0qNH_-
> > address@hidden>
> > Content-Type: text/plain; charset="utf-8"
> >
> > I am trying to get mxe compiling working to make a windows nsis
> > installer
> >
> > I am getting this error
> > make[2]: Leaving directory
> > '/home/doug/octavec/mxe-octave/tmp-gdal/gdal-1.11.4'
> > /home/doug/octavec/mxe-octave/Makefile:753: recipe for target
> > 'build-only- gdal' failed
> > make[1]: *** [build-only-gdal] Error 2
> > make[1]: Leaving directory '/home/doug/octavec/mxe-octave'
> >
> >
> >
> > In the log file i see:
> >
> > libtool: compile: i686-w64-mingw32-g++ -g -O2 -msse -
> > DHAVE_SSE_AT_COMPILE_TIME -Wall -DOGR_ENABLED -
> > I/home/doug/octavec/mxe-octave/tmp-gdal/gdal-1.11.4/port
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32/include
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32/include
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32/include
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32/include
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32/include
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32/include
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32/include
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32/include
> > -I/home/doug/octavec/mxe-octave/usr/i686-w64-mingw32/include -
> > DHAVE_CURL -DHAVE_LIBZ -I/usr/include/libxml2 -DHAVE_LIBXML2 -c
> > cpl_xml_validate.cpp -DDLL_EXPORT -DPIC -o .libs/cpl_xml_validate.o
> > In
> file
> > included from /usr/include/libxml2/libxml/parser.h:810:0,
> > from /usr/include/libxml2/libxml/globals.h:18,
> > from /usr/include/libxml2/libxml/threads.h:35,
> > from /usr/include/libxml2/libxml/xmlmemory.h:218,
> > from /usr/include/libxml2/libxml/tree.h:1307,
> > from /usr/include/libxml2/libxml/xmlschemas.h:19,
> > from cpl_xml_validate.cpp:57:
> > /usr/include/libxml2/libxml/encoding.h:31:26: fatal error:
unicode/ucnv.h:
> > No such file or directory
> > #include <unicode/ucnv.h>
> > ^
> > compilation terminated.
> > ../GDALmake.opt:568: recipe for target 'cpl_xml_validate.lo' failed
> > make[3]: *** [cpl_xml_validate.lo] Error 1
> >
> >
> > I am using make -k just to see what else fails.
> >
> >
> > Where does unicode/ucnv.h:
> > come from?
> >
> > Doug
> >
>
> It looks like it is pulling include files from /usr/include which it
shouldn't be
> doing.
>
> Do you have xml2-config somewhere in the path?
> On my system, looking in log/gdal I have:
> Checking for xml2-config... no
>
> You could perhaps try adding to gdal.mk the option --without-xml2 and see
if
> that helps
>
>Better yet perhaps:
-with-xml2=$(HOST_BINDIR)/xml2-configThank I am trying that , but now I get:
Failed to build package build-pkg-config!
------------------------------------------------------------
parallel-tests: error: required file './test-driver' not found
parallel-tests: 'automake --add-missing' can install 'test-driver'
autoreconf: automake failed with exit status: 1
/home/doug/octavec/mxe-octave/Makefile:754: recipe for target 'build-only-build-pkg-config' failed
make[1]: *** [build-only-build-pkg-config] Error 1
make[1]: Leaving directory '/home/doug/octavec/mxe-octave'
real 0m16.368s
Did you insert a ‘\’ at the end of --with-xml2=$(HOST_BINDIR)/xml2-config
Also not the double minus
In patch form:
diff -r c97c56799e12 -r 842456617da9 src/gdal.mk
--- a/src/gdal.mk Tue Feb 16 07:52:53 2016 -0500
+++ b/src/gdal.mk Thu Feb 18 13:09:20 2016 -0500
@@ -42,6 +42,7 @@
--with-geos='$(HOST_BINDIR)/geos-config' \
--with-pg='$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pg_config' \
--with-gta='$(HOST_PREFIX)' \
+ --with-xml2='$(HOST_BINDIR)/xml2-config' \
--without-odbc \
--without-static-proj4 \
--without-xerces \
I have--with-geos='$(HOST_BINDIR)/geos-config' \
--with-pg='$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pg_config' \
--with-gta='$(HOST_PREFIX)' \
--with-xml2='$(HOST_BINDIR)/xml2-config' \
--without-odbc \
--without-static-proj4
and I still get
Failed to build package build-pkg-config!
------------------------------------------------------------
parallel-tests: error: required file './test-driver' not found
parallel-tests: 'automake --add-missing' can install 'test-driver'
autoreconf: automake failed with exit status: 1
/home/doug/octavec/mxe-octave/Makefile:754: recipe for target 'build-only-build-pkg-config' failed
make[1]: *** [build-only-build-pkg-config] Error 1
make[1]: Leaving directory '/home/doug/octavec/mxe-octave'
Thanks for your help
I did
make clean
autoconf
./configure --enable-windows-64
make nsis-installer -j3
--
DAS
Ok – a different issue now then.
Try without the –j3, and if that doesn’t work, can you attach the log file for build-pkg-config
I also looked through the log file in log/build-pkg-configAnd there are no error statements.I will send more data when the next crash happens.
[Prev in Thread] | Current Thread | [Next in Thread] |