Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Mapnik compilation ltdl fail #1376

Closed
127 opened this Issue · 6 comments

2 participants

@127
127 commented

Upgrading OS X to Lion causes cleanup of /Library/Python/2.7/site-packages/ and everything dies. Reinstalling http://www.kyngchaos.com/software/frameworks works fine.
But after that it fails with «Could not find required header or shared library for ltdl.» Installing libtools from ports doesn't help too.
Default libtool binary ins under /usr/bin/libtool. libtool -V gives «Apple Inc. version cctools-829»

It would be nice to have LTDL param for example.

The part from log

«scons: Configure: Checking for C library ltdl...
.sconf_temp/conftest_3.c <-
|
|
|#include "ltdl.h"
|
|int
|main() {
|
|return 0;
|}
|
gcc -o .sconf_temp/conftest_3.o -c -Iinclude -I. -I/Library/Frameworks/UnixImageIO.framework/Versions/E/Headers -I/Library/Frameworks/PROJ.framework/Versions/4/Headers -I/Library/Frameworks/SQLite3.framework/Versions/3/Headers -I/Library/Frameworks/FreeType.framework/unix/include/freetype2 -I/Library/Frameworks/FreeType.framework/unix/include -I/usr/local/include -I/usr/include/libxml2 .sconf_temp/conftest_3.c
.sconf_temp/conftest_3.c:3:18: error: ltdl.h: No such file or directory
scons: Configure: no»

@127
127 commented

Looks like mapnik uses 10.6 sdk
and ltdl.h is inside 10.7 and not /user/share as it was before
/Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/ltdl.h
and the binary libttol is inside /usr/bin/

@springmeyer
Owner

Nothing about Mapnik is hardcoded to the 10.6 SDK. If you are using the mapnik-packaging OSX scripts you should not - use homebrew. Also libtdl did change in 10.8, but this is not an issue with Mapnik.

@127

Check this out:
1) I did completely reinstall OS X to latest Mountain Lion (dropped the partition first).
2) Installed latest Xcode/command tools/X11/homebrew and updates
3) Made both brew install --HEAD mapnik and brew install mapnik
4) Gained error equal to compilation from source https://gist.github.com/3378048
4) Checked out troubleshooting page and found nothing about it
May be you already have any tip what can be done in this case?
And it doesn't seem to be fine installing via brew to be such a pain in the ass as compiling from sources step by step (

@127

By the way compiled version from dmg https://github.com/downloads/mapnik/mapnik/mapnik-v2.0.1.tar.bz2
fails with the same reason on a clean system https://gist.github.com/3378336

@springmeyer springmeyer reopened this
@127

Installing libtool via brew install libtool helps.

@springmeyer
Owner

Yes, the solution is to install libtool with brew. That also works for me. The binary dmg problem is tracked at mapnik/mapnik-packaging#57. Also I've added an option to point to a custom location in 1e0a4ac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.