Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMake Relative Path Problem
Forum Updated to NodeBB v4.3 + New Features

QMake Relative Path Problem

Scheduled Pinned Locked Moved General and Desktop
qmake
5 Posts 2 Posters 2.0k Views 2 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.
  • T Offline
    T Offline
    tomkulaga
    wrote on last edited by
    #1

    Hi,

    Not sure if this has been posted but search didn't help much.

    I've got this path in my .pro file:

    win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../OpenGL/ -lOpenGL

    and it turns into this in the Makefile.Debug:

    /LIBPATH:C:\build-test-Desktop_Qt_5_4_1_MSVC2013_OpenGL_32bit-Debug\Test..\OpenGL\ OpenGL.lib

    the ellipses don't translate into a path but are placed in literally.

    The other method words where i specify the ".lib" file directly in the LIBS path, but I wanted to get this to work.

    Any ideas?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Do you mean that you want a path without ".." ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Do you mean that you want a path without ".." ?

        T Offline
        T Offline
        tomkulaga
        wrote on last edited by
        #3

        @SGaist

        Thanks for your reply. I would like the '..' to be replaced with the parent directory. It appears to be writing the '..' literally and confusing the Makefile as it complains to me it can't find the lib file.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          The .. should not be a problem. However to your really have a library named OpenGL.lib in your build directory ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          T 1 Reply Last reply
          0
          • SGaistS SGaist

            The .. should not be a problem. However to your really have a library named OpenGL.lib in your build directory ?

            T Offline
            T Offline
            tomkulaga
            wrote on last edited by
            #5

            @SGaist

            Hmm created a fresh new SubDirs project with a linked interal library and it works :/

            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