libMagick++-7.a(Magick___lib_libMagick___7_Q16HDRI_la-Blob.o): relocation R_X86_64_32S against `vtable for Magick::Blob' can not be used when making a shared object; recompile with -fPIC
在进行编译的时候往往会出现如下情况:
libMagick++-7.a(Magick___lib_libMagick___7_Q16HDRI_la-Blob.o): relocation R_X86_64_32S against `vtable for Magick::Blob' can not be used when making a shared object; recompile with -fPIC
build64_release/ocr_alg/libs/libMagick++-7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
这里需要对magick++的源码重新进行编译,并在编译的过程中加入-fPIC的选项
具体操作如下;
1. 在当前magick++目录执行如下代码:
./configure --prefix=/usr/local/magick++7.0.1 CXXFLAGS=-fPIC LDFLAGS=-fPIC
--prefix= 用于指定最终所编译的库的路径
2. make
3. make install
注意:上述的这些操作最好都在root权限下执行!
在进行编译的时候往往会出现如下情况:
libMagick++-7.a(Magick___lib_libMagick___7_Q16HDRI_la-Blob.o): relocation R_X86_64_32S against `vtable for Magick::Blob' can not be used when making a shared object; recompile with -fPIC
build64_release/ocr_alg/libs/libMagick++-7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
这里需要对magick++的源码重新进行编译,并在编译的过程中加入-fPIC的选项
具体操作如下;
1. 在当前magick++目录执行如下代码:
./configure --prefix=/usr/local/magick++7.0.1 CXXFLAGS=-fPIC LDFLAGS=-fPIC
--prefix= 用于指定最终所编译的库的路径
2. make
3. make install
注意:上述的这些操作最好都在root权限下执行!