MeshODE icon indicating copy to clipboard operation
MeshODE copied to clipboard

question:make -j8

Open zhouhao957 opened this issue 3 years ago • 8 comments

i am run:make-j8。Can you give me some advice if the following questions arise

[ 3%] Building CXX object CMakeFiles/deform_optim.dir/src/lib/linear.cc.o :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions :0:25: error: token "�" is not valid in preprocessor expressions /home/workstation/mesh/MeshODE/src/lib/linear.cc: In instantiation of ‘void LinearEstimation(std::vector<Eigen::Matrix<double, 3, 1> >&, const std::vector<Eigen::Matrix<int, 3, 1> >&, const Iter&, const Iter&, const std::vector&, const std::vector<Eigen::Matrix<double, 3, 1> >&, double) [with Iter = std::_Rb_tree_const_iterator<std::pair<int, int> >]’: /home/workstation/mesh/MeshODE/src/lib/linear.cc:240:18: required from here /home/workstation/mesh/MeshODE/src/lib/linear.cc:35:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < references.size(); ++i) ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc:39:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < grid_cell.size(); ++i) { ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc:42:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < grid_cell[i].size(); ++j) { ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc:43:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int k = 0; k < grid_cell[i].size(); ++k) { ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc:47:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < grid_cell[i].size(); ++j) { ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc:52:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < V.size(); ++i) { ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc:62:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < F.size(); ++i) { ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc: In instantiation of ‘void LinearEstimation(std::vector<Eigen::Matrix<double, 3, 1> >&, const std::vector<Eigen::Matrix<int, 3, 1> >&, const Iter&, const Iter&, const std::vector&, const std::vector<Eigen::Matrix<double, 3, 1> >&, double) [with Iter = __gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >]’: /home/workstation/mesh/MeshODE/src/lib/linear.cc:247:18: required from here /home/workstation/mesh/MeshODE/src/lib/linear.cc:35:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < references.size(); ++i) ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc:39:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < grid_cell.size(); ++i) { ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc:42:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < grid_cell[i].size(); ++j) { ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc:43:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int k = 0; k < grid_cell[i].size(); ++k) { ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc:47:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < grid_cell[i].size(); ++j) { ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc:52:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < V.size(); ++i) { ^ /home/workstation/mesh/MeshODE/src/lib/linear.cc:62:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < F.size(); ++i) { ^ CMakeFiles/deform_optim.dir/build.make:62: recipe for target 'CMakeFiles/deform_optim.dir/src/lib/linear.cc.o' failed make[2]: *** [CMakeFiles/deform_optim.dir/src/lib/linear.cc.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/deform_optim.dir/all' failed make[1]: *** [CMakeFiles/deform_optim.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

zhouhao957 avatar Nov 09 '20 05:11 zhouhao957

I have the same error,do you have any solution?

ShenTingD avatar Nov 20 '20 04:11 ShenTingD

Sorry, I didn't solve the problem. I think it has something to do with the version(ceres-solver ) But I tried 1.4 and 2.0, both with the same error

zhouhao957 avatar Nov 22 '20 04:11 zhouhao957

I have the same error,do you have any solution?

Do you have a solution?

zhouhao957 avatar Nov 25 '20 02:11 zhouhao957

I have the same error,do you have any solution?

Do you have a solution?

Sorry,I have not fix it yet.

ShenTingD avatar Nov 25 '20 03:11 ShenTingD

I have the same error,do you have any solution?

Do you have a solution?

Sorry,I have not fix it yet.

Have you solved the problem now

zhouhao957 avatar Jan 05 '21 14:01 zhouhao957

hello, i got the same error while trying to run the code. Did you manage to resolve this?

charlie514841 avatar Feb 08 '21 02:02 charlie514841

Sorry, I haven't solved it yet-------- 原始邮件 --------主题:Re: [hjwdzh/MeshODE] question:make -j8 (#8)发件人:charlie514841 收件人:hjwdzh/MeshODE 抄送:honey ,Author hello, i got the same error while trying to run the code. Did you manage to resolve this?

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

zhouhao957 avatar Feb 13 '21 11:02 zhouhao957

POSSIBLE FIX

  1. I didn't install the bugfix path from "ppa:bzindovic/suitesparse-bugfix-1319687"
  2. There were two missing dependencies: libmpfr-dev and libgmp-dev. I installed them.
  3. The variable defined at line 17 doesn't seem to be used and is wrong (absolute path): "set(Ceres_DIR "/home/maxjiang/Codes/ShapeDeform/3rd_party/ceres-solver/cmake/Ceres")". I just removed it.
  4. In the MeshODE's CMakeLists.txt, there is a typo at line 132: "add_definitions(-D_GLIBCXX_USE_CXX11_ABI=1››)". The two last characters "››" are invalid and cause a preprocessor error when running the building commands. I removed them.

For now, everything builds...

gauvindigital avatar Dec 22 '21 20:12 gauvindigital