Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Moved] Qt Creator doesn´t find my .libs in Linux.
Forum Updated to NodeBB v4.3 + New Features

[Moved] Qt Creator doesn´t find my .libs in Linux.

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 4 Posters 6.3k 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.
  • J Offline
    J Offline
    josemaria
    wrote on last edited by
    #1

    I have been working in windows for some weeks and things seems to works. After sometime working in windows I went to linux and problems starts.

    I have a multiproject. One of then is a app template and the other ones are libraries. So I have a all.pro that is a template subdirs that includes all my other projects.

    @
    TEMPLATE = subdirs

    DESTDIR = ../build

    SUBDIRS = Database
    Exceptions
    Utils
    Importers
    Types
    Nrtq
    xCdr
    Syncronizer \

    CONFIG += ordered
    CONFIG += warn_on
    @

    I have DESativated the shadows builds in the IDE and I have defined in every project the target dir and the destdir, like this:

    @
    TARGET = Database
    TEMPLATE = lib

    INCLUDEPATH+=../xCdr
    INCLUDEPATH+= ../Types

    DESTDIR = ../build
    @

    The thing is that if I go to console I set LD_LIBRARY_PATH to the right folder in which there are all my .so and it works, but if I run the application from the IDE it can't finde any .so that I create.

    I have tried to set the LD_LIBRARY_PATH in run settings, in build settings, but problems go on.

    Any idea about how to fix this problem? I am using QT creator 2.0 but problems are the same in 1.3.

    Thanks in advance for your help.

    [EDIT: formatting fixed, please use @-tags for .pro snippets, Volker]

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexander
      wrote on last edited by
      #2

      Try to set LD_LIBRARY_PATH in Projects->build Envitonment

      1 Reply Last reply
      0
      • J Offline
        J Offline
        josemaria
        wrote on last edited by
        #3

        I set up the LD_LIBRARY_PATH in both places. Project->Build Settings -> Build Enviroment and in Project -> Run Settings -> Run Enviroment.

        Problems are the same :-(

        1 Reply Last reply
        0
        • J Offline
          J Offline
          josemaria
          wrote on last edited by
          #4

          I have just fixed it, but using a workaround. I create a little bash script that set the LD_LIBRARY_PATH from console and after that open qtcreator. In this way qtcreator knows about this, but if I set up the vlbe using the IDE, it seems that qtcreator just ignore it. Perhaps a bug...

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            Moved to Tools forum, as it's a Qt Creator problem.

            Did you try version 2.1 RC1? It contains many improvements and maybe solves the environment problem too.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • O Offline
              O Offline
              Olorin5800
              wrote on last edited by
              #6

              I use LD_LIBRARY_PATH on both ubuntu and fedora
              Just set it in qt creator in run environment and it should work (at least for me its working with stable and rc build of creator)


              My programs never have bugs, they just develop random features.

              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