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

question:make -j8 #8

Open
zhouhao957 opened this issue Nov 9, 2020 · 8 comments
Open

question:make -j8 #8

zhouhao957 opened this issue Nov 9, 2020 · 8 comments

Comments

@zhouhao957
Copy link

zhouhao957 commented Nov 9, 2020

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

@ShenTingD
Copy link

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

@zhouhao957
Copy link
Author

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
Copy link
Author

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

Do you have a solution?

@ShenTingD
Copy link

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

Do you have a solution?

Sorry,I have not fix it yet.

@zhouhao957
Copy link
Author

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

@charlie514841
Copy link

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

@zhouhao957
Copy link
Author

zhouhao957 commented Feb 13, 2021 via email

@gauvindigital
Copy link

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...

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

4 participants