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. Impossible to cross-compile QT5 App for windows on Linux
Forum Updated to NodeBB v4.3 + New Features

Impossible to cross-compile QT5 App for windows on Linux

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 710 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
    davidgf
    wrote on last edited by
    #1

    Hello,

    I'm trying to compile a certain app for windows on my linux (fedora 20) machine. It works more or less well, but if I try to build it using -static (this is, CONFIG+= static) it fails due to some missing symbols:

    /usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/libQt5Gui.a(qopenglcontext.o):(.text+0x59e): undefined reference to _imp__glGetIntegerv@8' /usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/libQt5Gui.a(qopenglcontext.o):(.text+0x24d9): undefined reference to _imp__glFlush@0'
    /usr/lib64/gcc/i686-w64-mingw32/4.8.3/../../../../i686-w64-mingw32/bin/ld: /usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/libQt5Gui.a(qopenglcontext.o): bad reloc address 0x2 in section `.text$_ZN26QOpenGLSharedResourceGuardD1Ev[__ZN26QOpenGLSharedResourceGuardD1Ev]'

    Any idea of that? AFAIK I have all libs installed, I guess some weird symbol doesnt have the right naming convention.
    Thanks,
    David

    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