IntelRealSense / RealSenseID

Intel® RealSense™ ID SDK
https://intelrealsense.com/facial-authentication/
Apache License 2.0
98 stars 57 forks source link

Compile new program using .so file #83

Closed alexossa1 closed 3 years ago

alexossa1 commented 3 years ago

I have tried to compile a new .cpp file using built librsid.so and librsid_c.so within /RealSenseID/build/lib. but I got "fatal error: RealSenseID/FaceAuthenticator.h: No such file or directory"

The command that I am using is:

gcc -L. mycppfile.cpp -lrsid -lrsid_c

What could be wrong?

alexossa1 commented 3 years ago

Do anyone try to compile a owned .cpp using the .so libraries?

RealSenseSupport commented 3 years ago

Please add "-I " to your command line. https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html