raisimTech / raisimLib

Visit www.raisim.com
http://www.raisim.com
Other
335 stars 90 forks source link

Raisim example fails to compile on m1 mac #573

Closed gmmyung closed 3 months ago

gmmyung commented 3 months ago

The CMake build fails with the following build config:

cmake .. -DCMAKE_INSTALL_PREFIX=. -DRAISIM_EXAMPLE=ON -DRAISIM_PY=ON -DPYTHON_EXECUTABLE=$(which python3)

This is the error log:

[ 42%] Building CXX object examples/CMakeFiles/kinematicObject.dir/src/server/kinematicObject.cpp.o
/Users/gmmyung/Developer/raisimLib/examples/src/server/visualObjects.cpp:39:20: error: no member named 'addVisualHeightMap' in 'raisim::RaisimServer'
  auto hm = server.addVisualHeightMap("dynamic_visual_heightmap", 100, 100, 10., 10., 0., 10., height);
            ~~~~~~ ^
1 error generated.
make[2]: *** [examples/CMakeFiles/visualObjects.dir/src/server/visualObjects.cpp.o] Error 1
make[1]: *** [examples/CMakeFiles/visualObjects.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

I can confirm that addVisualHeightMap() does not exist in raisim/m1/include/raisim/RaisimServer.hpp, but it exists on linux/win32 header files.

rpathak38 commented 3 months ago

Facing the same issue here @jhwangbo, could you chime in, I saw you have a working build

jhwangbo commented 3 months ago

Sorry for my late response. The issue should be gone now