plugin example app launch problem :-1: error: cannot find -lpnp_basictools
-
Where are you calling make install ?
-
Which cmd ?
-
IIRC you should have a MinGW ready command line shortcut in the Qt Start menu entry.
-
@SGaist I instaled Qt 5.6, now I install plugins succesfully but it does not matter as all plugins already built stays in Plug & Paint example folder /plugins.
However when building Plug & Paint example is says:-1: error: cannot find -lpnp_basictools
even if /plugins contains17.03.2016 18:22 <DIR> . 17.03.2016 18:22 <DIR> .. 17.03.2016 20:58 32 706 libpnp_basictools.a 17.03.2016 02:38 920 206 libpnp_basictoolsd.a 17.03.2016 02:34 2 216 libpnp_extrafilters.a 17.03.2016 18:22 2 226 libpnp_extrafiltersd.a 17.03.2016 20:58 23 552 pnp_extrafilters.dll 17.03.2016 18:22 824 956 pnp_extrafiltersd.dll
Why Run of plugandpaint in QtCreator may give this message?
-
Because it can't find the plugin files.
One thing you could to is add the path to them to the example .pro file.
-
Because it can't find the plugin files.
One thing you could to is add the path to them to the example .pro file.
@SGaist great thx for you for assist.
I change default .pro configLIBS = -Lplugins -lpnp_basictools if(!debug_and_release|build_pass):CONFIG(debug, debug|release) { mac:LIBS = $$member(LIBS, 0) $$member(LIBS, 1)_debug win32:LIBS = $$member(LIBS, 0) $$member(LIBS, 1)d }
to
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/plugins/ -lpnp_basictools else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/plugins/ -lpnp_basictoolsd else:unix: LIBS += -L$$PWD/plugins/ -lpnp_basictools INCLUDEPATH += $$PWD/plugins DEPENDPATH += $$PWD/plugins win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/plugins/libpnp_basictools.a else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/plugins/libpnp_basictoolsd.a else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/plugins/pnp_basictools.lib else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/plugins/pnp_basictoolsd.lib else:unix: PRE_TARGETDEPS += $$PWD/plugins/libpnp_basictools.a
generated with QtCreator tool, and it works
I am not really sure why it works when default code did not.