Adding external library into Qt Creator project

后端 未结 8 2014
广开言路
广开言路 2020-11-22 09:39

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<

8条回答
  •  攒了一身酷
    2020-11-22 10:32

    LIBS += C:\Program Files\OpenCV\lib

    won't work because you're using white-spaces in Program Files. In this case you have to add quotes, so the result will look like this: LIBS += "C:\Program Files\OpenCV\lib". I recommend placing libraries in non white-space locations ;-)

提交回复
热议问题