我想在Linux中建立一个符号链接.我写了这个bash命令,其中第一个路径是我想要链接到的文件夹,第二个路径是编译源.
ln -s '+basebuild+'/IpDome-kernel/kernel /home/build/sandbox/gen2/basebuild/IpDome-kernel/kernal
Run Code Online (Sandbox Code Playgroud)
它是否正确?
是否有任何linux命令可以从Bash脚本调用,该脚本将以树的形式打印目录结构,例如,
folder1
a.txt
b.txt
folder2
folder3
Run Code Online (Sandbox Code Playgroud) 如何让CMake将可执行文件链接到不在同一CMake项目中构建的外部共享库?
只是做target_link_libraries(GLBall ${CMAKE_BINARY_DIR}/res/mylib.so)了错误
make[2]: *** No rule to make target `res/mylib.so', needed by `GLBall'. Stop.
make[1]: *** [CMakeFiles/GLBall.dir/all] Error 2
make: *** [all] Error 2
(GLBall is the executable)
Run Code Online (Sandbox Code Playgroud)
在我将库复制到二进制目录后bin/res.
我试过用 find_library(RESULT mylib.so PATHS ${CMAKE_BINARY_DIR}/res)
哪个失败了RESULT-NOTFOUND.