mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] qt5 build and cmake use


From: ludovic léau-mercier
Subject: Re: [Mingw-cross-env-list] qt5 build and cmake use
Date: Tue, 11 Mar 2014 15:50:22 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.0

Hi,

i tryed with the target x86_64-w64-mingw32.static
qt5 have compiled with succed but i have another error when i try to compil my project with cmake :
-- MXE x86_64-w64-mingw32.static BUILD
-- CMAKE PREFIX /home/ludo/workspace/attributor/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/
-- CMAKE TOOLCHAIN /home/ludo/workspace/attributor/mxe/usr/x86_64-w64-mingw32.static/share/cmake/mxe-conf.cmake
-- CMAKE MODULE PATH /home/ludo/workspace/attributor/cmake/modules
-- Qt5Core_DIR /home/ludo/workspace/attributor/mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5Core
CMake Error at mxe/usr/x86_64-w64-mingw32.static/qt5/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:15 (message):
  The imported target "Qt5::Gui" references the file

     "/home/ludo/workspace/attributor/mxe/usr/x86_64-w64-mingw32.static/qt5/plugins/imageformats/qtga.lib"

  but this file does not exist.

I'm blocking by theses errors. I don't found any solution at this time.

Thanks if someone have an idea.

Ludovic


On 11/03/2014 09:03, ludovic léau-mercier wrote:
Hi all,

I try to cross compil a Qt application to windows.
I have build with succed mxe, and qt5 with the master branch and target : x86_64-w64-mingw32.shared
When i launch cmake on my application i have an error on find Qt : (comment inside log)

-- MXE x86_64-w64-mingw32.shared BUILD
-- CMAKE PREFIX /home/ludo/workspace/attributor/mxe/usr/x86_64-w64-mingw32.shared/qt5/lib/cmake/
-- CMAKE TOOLCHAIN /home/ludo/workspace/attributor/mxe/usr/x86_64-w64-mingw32.shared/share/cmake/mxe-conf.cmake

(Here seeral custom camke module to manage linux, mac and windows cross compilation)
-- CMAKE MODULE /home/ludo/workspace/attributor/cmake/modules

(Ok cmake file search Qt5Core  : find_package(Qt5Core REQUIRED) and found it : )
-- Qt5Core_DIR /home/ludo/workspace/attributor/mxe/usr/x86_64-w64-mingw32.shared/qt5/lib/cmake/Qt5Core

(Now cmake file search Qt5Gui : find_package(Qt5Gui) and failed : )
CMake Error at mxe/usr/x86_64-w64-mingw32.shared/qt5/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:18 (message):
  Failed to find "glu32" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE
  "x86_64-linux-gnu".

(It's very strange that cmake have the var CMAKE_CXX_LIBRARY_ARCHITECTURE set to x86_64-linux-gnu no ? )

Call Stack (most recent call first):
mxe/usr/x86_64-w64-mingw32.shared/qt5/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:54 (_qt5gui_find_extra_libs)
mxe/usr/x86_64-w64-mingw32.shared/qt5/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:155 (include)
  cmake/modules/QtVersionAbstraction.cmake:34 (find_package)
  CMakeLists.txt:57 (include)

Have you an idea if there are a problem with mxe cmake and qt5.

Thanks

Ludovic



--
Coriolys

Ludovic Léau-Mercier - Associé fondateur - Gérant
Scop ARL Coriolys - La Coche - 38570 Theys, France
Tel: +33 (0)6 28 06 88 65
Mail: address@hidden
Internet: www.coriolys.fr


reply via email to

[Prev in Thread] Current Thread [Next in Thread]