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

Problems installing #43

Open
Gregoriomartjim opened this issue Jul 24, 2017 · 7 comments
Open

Problems installing #43

Gregoriomartjim opened this issue Jul 24, 2017 · 7 comments

Comments

@Gregoriomartjim
Copy link

Hello i get this error while trying to install these libraries i hope you could helpme.

../SfM-Toy-Library-master/build$ make
Scanning dependencies of target SfMToyLibrary
[ 10%] Building CXX object SfMToyLib/CMakeFiles/SfMToyLibrary.dir/SfMCommon.cpp.o
[ 20%] Building CXX object SfMToyLib/CMakeFiles/SfMToyLibrary.dir/SfM.cpp.o
/.../SfM-Toy-Library-master/SfMToyLib/SfM.cpp: In member function ‘void sfmtoylib::SfM::saveCloudAndCamerasToPLY(const string&)’:
/.../SfM-Toy-Library-master/SfMToyLib/SfM.cpp:636:18: error: variable ‘std::ofstream ofs’ has initializer but incomplete type
ofstream ofs(prefix + "_points.ply");
^
/home/rafaga/Escritorio/Gregorio/SfM-Toy-Library-master/SfMToyLib/SfM.cpp:668:19: error: variable ‘std::ofstream ofsc’ has initializer but incomplete type
ofstream ofsc(prefix + "_cameras.ply");
^
SfMToyLib/CMakeFiles/SfMToyLibrary.dir/build.make:86:
'SfMToyLib/CMakeFiles/SfMToyLibrary.dir/SfM.cpp.o'
make[2]: *** [SfMToyLib/CMakeFiles/SfMToyLibrary.dir/SfM.cpp.o] Error 1
CMakeFiles/Makefile2:161: fallo en las instrucciones para el objetivo 'SfMToyLib/CMakeFiles/SfMToyLibrary.dir/all'
make[1]: *** [SfMToyLib/CMakeFiles/SfMToyLibrary.dir/all] Error 2
Makefile:83: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2

regards

@InomnipotentComedy
Copy link

Have you solved the problem? Now I face the same situation.

@atangger
Copy link

atangger commented Mar 5, 2018

you may add a line: #include<fstream> in the SfM.cpp and it will be fine.

@YuehChuan
Copy link

@atangger tricks work form me
ubuntu16.04.5
ROS kinetic
also you will get BOOST version error
boosttest

in SfmUnitTest.cpp raw 45 ' #define BOOST_TEST_EQUALS'
modified
BOOST_TEST to BOOST_TEST_MESSAGE

example
#define BOOST_TEST_EQUALS(a, b, e) BOOST_TEST_MESSAGE((((a) == (b)) || (std::abs((a) - (b)) < e)))

then compile 100%

@YuehChuan
Copy link

./build/SfMToyUI dataset/crazyhorse/
can run the demo but final result fail
visualize use meshlab
toy-result

@myhooo
Copy link

myhooo commented Mar 7, 2019

@YuehChuan hello,I am the same with you. And I change some other datasets, the result seems to be too sparse to recognize it, is there something wrong?

@gisnewbird
Copy link

Excuse me, I am failed in that:

----------------- Extract Features -----------------
[ INFO:0] Initialize OpenCL runtime...
----------- Create Feature Match Matrix ------------
----------- Find Baseline Triangulation ------------
---------- Find Views Homography Inliers -----------
Ceres Solver Report: Iterations: 82, Initial cost: 1.616005e+01, Final cost: 1.412893e+01, Termination: CONVERGENCE
------------------ Add More Views ------------------
Ceres Solver Report: Iterations: 205, Initial cost: 1.561731e+02, Final cost: 1.426369e+01, Termination: CONVERGENCE
OpenCV Error: Assertion failed (src.isContinuous() && (src.depth() == 5 || src.depth() == 6) && ((src.rows == 1 && src.channels() == 2) || src.cols*src.channels() == 2)) in undistortPoints, file /home/duke/Downloads/opencv-3.4.0/modules/imgproc/src/undistort.cpp, line 492
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/duke/Downloads/opencv-3.4.0/modules/imgproc/src/undistort.cpp:492: error: (-215) src.isContinuous() && (src.depth() == 5 || src.depth() == 6) && ((src.rows == 1 && src.channels() == 2) || src.cols*src.channels() == 2) in function undistortPoints

Aborted (core dumped)

But I do not know why.

@konahowler
Copy link

Hello,

i was able to get the demo running but i also got a very bad result. Did some one fixed it or have some ideas which settings in the ORB Detector can cause this problems?

Thanks in Advance

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

7 participants