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

Error during building #9

Open
Cicko opened this issue Jul 22, 2019 · 10 comments
Open

Error during building #9

Cicko opened this issue Jul 22, 2019 · 10 comments

Comments

@Cicko
Copy link

Cicko commented Jul 22, 2019

After following successfully all installation steps, I reach the building phase and I have an error during execution of make -j8 what it seems a c++ parser error:

[ 50%] Built target mss
[ 58%] Building CXX object render/CMakeFiles/render.dir/main.cpp.o
[ 66%] Building CXX object render/CMakeFiles/render.dir/Window.cpp.o
[ 91%] Built target pymss
In file included from /home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/main.cpp:1:0:
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.h:16:1: error: expected class-name before ‘{’ token
 {
 ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.h:22:7: error: ‘void MASS::Window::draw()’ marked ‘override’, but does not override
  void draw() override;
       ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.h:23:7: error: ‘void MASS::Window::keyboard(unsigned char, int, int)’ marked ‘override’, but does not override
  void keyboard(unsigned char _key, int _x, int _y) override;
       ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.h:24:7: error: ‘void MASS::Window::displayTimer(int)’ marked ‘override’, but does not override
  void displayTimer(int _val) override;
       ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/main.cpp: In function ‘int main(int, char**)’:
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/main.cpp:75:10: error: ‘class MASS::Window’ has no member named ‘initWindow’
  window->initWindow(1920,1080,"gui");
          ^
In file included from /home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:1:0:
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.h:16:1: error: expected class-name before ‘{’ token
 {
 ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.h:22:7: error: ‘void MASS::Window::draw()’ marked ‘override’, but does not override
  void draw() override;
       ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.h:23:7: error: ‘void MASS::Window::keyboard(unsigned char, int, int)’ marked ‘override’, but does not override
  void keyboard(unsigned char _key, int _x, int _y) override;
       ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.h:24:7: error: ‘void MASS::Window::displayTimer(int)’ marked ‘override’, but does not override
  void displayTimer(int _val) override;
       ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp: In constructor ‘MASS::Window::Window(MASS::Environment*)’:
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:17:2: error: ‘mBackground’ was not declared in this scope
  mBackground[0] = 1.0;
  ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:22:2: error: ‘mZoom’ was not declared in this scope
  mZoom = 0.25; 
  ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp: In member function ‘void MASS::Window::keyboard(unsigned char, int, int)’:
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:116:3: error: ‘Win3D’ has not been declared
   Win3D::keyboard(_key,_x,_y);break;
   ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp: In member function ‘void MASS::Window::displayTimer(int)’:
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:127:16: error: ‘mDisplayTimeout’ was not declared in this scope
  glutTimerFunc(mDisplayTimeout, refreshTimer, _val);
                ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:127:33: error: ‘refreshTimer’ was not declared in this scope
  glutTimerFunc(mDisplayTimeout, refreshTimer, _val);
                                 ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp: In member function ‘void MASS::Window::SetFocusing()’:
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:170:3: error: ‘mTrans’ was not declared in this scope
   mTrans = -mEnv->GetWorld()->getSkeleton("Human")->getRootBodyNode()->getCOM();
   ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp: In member function ‘void MASS::Window::DrawBodyNode(const dart::dynamics::BodyNode*)’:
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:273:6: error: ‘mRI’ was not declared in this scope
  if(!mRI)
      ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:276:2: error: ‘mRI’ was not declared in this scope
  mRI->pushMatrix();
  ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp: In member function ‘void MASS::Window::DrawShapeFrame(const dart::dynamics::ShapeFrame*)’:
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:302:6: error: ‘mRI’ was not declared in this scope
  if(!mRI)
      ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:310:2: error: ‘mRI’ was not declared in this scope
  mRI->pushMatrix();
  ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp: In member function ‘void MASS::Window::DrawShape(const dart::dynamics::Shape*, const Vector4d&)’:
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:322:6: error: ‘mRI’ was not declared in this scope
  if(!mRI)
      ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:328:2: error: ‘mRI’ was not declared in this scope
  mRI->setPenColor(color);
  ^
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp: In member function ‘void MASS::Window::DrawMuscles(const std::vector<MASS::Muscle*>&)’:
/home/rudy/proyects/MASS-Muscle-Actuated-Skeletal-System/render/Window.cpp:381:3: error: ‘mRI’ was not declared in this scope
   mRI->setPenColor(color);
   ^
render/CMakeFiles/render.dir/build.make:62: recipe for target 'render/CMakeFiles/render.dir/main.cpp.o' failed
make[2]: *** [render/CMakeFiles/render.dir/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
render/CMakeFiles/render.dir/build.make:86: recipe for target 'render/CMakeFiles/render.dir/Window.cpp.o' failed
make[2]: *** [render/CMakeFiles/render.dir/Window.cpp.o] Error 1
CMakeFiles/Makefile2:140: recipe for target 'render/CMakeFiles/render.dir/all' failed
make[1]: *** [render/CMakeFiles/render.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 
2

ENVIRONMENT

$ make -v
GNU Make 4.1
Built for x86_64-pc-linux-gnu
$ hostnamectl
Operating System: Linux Mint 18.2
Kernel: Linux 4.8.0-53-generic
Architecture: x86-64
$ sudo pip3 --version
pip 19.1.1 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5)
$ virtualenv --version
15.2.0
@mulkkyul
Copy link

Hi there,
It's probably caused by the different DART installation directory.
for instance, I have DART in my home directory, so I did something like this:
cmake .. -DDART_DIR=/home/mulkkyul/usr/local/share/dart/cmake

@lpawela
Copy link

lpawela commented Oct 15, 2019

Any update on this? I'm getting the same errors, specifying the DART dir explicitly does not resolve this.

@marcopus
Copy link

marcopus commented Nov 6, 2019

Same problem here, any help? I could not find DART v6.3 on ubuntu, so I installed the only version available v6.9. Could this be the issue?

@zigui-ps
Copy link

zigui-ps commented Nov 7, 2019

If you want to use DART v6.9, this modification will fix the problem.
(Or use this branch)

@marcopus
Copy link

If you want to use DART v6.9, this modification will fix the problem.
(Or use this branch)

Thank you, will try this out!

@marcopus
Copy link

marcopus commented Nov 11, 2019

If you want to use DART v6.9, this modification will fix the problem.
(Or use this branch)

Thank you, will try this out!

The build fails with this error:
make[2]: *** No rule to make target '/usr/local/lib/libboost_regex.so.1.71.0', needed by 'lib/libdart.so.6.3.1'. Stop.
Here I was trying to build DART 6.3 from source, following the instructions. But I get the same complaint about libboost_regex.so.1.71.0 not found also with DART 6.9.

(I have installed boost v1.66 from source, as written in the README.md)

@mulkkyul
Copy link

I installed DART 6.3 and Boost 1.66 under my home directory (/home/mulkkyul).
and the following command worked for me.
cmake .. -DDART_DIR=/home/mulkkyul/usr/local/share/dart/cmake -DBOOST_INCLUDEDIR=/home/mulkkyul/usr/local/include

@fabrizio8
Copy link

@mulkkyul

I'm having the same exact problem as the OP.
I tried your suggestion and still got the same errors.

I built DART 6.3 and Boost 1.66 from source

$ make -v
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
$ hostnamectl
  Operating System: Ubuntu 19.10
            Kernel: Linux 5.3.0-24-lowlatency
      Architecture: x86-64
$ pip3 --version
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)

@fabrizio8
Copy link

I installed boost with the instructions on the readme but I think it's possible that boost python3 is not getting installed correctly?

It seems I am missing /usr/local/lib/libboost_python3.so. Although I did see python was getting built with boost.

➜  boost_1_66_0 ls /usr/local/lib/         
libboost_filesystem.a          libboost_numpy3.a  libboost_regex.so.1.66.0  libboost_system.so.1.66.0  python3.7
libboost_filesystem.so         libboost_regex.a   libboost_system.a         pkgconfig
libboost_filesystem.so.1.66.0  libboost_regex.so  libboost_system.so        python2.7
➜  build git:(master) ✗ cmake ..
-- Found DART: /usr/include  found components:  collision-bullet dart 
-- Found DART: /usr/include  found components:  gui collision-bullet dart 
CMake Warning (dev) at /usr/share/cmake-3.13/Modules/FindOpenGL.cmake:270 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  render/CMakeLists.txt:8 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find Boost
-- Could NOT find Boost
-- Found DART: /usr/include  found components:  gui collision-bullet dart 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/.gitware/MASS/build

@mulkkyul
Copy link

Hmm. I'm not an expert but if boost was installed correctly, you can try to find the library files using find command, something like find ./ -name "libboost_python3.so"

In my case, I can find it under under /home/mulkkyul/usr/local/lib. so when I do cmake, i give an option like cmake .. -DBOOST_INCLUDEDIR=/home/mulkkyul/usr/local/include

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

6 participants