Ubuntu12.04 LTS中黑表1.6.7的生成错误

Ubuntu12.04 LTS中黑表1.6.7的生成错误,ubuntu,fpic,Ubuntu,Fpic,我试图在Ubuntu12.04 LTS上从源代码构建图像程序darktable 1.6.7。我按照指示去做。有一个大约85%的错误,我不知道如何解释: Linking C shared module libgrain.so /usr/bin/ld: CMakeFiles/grain.dir/introspection_grain.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared

我试图在Ubuntu12.04 LTS上从源代码构建图像程序darktable 1.6.7。我按照指示去做。有一个大约85%的错误,我不知道如何解释:

Linking C shared module libgrain.so
/usr/bin/ld: CMakeFiles/grain.dir/introspection_grain.c.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
CMakeFiles/grain.dir/introspection_grain.c.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [src/iop/libgrain.so] Error 1
make[1]: *** [src/iop/CMakeFiles/grain.dir/all] Error 2

我不知道在哪里通过它所建议的
-fPIC
。我还读到,
--enable shared
应该传递给
/configure
,但在这种情况下,没有
/configure
文件,我不知道这里的可比步骤是什么。如能帮助您理解并解决此错误,我们将不胜感激

我想出来了,这很简单。我没有使用我链接到的黑表站点上建议的cmake调用,而是使用ccmake来配置和生成。它会自动在需要的位置填入C标志
-fPIC
。然后它建造得非常完美