# Cross compile Marble for xilinx arm zynq

• Hi,
I am trying to cross compile Marble map application using CMake for Zynq.
My Host is UBUNTU 14.04
As Marble source code depend upon Qt .So i first cross compile Qt4 .
when i run Cmake(Version 3.4.1) command with this toolchain.cmake file.
//------------------------------------------------------------
#Mytoolcahin.cmake
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER /opt/Xilinx/SDK/2015.1/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER /opt/Xilinx/SDK/2015.1/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi-g++)
SET(CMAKE_FIND_ROOT_PATH /usr/local/Trolltech/QtEmbedded-4.8.1-arm/)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
//------------------------------------------------------------
I get the following errors.
//-------------------------------------
i have also tried with Qt5.4
with Qt5.4 i got different error which is .
//-------------------------------------

Can anybody plz help ?
Regards,
Junaid

• Hi and welcome to devnet,

From what I can see, you are trying to build a recent version of Marble which is Qt 5 based against an old Qt 4 version.

• you are trying to build a recent version of Marble which is Qt 5 based against an old Qt 4 version.

As i mentioned I have tried both.

1. With Qt4 i tried "marble-15.04.3"
2. With Qt5.4 i tried the latest marble version.
both efforts failed.

• What version of CMake are you using ?