QtLeapMotionLibrary icon indicating copy to clipboard operation
QtLeapMotionLibrary copied to clipboard

Building QtLeapMotionLibrary

Open messi1 opened this issue 11 years ago • 1 comments

Hi I'm testing your QtLeapMotionLibrary at the moment. I was faced with the following issues. LeapSDK include path: I suggest that you should add some kind of global LeapSDK path variable to your main project file. From there it would be much easyer to find the include path and the library path.

Adding librarys to your projectfile should be done this way: LIBS += -L -l e.g. LIBS += -L/usr/local/LeapSDK/lib/x86 -lLeap

This line is not working: linux-g++-32 { LIBS += -L/usr/local/LeapSDK/lib/x86 -lLeap LIBS += $$PWD/Leap/x86/libLeap.so install_folder.files += $$LIBS }

It never reaches the LIBS settings. My machine is a 32bit x86 It would be better if you would use "unix {" instead.

Cheers Juergen

messi1 avatar Oct 17 '13 19:10 messi1

You're right, I didn't use the proper syntax to link the libraries. I just committed a correction. I'd like to keep the lib includes in the .pri in order to keep each entity cleanly separated. I have no issue at all on my x86_64. For the unix {} part, I'm not against it but as I need to know the architecture (64 or 32) to link the proper Leap library, I don't know if I'd be able to still do it. Please let me know if it works for you now.

lemirep avatar Oct 17 '13 20:10 lemirep