Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Creator: setting variables for cross-development
Forum Updated to NodeBB v4.3 + New Features

Creator: setting variables for cross-development

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 2 Posters 225 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by mzimmers
    #1

    Hi all -

    I'm trying to build an ARM app from Creator. I have the toolchain, but it's a little unclear how I am supposed to specify arguments for it. Specifically:

    1. I need to define target=arm-arm-none-eabi. Does this go in the Build Steps -> Tool Arguments section? I can't seem to get it to "take."
    2. I added this line to my CMakeLists.txt file:
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --specs=nosys.specs")
    

    Which enables me to run cmake from Creator, but it breaks when I try to run from the CLI. How do I put this into my build configuration?

    Thanks...

    EDIT: I solved #2 by adding the line:

    -DCMAKE_C_FLAGS="--specs=nosys.specs"
    

    to Build Settings --> CMake --> Initial CMake parameters, so that's fixed. Still could use some help with #1.

    EDIT #2: I think I solved #1 with this:

    # Target definition
    set(CMAKE_SYSTEM_NAME Generic)
    set(CMAKE_SYSTEM_PROCESSOR ARM)
    

    I'm not sure I understand the mechanism here (where does "__arm__" get defined?), but I won't argue with success.

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2
      This post is deleted!
      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