-
Notifications
You must be signed in to change notification settings - Fork 35
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
Unresolved external symbol __imp_(...) #4
Comments
CMake Output:
|
I also having a similar issue while trying to build Pangolin according to the instructions.
etc |
Hello! It's a problem of a linker. It's been a while now since I've successfully built Pangolin and ORB-SLAM3, but as far as I remember you have to be really careful and make sure that every library is built "static", not "dll". |
|
Yes, you do. After you fix it, you might have the other issue, related to this stevenlovegrove/Pangolin#609 (comment) If this doesn't work, it's better to install Pangolin from source following official documentation: https://github.com/stevenlovegrove/Pangolin#on-windows If your employer doesn't ask you to build ORB-SLAM3 on Windows, I strongly suggest moving to Ubuntu. Even if they ask you to build on Windows, ask them why, and make sure there's really no other possibility to use Ubuntu. Believe me, that's a lot of pain building on Windows something which was not designed to. You'll have much more errors after you resolve this one :) |
Thanks @mascomen4, with changing HelloPangolin and all other projects to .lib static library, there's no any error but now when I'm building ORB_SLAM3, it is showing me the same all imp(function name) error. so I feel it has something to do with only when we creating .exe application file. Bdw I also included add_definitions(-DLIBPNG_STATIC) add_definitions(-DLIBJPEG_STATIC) in CMakeLists.txt as mentioned in here, but I guess it's not helpful to resolve this error. |
Hello! I'm trying to build mono_inertial_euroc, but I get the following error:
I'm using Windows 10 with VirtualBox.
Error LNK2019 unresolved external symbol __imp_strerror referenced in function png_image_begin_read_from_file mono_inertial_euroc C:\Users\ivan\Source\Repos\ORB-SLAM3forWindows\build\libpng16_static.lib(pngread.obj) 1
Error LNK2001 unresolved external symbol __imp_strerror mono_inertial_euroc C:\Users\ivan\Source\Repos\ORB-SLAM3forWindows\build\libpng16_static.lib(pngwrite.obj) 1
Error LNK2019 unresolved external symbol __imp_ferror referenced in function png_image_write_to_file mono_inertial_euroc C:\Users\ivan\Source\Repos\ORB-SLAM3forWindows\build\libpng16_static.lib(pngwrite.obj) 1
Error LNK2019 unresolved external symbol __imp_remove referenced in function png_image_write_to_file mono_inertial_euroc C:\Users\ivan\Source\Repos\ORB-SLAM3forWindows\build\libpng16_static.lib(pngwrite.obj) 1
Error LNK2019 unresolved external symbol __imp_atof referenced in function png_get_sCAL mono_inertial_euroc C:\Users\ivan\Source\Repos\ORB-SLAM3forWindows\build\libpng16_static.lib(pngget.obj) 1
Error LNK2019 unresolved external symbol __imp___stdio_common_vsscanf referenced in function sscanf mono_inertial_euroc C:\Users\ivan\Source\Repos\ORB-SLAM3forWindows\build\jpeg.lib(jmemmgr.obj) 1
Error LNK2001 unresolved external symbol __CxxFrameHandler4 mono_inertial_euroc C:\Users\ivan\Source\Repos\ORB-SLAM3forWindows\build\g2o.lib(property.obj) 1
Error LNK2001 unresolved external symbol __CxxFrameHandler4 mono_inertial_euroc C:\Users\ivan\Source\Repos\ORB-SLAM3forWindows\build\g2o.lib(optimization_algorithm_with_hessian.obj) 1
Error LNK2001 unresolved external symbol __CxxFrameHandler4 mono_inertial_euroc C:\Users\ivan\Source\Repos\ORB-SLAM3forWindows\build\g2o.lib(robust_kernel_factory.obj) 1
The text was updated successfully, but these errors were encountered: