Compilation problems on windows XP (mingw32)

View: New views
3 Messages — Rating Filter:   Alert me  

Compilation problems on windows XP (mingw32)

by Thomas Nocke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I've developed a peace of software using mapnik in linux and wanted to run it
under windows xp. I have problems using the precompiled mapnik sources, so I
tried to compile mapnik for the gnu-compiler mingw using the python scons
mechanisms (using python version 2.5.4). I already managed to include all the
packages. Unfortunately, afterwards errors that seem to be related to python
occur:

$ ./help_conf.sh
scons: Reading SConscript files ...
?[94m
Welcome to Mapnik...
?[0m
?[94mConfiguring build environment...?[0m
?[94mSCons CONFIG found: 'config.py', variables will be inherited...?[0m
INPUT_PLUGINS=gdal,kismet,occi,ogr,osm,postgis,raster,shape,sqlite
BOOST_INCLUDES=c:/Programs/boost_1_39_0 BOOST_LIBS=c:
/Programs/boost_1_39_0/lib BOOST_TOOLKIT=mgw34 BOOST_VERSION=1_39
FREETYPE_CONFIG=c:/Programs/freetype-2.3.5-1/bin/freet
ype-config.bat ICU_INCLUDES=c:/Programs/cygwin/usr/local/include
ICU_LIBS=C:/Programs/cygwin/usr/local/lib Z_INCLUDES=C:
/Programs/zlib-1.2.3 Z_LIBS=C:/Programs/zlib-1.2.3
PNG_INCLUDES=C:/Programs/lpng1238 PNG_LIBS=C:/Programs/lpng1238 JPEG_
INCLUDES=C:/Programs/libjpeg-6b-4/include
JPEG_LIBS=C:/Programs/libjpeg-6b-4/lib
TIFF_INCLUDES=C:/Programs/tiff-3.8.2-1/
include TIFF_LIBS=C:/Programs/tiff-3.8.2-1/lib
PROJ_INCLUDES=C:/Programs/proj-4.6.1/src PROJ_LIBS=C:/Programs/proj-4.6.1
/src/release PYTHON=c:/Programs/Python25/python.exe BINDINGS=python
XMLPARSER=tinyxml
?[94mConfiguring on Windows in *release mode*...?[0m
Checking for pkg-config... no
Checking for C library m... yes
Checking for C library ltdl... yes
Checking for C library png... yes
Checking for C library tiff... yes
Checking for C library z... yes
Checking for C library jpeg... yes
Checking for C library proj... yes
Checking for C++ library icuuc... yes
Checking for C++ library icudata... yes
Searching for boost libs and headers... (cached) ?[94m
  *using boost lib dir: c:/Programs/boost_1_39_0/lib
  *using boost include dir: c:/Programs/boost_1_39_0
  *using boost lib naming: -mgw34-mt-1_39?[0m
Checking for Boost version >= 1.34... yes
?[94mFound boost lib version... 1_39?[0m
Checking for C++ library boost_system-mgw34-mt-1_39... yes
Checking for C++ library boost_filesystem-mgw34-mt-1_39... yes
Checking for C++ library boost_regex-mgw34-mt-1_39... yes
Checking for C++ library boost_iostreams-mgw34-mt-1_39... yes
Checking for C++ library boost_program_options-mgw34-mt-1_39... yes
Checking for C++ library boost_thread-mgw34-mt-1_39... yes
?[94mChecking for requested plugins dependencies...?[0m
Checking for C library sqlite3... no
Checking for pg_config... error: no result
no
Checking if gdal is ogr enabled... no
Checking for C++ library ociei... no
Checking for gdal-config --libs... error: no result
no
Checking for C++ header file boost/python/detail/config.hpp... yes
Checking for pkg-config... no
Checking for freetype-config... yes
?[94m
All Required dependencies found!
?[0m
?[94mOverwriting and re-saving file 'config.py'...?[0m
?[94mWill hold custom path variables from commandline and python config
file(s)...?[0m
?[93m
Note: will build without these optional dependencies:
   - cairo
   - cairomm
   - sqlite3
   - pg_config
   - ogr
   - ociei
   - pycairo?[0m

?[91mProblem encountered parsing mapnik version, falling back to [0, 6, 1]?[0m
?[91mProblem encounted with SCons scripts, please post bug report to:
http://trac.mapnik.org
Error was:   File "<string>", line 1
    'import
          ^
SyntaxError: EOL while scanning single-quoted string
?[0m
?[91mProblem encounted with SCons scripts, please post bug report to:
http://trac.mapnik.org
Error was:   File "<string>", line 1
    'from
        ^
SyntaxError: EOL while scanning single-quoted string
?[0m
?[91mProblem encounted with SCons scripts, please post bug report to:
http://trac.mapnik.org
Error was:   File "<string>", line 1
    'from
        ^
SyntaxError: EOL while scanning single-quoted string
?[0m
?[91mProblem encounted with SCons scripts, please post bug report to:
http://trac.mapnik.org
Error was:   File "<string>", line 1
    'from
        ^
SyntaxError: EOL while scanning single-quoted string
?[0m
TypeError: cannot concatenate 'str' and 'NoneType' objects:
  File "C:\Programs\cygwin\packages\mapnik-0.6.1\SConstruct", line 897:
    env['PYTHON_INSTALL_LOCATION'] = env['DESTDIR'] + '/' +
env['PYTHON_SITE_PACKAGES']

Do you have any suggestions? Thanks for any help.

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Compilation problems on windows XP (mingw32)

by Dane Springmeyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Thomas,


On Sep 23, 2009, at 8:25 AM, Thomas Nocke wrote:

> Hello,
>
> I've developed a peace of software using mapnik in linux and wanted  
> to run it
> under windows xp. I have problems using the precompiled mapnik  
> sources,

What problems did you have with the pre-compiled win32 binaries?


> so I
> tried to compile mapnik for the gnu-compiler mingw using the python  
> scons
> mechanisms (using python version 2.5.4). I already managed to  
> include all the
> packages. Unfortunately, afterwards errors that seem to be related  
> to python
> occur:
>
> $ ./help_conf.sh

[...snip...]

>        ^
> SyntaxError: EOL while scanning single-quoted string
> ?[0m
> TypeError: cannot concatenate 'str' and 'NoneType' objects:
>  File "C:\Programs\cygwin\packages\mapnik-0.6.1\SConstruct", line 897:
>    env['PYTHON_INSTALL_LOCATION'] = env['DESTDIR'] + '/' +
> env['PYTHON_SITE_PACKAGES']
>
> Do you have any suggestions? Thanks for any help.
>

Yes, I see the problem (string quoting on windows) and fixed in it  
trunk:

http://trac.mapnik.org/changeset/1304

Dane

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Parent Message unknown Re: Compilation problems on windows XP (mingw32)

by Thomas Nocke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 23 September 2009 08:58:00 pm you wrote:

> Thomas,
>
> Can you try with trunk now?
>
> svn co http://svn.mapnik.org/trunk mapnik-trunk
>
> I made a fix that should allow you to get past those errors:
>
> http://trac.mapnik.org/changeset/1304
>
> Let me know the next errors you encounter...
>
> Dane

Hello Dane,

thank you for the new subversion version. After some work I managed to
configure mapnik with the svn version.

Are there some differences concerning the boost path settings for the scons.py
script? I needed to put the paths into the CPLUS_INCLUDE_PATH and the
LD_LIBRARY_PATH variables to get it configured.

Now, I get the following output (and I am not sure if the subversion version
error is the reason):

D:\mapniksvn>python scons/scons.py INPUT_PLUGINS=all
BOOST_INCLUDES=c:/Programs/boost_1_39_0
BOOST_LIBS=c:/Programs/boost_1_39_0/lib BOOST_TOOLKIT=mgw34
BOOST_VERSION=1_39
FREETYPE_CONFIG=c:/Programs/freetype-2.3.5-1/bin/freetype-config.exe
GDAL_CONFIG=C:/Programs/libgdal-devel/bin/pkg-config.exe
PNG_INCLUDES=C:/Programs/lpng1238 PNG_LIBS=C:/Programs/lpng1238
ICU_INCLUDES=c:/Programs/cygwin/usr/local/include
ICU_LIBS=C:/Programs/cygwin/usr/local/lib
JPEG_INCLUDES=C:/Programs/libjpeg-6b-4/include
JPEG_LIBS=c::/Programs/libjpeg-6b-4/lib
TIFF_INCLUDES=C:/Programs/tiff-3.8.2-1/include
TIFF_LIBS=C:/Programs/tiff-3.8.2-1/lib
PROJ_INCLUDES=C:/Programs/proj-4.6.1/src
PROJ_LIBS=C:/Programs/proj-4.6.1/src/release XMLPARSER=tinyxml
PYTHON=c:/Programs/Python25/python.exe
scons: Reading SConscript files ...

Welcome to Mapnik...

Configuring build environment...
SCons CONFIG found: 'config.py', variables will be inherited...
INPUT_PLUGINS=gdal,kismet,occi,ogr,osm,postgis,raster,shape,sqlite
BOOST_INCLUDES=/usr/include BOOST_LIBS=/usr/lib BOOST_TOOLKIT=mgw34
BOOST_VERSION=1_39
FREETYPE_CONFIG=c:/Programs/freetype-2.3.5-1/bin/freetype-config.exe
ICU_INCLUDES=c:/Programs/cygwin/usr/local/include
ICU_LIBS=C:/Programs/cygwin/usr/local/lib PNG_INCLUDES=C:/Programs/lpng1238
PNG_LIBS=C:/Programs/lpng1238 JPEG_INCLUDES=C:/Programs/libjpeg-6b-4/include
JPEG_LIBS=C:/Programs/libjpeg-6b-4/lib
TIFF_INCLUDES=C:/Programs/tiff-3.8.2-1/include
TIFF_LIBS=C:/Programs/tiff-3.8.2-1/lib
PROJ_INCLUDES=C:/Programs/proj-4.6.1/src
PROJ_LIBS=C:/Programs/proj-4.6.1/src/release
PYTHON=c:/Programs/Python25/python.exe BINDINGS=python XMLPARSER=tinyxml
Configuring on Windows in *release mode*...
Checking for freetype-config... yes
Checking for pkg-config... yes
Checking for cairomm-1.0... no
Checking for C library m... yes
Checking for C library ltdl... yes
Checking for C library png... yes
Checking for C library tiff... yes
Checking for C library z... yes
Checking for C library jpeg... yes
Checking for C library proj... yes
Checking for C++ library icuuc... yes
Checking for C++ library icudata... yes
Searching for boost libs and headers... (cached) ?[94m
  *using default boost lib dir: /usr/lib
  *using default boost include dir: /usr/include
  *using boost lib naming: -mgw34-mt-1_39?[0m
Checking for Boost version >= 1.34... yes
Found boost lib version... 1_39
Checking for C++ library boost_system-mgw34-mt-1_39... yes
Checking for C++ library boost_filesystem-mgw34-mt-1_39... yes
Checking for C++ library boost_regex-mgw34-mt-1_39... yes
Checking for C++ library boost_iostreams-mgw34-mt-1_39... yes
Checking for C++ library boost_program_options-mgw34-mt-1_39... yes
Checking for C++ library boost_thread-mgw34-mt-1_39... yes
Checking for requested plugins dependencies...
Checking for C library sqlite3... yes
Checking for pg_config... error: no result
no
Checking if gdal is ogr enabled... no
Checking for C++ library ociei... no
Checking for gdal-config --libs... error: no result
no
Checking for C++ header file boost/python/detail/config.hpp... yes
Checking for pkg-config... yes
Checking for pycairo... no

All Required dependencies found!

Overwriting and re-saving file 'config.py'...
Will hold custom path variables from commandline and python config file(s)...

Note: will build without these optional dependencies:
   - cairo
   - cairomm
   - pg_config
   - ogr
   - ociei
   - gdal-config --libs
   - pycairo

Problem encountered parsing mapnik version, falling back to [0, 6, 1]
Problem encounted with SCons scripts, please post bug report to:
http://trac.mapnik.org
Error was: 'svnversion' is not recognized as an internal or external command,
operable program or batch file.

Bindings Python version... 2.5
Python 2.5 prefix... c:\Programs\Python25
Python bindings will install in... \\c:\Programs\Python25\Lib\site-packages
RuntimeError: maximum recursion depth exceeded in cmp:
  File "D:\mapniksvn\SConstruct", line 958:
    SConscript('src/SConscript')
  File "d:\makniksvn\scons\scons-local-1.2.0\SCons\Script\SConscript.py", line
612:
    None
  File "d:\makniksvn\scons\scons-local-1.2.0\SCons\Script\SConscript.py", line
549:
    None
  File "d:\makniksvn\scons\scons-local-1.2.0\SCons\Script\SConscript.py", line
259:
    None
  File "D:\mapniksvn\src\SConscript", line 150:
    env.Alias(target='install',
source=env.InstallAs(target=os.path.join(libDir, soFile), source=mapnik))
  File "d:\makniksvn\scons\scons-local-1.2.0\SCons\Environment.py", line 217:
    None
  File "d:\makniksvn\scons\scons-local-1.2.0\SCons\Tool\__init__.py", line
535:
    None
  File "d:\makniksvn\scons\scons-local-1.2.0\SCons\Environment.py", line 217:
    None

  ...

 File "d:\makniksvn\scons\scons-local-1.2.0\SCons\Node\FS.py", line 2025:
   None
 File "d:\makniksvn\scons\scons-local-1.2.0\SCons\Node\FS.py", line 2025:
   None
 File "d:\makniksvn\scons\scons-local-1.2.0\SCons\Node\FS.py", line 2025:
   None
 File "d:\makniksvn\scons\scons-local-1.2.0\SCons\Node\FS.py", line 2024:
   None
 File "c:\programs\Python25\lib\ntpath.py", line 164:
   d, p = splitdrive(p)
 File "c:\programs\Python25\lib\ntpath.py", line 119:
   if p[1:2] == ':':

This is done in a windows cmd-Shell. Under cygwin I did not manage to get the
configure finished, yet.

Thank you for any help
Thomas





_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users