-
-
Notifications
You must be signed in to change notification settings - Fork 598
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
Build issues #224
Comments
Hi, |
Hello, I'm also having trouble in building this project. I'm looking forward to your reply soon. Many thanks for your help. I had already installed boost 1.67 and used CMAKE-gui to instead of : Selecting Windows SDK version 10.0.17134.0 to target Windows 6.1.7601. but when i run the project in VS2017, it has error like: Severity Code Description Project File Line Suppression State |
@zsw667291 It seems like you're using the CMake Makefile generator with Visual Studio. I don't have any experience with that. It does look like a boost problem, something with linking, maybe it's not linking to the boost libraries, or to an incompatible build. You could always check the compiler/linker command-line (perhaps with Note that you only need boost for the example app, not for the library. You can integrate eos into your own apps without having to use boost or OpenCV. |
Hi, I did a new build of OpenCV, in a new system, and everything went fine. I think the main difference is that I was before trying to directly reference the opencv local build directory with some flags passed to cmake, while now I actually installed OpenCV to the system. Besides "sudo make install", I did "sudo ldconfig", which was something I did not know about before. Summarizing, the build issues were related with OpenCV not being properly installed. Cmake was something I didn't use before and I had to take some time to familiarize with it. My fault. Thanks again for your help Patrik. |
Hi @davidmoseler, |
Hello. I'm having trouble to build eos for a while. Can you give me a light in how to proceed to solve this kind of issue?
I followed the instructions exactly like that:
git clone --recursive https://github.com/patrikhuber/eos.git
mkdir build && cd build
cmake -G "Unix Makefiles" ../eos -DCMAKE_INSTALL_PREFIX=../install/
make
My first problem was with CV_BGR2BGRA ("undefined reference"). After searching a little bit, I found issue patrikhuber/4dface#40 of another repo and tried replacing this constant with 0. The installation went forward. Then it stopped with undefined reference to 'cv::imread'. I compiled and installed sucessfully opencv from the latest release. The full error trace is bellow:
fit-model.cpp:(.text+0x9e2): undefined reference to
cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' fit-model.cpp:(.text+0xfc0): undefined reference to
cv::rectangle(cv::InputOutputArray const&, cv::Point, cv::Point_, cv::Scalar_ const&, int, int, int)'fit-model.cpp:(.text+0x1409): undefined reference to
cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)' fit-model.cpp:(.text+0x1583): undefined reference to
cv::imwrite(std::_cxx11::basic_string<char, std::char_traits, std::allocator > const&, cv::InputArray const&, std::vector<int, std::allocator > const&)'CMakeFiles/fit-model.dir/fit-model.cpp.o: In function
eos::render::draw_wireframe(cv::Mat, eos::core::Mesh const&, glm::tmat4x4<float, (glm::precision)0>, glm::tmat4x4<float, (glm::precision)0>, glm::tvec4<float, (glm::precision)0>, cv::Scalar_<double>)': fit-model.cpp:(.text._ZN3eos6render14draw_wireframeEN2cv3MatERKNS_4core4MeshEN3glm7tmat4x4IfLNS7_9precisionE0EEESA_NS7_5tvec4IfLS9_0EEENS1_7Scalar_IdEE[_ZN3eos6render14draw_wireframeEN2cv3MatERKNS_4core4MeshEN3glm7tmat4x4IfLNS7_9precisionE0EEESA_NS7_5tvec4IfLS9_0EEENS1_7Scalar_IdEE]+0x4f2): undefined reference to
cv::line(cv::InputOutputArray const&, cv::Point, cv::Point, cv::Scalar const&, int, int, int)'fit-model.cpp:(.text.ZN3eos6render14draw_wireframeEN2cv3MatERKNS_4core4MeshEN3glm7tmat4x4IfLNS7_9precisionE0EEESA_NS7_5tvec4IfLS9_0EEENS1_7Scalar_IdEE[ZN3eos6render14draw_wireframeEN2cv3MatERKNS_4core4MeshEN3glm7tmat4x4IfLNS7_9precisionE0EEESA_NS7_5tvec4IfLS9_0EEENS1_7Scalar_IdEE]+0x59d): undefined reference to
cv::line(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)' fit-model.cpp:(.text._ZN3eos6render14draw_wireframeEN2cv3MatERKNS_4core4MeshEN3glm7tmat4x4IfLNS7_9precisionE0EEESA_NS7_5tvec4IfLS9_0EEENS1_7Scalar_IdEE[_ZN3eos6render14draw_wireframeEN2cv3MatERKNS_4core4MeshEN3glm7tmat4x4IfLNS7_9precisionE0EEESA_NS7_5tvec4IfLS9_0EEENS1_7Scalar_IdEE]+0x648): undefined reference to
cv::line(cv::InputOutputArray const&, cv::Point, cv::Point, cv::Scalar const&, int, int, int)'collect2: error: ld returned 1 exit status
examples/CMakeFiles/fit-model.dir/build.make:98: recipe for target 'examples/fit-model' failed
make[2]: *** [examples/fit-model] Error 1
CMakeFiles/Makefile2:123: recipe for target 'examples/CMakeFiles/fit-model.dir/all' failed
make[1]: *** [examples/CMakeFiles/fit-model.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: