Results 1 to 2 of 2

Thread: -llua not found error

  1. #1
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: -llua not found error

    Hi to all!

    I am trying to compile my project and while trying to do that, I get following error:
    p, li { white-space: pre-wrap; } ld: library not found for -llua5
    collect2: ld returned 1 exit status
    make: *** [TestApp.app/Contents/MacOS/TestApp] Error 1
    make: Leaving directory `/Users/x/Desktop/TestApp-build-desktop'
    The process "/usr/bin/make" exited with code 2.
    Error while building project TestApp (target: Desktop)
    When executing build step 'Make'
    I want to dynamically link lua lib into my project and here is a chunk of my .pro file:
    Qt Code:
    1. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/lua/release/ -llua5
    2. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/lua/debug/ -llua5
    3. else:symbian: LIBS += -llua5
    4. else:unix: LIBS += -L$$PWD/lua/ -llua5
    5.  
    6. INCLUDEPATH += $$PWD/lua
    7. DEPENDPATH += $$PWD/lua
    To copy to clipboard, switch view to plain text mode 
    The libraries are:
    lua/liblua5.1.so
    lua/liblua5.1.a
    lua/liblua5.1.dylib
    Shit, I solved it, the names of libs vere wrong, stupido me!!!!


    Added after 28 minutes:


    Well, ok, now compiles ok, but once I want to launch app, I get error:
    p, li { white-sStarting /Users/xx/Desktop/ABTeamTestApp-build-desktop/TestApp.app/Contents/MacOS/TestApp...
    dyld: Library not loaded: liblua5.1.dylib
    Referenced from: /Users/xx/Desktop/TestApp-build-desktop/TestApp.app/Contents/MacOS/TestApp
    Reason: image not found
    The program has unexpectedly finished.
    Last edited by MarkoSan; 12th February 2011 at 06:13.
    Qt 5.3 Opensource & Creator 3.1.2

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: -llua not found error

    Your system's dynamic linker can't find the library. You need to put it in some place where it can find it or point the linker to the directory containing the library (an equivalent of linux's LD_LIBRARY_PATH).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. make: command not found, Error: 127
    By ct in forum General Programming
    Replies: 3
    Last Post: 21st April 2015, 08:19
  2. internal error: no project could be found for
    By alphazero in forum Newbie
    Replies: 1
    Last Post: 16th November 2010, 12:16
  3. dshow.h not found error on compiling Qt for Windows CE 5.0
    By thanuj in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 21st October 2010, 07:52
  4. Too simple compile error to be found by me??!!!
    By MarkoSan in forum General Programming
    Replies: 6
    Last Post: 20th December 2007, 04:40
  5. Entry Point Not Found Error
    By ToddAtWSU in forum Newbie
    Replies: 10
    Last Post: 8th February 2006, 18:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.