Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Debug libs are linked to release version of the app
Forum Updated to NodeBB v4.3 + New Features

Debug libs are linked to release version of the app

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 829 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.
  • D Offline
    D Offline
    Dmitriano
    wrote on last edited by Dmitriano
    #1

    I have the following section in my PRO file:

    win32 {
        debug {
            LIBS += libEGLd.lib libGLESv2d.lib
        }
        release {
            LIBS += libEGL.lib libGLESv2.lib
        }
    }
    

    when I build my app in Win32 32bit release configuration in QtCreator, libGLESv2d.lib is linked to the app, see the picture:
    alt text

    QMake version 3.1
    Qt version 5.9.1

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

      Hi,

      Where are these libraries stored in your computer ?

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

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Where are these libraries stored in your computer ?

        D Offline
        D Offline
        Dmitriano
        wrote on last edited by Dmitriano
        #3

        Hi @SGaist !
        They are ANGLE QT libraries. DLLs in C:\Qt\Qt5.9.1\5.9.1\msvc2015\bin\ and LIBS in C:\Qt\Qt5.9.1\5.9.1\msvc2015\lib, I use them directly, because I am not sure there is ANGLE module for QMake.

        Still cannot figure out how it works, if I specify the libraries with CMake like this:

        target_link_libraries(${PROJECT_NAME} debug ${ANGLE_LIB_DIR}libEGLd.lib debug ${ANGLE_LIB_DIR}libGLESv2d.lib optimized ${ANGLE_LIB_DIR}libEGL.lib optimized ${ANGLE_LIB_DIR}libGLESv2.lib)
        

        and then run

        msbuild MyApp.sln /p:Configuration=Release
        

        the libs are linked correctly.

        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