Idein / qmkl6

BLAS library for VideoCore VI QPU (Raspberry Pi 4)
BSD 3-Clause "New" or "Revised" License
67 stars 7 forks source link

Cannot compile with installed library #21

Closed ardubluesky closed 2 years ago

ardubluesky commented 2 years ago

tried to copy the copy.cpp, changed the library name and compiled with flags. also, set permissions to video group but always get an error on compiling: (both pycore library and libdrm custom library are installed as per instructions)

pi@raspberrypi:~/c++ $ g++ copy.cpp -lqmkl6 /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/libqmkl6.so: undefined reference to drm_v3d_submit_csd' /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/libqmkl6.so: undefined reference todrm_v3d_wait_bo' /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/libqmkl6.so: undefined reference to drm_v3d_mmap_bo' /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/libqmkl6.so: undefined reference todrm_gem_close' /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/libqmkl6.so: undefined reference to `drm_v3d_create_bo' collect2: error: ld returned 1 exit status

any help would be highly appreciated. thanks.

Terminus-IMRC commented 2 years ago

What happens when -ldrm_v3d is added to the end of the command?

ardubluesky commented 2 years ago

sorry for late response. thank you so much, it works now.