{"action":"created","issue":{"url":"https://api.github.com/repos/libigl/libigl/issues/412","repository_url":"https://api.github.com/repos/libigl/libigl","labels_url":"https://api.github.com/repos/libigl/libigl/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/libigl/libigl/issues/412/comments","events_url":"https://api.github.com/repos/libigl/libigl/issues/412/events","html_url":"https://github.com/libigl/libigl/issues/412","id":193815782,"number":412,"title":"Unable to compile examples","user":{"login":"Catrexis","id":24414997,"avatar_url":"https://avatars.githubusercontent.com/u/24414997?v=3","gravatar_id":"","url":"https://api.github.com/users/Catrexis","html_url":"https://github.com/Catrexis","followers_url":"https://api.github.com/users/Catrexis/followers","following_url":"https://api.github.com/users/Catrexis/following{/other_user}","gists_url":"https://api.github.com/users/Catrexis/gists{/gist_id}","starred_url":"https://api.github.com/users/Catrexis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catrexis/subscriptions","organizations_url":"https://api.github.com/users/Catrexis/orgs","repos_url":"https://api.github.com/users/Catrexis/repos","events_url":"https://api.github.com/users/Catrexis/events{/privacy}","received_events_url":"https://api.github.com/users/Catrexis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-06T16:19:07Z","updated_at":"2016-12-07T09:04:01Z","closed_at":null,"body":"Hey =)\r\ni'am using linux and want to build the libigl examples... So i followed the tutorial instructions:\r\n\r\n`git clone --recursive https://github.com/libigl/libigl.git`\r\n\r\n```\r\ncd tutorial\r\nmkdir build\r\ncd build\r\ncmake -DCMAKE_BUILD_TYPE=Release ../\r\nmake\r\n```\r\n\r\nwhen I execute the \"make\" command, I get the first error in qslim_optimal_collapse_edge_callbacks.cpp\r\n\"isinf(...)\" is not defined. I solved it by changing it to \"std::isinf(...)\"\r\n\r\nnow i typed \"make\" again and it compiles longer as in the first try but stops at the 2nd example:\r\n\r\n```\r\n[ 86%] Linking CXX executable ../102_DrawMesh_bin\r\n../libigl/libiglcgal.a(outer_hull.cpp.o): In function `void igl::remove_unreferenced<Eigen::Matrix<CGAL::Lazy_exact_nt<CGAL::Gmpq>, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<CGAL::Lazy_exact_nt<CGAL::Gmpq>, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, 1, 0, -1, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<CGAL::Lazy_exact_nt<CGAL::Gmpq>, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<CGAL::Lazy_exact_nt<CGAL::Gmpq>, -1, -1, 0, -1, -1> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&)':\r\nouter_hull.cpp:(.text._ZN3igl19remove_unreferencedIN5Eigen6MatrixIN4CGAL13Lazy_exact_ntINS3_4GmpqEEELin1ELin1ELi0ELin1ELin1EEENS2_IiLin1ELin1ELi0ELin1ELin1EEES7_S8_NS2_IiLin1ELi1ELi0ELin1ELi1EEEEEvRKNS1_15PlainObjectBaseIT_EERKNSA_IT0_EERNSA_IT1_EERNSA_IT2_EERNSA_IT3_EE[_ZN3igl19remove_unreferencedIN5Eigen6MatrixIN4CGAL13Lazy_exact_ntINS3_4GmpqEEELin1ELin1ELi0ELin1ELin1EEENS2_IiLin1ELin1ELi0ELin1ELin1EEES7_S8_NS2_IiLin1ELi1ELi0ELin1ELi1EEEEEvRKNS1_15PlainObjectBaseIT_EERKNSA_IT0_EERNSA_IT1_EERNSA_IT2_EERNSA_IT3_EE]+0x231): undefined reference to `void igl::slice<Eigen::PlainObjectBase<Eigen::Matrix<CGAL::Lazy_exact_nt<CGAL::Gmpq>, -1, -1, 0, -1, -1> >, Eigen::Matrix<int, -1, 1, 0, -1, 1>, Eigen::PlainObjectBase<Eigen::Matrix<CGAL::Lazy_exact_nt<CGAL::Gmpq>, -1, -1, 0, -1, -1> > >(Eigen::PlainObjectBase<Eigen::Matrix<CGAL::Lazy_exact_nt<CGAL::Gmpq>, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> > const&, int, Eigen::PlainObjectBase<Eigen::Matrix<CGAL::Lazy_exact_nt<CGAL::Gmpq>, -1, -1, 0, -1, -1> >&)'\r\ncollect2: error: ld returned 1 exit status\r\n102_DrawMesh/CMakeFiles/102_DrawMesh_bin.dir/build.make:128: recipe for target '102_DrawMesh_bin' failed\r\nmake[2]: *** [102_DrawMesh_bin] Error 1\r\nCMakeFiles/Makefile2:1646: recipe for target '102_DrawMesh/CMakeFiles/102_DrawMesh_bin.dir/all' failed\r\nmake[1]: *** [102_DrawMesh/CMakeFiles/102_DrawMesh_bin.dir/all] Error 2\r\nMakefile:149: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\n\r\nand I don't now how to solve it. Do I have to put the EIGEN library somewhere in the libigl file, or do I have to specify it's location in any makefile? Can anyone help me? \r\n\r\nThanks in advance\r\nCat\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/libigl/libigl/issues/comments/265393187","html_url":"https://github.com/libigl/libigl/issues/412#issuecomment-265393187","issue_url":"https://api.github.com/repos/libigl/libigl/issues/412","id":265393187,"user":{"login":"Catrexis","id":24414997,"avatar_url":"https://avatars.githubusercontent.com/u/24414997?v=3","gravatar_id":"","url":"https://api.github.com/users/Catrexis","html_url":"https://github.com/Catrexis","followers_url":"https://api.github.com/users/Catrexis/followers","following_url":"https://api.github.com/users/Catrexis/following{/other_user}","gists_url":"https://api.github.com/users/Catrexis/gists{/gist_id}","starred_url":"https://api.github.com/users/Catrexis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catrexis/subscriptions","organizations_url":"https://api.github.com/users/Catrexis/orgs","repos_url":"https://api.github.com/users/Catrexis/repos","events_url":"https://api.github.com/users/Catrexis/events{/privacy}","received_events_url":"https://api.github.com/users/Catrexis/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T09:04:01Z","updated_at":"2016-12-07T09:04:01Z","body":"I think I use \"gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609\" \r\nbut in the build output is written \"Using /usr/bin/c++ compiler.\" But I think that's also the gcc compiler.\r\nFor \r\n`c++ --version`\r\nI get the same version as for gcc:\r\n`c++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609`\r\n\r\nYou mean\r\n`cmake -DCMAKE_BUILD_TYPE=Release -DLIBIGL_**USE_**STATIC_LIBRARY=OFF ../`\r\n\r\nWhen I compile in this way, it works until example 403_BoundedBiharmonicWeights, there he exits with following error in StdVector.h:\r\n\r\n```\r\nIn file included from /homes/mkomaritzan/research/libigl/shared/cmake/../../external/nanogui/ext/eigen/Eigen/StdVector:23:0,\r\n                 from /homes/mkomaritzan/research/libigl/tutorial/403_BoundedBiharmonicWeights/main.cpp:28:\r\n/homes/mkomaritzan/research/libigl/shared/cmake/../../external/nanogui/ext/eigen/Eigen/src/StlSupport/StdVector.h:69:9: error: partial specialization of ‘class std::vector<T, Eigen::aligned_allocator<U> >’ after instantiation of ‘class std::vector<Eigen::Transform<double, 3, 2>, Eigen::aligned_allocator<Eigen::Transform<double, 3, 2> > >’ [-fpermissive]\r\n   class vector<T,EIGEN_ALIGNED_ALLOCATOR<T> >\r\n         ^\r\n/homes/mkomaritzan/research/libigl/shared/cmake/../../external/nanogui/ext/eigen/Eigen/src/StlSupport/StdVector.h:69:9: error: partial specialization of ‘class std::vector<T, Eigen::aligned_allocator<U> >’ after instantiation of ‘class std::vector<Eigen::Quaternion<double>, Eigen::aligned_allocator<Eigen::Quaternion<double> > >’ [-fpermissive]\r\n403_BoundedBiharmonicWeights/CMakeFiles/403_BoundedBiharmonicWeights_bin.dir/build.make:62: recipe for target '403_BoundedBiharmonicWeights/CMakeFiles/403_BoundedBiharmonicWeights_bin.dir/main.cpp.o' failed\r\nmake[2]: *** [403_BoundedBiharmonicWeights/CMakeFiles/403_BoundedBiharmonicWeights_bin.dir/main.cpp.o] Error 1\r\nCMakeFiles/Makefile2:2162: recipe for target '403_BoundedBiharmonicWeights/CMakeFiles/403_BoundedBiharmonicWeights_bin.dir/all' failed\r\nmake[1]: *** [403_BoundedBiharmonicWeights/CMakeFiles/403_BoundedBiharmonicWeights_bin.dir/all] Error 2\r\nMakefile:138: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\n\r\nDo you know a fix for that error?\r\n\r\nThanks in advance\r\n\r\n"}}
{"actor":{"display_login":"Catrexis"}}