Closed monacv closed 3 years ago
$ sudo apt-get install libusb-1.0-0-dev
didn't solve the issue for me.
[10867:8660 0:2061] 02:54:33 Thu Jan 14 [mona@goku:pts/1 +1] ~/research/code/librealsense/build
$ sudo apt-get install libusb-1.0-0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
cpp-7 libpython-dev libpython2.7 libpython2.7-dev libpython3-dev python2.7-dev python3-decorator
python3-ipython-genutils python3-jupyter-core python3-traitlets python3.8-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libusb-1.0-doc
The following NEW packages will be installed:
libusb-1.0-0-dev libusb-1.0-doc
0 upgraded, 2 newly installed, 0 to remove and 66 not upgraded.
Need to get 237 kB of archives.
After this operation, 1,821 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libusb-1.0-0-dev amd64 2:1.0.23-2build1 [64.4 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libusb-1.0-doc all 2:1.0.23-2build1 [172 kB]
Fetched 237 kB in 0s (1,263 kB/s)
Selecting previously unselected package libusb-1.0-0-dev:amd64.
(Reading database ... 360728 files and directories currently installed.)
Preparing to unpack .../libusb-1.0-0-dev_2%3a1.0.23-2build1_amd64.deb ...
Unpacking libusb-1.0-0-dev:amd64 (2:1.0.23-2build1) ...
Selecting previously unselected package libusb-1.0-doc.
Preparing to unpack .../libusb-1.0-doc_2%3a1.0.23-2build1_all.deb ...
Unpacking libusb-1.0-doc (2:1.0.23-2build1) ...
Setting up libusb-1.0-doc (2:1.0.23-2build1) ...
Setting up libusb-1.0-0-dev:amd64 (2:1.0.23-2build1) ...
18638/31772MB
[10867:8660 0:2061] 03:00:00 Thu Jan 14 [mona@goku:pts/1 +1] ~/research/code/librealsense/build
$ make clean
18638/31772MB
[10867:8660 0:2062] 03:00:03 Thu Jan 14 [mona@goku:pts/1 +1] ~/research/code/librealsense/build
$ make -j`nproc`
[ 1%] Building C object common/fw/CMakeFiles/fw.dir/D4XX_FW_Image.c.o
[ 1%] Building C object common/fw/CMakeFiles/fw.dir/SR3XX_FW_Image.c.o
[ 1%] Creating directories for 'libusb'
[ 1%] Building C object common/fw/CMakeFiles/fw.dir/empty.c.o
[ 1%] Building C object common/fw/CMakeFiles/fw.dir/target.c.o
[ 1%] Building C object common/fw/CMakeFiles/fw.dir/L5XX_FW_Image.c.o
[ 1%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/context.c.o
[ 1%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/input.c.o
[ 2%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/init.c.o
[ 2%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/vulkan.c.o
[ 2%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/monitor.c.o
[ 3%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/window.c.o
[ 3%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/x11_init.c.o
[ 3%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/x11_monitor.c.o
[ 4%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/console_bridge/src/console.cpp.o
[ 4%] Building C object third-party/realsense-file/CMakeFiles/realsense-file.dir/lz4/lz4.c.o
[ 4%] Linking C static library libfw.a
In file included from /home/mona/research/code/librealsense/third-party/glfw/src/init.c:28:
/home/mona/research/code/librealsense/third-party/glfw/src/init.c: In function ‘glfwSetErrorCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/init.c:311:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
311 | _GLFW_SWAP_POINTERS(_glfwErrorCallback, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/init.c:311:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
311 | _GLFW_SWAP_POINTERS(_glfwErrorCallback, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/vulkan.c: In function ‘_glfwInitVulkan’:
/home/mona/research/code/librealsense/third-party/glfw/src/vulkan.c:69:36: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
69 | _glfw.vk.GetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/vulkan.c: In function ‘glfwGetInstanceProcAddress’:
/home/mona/research/code/librealsense/third-party/glfw/src/vulkan.c:263:16: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
263 | proc = (GLFWvkproc) _glfw_dlsym(_glfw.vk.handle, procname);
| ^
In file included from /home/mona/research/code/librealsense/third-party/glfw/src/input.c:28:
/home/mona/research/code/librealsense/third-party/glfw/src/input.c: In function ‘glfwSetKeyCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:797:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
797 | _GLFW_SWAP_POINTERS(window->callbacks.key, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:797:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
797 | _GLFW_SWAP_POINTERS(window->callbacks.key, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/input.c: In function ‘glfwSetCharCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:807:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
807 | _GLFW_SWAP_POINTERS(window->callbacks.character, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:807:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
807 | _GLFW_SWAP_POINTERS(window->callbacks.character, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/input.c: In function ‘glfwSetCharModsCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:817:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
817 | _GLFW_SWAP_POINTERS(window->callbacks.charmods, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:817:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
817 | _GLFW_SWAP_POINTERS(window->callbacks.charmods, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/input.c: In function ‘glfwSetMouseButtonCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:828:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
828 | _GLFW_SWAP_POINTERS(window->callbacks.mouseButton, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:828:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
828 | _GLFW_SWAP_POINTERS(window->callbacks.mouseButton, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/input.c: In function ‘glfwSetCursorPosCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:839:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
839 | _GLFW_SWAP_POINTERS(window->callbacks.cursorPos, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:839:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
839 | _GLFW_SWAP_POINTERS(window->callbacks.cursorPos, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/input.c: In function ‘glfwSetCursorEnterCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:850:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
850 | _GLFW_SWAP_POINTERS(window->callbacks.cursorEnter, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:850:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
850 | _GLFW_SWAP_POINTERS(window->callbacks.cursorEnter, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/input.c: In function ‘glfwSetScrollCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:861:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
861 | _GLFW_SWAP_POINTERS(window->callbacks.scroll, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:861:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
861 | _GLFW_SWAP_POINTERS(window->callbacks.scroll, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/input.c: In function ‘glfwSetDropCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:871:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
871 | _GLFW_SWAP_POINTERS(window->callbacks.drop, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:871:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
871 | _GLFW_SWAP_POINTERS(window->callbacks.drop, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/input.c: In function ‘glfwSetJoystickCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:1073:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1073 | _GLFW_SWAP_POINTERS(_glfw.callbacks.joystick, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/input.c:1073:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1073 | _GLFW_SWAP_POINTERS(_glfw.callbacks.joystick, cbfun);
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/mona/research/code/librealsense/third-party/glfw/src/window.c:29:
/home/mona/research/code/librealsense/third-party/glfw/src/window.c: In function ‘glfwSetWindowPosCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:980:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
980 | _GLFW_SWAP_POINTERS(window->callbacks.pos, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:980:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
980 | _GLFW_SWAP_POINTERS(window->callbacks.pos, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/window.c: In function ‘glfwSetWindowSizeCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:991:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
991 | _GLFW_SWAP_POINTERS(window->callbacks.size, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:991:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
991 | _GLFW_SWAP_POINTERS(window->callbacks.size, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/window.c: In function ‘glfwSetWindowCloseCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1002:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1002 | _GLFW_SWAP_POINTERS(window->callbacks.close, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1002:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1002 | _GLFW_SWAP_POINTERS(window->callbacks.close, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/window.c: In function ‘glfwSetWindowRefreshCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1013:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1013 | _GLFW_SWAP_POINTERS(window->callbacks.refresh, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1013:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1013 | _GLFW_SWAP_POINTERS(window->callbacks.refresh, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/window.c: In function ‘glfwSetWindowFocusCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1024:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1024 | _GLFW_SWAP_POINTERS(window->callbacks.focus, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1024:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1024 | _GLFW_SWAP_POINTERS(window->callbacks.focus, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/window.c: In function ‘glfwSetWindowIconifyCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1035:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1035 | _GLFW_SWAP_POINTERS(window->callbacks.iconify, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1035:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1035 | _GLFW_SWAP_POINTERS(window->callbacks.iconify, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/window.c: In function ‘glfwSetWindowMaximizeCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1046:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1046 | _GLFW_SWAP_POINTERS(window->callbacks.maximize, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1046:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1046 | _GLFW_SWAP_POINTERS(window->callbacks.maximize, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/window.c: In function ‘glfwSetFramebufferSizeCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1057:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1057 | _GLFW_SWAP_POINTERS(window->callbacks.fbsize, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1057:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1057 | _GLFW_SWAP_POINTERS(window->callbacks.fbsize, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/window.c: In function ‘glfwSetWindowContentScaleCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1068:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1068 | _GLFW_SWAP_POINTERS(window->callbacks.scale, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/window.c:1068:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
1068 | _GLFW_SWAP_POINTERS(window->callbacks.scale, cbfun);
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/mona/research/code/librealsense/third-party/glfw/src/monitor.c:28:
/home/mona/research/code/librealsense/third-party/glfw/src/monitor.c: In function ‘glfwSetMonitorCallback’:
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:221:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
221 | t = x; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/monitor.c:396:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
396 | _GLFW_SWAP_POINTERS(_glfw.callbacks.monitor, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/internal.h:223:11: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
223 | y = t; \
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/monitor.c:396:5: note: in expansion of macro ‘_GLFW_SWAP_POINTERS’
396 | _GLFW_SWAP_POINTERS(_glfw.callbacks.monitor, cbfun);
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c: In function ‘initExtensions’:
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:467:44: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
467 | _glfw.x11.vidmode.QueryExtension = (PFN_XF86VidModeQueryExtension)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:469:42: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
469 | _glfw.x11.vidmode.GetGammaRamp = (PFN_XF86VidModeGetGammaRamp)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:471:42: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
471 | _glfw.x11.vidmode.SetGammaRamp = (PFN_XF86VidModeSetGammaRamp)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:473:46: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
473 | _glfw.x11.vidmode.GetGammaRampSize = (PFN_XF86VidModeGetGammaRampSize)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:489:37: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
489 | _glfw.x11.xi.QueryVersion = (PFN_XIQueryVersion)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:491:37: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
491 | _glfw.x11.xi.SelectEvents = (PFN_XISelectEvents)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:519:38: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
519 | _glfw.x11.randr.AllocGamma = (PFN_XRRAllocGamma)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:521:37: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
521 | _glfw.x11.randr.FreeGamma = (PFN_XRRFreeGamma)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:523:40: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
523 | _glfw.x11.randr.FreeCrtcInfo = (PFN_XRRFreeCrtcInfo)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:525:37: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
525 | _glfw.x11.randr.FreeGamma = (PFN_XRRFreeGamma)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:527:42: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
527 | _glfw.x11.randr.FreeOutputInfo = (PFN_XRRFreeOutputInfo)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:529:47: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
529 | _glfw.x11.randr.FreeScreenResources = (PFN_XRRFreeScreenResources)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:531:40: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
531 | _glfw.x11.randr.GetCrtcGamma = (PFN_XRRGetCrtcGamma)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:533:44: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
533 | _glfw.x11.randr.GetCrtcGammaSize = (PFN_XRRGetCrtcGammaSize)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:535:39: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
535 | _glfw.x11.randr.GetCrtcInfo = (PFN_XRRGetCrtcInfo)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:537:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
537 | _glfw.x11.randr.GetOutputInfo = (PFN_XRRGetOutputInfo)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:539:44: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
539 | _glfw.x11.randr.GetOutputPrimary = (PFN_XRRGetOutputPrimary)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:541:53: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
541 | _glfw.x11.randr.GetScreenResourcesCurrent = (PFN_XRRGetScreenResourcesCurrent)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:543:42: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
543 | _glfw.x11.randr.QueryExtension = (PFN_XRRQueryExtension)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:545:40: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
545 | _glfw.x11.randr.QueryVersion = (PFN_XRRQueryVersion)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:547:39: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
547 | _glfw.x11.randr.SelectInput = (PFN_XRRSelectInput)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:549:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
549 | _glfw.x11.randr.SetCrtcConfig = (PFN_XRRSetCrtcConfig)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:551:40: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
551 | _glfw.x11.randr.SetCrtcGamma = (PFN_XRRSetCrtcGamma)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:553:47: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
553 | _glfw.x11.randr.UpdateConfiguration = (PFN_XRRUpdateConfiguration)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:611:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
611 | _glfw.x11.xcursor.ImageCreate = (PFN_XcursorImageCreate)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:613:42: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
613 | _glfw.x11.xcursor.ImageDestroy = (PFN_XcursorImageDestroy)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:615:45: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
615 | _glfw.x11.xcursor.ImageLoadCursor = (PFN_XcursorImageLoadCursor)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:626:39: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
626 | _glfw.x11.xinerama.IsActive = (PFN_XineramaIsActive)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:628:45: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
628 | _glfw.x11.xinerama.QueryExtension = (PFN_XineramaQueryExtension)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:630:43: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
630 | _glfw.x11.xinerama.QueryScreens = (PFN_XineramaQueryScreens)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:670:45: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
670 | _glfw.x11.x11xcb.GetXCBConnection = (PFN_XGetXCBConnection)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:681:44: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
681 | _glfw.x11.xrender.QueryExtension = (PFN_XRenderQueryExtension)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:683:42: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
683 | _glfw.x11.xrender.QueryVersion = (PFN_XRenderQueryVersion)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/x11_init.c:685:46: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
685 | _glfw.x11.xrender.FindVisualFormat = (PFN_XRenderFindVisualFormat)
| ^
[ 4%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/cpp_common/src/debug.cpp.o
[ 5%] Performing download step (git clone) for 'libusb'
-- Avoiding repeated git clone, stamp file is up to date: '/home/mona/research/code/librealsense/build/libusb-prefix/src/libusb-stamp/libusb-gitclone-lastrun.txt'
[ 6%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/xkb_unicode.c.o
[ 6%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/posix_time.c.o
[ 6%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/posix_thread.c.o
[ 6%] No patch step for 'libusb'
[ 6%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/x11_window.c.o
[ 6%] Built target fw
[ 6%] Performing update step for 'libusb'
[ 6%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/egl_context.c.o
[ 7%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/glx_context.c.o
[ 7%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/osmesa_context.c.o
[ 7%] Performing configure step for 'libusb'
[ 7%] Building C object third-party/glfw/src/CMakeFiles/glfw.dir/linux_joystick.c.o
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mona/research/code/librealsense/build/libusb-prefix/src/libusb-build
[ 8%] Performing build step for 'libusb'
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c: In function ‘getProcAddressEGL’:
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:256:27: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
256 | GLFWglproc proc = (GLFWglproc) _glfw_dlsym(window->context.egl.client,
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c: In function ‘_glfwInitEGL’:
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:338:33: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
338 | _glfw.egl.GetConfigAttrib = (PFN_eglGetConfigAttrib)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:340:28: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
340 | _glfw.egl.GetConfigs = (PFN_eglGetConfigs)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:342:28: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
342 | _glfw.egl.GetDisplay = (PFN_eglGetDisplay)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:344:26: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
344 | _glfw.egl.GetError = (PFN_eglGetError)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:346:28: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
346 | _glfw.egl.Initialize = (PFN_eglInitialize)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:348:27: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
348 | _glfw.egl.Terminate = (PFN_eglTerminate)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:350:25: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
350 | _glfw.egl.BindAPI = (PFN_eglBindAPI)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:352:31: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
352 | _glfw.egl.CreateContext = (PFN_eglCreateContext)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:354:32: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
354 | _glfw.egl.DestroySurface = (PFN_eglDestroySurface)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:356:32: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
356 | _glfw.egl.DestroyContext = (PFN_eglDestroyContext)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:358:37: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
358 | _glfw.egl.CreateWindowSurface = (PFN_eglCreateWindowSurface)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:360:29: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
360 | _glfw.egl.MakeCurrent = (PFN_eglMakeCurrent)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:362:29: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
362 | _glfw.egl.SwapBuffers = (PFN_eglSwapBuffers)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:364:30: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
364 | _glfw.egl.SwapInterval = (PFN_eglSwapInterval)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:366:29: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
366 | _glfw.egl.QueryString = (PFN_eglQueryString)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/egl_context.c:368:32: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
368 | _glfw.egl.GetProcAddress = (PFN_eglGetProcAddress)
| ^
[ 8%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/cpp_common/src/header.cpp.o
[ 8%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rosbag_storage/src/bag.cpp.o
[ 9%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rosbag_storage/src/bag_player.cpp.o
In file included from /home/mona/research/code/librealsense/third-party/glfw/src/internal.h:187,
from /home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:28:
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c: In function ‘getProcAddressGLX’:
/home/mona/research/code/librealsense/third-party/glfw/src/x11_platform.h:166:35: warning: ISO C forbids return between function pointer and ‘void *’ [-Wpedantic]
166 | #define _glfw_dlsym(handle, name) dlsym(handle, name)
| ^~~~~~~~~~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:226:16: note: in expansion of macro ‘_glfw_dlsym’
226 | return _glfw_dlsym(_glfw.glx.handle, procname);
| ^~~~~~~~~~~
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c: In function ‘_glfwInitGLX’:
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:285:28: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
285 | _glfw.glx.GetFBConfigs =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:287:33: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
287 | _glfw.glx.GetFBConfigAttrib =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:289:31: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
289 | _glfw.glx.GetClientString =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:291:30: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
291 | _glfw.glx.QueryExtension =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:293:28: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
293 | _glfw.glx.QueryVersion =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:295:30: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
295 | _glfw.glx.DestroyContext =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:297:27: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
297 | _glfw.glx.MakeCurrent =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:299:27: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
299 | _glfw.glx.SwapBuffers =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:301:37: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
301 | _glfw.glx.QueryExtensionsString =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:303:32: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
303 | _glfw.glx.CreateNewContext =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:305:28: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
305 | _glfw.glx.CreateWindow =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:307:29: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
307 | _glfw.glx.DestroyWindow =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:309:30: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
309 | _glfw.glx.GetProcAddress =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:311:33: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
311 | _glfw.glx.GetProcAddressARB =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/glx_context.c:313:37: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
313 | _glfw.glx.GetVisualFromFBConfig =
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/osmesa_context.c: In function ‘_glfwInitOSMesa’:
/home/mona/research/code/librealsense/third-party/glfw/src/osmesa_context.c:148:37: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
148 | _glfw.osmesa.CreateContextExt = (PFN_OSMesaCreateContextExt)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/osmesa_context.c:150:41: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
150 | _glfw.osmesa.CreateContextAttribs = (PFN_OSMesaCreateContextAttribs)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/osmesa_context.c:152:35: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
152 | _glfw.osmesa.DestroyContext = (PFN_OSMesaDestroyContext)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/osmesa_context.c:154:32: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
154 | _glfw.osmesa.MakeCurrent = (PFN_OSMesaMakeCurrent)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/osmesa_context.c:156:35: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
156 | _glfw.osmesa.GetColorBuffer = (PFN_OSMesaGetColorBuffer)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/osmesa_context.c:158:35: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
158 | _glfw.osmesa.GetDepthBuffer = (PFN_OSMesaGetDepthBuffer)
| ^
/home/mona/research/code/librealsense/third-party/glfw/src/osmesa_context.c:160:35: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
160 | _glfw.osmesa.GetProcAddress = (PFN_OSMesaGetProcAddress)
| ^
[ 9%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rosbag_storage/src/buffer.cpp.o
[ 9%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rosbag_storage/src/chunked_file.cpp.o
[ 9%] Building C object CMakeFiles/usb.dir/libusb/core.c.o
[ 10%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rosbag_storage/src/lz4_stream.cpp.o
[ 18%] Building C object CMakeFiles/usb.dir/libusb/descriptor.c.o
/home/mona/research/code/librealsense/build/third-party/libusb/libusb/core.c:23:10: fatal error: config.h: No such file or directory
23 | #include "config.h"
| ^~~~~~~~~~
compilation terminated.
make[5]: *** [CMakeFiles/usb.dir/build.make:63: CMakeFiles/usb.dir/libusb/core.c.o] Error 1
make[5]: *** Waiting for unfinished jobs....
/home/mona/research/code/librealsense/build/third-party/libusb/libusb/descriptor.c:22:10: fatal error: config.h: No such file or directory
22 | #include <config.h>
| ^~~~~~~~~~
compilation terminated.
make[5]: *** [CMakeFiles/usb.dir/build.make:76: CMakeFiles/usb.dir/libusb/descriptor.c.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:76: CMakeFiles/usb.dir/all] Error 2
make[3]: *** [Makefile:130: all] Error 2
make[2]: *** [CMakeFiles/libusb.dir/build.make:113: libusb-prefix/src/libusb-stamp/libusb-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:1131: CMakeFiles/libusb.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 10%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rosbag_storage/src/message_instance.cpp.o
[ 10%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rosbag_storage/src/query.cpp.o
[ 10%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rosbag_storage/src/stream.cpp.o
[ 11%] Linking C static library libglfw3.a
[ 12%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rosbag_storage/src/uncompressed_stream.cpp.o
[ 12%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rosbag_storage/src/view.cpp.o
[ 12%] Built target glfw
[ 12%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/roscpp_serialization/src/serialization.cpp.o
[ 12%] Building C object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/roslz4/src/lz4s.c.o
[ 13%] Building C object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/roslz4/src/xxhash.c.o
[ 13%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rostime/src/duration.cpp.o
[ 13%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rostime/src/rate.cpp.o
[ 13%] Building CXX object third-party/realsense-file/CMakeFiles/realsense-file.dir/rosbag/rostime/src/time.cpp.o
/home/mona/research/code/librealsense/third-party/realsense-file/rosbag/rostime/src/time.cpp:99:5: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
99 | throw(NoHighPerformanceTimersException)
| ^~~~~
In file included from /home/mona/research/code/librealsense/third-party/realsense-file/rosbag/rosbag_storage/src/bag_player.cpp:1:
/home/mona/research/code/librealsense/third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/bag_player.h:81:42: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
81 | BagPlayer(const std::string &filename) throw(BagException);
| ^~~~~
/home/mona/research/code/librealsense/third-party/realsense-file/rosbag/rosbag_storage/src/bag_player.cpp:8:48: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
8 | BagPlayer::BagPlayer(const std::string &fname) throw(BagException) {
| ^~~~~
In file included from /home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/detail/maybe_include.hpp:18,
from /home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/detail/function_iterate.hpp:14,
from /home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/preprocessor/iteration/detail/iter/forward1.hpp:53,
from /home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function.hpp:65,
from /home/mona/research/code/librealsense/third-party/realsense-file/rosbag/roscpp_traits/include/ros/message_event.h:42,
from /home/mona/research/code/librealsense/third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/bag.h:50,
from /home/mona/research/code/librealsense/third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/bag_player.h:40,
from /home/mona/research/code/librealsense/third-party/realsense-file/rosbag/rosbag_storage/src/bag_player.cpp:1:
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp: In instantiation of ‘void boost::detail::function::basic_vtable1<R, T0>::assign_functor(FunctionObj, boost::detail::function::function_buffer&, mpl_::true_) const [with FunctionObj = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; mpl_::true_ = mpl_::bool_<true>]’:
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:608:13: required from ‘bool boost::detail::function::basic_vtable1<R, T0>::assign_to(FunctionObj, boost::detail::function::function_buffer&, boost::detail::function::function_obj_tag) const [with FunctionObj = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*]’
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:498:45: required from ‘bool boost::detail::function::basic_vtable1<R, T0>::assign_to(F, boost::detail::function::function_buffer&) const [with F = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*]’
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:942:7: required from ‘void boost::function1<R, T1>::assign_to(Functor) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*]’
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:728:7: required from ‘boost::function1<R, T1>::function1(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]’
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:1077:16: required from ‘boost::function<R(T0)>::function(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]’
/home/mona/research/code/librealsense/third-party/realsense-file/rosbag/rosbag_storage/src/bag_player.cpp:50:60: required from here
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:572:49: warning: placement new constructing an object of type ‘rosbag::TopicQuery’ and size ‘24’ in a region of type ‘char’ and size ‘1’ [-Wplacement-new=]
572 | new (reinterpret_cast<void*>(&functor.data)) FunctionObj(f);
| ~~~~~~~~^~~~
In file included from /home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/detail/prologue.hpp:17,
from /home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function.hpp:24,
from /home/mona/research/code/librealsense/third-party/realsense-file/rosbag/roscpp_traits/include/ros/message_event.h:42,
from /home/mona/research/code/librealsense/third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/bag.h:50,
from /home/mona/research/code/librealsense/third-party/realsense-file/rosbag/rosbag_storage/include/rosbag/bag_player.h:40,
from /home/mona/research/code/librealsense/third-party/realsense-file/rosbag/rosbag_storage/src/bag_player.cpp:1:
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp: In instantiation of ‘static void boost::detail::function::functor_manager_common<Functor>::manage_small(const boost::detail::function::function_buffer&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type) [with Functor = rosbag::TopicQuery]’:
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp:364:56: required from ‘static void boost::detail::function::functor_manager<Functor>::manager(const boost::detail::function::function_buffer&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type, mpl_::true_) [with Functor = rosbag::TopicQuery; mpl_::true_ = mpl_::bool_<true>]’
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp:412:18: required from ‘static void boost::detail::function::functor_manager<Functor>::manager(const boost::detail::function::function_buffer&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type, boost::detail::function::function_obj_tag) [with Functor = rosbag::TopicQuery]’
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp:440:20: required from ‘static void boost::detail::function::functor_manager<Functor>::manage(const boost::detail::function::function_buffer&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type) [with Functor = rosbag::TopicQuery]’
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:940:13: required from ‘void boost::function1<R, T1>::assign_to(Functor) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*]’
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:728:7: required from ‘boost::function1<R, T1>::function1(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]’
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_template.hpp:1077:16: required from ‘boost::function<R(T0)>::function(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = rosbag::TopicQuery; R = bool; T0 = const rosbag::ConnectionInfo*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]’
/home/mona/research/code/librealsense/third-party/realsense-file/rosbag/rosbag_storage/src/bag_player.cpp:50:60: required from here
/home/mona/research/code/librealsense/third-party/realsense-file/boost/boost/function/function_base.hpp:318:54: warning: placement new constructing an object of type ‘boost::detail::function::functor_manager_common<rosbag::TopicQuery>::functor_type’ {aka ‘rosbag::TopicQuery’} and size ‘24’ in a region of type ‘char’ and size ‘1’ [-Wplacement-new=]
318 | new (reinterpret_cast<void*>(&out_buffer.data)) functor_type(*in_functor);
| ~~~~~~~~~~~^~~~
[ 14%] Linking CXX static library librealsense-file.a
[ 14%] Built target realsense-file
make: *** [Makefile:130: all] Error 2
18521/31772MB
[10867:8660 0:2063] 03:00:10 Thu Jan 14 [mona@goku:pts/1 +1] ~/research/code/librealsense/build
This solved the problem
$ sudo apt-get install libusb-1.0-0-dev
2063 cd ..
2064 rm -rf build/
2065 mkdir build
2066 cd build/
2067 cmake ../ -DBUILD_PYTHON_BINDINGS:bool=true
2068 make -j`nproc`