简体   繁体   中英

Error compiling Qt plugin project

I've been trying to Create Qt Plugins, but to no much success so far. I'm following the Qt documentation, How to Create Qt Plugins on the Qt website.

The Plug & Paint Basic Tools Example ( tools/plugandpaintplugins/basictools/basictools.pro ) compiles well. However, whenever I try to compile Plug & Paint Example )* ( tools/plugandpaint/plugandpaint.pro ), I get the error:

:-1: error: cannot find -lpnp_basictoolsd
collect2.exe:-1: error: error: ld returned 1 exit status

even though I have a libpnp_basictoolsd.a in plugandpaint/plugins .

My non-compiling version of the official Qt example is HERE (Plug-Paint-Example ) on GITHUB .

What could I be my problem? Thank you all in advance.

Windows 7

Qt Creator 3.6.0 Based on Qt 5.5.1 (MSVC 2013, 32 bit)

Built on Dec 15 2015 01:01:38

From revision b52c2f91f5

也许您应该将libpnp_basictoolsd.a路径添加到您的项目中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM