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. Running executable in QT Creator vs command line
Qt 6.11 is out! See what's new in the release blog

Running executable in QT Creator vs command line

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 3.1k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I created application that uses 3rd party dynamic libraries in QTCreator.

    I can run this application from command line, but when I run it from QT IDE I am getting an error that I don’t have permission to load third party library.

    Call to one of the library function creates process that needs to load additional library that is failed.

    I have the same error when run “Run” or “Start Debugging” commands in IDE.

    I am using Open SuSE Linux 11.4 and Qt Creator 2.1.0 (Qt 4.7.1).

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Are you doing anything special on the command line to be able to run your application (special user, etc.)?

      Check the run settings (Projects->Run Settings), especially the environment there. Make sure you have the same settings as used on the command line.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Thanks for the hint.
        The command line invocation uses env variables (LD_LIBRARY_PATH in my case) and app found a library in /usr/bin64. QT Creator has different settings and used different version of the library for linking.

        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