How can I add external library into a project built by Qt Creator RC1 (version 0.9.2)? For example, the win32 function EnumProcesses()
requires Psapi.lib
to be added in the project to build.
C++ – Adding external library into Qt Creator project
cqtqt-creatorwinapi
Related Topic
- Qt – How to add an external .a library in Qt Creator project via GUI
- C++ – Image Processing: Algorithm Improvement for ‘Coca-Cola Can’ Recognition
- C++ – an undefined reference/unresolved external symbol error and how to fix it
- R – Need a simple tool for analysing unicode characters
- C# – System.Windows.Application.GetResourceStream returns null
- C++ – Qt Creator – Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild
Best Answer
The proper way to do this is like this:
This way it will work on all platforms supported by Qt. The idea is that you have to separate the directory from the library name (without the extension and without any 'lib' prefix). Of course, if you are including a Windows specific lib, this really doesn't matter.
In case you want to store your lib files in the project directory, you can reference them with the
$$_PRO_FILE_PWD_
variable, e.g.: