Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. VeinApiLinux.so /usr/bin/ld: cannot find -lVeinApiLinux

VeinApiLinux.so /usr/bin/ld: cannot find -lVeinApiLinux

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
7 Posts 2 Posters 2.2k Views
  • 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.
  • J Offline
    J Offline
    Jack_Xuan
    wrote on last edited by
    #1

    I am a noob of Qt and using a fingervein device for developing work.But I met a problem .I dont konw how to deal with.Here are some info,as follows:

    1,BUG :

    /usr/bin/ld: cannot find -lVeinApiLinux
    Makefile:234: recipe for target 'mycom' failed
    collect2: error: ld returned 1 exit status
    make: *** [mycom] Error 1
    19:20:20: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project mycom (kit: Desktop Qt 5.7.1 GCC 64bit)
    When executing step "Make"
    2.MYCOM.PRO INFO

    VeinApiLinux .so

    INCLUDEPATH += /usr/lib
    LIBS += -L/usr/lib -lVeinApiLinux -ldl

    I appreciate it.

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @Jack_Xuan Did you check if the library exists at that path ?

      157

      J 2 Replies Last reply
      0
      • p3c0P p3c0

        @Jack_Xuan Did you check if the library exists at that path ?

        J Offline
        J Offline
        Jack_Xuan
        wrote on last edited by
        #3

        thx,hi ,h

        jack@jack:/etc$ ldd /usr/lib/VeinApiLinux
                linux-vdso.so.1 =>  (0x00007ffde9bdf000)
                libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1caacea000)
                /lib64/ld-linux-x86-64.so.2 (0x0000563fb169f000)
        jack@jack:/etc$ 
        
        
        
        
        1 Reply Last reply
        0
        • p3c0P p3c0

          @Jack_Xuan Did you check if the library exists at that path ?

          J Offline
          J Offline
          Jack_Xuan
          wrote on last edited by
          #4

          @p3c0 jack@jack:/etc$ ldd /usr/lib/VeinApiLinux
          linux-vdso.so.1 => (0x0000
          7ffde9bdf000)
          libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1caacea000)
          /lib64/ld-linux-x86-64.so.2 (0x0000563fb169f000)
          jack@jack:/etc$

          1 Reply Last reply
          0
          • p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on last edited by
            #5

            @Jack_Xuan If VeinApiLinux is a library then it should be prefixed with lib and end with .so for dynamic and .a for static because that is what gcc expects. Try renaming it.

            157

            J 1 Reply Last reply
            3
            • p3c0P p3c0

              @Jack_Xuan If VeinApiLinux is a library then it should be prefixed with lib and end with .so for dynamic and .a for static because that is what gcc expects. Try renaming it.

              J Offline
              J Offline
              Jack_Xuan
              wrote on last edited by
              #6

              @p3c0 renaming VeinApiLinux.so->libfingervein.so.0.1 ? then ldconfig -v

              1 Reply Last reply
              0
              • p3c0P Offline
                p3c0P Offline
                p3c0
                Moderators
                wrote on last edited by
                #7

                @Jack_Xuan You are compiling against the library as

                LIBS += -L/usr/lib -lVeinApiLinux -ldl
                

                so the compiler expects a library as
                libVeinApiLinux.so

                157

                1 Reply Last reply
                2

                • Login

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