Linux permission exception

Linux permission exception
I cloned the C++ version of jetsonGPIO on git, I tried a demo and everything worked and it compiled. However, when executing this program, even if the.so file can be found, it will not be executed properly, even with sudo. However, when you switch to the root user, you can run the./TXT command to run the program normally. I’ve tried everything I know, but it doesn’t work. It also affected my ability to debug using gdb on vscode. Only the root user can debug gdb normally. However, if you do not use the root user, the debugging will fail because you do not have permission.