Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. plugin example app launch problem :-1: error: cannot find -lpnp_basictools
Forum Updated to NodeBB v4.3 + New Features

plugin example app launch problem :-1: error: cannot find -lpnp_basictools

Scheduled Pinned Locked Moved Solved General and Desktop
25 Posts 3 Posters 11.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kofr
    wrote on last edited by Kofr
    #11

    @SGaist
    what make install shows

    cd basictools\ && ( if not exist Makefile C:\Qt\5.5\mingw492_32\bin\qmake.exe C:\Qt\Examples\Qt-5.5\widgets\tools\plugandpaintplugins\basictools\basictools.pro -spec win32-g++ -o Makefile ) && make -f Makefile install
    make[1]: Entering directory `C:/Qt/Examples/Qt-5.5/widgets/tools/build-plugandpaintplugins-Desktop_Qt_5_5_1_MinGW_32bit-Release/basictools'
    make -f Makefile.Release install
    make[2]: Entering directory `C:/Qt/Examples/Qt-5.5/widgets/tools/build-plugandpaintplugins-Desktop_Qt_5_5_1_MinGW_32bit-Release/basictools'
    copy /y ..\..\plugandpaint\plugins\libpnp_basictools.a C:\Qt\Examples\Qt-5.5\widgets\tools\plugandpaint\plugins\libpnp_basictools.a
    impossible to copy files over existing.
    files copied: 0.
    make[2]: Leaving directory `C:/Qt/Examples/Qt-5.5/widgets/tools/build-plugandpaintplugins-Desktop_Qt_5_5_1_MinGW_32bit-Release/basictools'
    make[1]: Leaving directory `C:/Qt/Examples/Qt-5.5/widgets/tools/build-plugandpaintplugins-Desktop_Qt_5_5_1_MinGW_32bit-Release/basictools'
    cd extrafilters\ && ( if not exist Makefile C:\Qt\5.5\mingw492_32\bin\qmake.exe C:\Qt\Examples\Qt-5.5\widgets\tools\plugandpaintplugins\extrafilters\extrafilters.pro -spec win32-g++ -o Makefile ) && make -f Makefile install
    make[1]: Entering directory `C:/Qt/Examples/Qt-5.5/widgets/tools/build-plugandpaintplugins-Desktop_Qt_5_5_1_MinGW_32bit-Release/extrafilters'
    make -f Makefile.Release install
    make[2]: Entering directory `C:/Qt/Examples/Qt-5.5/widgets/tools/build-plugandpaintplugins-Desktop_Qt_5_5_1_MinGW_32bit-Release/extrafilters'
    copy /y ..\..\plugandpaint\plugins\pnp_extrafilters.dll C:\Qt\Examples\Qt-5.5\widgets\tools\plugandpaint\plugins\pnp_extrafilters.dll
    impossible to copy files over existing.
    files copied: 0
    make[2]: Leaving directory `C:/Qt/Examples/Qt-5.5/widgets/tools/build-plugandpaintplugins-Desktop_Qt_5_5_1_MinGW_32bit-Release/extrafilters'
    make[1]: Leaving directory `C:/Qt/Examples/Qt-5.5/widgets/tools/build-plugandpaintplugins-Desktop_Qt_5_5_1_MinGW_32bit-Release/extrafilters'
    

    I think there is some problems with paths, but I do not understand what is wrong.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #12

      Do you have enough space left ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply
      0
      • SGaistS SGaist

        Do you have enough space left ?

        K Offline
        K Offline
        Kofr
        wrote on last edited by Kofr
        #13

        @SGaist I have never faced with such a problem....
        yes, I do have space....
        If I delete all files from target directory C:\Qt\Examples\Qt-5.5\widgets\tools\plugandpaint\plugins and run make install I get the listing as in my previous post with errors of gnu make, but in the target directory will be files:

        15.03.2016  21:50            32 922 libpnp_basictools.a
        15.03.2016  21:50             2 216 libpnp_extrafilters.a
        15.03.2016  21:50            23 552 pnp_extrafilters.dll
        

        however Plug and Paint example is not being compiled, still cannot find -lpnp_basictools
        Please show your make install output and what files in target directory.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #14

          Are you doing it from the command line or Qt Creator ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          K 1 Reply Last reply
          0
          • SGaistS SGaist

            Are you doing it from the command line or Qt Creator ?

            K Offline
            K Offline
            Kofr
            wrote on last edited by
            #15

            @SGaist building plugins with qt creator, installing by make install

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #16

              Where are you calling make install ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              K 1 Reply Last reply
              0
              • SGaistS SGaist

                Where are you calling make install ?

                K Offline
                K Offline
                Kofr
                wrote on last edited by
                #17

                @SGaist cmd

                cd C:\Qt\Examples\Qt-5.5\widgets\tools\build-plugandpaintplugins-Desktop_Qt_5_5_1_MinGW_32bit-Release
                make install
                
                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #18

                  Which cmd ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  K 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Which cmd ?

                    K Offline
                    K Offline
                    Kofr
                    wrote on last edited by
                    #19

                    @SGaist said:

                    Which cmd ?

                    WINDOWS Command prompt
                    is it wrong way to use external gnu make?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #20

                      IIRC you should have a MinGW ready command line shortcut in the Qt Start menu entry.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      K 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        IIRC you should have a MinGW ready command line shortcut in the Qt Start menu entry.

                        K Offline
                        K Offline
                        Kofr
                        wrote on last edited by
                        #21

                        @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 contains

                        17.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?

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #22

                          Because it can't find the plugin files.

                          One thing you could to is add the path to them to the example .pro file.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          K 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            Because it can't find the plugin files.

                            One thing you could to is add the path to them to the example .pro file.

                            K Offline
                            K Offline
                            Kofr
                            wrote on last edited by
                            #23

                            @SGaist great thx for you for assist.
                            I change default .pro config

                            LIBS           = -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.

                            1 Reply Last reply
                            0
                            • pistoletaP Offline
                              pistoletaP Offline
                              pistoleta
                              wrote on last edited by
                              #24

                              I have the same problem running on Ubuntu, on windows 8 otherwise i have no problems :\ , if i build first the plugin and after the application it works just fine

                              1 Reply Last reply
                              0
                              • pistoletaP Offline
                                pistoletaP Offline
                                pistoleta
                                wrote on last edited by
                                #25

                                problem solved downloading Qt 5.6 :\

                                1 Reply Last reply
                                0

                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved