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

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

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


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

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




reply via email to

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