-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
use kdevelop to run features_siftPutativeMatches,some error occur #1602
Comments
Hi, Can you check that the cmake variable is not empty by adding: |
I added message("STLPLUS Library string: ${STLPLUS_LIBRARY}") then the result is STLPLUS Library string: |
So the string seems to be empty.. This is not normal. As you see here the variable should be updated: openMVG/src/third_party/CMakeLists.txt Line 18 in 835f1e5
I don't know why this is happening on your system. |
I compile openMVG according to build.md. And then I compile the sample using kdevelop. |
I mean do you have the same error if you type |
I type cmake and make in the common line console, and then I get the same error. |
there is the result
|
@pmoulon can you tell me why this situation happened? I thought anout it for days but couldn't come up with an answer. |
It seems that here you have multiple errors, since TIFF and JPEF libraries are not found either.
|
|
Here you are good to go, the binary |
But why it doesn't work with kdevelop when I compile openMVG_sample_features_siftPutative alone |
Because KDevelop is certainly not following all the CMake generated build rules. according the CMake documentation
|
[ 50%] Building CXX object CMakeFiles/openMVG_sample_features_siftPutative.dir/siftmatch.cpp.o
[100%] Linking CXX executable openMVG_sample_features_siftPutative
CMakeFiles/openMVG_sample_features_siftPutative.dir/siftmatch.cpp.o: In function
main': /openMVG/src/openMVG_Samples/features_siftPutativeMatches/siftmatch.cpp:31: undefined reference to
stlplus::folder_up(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int)'/openMVG/src/openMVG_Samples/features_siftPutativeMatches/siftmatch.cpp:33: undefined reference to `stlplus::folder_up(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int)'
31and 33 row content are
string jpg_filenameL = stlplus::folder_up(string(THIS_SOURCE_DIR))
+ "/imageData/StanfordMobileVisualSearch/Ace_0.png";
string jpg_filenameR = stlplus::folder_up(string(THIS_SOURCE_DIR))
+ "/imageData/StanfordMobileVisualSearch/Ace_1.png";
The text was updated successfully, but these errors were encountered: