Results 1 to 10 of 10

Thread: Cross compile

  1. #1
    Join Date
    Feb 2013
    Posts
    29
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Cross compile

    Hi,
    i want compile my QtQuick2 Application i try MXE but no success (some errors with QtQuick ) so how can i cross sompile my project from linux to windows

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,626
    Thanks
    13
    Thanked 1,592 Times in 1,520 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Cross compile

    Why bother. Install Qt on the Windows box and build your source there.

    If you want to make a cross compiler environment on Linux targeting Windows then go right ahead. You need to build the cross-compiler, any libraries it needs, a cross-compiled version of any libraries Qt needs, a cross-compiled version of Qt, a cross compiled version of any 3rd party libraries needed by your application, and then you still need a Windows machine to run the result. As an unsupported, an probably unique, environment all the problems will be yours to solve.
    Last edited by ChrisW67; 3rd April 2013 at 05:17.

  3. #3
    Join Date
    Feb 2013
    Posts
    29
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Cross compile

    Yes i have virtualbox but i want to try another way. It was working good but only for GUI apps but QtQuick 2 apps doens't work.
    Thanks bro


    Added after 1 29 minutes:


    But i have still problem to compile QQuick 2 Application i take some log and this
    QQuickWindow: makeCurrent() failed...
    and it crash.
    Last edited by Ichi; 3rd April 2013 at 16:07.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cross compile

    I don't think this message is related to compilation.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Feb 2013
    Posts
    29
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Cross compile

    This was app outup it compiles fine but when it is starting it crash.
    Debug output:
    Debugging starts
    QML debugging is enabled. Only use this in a safe environment.
    Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\platforms\ qminimald.dll"
    Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\platforms\ qwindowsd.dll"
    QML Debugger: Waiting for connection on port 3768...
    Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\qmltooling \qmldbg_inspectord.dll"
    Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\qmltooling \qmldbg_qtquick2d.dll"
    Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\qmltooling \qmldbg_tcp_qtdeclaratived.dll"
    Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\qmltooling \qmldbg_tcpd.dll"
    static QWindowsEGLStaticContext* QWindowsEGLStaticContext::create(): Could not initialize egl display: error 12289

    QQuickWindow: makeCurrent() failed...
    This running on Virtualbox-Windows7 32bit

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cross compile

    I'm guessing your virtualbox guest has no 3d acceleration.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Feb 2013
    Posts
    29
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Cross compile

    I reinstall directX and now on 100% acceleration is working and now i get new error it is funny:
    Debugging starts
    QML debugging is enabled. Only use this in a safe environment.
    Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\platforms\ qminimald.dll"
    Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\platforms\ qwindowsd.dll"
    QML Debugger: Waiting for connection on port 3768...
    Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\qmltooling \qmldbg_inspectord.dll"
    Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\qmltooling \qmldbg_qtquick2d.dll"
    Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\qmltooling \qmldbg_tcp_qtdeclaratived.dll"
    Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\qmltooling \qmldbg_tcpd.dll"
    OpenGL Warning: Returning GetProcAddress:NULL for wglSetPixelFormatWINE
    OpenGL Warning: Returning GetProcAddress:NULL for wglSetPixelFormatWINE
    OpenGL Warning: Returning GetProcAddress:NULL for wglSetPixelFormatWINE
    OpenGL Warning: No pincher, please call crStateSetCurrentPointers() in your SPU
    QOpenGLShader::link: "(41,18): warning X3206: implicit truncation of vector type

    "

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cross compile

    I don't see any errors here.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Feb 2013
    Posts
    29
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Cross compile

    Compilation is fine but this start program then black window this is all. I think on another PC it will works but you know it is better when i see i have right source

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Cross compile

    Essentially you're trying to run a program that demands proper support of OpenGL2 on hardware/software combination that doesn't support it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Can't cross compile with dbus
    By nrabara in forum Installation and Deployment
    Replies: 3
    Last Post: 19th March 2012, 12:28
  2. Cant cross compile onto Windows CE 5
    By Willybood in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 26th October 2010, 23:38
  3. Cross-Compile to QT/X11 ARM
    By shiranraviv in forum Installation and Deployment
    Replies: 6
    Last Post: 18th December 2009, 11:22
  4. Qtopia cross-compile for arm
    By Bitz in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 12th June 2006, 12:11
  5. Cross compile QT/X11 for platform xscale-elf
    By nmkarvekar in forum Installation and Deployment
    Replies: 0
    Last Post: 19th May 2006, 07:20

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.