关于在docker容器中编译libpag的问题 #2485
Replies: 1 comment
-
docker容器里面操作系统ubuntu22.04是可以的,云主机操作系统是TencentOS Server release 3.1 (Final)(兼容Centos8)。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我按照https://github.com/Tencent/libpag/blob/main/linux/README.md的步骤在腾讯云V100云主机的docker容器里面编译libpag,发现在最后一步那里报错:
[root@50b5019275f6 linux]# cmake --build ./build -- -j 12
[ 50%] Linking CXX executable pag-linux
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
__cxa_init_primary_exception@CXXABI_1.3.11' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::basic_istream<char, std::char_traits >& std::getline<char, std::char_traits, std::allocator >(std::basic_istream<char, std::char_traits >&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&)@GLIBCXX_3.4.21'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)@GLIBCXX_3.4.21' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::_V2::error_category::default_error_condition(int) const@GLIBCXX_3.4.21'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::_V2::error_category::equivalent(std::error_code const&, int) const@GLIBCXX_3.4.21' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
operator new(unsigned long, std::align_val_t)@CXXABI_1.3.11' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::_V2::error_category::equivalent(int, std::error_condition const&) const@GLIBCXX_3.4.21'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()@GLIBCXX_3.4.21' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::_V2::error_category::~error_category()@GLIBCXX_3.4.21'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::logic_error::logic_error(std::logic_error const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
__cxa_throw_bad_array_new_length@CXXABI_1.3.8'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::__atomic_futex_unsigned_base::_M_futex_notify_all(unsigned int*)@GLIBCXX_3.4.21' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
operator delete(void*, unsigned long, std::align_val_t)@CXXABI_1.3.11'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >::basic_istringstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
typeinfo for std::_V2::error_category@GLIBCXX_3.4.21'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)@GLIBCXX_3.4.21' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
operator delete[](void*, unsigned long)@CXXABI_1.3.9'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()@GLIBCXX_3.4.21' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::str() const@GLIBCXX_3.4.21'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::__cxx11::basic_istringstream<char, std::char_traits, std::allocator >::~basic_istringstream()@GLIBCXX_3.4.21'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::logic_error::logic_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long, std::ratio<1l, 1l> >, std::chrono::duration<long, std::ratio<1l, 1000000000l> >)@GLIBCXX_3.4.21'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libEGL.so: undefined reference to
operator delete(void*, unsigned long)@CXXABI_1.3.9' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::_V2::system_category()@GLIBCXX_3.4.21'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::_V2::error_category::_M_message[abi:cxx11](int) const@GLIBCXX_3.4.21' /opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to
std::__exception_ptr::exception_ptr::exception_ptr(void*)@CXXABI_1.3.11'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: /home/libpag/linux/vendor/swiftshader/linux/x64/libGLESv2.so: undefined reference to `std::_V2::generic_category()@GLIBCXX_3.4.21'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/pag-linux.dir/build.make:101: pag-linux] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/pag-linux.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
请问这是与哪块有关的呢?谢谢。
Beta Was this translation helpful? Give feedback.
All reactions