Add external library in QtCreator on OS X

Hi,

I am setting up a project using QtCreator on OS X and can’t figure out how to add the static library to my project. Where should I add the path to the .a file in my qbs file?

Thanks

ni of.linkerFlags: [] as:

 of.linkerFlags: [ 'pathtolibrary.a' ]
1 Like

Thanks for the answer.
I tried this already, giving a relative path and I was getting error that it couldn’t find the file.

Now I just tried again, giving an absolute path instead and it seems to work.

you can also use:

of.linkerFlags: [ FileInfo.joinPaths(project.sourceDirectory, 'relatiepathto/library.a') ]
1 Like