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. A proper way to link libEGL.lib

A proper way to link libEGL.lib

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.3k Views
  • 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 an app that links libEGL.lib and libGLESv2.lib in .pro file as follows (for working with raw OpenGLES 2.0 calls on Win32 and UWP platforms):

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

    as far as I remember, previously libEGL.lib linked successfully, but with QT 5.13 there is the following error:

    link /NOLOGO /DYNAMICBASE /NXCOMPAT /NODEFAULTLIB:ole32.lib /APPCONTAINER /MACHINE:X64 /NODEFAULTLIB:kernel32.lib /DEBUG /SUBSYSTEM:WINDOWS /MANIFEST:NO /OUT:debug\MyApp.exe @C:\Users\D-Ef\AppData\Local\Temp\MyApp.exe.12740.170688.jom
    LINK : fatal error LNK1104: cannot open file 'libEGLd.lib'
    

    what is the proper way to fix this?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @dmitriano said in A proper way to link libEGL.lib:

      what is the proper way to fix this?

      Search for the lib on your system and pass this path to the linker so it can be found during link time.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      D 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        @dmitriano said in A proper way to link libEGL.lib:

        what is the proper way to fix this?

        Search for the lib on your system and pass this path to the linker so it can be found during link time.

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

        @christian-ehrlicher

        the libs are in C:\Qt\Qt5.13.0\5.13.0\msvc2017_64\lib folder, but the linker cannot find them.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          So did you try to pass that path to the linker? Please show us your pro-file

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          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