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

编译到task7卡住了,不知道怎么修复 #12

Open
Benson8090 opened this issue Jun 3, 2021 · 1 comment
Open

编译到task7卡住了,不知道怎么修复 #12

Benson8090 opened this issue Jun 3, 2021 · 1 comment

Comments

@Benson8090
Copy link

[ 98%] Linking CXX executable task7_texturing
/usr/bin/ld: ../../texturing/libtexturing.a(texture_atlas.cpp.o): in function TextureAtlas::TextureAtlas(unsigned int)': texture_atlas.cpp:(.text+0x186): warning: the use of tmpnam' is dangerous, better use mkstemp' /usr/bin/ld: ../../texturing/libtexturing.a(generate_texture_views.cpp.o): in function tex::from_nvm_scene(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<TextureView, std::allocator >*)':
generate_texture_views.cpp:(.text+0x1891): undefined reference to core::load_nvm_bundle(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<core::NVMCameraInfo, std::allocator<core::NVMCameraInfo> >*)' /usr/bin/ld: ../../texturing/libtexturing.a(generate_texture_views.cpp.o): in function core::Scene::create(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)':
generate_texture_views.cpp:(.text._ZN4core5Scene6createERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN4core5Scene6createERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x72): undefined reference to `core::Scene::load_scene(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [examples/task7/CMakeFiles/task7_texturing.dir/build.make:111: examples/task7/task7_texturing] Error 1
make[1]: *** [CMakeFiles/Makefile2:1146: examples/task7/CMakeFiles/task7_texturing.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

@Benson8090 Benson8090 changed the title 编译到task7卡主了,不知道怎么修复 编译到task7卡住了,不知道怎么修复 Jun 3, 2021
@Liuqibaa
Copy link

task7 中的 CMakeLists.txt
文件中的 “target_link_libraries(task7_texturing mvs util core texturing coldet mrf gco)” 改为
“target_link_libraries(task7_texturing mvs util texturing core coldet mrf gco)” 方可编译通过,即调
换 core texturing 的顺序即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants