Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译GDAL,执行中出现recipe for target 'autotest/cpp/libvsipreload.so' failed问题,如何解决 #18

Open
123pu opened this issue Feb 15, 2023 · 1 comment
Labels
🐛 Bug Something isn't working

Comments

@123pu
Copy link

123pu commented Feb 15, 2023

系统环境介绍:
ubuntu18.04, cuda11.1, cudnn8.8.0,python3.7.6, gcc7.5.0
按luojianet官网安装流程进行编译安装。
在安装过程中,进行到此流程。
编译GDAL, 执行bash build_gdal.sh出现如下错误:
[ 93%] Built target gnmanalyse
[ 93%] Building CXX object apps/CMakeFiles/gnmmanage.dir/gnmmanage.cpp.o
[ 93%] Linking CXX executable gnmmanage
[ 93%] Built target gnmmanage
[ 93%] Building CXX object apps/CMakeFiles/test_ogrsf.dir/test_ogrsf.cpp.o
[ 93%] Linking CXX executable test_ogrsf
[ 93%] Built target test_ogrsf
[ 93%] Building CXX object autotest/cpp/CMakeFiles/vsipreload.dir///port/vsipreload.cpp.o
[ 93%] Linking CXX shared module libvsipreload.so
CMakeFiles/vsipreload.dir///port/vsipreload.cpp.o: In function myinit()': vsipreload.cpp:(.text+0x92): undefined reference to dlsym'
vsipreload.cpp:(.text+0xac): undefined reference to dlsym' vsipreload.cpp:(.text+0xc6): undefined reference to dlsym'
vsipreload.cpp:(.text+0xe0): undefined reference to dlsym' vsipreload.cpp:(.text+0xfa): undefined reference to dlsym'
CMakeFiles/vsipreload.dir///port/vsipreload.cpp.o:vsipreload.cpp:(.text+0x114): more undefined references to `dlsym' follow
collect2: error: ld returned 1 exit status
autotest/cpp/CMakeFiles/vsipreload.dir/build.make:97: recipe for target 'autotest/cpp/libvsipreload.so' failed
make[2]: *** [autotest/cpp/libvsipreload.so] Error 1
CMakeFiles/Makefile2:9406: recipe for target 'autotest/cpp/CMakeFiles/vsipreload.dir/all' failed
make[1]: *** [autotest/cpp/CMakeFiles/vsipreload.dir/all] Error 2
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2

不知道什么原因造成的,希望luojianet团队人员帮忙解答一下,谢谢!!!

@123pu 123pu added the 🐛 Bug Something isn't working label Feb 15, 2023
@ArkZero35
Copy link

系统环境介绍: ubuntu18.04, cuda11.1, cudnn8.8.0,python3.7.6, gcc7.5.0 按luojianet官网安装流程进行编译安装。 在安装过程中,进行到此流程。 编译GDAL, 执行bash build_gdal.sh出现如下错误: [ 93%] Built target gnmanalyse [ 93%] Building CXX object apps/CMakeFiles/gnmmanage.dir/gnmmanage.cpp.o [ 93%] Linking CXX executable gnmmanage [ 93%] Built target gnmmanage [ 93%] Building CXX object apps/CMakeFiles/test_ogrsf.dir/test_ogrsf.cpp.o [ 93%] Linking CXX executable test_ogrsf [ 93%] Built target test_ogrsf [ 93%] Building CXX object autotest/cpp/CMakeFiles/vsipreload.dir///port/vsipreload.cpp.o [ 93%] Linking CXX shared module libvsipreload.so CMakeFiles/vsipreload.dir///port/vsipreload.cpp.o: In function myinit()': vsipreload.cpp:(.text+0x92): undefined reference to dlsym' vsipreload.cpp:(.text+0xac): undefined reference to dlsym' vsipreload.cpp:(.text+0xc6): undefined reference to dlsym' vsipreload.cpp:(.text+0xe0): undefined reference to dlsym' vsipreload.cpp:(.text+0xfa): undefined reference to dlsym' CMakeFiles/vsipreload.dir///port/vsipreload.cpp.o:vsipreload.cpp:(.text+0x114): more undefined references to `dlsym' follow collect2: error: ld returned 1 exit status autotest/cpp/CMakeFiles/vsipreload.dir/build.make:97: recipe for target 'autotest/cpp/libvsipreload.so' failed make[2]: *** [autotest/cpp/libvsipreload.so] Error 1 CMakeFiles/Makefile2:9406: recipe for target 'autotest/cpp/CMakeFiles/vsipreload.dir/all' failed make[1]: *** [autotest/cpp/CMakeFiles/vsipreload.dir/all] Error 2 Makefile:145: recipe for target 'all' failed make: *** [all] Error 2

不知道什么原因造成的,希望luojianet团队人员帮忙解答一下,谢谢!!!

你好先生,请问你解决这个问题了吗,方便告诉我不

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants