stereolabs / zed-aruco

ZED SDK samples using ArUco tag detection
https://www.stereolabs.com/developers/
MIT License
19 stars 10 forks source link

Running multi camera build make error #5

Open DailyNir opened 11 months ago

DailyNir commented 11 months ago

Preliminary Checks

Description

getting error when trying to build aruco marker multi camera project

Steps to Reproduce

follow instruction for multicamera aruco marker and run make in build directory

Expected Result

running the aruco marker executable file

Actual Result

no file generated because of build error in make usr/bin/ld: CMakeFiles/ZED_Multi_Reloc_Aruco.dir/src/GLViewer.o: in function GLViewer::mouseMotionCallback(int, int)': GLViewer.cpp:(.text+0x34): undefined reference toglutPostRedisplay' /usr/bin/ld: CMakeFiles/ZED_Multi_Reloc_Aruco.dir/src/GLViewer.o: in function GLViewer::keyPressedCallback(unsigned char, int, int)': GLViewer.cpp:(.text+0x4c): undefined reference toglutPostRedisplay' /usr/bin/ld: CMakeFiles/ZED_Multi_Reloc_Aruco.dir/src/GLViewer.o: in function GLViewer::exit()': GLViewer.cpp:(.text+0x854): undefined reference toglutLeaveMainLoop' /usr/bin/ld: CMakeFiles/ZED_Multi_Reloc_Aruco.dir/src/GLViewer.o: in function GLViewer::idle()': GLViewer.cpp:(.text+0xca8): undefined reference toglutPostRedisplay' /usr/bin/ld: CMakeFiles/ZED_Multi_Reloc_Aruco.dir/src/GLViewer.o: in function GLViewer::update()': GLViewer.cpp:(.text+0x3100): undefined reference toglutLeaveMainLoop' /usr/bin/ld: CMakeFiles/ZED_Multi_Reloc_Aruco.dir/src/GLViewer.o: in function GLViewer::drawCallback()': GLViewer.cpp:(.text+0x3824): undefined reference toglutSwapBuffers' /usr/bin/ld: GLViewer.cpp:(.text+0x3830): undefined reference to glutPostRedisplay' /usr/bin/ld: CMakeFiles/ZED_Multi_Reloc_Aruco.dir/src/GLViewer.o: in functionGLViewer::render()': GLViewer.cpp:(.text+0x38a0): undefined reference to glutSwapBuffers' /usr/bin/ld: GLViewer.cpp:(.text+0x38ac): undefined reference toglutPostRedisplay' /usr/bin/ld: CMakeFiles/ZED_Multi_Reloc_Aruco.dir/src/GLViewer.o: in function GLViewer::init(int, int, int)': GLViewer.cpp:(.text+0x3df4): undefined reference toglutInit' /usr/bin/ld: GLViewer.cpp:(.text+0x3dfc): undefined reference to glutInitWindowSize' /usr/bin/ld: GLViewer.cpp:(.text+0x3e04): undefined reference toglutInitDisplayMode' /usr/bin/ld: GLViewer.cpp:(.text+0x3e10): undefined reference to glutCreateWindow' /usr/bin/ld: GLViewer.cpp:(.text+0x4aa0): undefined reference toglutSetOption' /usr/bin/ld: GLViewer.cpp:(.text+0x4aac): undefined reference to glutDisplayFunc' /usr/bin/ld: GLViewer.cpp:(.text+0x4ab8): undefined reference toglutMouseFunc' /usr/bin/ld: GLViewer.cpp:(.text+0x4ac4): undefined reference to glutMotionFunc' /usr/bin/ld: GLViewer.cpp:(.text+0x4ad0): undefined reference toglutReshapeFunc' /usr/bin/ld: GLViewer.cpp:(.text+0x4adc): undefined reference to glutKeyboardFunc' /usr/bin/ld: GLViewer.cpp:(.text+0x4ae8): undefined reference toglutKeyboardUpFunc' /usr/bin/ld: CMakeFiles/ZED_Multi_Reloc_Aruco.dir/src/main.o: in function main': main.cpp:(.text.startup+0xd90): undefined reference toglutCloseFunc' /usr/bin/ld: main.cpp:(.text.startup+0xd94): undefined reference to `glutMainLoop' collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/ZED_Multi_Reloc_Aruco.dir/build.make:152: ZED_Multi_Reloc_Aruco] Error 1 make[1]: [CMakeFiles/Makefile2:83: CMakeFiles/ZED_Multi_Reloc_Aruco.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

ZED Camera model

ZED Mini

Environment

ZED SDK 4.0.5
Jetson AGX Orin
Ubuntu 20.04
jetpack 5.1.1
ZED X cameras

Anything else?

No response

P-yver commented 10 months ago

Hi, it looks like it is not properly linked with glut. Can you try this branche? https://github.com/stereolabs/zed-aruco/tree/ZED_SDK_4

DailyNir commented 10 months ago

ok it works, but now i have the MultiCamConfig.json ready, where can i put it so the cameras configuration will be saved when i use the sdk/ros point cloud?