QtLeapMotionLibrary
QtLeapMotionLibrary copied to clipboard
Building QtLeapMotionLibrary
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
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
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.