On Mar 17, 2011, at 9:42 AM, Ken-ichi wrote:
> Hi all,
>
> I tried out the the homebrew install last night and ran into a
> problem. Actually the first problem was that it took forever, like 3+
> hours to compile. I have an older Macbook (2.2 ghz core duo, 2 gb
> ram), but I don't recall compilation taking quite this long for
> previous compilations.
Two reasons for this:
1) Mapnik2/trunk does take longer to compile (it uses more compile time
optimizations for faster runtimes)
2) That formula automatically tries to compile in parallel. This causes the
compilation to go *much* slower unless you have the RAM to handle parallel
compilation (>= 4B) and then it will go faster
So, for the homebrew formula for mapnik2 I think we should find a way to only
use -j2 if >= 4GB are available.
In your case you should remove the "JOBS=#{Hardware.processor_count}" from the
formula.
> Second, scons bails like this:
>
>
> Install file: "utils/pgsql2sqlite/pgsql2sqlite" as
> "/usr/local/bin/pgsql2sqlite"
> g++ -o plugins/input/osm.input -dynamiclib
> plugins/input/osm/osmparser.os plugins/input/osm/osm.os
> plugins/input/osm/osm_datasource.os
> plugins/input/osm/osm_featureset.os
> plugins/input/osm/dataset_deliverer.os plugins/input/osm/basiccurl.os
> -Lagg -Lsrc -L/usr/local/Cellar/postgresql/9.0.3/lib
> -L/usr/local/Cellar/gdal/1.8.0/lib -L/usr/local/Cellar/icu4c/4.4.1/lib
> -L/usr/local/lib -L/usr/lib -L/usr/X11/lib -lxml2 -lcurl -lmapnik2
> -licuuc
> Undefined symbols:
> "export_inmem_metawriter()", referenced from:
> init_module__mapnik2() in mapnik_python.os
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> scons: *** [bindings/python/mapnik/_mapnik2.so] Error 1
> scons: building terminated because of errors.
> Exit status: 2
>
Sorry, that is just do to bad timing between commits yesterday that missed a
file. Should be fixed now if you try again.
Dane
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users