2016-10-27 9 views
0

node-mapnikのocciプラグインをビルドしようとしています。私の目的は、そのプラグインをtilelive-bridgeノードモジュールのnode-mapnikインストールに使用することです。ここでnode-mapnikのocciプラグインのビルド

は、私が最初にやったことだ:

git clone https://github.com/mapnik/mapnik --depth 5 
cd mapnik 
git submodule update --init 

これを実行した後、私が使用したPostGISプラグインを構築することができ:

python scons/scons.py INPUT_PLUGINS='postgis' 

結果postgis.inputファイルプラグイン/入力ディレクトリで利用可能でした。

私は、プラグイン/入力ディレクトリ、zip-installed oracle instantclient 11.2.0.4.0のバージョンにocciプラグインをコピーしました(rpmインストールでは私にインクルードフォルダが与えられなかったり、または.hファイル)、編集したSConstructファイルとプラグインに次の行を追加したオブジェクト:

'occi':{'default':False,'path':'OCCI','inc':'occi.h','lib':'clntsh','lang':'C++'}, 

私は、config.pyファイルを編集し、これらを追加しました:

OCCI_INCLUDES = '/usr/lib/oracle/10.2.0.3/client/include' 
OCCI_LIBS = '/usr/lib/oracle/10.2.0.3/client' 

はまた、私はこの行を変更しました:

私は10.2.0.3バージョンが、11.2.0.4.0を使用していないよ

export ORACLE_HOME=/usr/lib/oracle/10.2.0.3/client 
export PATH=$ORACLE_HOME:$PATH 
export LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.3/client 

注:

PathVariable('OCCI_LIBS', 'Search path for OCCI library files', '/usr/lib/oracle/10.2.0.3/client', PathVariable.PathAccept), 

PathVariable('OCCI_LIBS', 'Search path for OCCI library files', '/usr/lib/oracle/10.2.0.3/client' + LIBDIR_SCHEMA_DEFAULT, PathVariable.PathAccept), 

は、それから私は、へ〜/ .bashrcにこれらの3行を追加しました私はちょうどその方法は、デフォルトのフォルダにも、デフォルトのフォルダを変更することができますが、私はそれを残したので、デフォルトのフォルダであることを確認できませんでした。

それから私は、入力された:

source ~/.bashrc 

をしてビルドを実行するためにMAPNIKフォルダに行ってきました:

python scons/scons.py INPUT_PLUGINS='occi' 

それは言う:

Checking for C++ library clntsh... yes 

しかし、それは言っていません。

Checking for C++ library ociei... yes 

githubのmapnikのwikiのocciページが示唆しているように。

私が得たエラー:

In file included from plugins/input/occi/occi_datasource.cpp:24:0: 
plugins/input/occi/occi_featureset.hpp:55:43: error: ‘geometry_type’ in namespace ‘mapnik’ does not name a type 
         const mapnik::geometry_type::types& geom_type, 
            ^
plugins/input/occi/occi_featureset.hpp:55:63: error: expected unqualified-id before ‘&’ token 
         const mapnik::geometry_type::types& geom_type, 
                 ^
plugins/input/occi/occi_featureset.hpp:55:63: error: expected ‘)’ before ‘&’ token 
plugins/input/occi/occi_featureset.hpp:55:63: error: expected ‘;’ at end of member declaration 
plugins/input/occi/occi_featureset.hpp:55:65: error: ‘geom_type’ does not name a type 
         const mapnik::geometry_type::types& geom_type, 
                  ^
plugins/input/occi/occi_featureset.hpp:61:38: error: ‘mapnik::geometry_type’ has not been declared 
    void fill_geometry_type (mapnik::geometry_type* geom, 
           ^
scons: *** [plugins/input/occi/occi_datasource.os] Error 1 
scons: building terminated because of errors. 

Tileliveブリッジは、OCCIのプラグインを持っているMAPNIKのインストールが付属していない、と彼らはOCCIサポートを削除する前のバージョンでは、単にコンパイルされません。

私は行方不明を教えてもらえますか?事前にすべてのヘルプのための

おかげで

答えて

0

OCCIプラグインもMAPNIKのそのバージョンでは動作しないことが判明します。Oracle Spatial Database Connectivityを取得したい場合は、OGRプラグインを使用する必要があります。

関連する問題