Raisim example fails to compile on m1 mac
gmmyung opened this issue · comments
Gyungmin Myung commented
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
Facing the same issue here @jhwangbo, could you chime in, I saw you have a working build
Jemin Hwangbo commented
Sorry for my late response. The issue should be gone now