Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Linking an external static library in an openFrameworks project

$
0
0

@slzatz wrote:

I am new to openFrameworks and qtcreator/qbs (and quite impressed with the framework’s capabilities). My operating system is desktop arch linux. I have searched for what seems like such a basic information including in the Qbs Quick Reference and the full Qbs Manual but can’t figure out how to proceed.

This is the situation:

I have compiled an external library (cpr - https://github.com/whoshuu/cpr. Note that the library seems to have compiled without problem since a sample app runs fine.

The library header files are in ../apps/myApps/mysketch/cpr/include and the static library, libcpr.a, is in ../apps/myApps/mysketch/cpr/lib.

I’ve edited my original note since initially I was trying to edit ofApp.qbs, which I assume is a bad idea. I am now editing mysketch.qbs, which is where I am presuming that the changes should go. Simply adding of.staticLibraries['cpr'] and doing the same for of.includePaths does not change the message “cannot find -lcpr”

Note that my openFrameworks program compiles fine if I remove the code related to the external cpr library.

I would be very appreciate if someone could point me in the right direction. Thanks,

Steve

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles