[osgeo4w-dev] osgeo4w rev1262 dose not compile

Jürgen E. Fischer jef at norbit.de
Thu Sep 5 02:13:28 PDT 2013


On Thu, 05. Sep 2013 at 16:53:47 +0900, hayashi at apptec.co.jp wrote:
> I'm tring to compile rev1262 source codes downloaded from SVN and fail with some
> errors.
> make[2]: Entering directory `/home/newosgeo4w/setup'
>   CXX      AntiVirus.o
>   CXX      archive.o
>   CXX      archive_tar.o
>   CXX      archive_tar_file.o
>   CXX      choose.o
>   CXX      compress.o
>   CXX      compress_bz.o
>   CXX      compress_gz.o
>   CXX      ConnectionSetting.o
>   CXX      ControlAdjuster.o
>   CXX      cygpackage.o
>   CXX      desktop.o
> In file included from desktop.cc:35:0:
> ini.h:52:2: error: #error OSGEO4W_MIRROR_URL not set
> Makefile:912: recipe for target `desktop.o' failed
> make[2]: *** [desktop.o] Error 1
> make[2]: Leaving directory `/home/newosgeo4w/setup'
> Makefile:957: recipe for target `all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/newosgeo4w/setup'
> Makefile:708: recipe for target `all' failed
> make: *** [all] Error 2

If you compile with cygwin/mingw, something like this (or exactly that, if
you're about to try the testing64 rep):

./configure \
        --host=i686-pc-mingw32 \
        --build=i686-pc-cygwin \
        CC="i686-pc-mingw32-gcc.exe " \
        CXX="i686-pc-mingw32-g++.exe " \
        CXXFLAGS="-mtune=i686 -mthreads -mms-bitfields -static-libstdc++ -DOSGEO4W_MIRROR_URL=\\\"http://download.osgeo.org/osgeo4w/testing64\\\""

If you compile with MSVC change the setting in CMakeLists.txt

See also [1].  At some point both should be made configurable.   I didn't
bother to do that in CMakeLists.txt yet and adding an option to the configure
stuff, would require some research on my end first. ;)


[1] http://trac.osgeo.org/osgeo4w/changeset/1257/trunk

Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-31
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de
QGIS PSC member (RM)                                   IRC: jef on FreeNode                         

norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

More information about the osgeo4w-dev mailing list