Results 1 to 7 of 7

Thread: Could anybody help me?

  1. #1
    Join Date
    Feb 2010
    Posts
    7
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Could anybody help me?

    Hi all,
    could somebody help me? I try to compiling with arm-qtopia and next error occurs:
    " /usr/bin/ld: cannot find -lqtopia2 "
    What this mean and what I will be able to try do?
    Please, help me.
    Thanks in all.

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Could anybody help me?

    The linker cannot find a library called libqtopia2.(so|a). It might be called libQtopia.(so|a) or libQtopia2.(so|a) or something like that.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Could anybody help me?

    It means that the specified library was not found on the library path used by the linker. You are possibly missing a "-Lpath" option.

  4. #4
    Join Date
    Feb 2010
    Posts
    7
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Could anybody help me?

    Quote Originally Posted by ChrisW67 View Post
    It means that the specified library was not found on the library path used by the linker. You are possibly missing a "-Lpath" option.
    Hi ChrisW67, I found the library file libqtopia2.so.2.1.0 and now I don't know how I can set the path.
    Makefile includes: LIBS= $(SUBLIBS) -lqtopia2 -lqtopia -lqpe -L/...
    and I tried to add -L/path(the path where libqtopia2 is) but it is the same case.
    I tried to set SUBLIBS with export but it doesn't work.
    So, how I can set the library path?

    Thanks for you.

  5. #5
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Could anybody help me?

    Use
    Qt Code:
    1. LIBS += ...
    To copy to clipboard, switch view to plain text mode 

    It might improve matters
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Could anybody help me?

    The missing "+" symbol that Franz points out is very important. Without it, you will be removing any basic settings qmake had arranged for you.

  7. #7
    Join Date
    Feb 2010
    Posts
    7
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Could anybody help me?

    Hi franz and ChrisW67. Thanks for you.
    Because I'm not be familiar with Linux I need to learn more about it...
    So example projects includes some specs files. And these files set a environment variables before a makefile called.
    This was reason why the library path was not found.
    I had to only change the right path to those files.

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.