PDA

View Full Version : Cross compile



Ichi
2nd April 2013, 15:37
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

ChrisW67
3rd April 2013, 05:12
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.

Ichi
3rd April 2013, 16:07
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.

wysota
3rd April 2013, 18:33
I don't think this message is related to compilation.

Ichi
3rd April 2013, 19:04
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\q minimald.dll"
Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\platforms\q windowsd.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

wysota
3rd April 2013, 19:30
I'm guessing your virtualbox guest has no 3d acceleration.

Ichi
3rd April 2013, 20:01
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\q minimald.dll"
Temporarily disabling breakpoints for unloaded shared library "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\platforms\q windowsd.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

"

wysota
3rd April 2013, 20:10
I don't see any errors here.

Ichi
3rd April 2013, 20:16
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 :D

wysota
3rd April 2013, 20:49
Essentially you're trying to run a program that demands proper support of OpenGL2 on hardware/software combination that doesn't support it.