Code Monkey home page Code Monkey logo

featuretracker's People

Contributors

b51 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

featuretracker's Issues

Build & make errors

Hi~
I want to try your demo, but after I tried to build it, some errors occurred:

After I use make -j4, it occurred:

Scanning dependencies of target FeatureTracker
[ 12%] Building CXX object CMakeFiles/FeatureTracker.dir/src/ORBFeatureMatcher.cc.o
[ 25%] Building CXX object CMakeFiles/FeatureTracker.dir/src/SuperPointFeatureTracker.cc.o
[ 50%] Building CXX object CMakeFiles/FeatureTracker.dir/src/ORBFeatureDetector.cc.o
[ 50%] Building CXX object CMakeFiles/FeatureTracker.dir/src/main_track.cc.o
[ 62%] Building CXX object CMakeFiles/FeatureTracker.dir/src/SuperPointFeatureDetector.cc.o
[ 75%] Building CXX object CMakeFiles/FeatureTracker.dir/src/ORBFeatureTracker.cc.o
[ 87%] Building CXX object CMakeFiles/FeatureTracker.dir/src/SuperPointFeatureMatcher.cc.o
[100%] Linking CXX executable FeatureTracker
CMakeFiles/FeatureTracker.dir/src/main_track.cc.o:In function ‘_GLOBAL__sub_I_main_track.cc’:
main_track.cc:(.text.startup+0x1194):undefined reference to ‘google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)’
main_track.cc:(.text.startup+0x121e):undefined reference to ‘google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)’
main_track.cc:(.text.startup+0x12d6):undefined reference to ‘google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)’
CMakeFiles/FeatureTracker.dir/src/ORBFeatureDetector.cc.o:In function ‘std::string* google::MakeCheckOpString<int, int>(int const&, int const&, char const*)’:
ORBFeatureDetector.cc:(.text._ZN6google17MakeCheckOpStringIiiEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIiiEEPSsRKT_RKT0_PKc]+0x50):undefined reference to ‘google::base::CheckOpMessageBuilder::NewString()’
CMakeFiles/FeatureTracker.dir/src/ORBFeatureDetector.cc.o:In function ‘std::string* google::MakeCheckOpString<float, int>(float const&, int const&, char const*)’:
ORBFeatureDetector.cc:(.text._ZN6google17MakeCheckOpStringIfiEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIfiEEPSsRKT_RKT0_PKc]+0x56):undefined reference to ‘google::base::CheckOpMessageBuilder::NewString()’
CMakeFiles/FeatureTracker.dir/src/ORBFeatureMatcher.cc.o:In function ‘std::string* google::MakeCheckOpString<float, double>(float const&, double const&, char const*)’:
ORBFeatureMatcher.cc:(.text._ZN6google17MakeCheckOpStringIfdEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIfdEEPSsRKT_RKT0_PKc]+0x58):undefined reference to ‘google::base::CheckOpMessageBuilder::NewString()’
CMakeFiles/FeatureTracker.dir/src/SuperPointFeatureDetector.cc.o:In function ‘_GLOBAL__sub_I_SuperPointFeatureDetector.cc’:
SuperPointFeatureDetector.cc:(.text.startup+0x10e):undefined reference to ‘google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)’
CMakeFiles/FeatureTracker.dir/src/SuperPointFeatureTracker.cc.o:In function ‘std::string* google::MakeCheckOpString<FeatureDescriptor<float>*, FeatureDescriptor<float>*>(FeatureDescriptor<float>* const&, FeatureDescriptor<float>* const&, char const*)’:
SuperPointFeatureTracker.cc:(.text._ZN6google17MakeCheckOpStringIP17FeatureDescriptorIfES3_EEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIP17FeatureDescriptorIfES3_EEPSsRKT_RKT0_PKc]+0x51):undefined reference to ‘google::base::CheckOpMessageBuilder::NewString()’
collect2: error: ld returned 1 exit status
CMakeFiles/FeatureTracker.dir/build.make:312: recipe for target 'FeatureTracker' failed
make[2]: *** [FeatureTracker] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/FeatureTracker.dir/all' failed
make[1]: *** [CMakeFiles/FeatureTracker.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I thought if I missed the libgflags and libglog libraries? But cmake .. didn't shown any error.
And afther I use sudo apt-get install libgoogle-glog-dev & sudo apt-get install libgflags-dev with add target_link_libraries(... libgflags.a libglog.a) to CMakeLists.txt. It still occurred errors.

Then I try to build and install gflags and glog from the Github official source code repository, I add FindGflags.cmake & FindGlog.cmake to project and add these codes to CMakeLists.txt:

find_package(gflags REQUIRED)
find_package(glog REQUIRED)

or

list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
find_package(Gflags)
find_package(Glog)
include_directories(${GFLAGS_INCLUDE_DIRS} ${GLOG_INCLUDE_DIRS})
LIST(APPEND ALL_TARGET_LIBRARIES ${GLOG_LIBRARIES} ${GFLAGS_INCLUDE_DIRS})

...It still occurred these errors. I am very confused and could you please help me to know what's wrong with this problem?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.