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. Log4Qt crosscompiling on x86-win32 for arm-linux
Qt 6.11 is out! See what's new in the release blog

Log4Qt crosscompiling on x86-win32 for arm-linux

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.7k 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.
  • D Offline
    D Offline
    djbuijs
    wrote on last edited by
    #1

    I am trying to Build Log4Qt on a Windows machine (customer requirement...) for an embedded board running linux on a ARM Cortex-A9. I use qmake (4.7.4) to generate the Makefiles (I am not using Qt Creator).

    I want to make sure I go about this the right way which is the reason for this post:

    1. Cross compile Qt for arm-linux as described here: http://qt-project.org/forums/viewthread/18672
    2. Generate Makefiles using a Qt installation for Windows.
    3. Now I get to the sticky bit: Qt4Log should be linked against the cross-compiled Qt, so not the Windows version. At this point the generated Makefiles contain include directories (INCPATH) from the Qt for Windows installation.... This was what I came up with: I can modify the Log4Qt.pri file to include different directories in case of a cross-build, so something like this:

    win32 {
    CONFIG += qt
    QT += core
    }
    arm {
    INCLUDEPATH += $$(QT4_ARM_DIR)/include
    INCLUDEPATH += $$(QT4_ARM_DIR)/include/QtCore
    }

    This feels somewhat clunky.... I haven't actually tried yet (cross-compiling Qt on Windows turns out to be NOT trivial.....), but is this a valid approach or is there a better way to do this?

    Thanks,
    Dirk

    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