Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to adjust QT Creator for cross-compilation with QT5 in Windows
Forum Updated to NodeBB v4.3 + New Features

How to adjust QT Creator for cross-compilation with QT5 in Windows

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tankist
    wrote on last edited by
    #1

    I need to make a cross-compilation with QT5 in Windows under the ARM Linux platform. I have found a lot of descriptions how to adjust QT Creator in Linux, but nothing for Windows. I tried to use Harmattan environment from Qt SDK, but he is so old and he makes programs with QT4. For my mind the easiest way is to use Harmattan from Qt SDK but I need to change his library from QT4 to QT5. As I understand I have to make my own sysroot instead existing (harmattan_sysroot_10.2011.34-1_slim). If all is true, it is followed my questions:

    1. How can I make new sysroot for Harmattan?
    2. Do I have to make new "qmake" for QT5 ?
    3. Do I have to find new "make" for QT5 ?
    4. Maybe there is another way to achieve my goal?
    1 Reply Last reply
    0
    • A Offline
      A Offline
      andrep
      wrote on last edited by
      #2
      1. I don't know. 2) Each Qt build has its own qmake. There is usually a 1:1 mapping between Qt installations and qmake binaries, so: Yes. 2) No, you should be able to use the same 'make' as for Qt 4. 4) Probably, but I don't know.
      1 Reply Last reply
      0
      • T Offline
        T Offline
        tankist
        wrote on last edited by
        #3

        Thanks for reply. I just started to build qmake in Windows, but I've got a problem: make process unexpected crashes with the message:
        @This is the Qt for Windows Open Source Edition.

        You have already accepted the terms of the license.

        Creating qmake...
        Makefile:13: *** missing separator. Stop.
        Makefile:13: *** missing separator. Stop.
        Cleaning qmake failed, return code 2
        @

        The part of qmake Makefile is:
        @#AutoGenerated by configure.exe
        BUILD_PATH = F:\Qt\qt-5.3.1\qtbase
        SOURCE_PATH = F:\Qt\qt-5.3.1\qtbase
        INC_PATH = F:\Qt\qt-5.3.1\qtbase\include
        QT_VERSION = 5.3.1
        QMAKESPEC = linux-arm-gnueabi-g++

        !IF "$(QMAKESPEC)" == "win32-msvc" || "$(QMAKESPEC)" == "win32-msvc.net" || "$(QMAKESPEC)" == "win32-msvc2002" || "$(QMAKESPEC)" == "win32-msvc2003" || "$(QMAKESPEC)" == "win32-msvc2005" || "$(QMAKESPEC)" == "win32-msvc2008" || "$(QMAKESPEC)" == "win32-msvc2010" || "$(QMAKESPEC)" == "win32-msvc2012" || "$(QMAKESPEC)" == "win32-msvc2013" || "$(QMAKESPEC)" == "win32-icc"

        !if "$(SOURCE_PATH)" == ""
        SOURCE_PATH = ..
        !endif
        !if "$(BUILD_PATH)" == ""
        BUILD_PATH = ..
        !endif

        QMKSRC = $(SOURCE_PATH)\qmake

        specific stuff for NMake and ICC

        !if "$(QMAKESPEC)" == "win32-icc"
        CXX = icl
        LINKER = link
        CFLAGS = /Zc:forScope
        !else
        CXX = cl
        LINKER = link
        !endif
        @

        What the problem?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved