Fedora 21에서 mrsid DSDK를 사용하여 gdal 빌드

Fedora 21에서 mrsid DSDK를 사용하여 gdal 빌드

gdal이 mrsid 파일을 읽을 수 있도록 mrsid DSDK를 사용하여 소스에서 gdal 1.11.2를 빌드하려고 합니다. 필요한 모든 작업을 수행했고 make를 실행한 후 다음 오류 메시지가 표시됩니다.

GNUmakefile:46: recipe for target 'gdalinfo' failed
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory '/home/fedora/Downloads/gdal-1.11.2/apps'
GNUmakefile:69: recipe for target 'apps-target' failed
make: *** [apps-target] Error 2

그러니 같은 문제가 있는 사람이 있으면 저를 도와주세요. 저는 거의 일주일 동안 이 문제를 해결하려고 여기저기 검색해 왔습니다.

업데이트: MrSID DSDK에 문제가 있는 것 같습니다.

/bin/ld: warning: libtbb.so.2, needed by /home/fedora/Downloads/MrSID_DSDK-9.1.0.4045-linux.x86-64.gcc41/Raster_DSDK/lib/libltidsdk.so, not found (try using -rpath or -rpath-link)
/home/fedora/Downloads/MrSID_DSDK-9.1.0.4045-linux.x86-64.gcc41/Raster_DSDK/lib/libltidsdk.so: undefined reference to `tbb::pipeline::pipeline()'
/home/fedora/Downloads/MrSID_DSDK-9.1.0.4045-linux.x86-64.gcc41/Raster_DSDK/lib/libltidsdk.so: undefined reference to `tbb::pipeline::add_filter(tbb::filter&)'
/home/fedora/Downloads/MrSID_DSDK-9.1.0.4045-linux.x86-64.gcc41/Raster_DSDK/lib/libltidsdk.so: undefined reference to `tbb::pipeline::run(unsigned long)'
/home/fedora/Downloads/MrSID_DSDK-9.1.0.4045-linux.x86-64.gcc41/Raster_DSDK/lib/libltidsdk.so: undefined reference to `typeinfo for tbb::filter'
/home/fedora/Downloads/MrSID_DSDK-9.1.0.4045-linux.x86-64.gcc41/Raster_DSDK/lib/libltidsdk.so: undefined reference to `tbb::filter::~filter()'
/home/fedora/Downloads/MrSID_DSDK-9.1.0.4045-linux.x86-64.gcc41/Raster_DSDK/lib/libltidsdk.so: undefined reference to `tbb::task_scheduler_init::default_num_threads()'
/home/fedora/Downloads/MrSID_DSDK-9.1.0.4045-linux.x86-64.gcc41/Raster_DSDK/lib/libltidsdk.so: undefined reference to `tbb::pipeline::~pipeline()'
collect2: error: ld returned 1 exit status
GNUmakefile:46: recipe for target 'gdalinfo' failed
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory '/home/fedora/Downloads/gdal-1.11.2/apps'
GNUmakefile:69: recipe for target 'apps-target' failed
make: *** [apps-target] Error 2

답변1

이전에도 같은 문제가 발생했습니다. 내 설정에 다음 줄을 추가하여 이 문제를 해결할 수 있었습니다.

export LD_LIBRARY_PATH=/path/to/Raster_DSDK/lib:$LD_LIBRARY_PATH

관련된:https://gist.github.com/oeon/6527004(내 직업은 아니고 그냥 도움이 되는 사람)

답변2

tbb 라이브러리가 누락되었습니다.

tbb.i686 : The Threading Building Blocks library abstracts low-level threading
         : details
tbb-devel.i686 : The Threading Building Blocks C++ headers and shared
               : development libraries
tbb-doc.i686 : The Threading Building Blocks documentation

노력하다

apt-get install libtbb-dev

관련 정보