undefined reference to `drmModeGetFB' when compiling OpenGL-based software On Xavier

When I compile Pangolin source code, which is a OpenGL-based software On Jetson Xavier. I was confronted with the linking error:
/usr/lib/gcc/aarch64-linux-gnu/7/…/…/…/aarch64-linux-gnu/libavdevice.so: undefined reference to drmModeGetFB' /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/libavdevice.so: undefined reference to drmModeFreeFB’
collect2: error: ld returned 1 exit status
examples/HelloPangolin/CMakeFiles/HelloPangolin.dir/build.make:114: recipe for target ‘examples/HelloPangolin/HelloPangolin’ failed
make[2]: *** [examples/HelloPangolin/HelloPangolin] Error 1
CMakeFiles/Makefile2:304: recipe for target ‘examples/HelloPangolin/CMakeFiles/HelloPangolin.dir/all’ failed
make[1]: *** [examples/HelloPangolin/CMakeFiles/HelloPangolin.dir/all] Error 2
Makefile:151: recipe for target ‘all’ failed
make: *** [all] Error 2
I cann’t solve it, could someone know the reason? and give me some suggestion?
Thanks a lot and wish you every success!

Please try

Thank you for your help
I use the following command
nvidia@jetson-0321117079444:~ cd /usr/lib/aarch64-linux-gnu/ nvidia@jetson-0321117079444:/usr/lib/aarch64-linux-gnu sudo ln -sf libdrm.so.2.4.0 libdrm.so.2

I can successfully compile my OpenGL-based code. And there is a file,which should be the executable file by OS, after compiling. But the the file, which is formed by compiling, cann’t
run. I don’t know why.I guess may the format isn’t correct. Could you give me suggesting.

Wish you every success

Does ‘chmod 755’ help?