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. QtCreator 2.2.1 don't load DLLs

QtCreator 2.2.1 don't load DLLs

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

    I am using QtCreator on Windows, and since I have switched from 2.0.1 to the 2.2.1 I have to setup my own libraries' path to the executable path.

    I have a subdir project structure, and in each library .pro file I have
    @DESTDIR = $$MY_LIB_DIR
    TARGET = $$MY_LIB_NAME@

    In the main project, for each library I have
    @
    win32{
    win32-g++{
    LIBS += -L$$MY_LIB_DIR -l$${MY_LIB_NAME}
    }
    else{
    #MSVC
    }
    }
    else{
    LIBS += -$$MY_LIB_DIR/lib -l$${MY_LIB_NAME}
    }
    @

    before I was able to launch the executable from QtCreator whatever was the value of MY_LIB_DIR (of course outside of QtCreator it need to be on the path), but now it just doesn't launch. I need to set MY_LIB_DIR to the executable directory.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Is MY_LIB_DIR in your PATH? IIRC Windows checks the PATH for libraries to load.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgeyer
        wrote on last edited by
        #3

        "You do.":http://goo.gl/FNXv9

        bq. Windows then searches for the DLLs in the following sequence:

        • The directory where the executable module for the current process is located.
        • The current directory.
        • The Windows system directory. The GetSystemDirectory function retrieves the path of this directory.
        • The Windows directory. The GetWindowsDirectory function retrieves the path of this directory.
        • The directories listed in the PATH environment variable.
        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