You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I download your package and run the build all script file, all the required packages are compiled successfully except the last PTAM, the following are the compile log output, it shows:
collect2: ld returned 1 exit status
make: *** [PTAM] Error 1"
Hope you can give me some suggestion to fix it. Thanks in advance~
PS:My system is Ubuntu 12.04 (64 bit), opencv 2.4.6.1 installed
Dear BeLioN,
I download your package and run the build all script file, all the required packages are compiled successfully except the last PTAM, the following are the compile log output, it shows:
collect2: ld returned 1 exit status
make: *** [PTAM] Error 1"
Hope you can give me some suggestion to fix it. Thanks in advance~
PS:My system is Ubuntu 12.04 (64 bit), opencv 2.4.6.1 installed
Press enter to compile PTAM
g++ main.cc -o main.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
/home/milton/bin/TooN/include/TooN/internal/objects.h:488:33: warning: ‘TooN::Zeros’ defined but not used [-Wunused-variable]
g++ GLWindow2.cc -o GLWindow2.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ GLWindowMenu.cc -o GLWindowMenu.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ VideoSource_Linux_OpenCV.cc -o VideoSource_Linux_OpenCV.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ System.cc -o System.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ ATANCamera.cc -o ATANCamera.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ KeyFrame.cc -o KeyFrame.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ MapPoint.cc -o MapPoint.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ Map.cc -o Map.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ SmallBlurryImage.cc -o SmallBlurryImage.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ ShiTomasi.cc -o ShiTomasi.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ HomographyInit.cc -o HomographyInit.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ MapMaker.cc -o MapMaker.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
MapMaker.cc: In member function ‘void MapMaker::ApplyGlobalTransformationToMap(TooN::SE3<>)’:
MapMaker.cc:408:9: warning: variable ‘so3Rot’ set but not used [-Wunused-but-set-variable]
/home/milton/bin/TooN/include/TooN/internal/operators.hh: In member function ‘TooN::SE3<> MapMaker::CalcPlaneAligner()’:
/home/milton/bin/TooN/include/TooN/internal/operators.hh:179:5: warning: ‘v3BestNormal.TooN::Internal::GenericVBase<3, double, 1, TooN::Internal::VectorAlloc<3, double> >::.TooN::Internal::VectorAlloc<3, double>::.TooN::Internal::StaticSizedAllocator<3, double>::.TooN::Internal::StackOrHeap<3, double, false>::my_data[2]’ may be used uninitialized in this function [-Wuninitialized]
MapMaker.cc:1046:13: note: ‘v3BestNormal.TooN::Internal::GenericVBase<3, double, 1, TooN::Internal::VectorAlloc<3, double> >::.TooN::Internal::VectorAlloc<3, double>::.TooN::Internal::StaticSizedAllocator<3, double>::.TooN::Internal::StackOrHeap<3, double, false>::my_data[2]’ was declared here
/home/milton/bin/TooN/include/TooN/internal/operators.hh:179:5: warning: ‘v3BestNormal.TooN::Internal::GenericVBase<3, double, 1, TooN::Internal::VectorAlloc<3, double> >::.TooN::Internal::VectorAlloc<3, double>::.TooN::Internal::StaticSizedAllocator<3, double>::.TooN::Internal::StackOrHeap<3, double, false>::my_data[1]’ may be used uninitialized in this function [-Wuninitialized]
MapMaker.cc:1046:13: note: ‘v3BestNormal.TooN::Internal::GenericVBase<3, double, 1, TooN::Internal::VectorAlloc<3, double> >::.TooN::Internal::VectorAlloc<3, double>::.TooN::Internal::StaticSizedAllocator<3, double>::.TooN::Internal::StackOrHeap<3, double, false>::my_data[1]’ was declared here
/home/milton/bin/TooN/include/TooN/internal/operators.hh:179:5: warning: ‘v3BestNormal.TooN::Internal::GenericVBase<3, double, 1, TooN::Internal::VectorAlloc<3, double> >::.TooN::Internal::VectorAlloc<3, double>::.TooN::Internal::StaticSizedAllocator<3, double>::.TooN::Internal::StackOrHeap<3, double, false>::my_data[0]’ may be used uninitialized in this function [-Wuninitialized]
MapMaker.cc:1046:13: note: ‘v3BestNormal.TooN::Internal::GenericVBase<3, double, 1, TooN::Internal::VectorAlloc<3, double> >::.TooN::Internal::VectorAlloc<3, double>::.TooN::Internal::StaticSizedAllocator<3, double>::.TooN::Internal::StackOrHeap<3, double, false>::my_data[0]’ was declared here
/home/milton/bin/TooN/include/TooN/internal/operators.hh:69:84: warning: ‘v3BestMean.TooN::Internal::GenericVBase<3, double, 1, TooN::Internal::VectorAlloc<3, double> >::.TooN::Internal::VectorAlloc<3, double>::.TooN::Internal::StaticSizedAllocator<3, double>::.TooN::Internal::StackOrHeap<3, double, false>::my_data[2]’ may be used uninitialized in this function [-Wuninitialized]
MapMaker.cc:1045:13: note: ‘v3BestMean.TooN::Internal::GenericVBase<3, double, 1, TooN::Internal::VectorAlloc<3, double> >::.TooN::Internal::VectorAlloc<3, double>::.TooN::Internal::StaticSizedAllocator<3, double>::.TooN::Internal::StackOrHeap<3, double, false>::my_data[2]’ was declared here
/home/milton/bin/TooN/include/TooN/internal/operators.hh:69:84: warning: ‘v3BestMean.TooN::Internal::GenericVBase<3, double, 1, TooN::Internal::VectorAlloc<3, double> >::.TooN::Internal::VectorAlloc<3, double>::.TooN::Internal::StaticSizedAllocator<3, double>::.TooN::Internal::StackOrHeap<3, double, false>::my_data[1]’ may be used uninitialized in this function [-Wuninitialized]
MapMaker.cc:1045:13: note: ‘v3BestMean.TooN::Internal::GenericVBase<3, double, 1, TooN::Internal::VectorAlloc<3, double> >::.TooN::Internal::VectorAlloc<3, double>::.TooN::Internal::StaticSizedAllocator<3, double>::.TooN::Internal::StackOrHeap<3, double, false>::my_data[1]’ was declared here
/home/milton/bin/TooN/include/TooN/internal/operators.hh:69:84: warning: ‘v3BestMean.TooN::Internal::GenericVBase<3, double, 1, TooN::Internal::VectorAlloc<3, double> >::.TooN::Internal::VectorAlloc<3, double>::.TooN::Internal::StaticSizedAllocator<3, double>::.TooN::Internal::StackOrHeap<3, double, false>::my_data[0]’ may be used uninitialized in this function [-Wuninitialized]
MapMaker.cc:1045:13: note: ‘v3BestMean.TooN::Internal::GenericVBase<3, double, 1, TooN::Internal::VectorAlloc<3, double> >::.TooN::Internal::VectorAlloc<3, double>::.TooN::Internal::StaticSizedAllocator<3, double>::.TooN::Internal::StackOrHeap<3, double, false>::my_data[0]’ was declared here
g++ Bundle.cc -o Bundle.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ PatchFinder.cc -o PatchFinder.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ Relocaliser.cc -o Relocaliser.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ MiniPatch.cc -o MiniPatch.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
MiniPatch.cc: In member function ‘bool MiniPatch::FindPatch(CVD::ImageRef&, CVD::BasicImage&, int, std::vectorCVD::ImageRef&, std::vector_)’:
MiniPatch.cc:40:12: warning: variable ‘irCenter’ set but not used [-Wunused-but-set-variable]
g++ MapViewer.cc -o MapViewer.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ ARDriver.cc -o ARDriver.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ EyeGame.cc -o EyeGame.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
g++ Tracker.cc -o Tracker.o -c -I /home/milton/bin/TooN/include/ -I /home/milton/bin/libcvd/include/ -I /home/milton/bin/gvars3/include/ -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
KeyFrame.h: In member function ‘void Tracker::TrackMap()’:
KeyFrame.h:43:8: warning: ‘m.Measurement::Source’ may be used uninitialized in this function [-Wuninitialized]
Tracker.cc:718:19: note: ‘m.Measurement::Source’ was declared here
g++ -o PTAM main.o GLWindow2.o GLWindowMenu.o VideoSource_Linux_OpenCV.o System.o ATANCamera.o KeyFrame.o MapPoint.o Map.o SmallBlurryImage.o ShiTomasi.o HomographyInit.o MapMaker.o Bundle.o PatchFinder.o Relocaliser.o MiniPatch.o MapViewer.o ARDriver.o EyeGame.o Tracker.o -lblas -llapack -lGVars3 -lcvd /usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_photo.so /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_superres.so /usr/local/lib/libopencv_ts.so /usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so -lglib-2.0 -pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lgstapp-0.10
Bundle.o: In function
GVars3::GV3::TypedMap<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::get_as_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': Bundle.cc:(.text._ZN6GVars33GV38TypedMapISsE13get_as_stringERKSs[GVars3::GV3::TypedMap<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::get_as_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)]+0x129): undefined reference to
GVars3::serialize::to_string(std::basic_string<char, std::char_traits, std::allocator > const&)'Bundle.o: In function
GVars3::ValueHolder<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, GVars3::IsAwkward<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::is>_ GVars3::GV3::register_new_gvar<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)': Bundle.cc:(.text._ZN6GVars33GV317register_new_gvarISsEEPNS_11ValueHolderIT_XsrNS_9IsAwkwardIS3_EE2isEEERKSsRKS3_i[GVars3::ValueHolder<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, GVars3::IsAwkward<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::is>\* GVars3::GV3::register_new_gvar<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)]+0x27e): undefined reference to
GVars3::serialize::to_string(std::basic_string<char, std::char_traits, std::allocator > const&)'collect2: ld returned 1 exit status
make: *** [PTAM] Error 1
Do not forget to add
TooN
export CFLAGS+=" -I /home/milton/bin/TooN/include/ "
export CPPFLAGS+=" -I /home/milton/bin/TooN/include/ "
libcvd
export CFLAGS+=" -I /home/milton/bin/libcvd/include/ "
export CPPFLAGS+=" -I /home/milton/bin/libcvd/include/ "
export LD_LIBRARY_PATH+=" -L /home/milton/bin/libcvd/lib/ "
gvars3
export CFLAGS+=" -I /home/milton/bin/gvars3/include/ "
export CPPFLAGS+=" -I /home/milton/bin/gvars3/include/ "
export LD_LIBRARY_PATH+=" -L /home/milton/bin/gvars3/lib/ "
milton@milton-ThinkPad-L440:~/PTAM-master$
The text was updated successfully, but these errors were encountered: