我正试图在Ubuntu16.04上安装(make -j4)步骤:
/usr/bin/ld: cannot find -lPostscript
/usr/bin/ld: cannot find -lPhysics
collect2: error: ld returned 1 exit status
CMakeFiles/Gate.dir/build.make:16728: recipe for target 'Gate' failed
make[2]: *** [Gate] Error 1
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/Gate.dir/all' failed
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2我怎样才能找到“附言”和“物理”?
发布于 2018-10-31 03:47:47
来自man ld:
-l namespec
--library=namespec
Add the archive or object file specified by namespec to the list of files to link.
This option may be used any number of times. If namespec is of the form :filename, ld
will search the library path for a file called filename, otherwise it will search the
library path for a file called libnamespec.a.
On systems which support shared libraries, ld may also search for files other than
libnamespec.a. Specifically, on ELF and SunOS systems, ld will search a directory for
a library called libnamespec.so before searching for one called libnamespec.a. (By
convention, a ".so" extension indicates a shared library.) Note that this behavior
does not apply to :filename, which always specifies a file called filename.所以,您需要的文件是libPhysics.so、libPhysics.a、libPostscript.so和libPostscript.a。
我在Ubuntu包存档中找不到这些文件,所以我想它们是打算通过前面的步骤来设置的。
检查您的工作(您输入的命令是否正确,命令是否有效?)在前面的步骤上。
https://askubuntu.com/questions/1088695
复制相似问题