Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6200045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:17:49+00:00 2026-05-24T04:17:49+00:00

I am trying to compile QT for ARM. But the linker requires –sysroot option

  • 0

I am trying to compile QT for ARM.
But the linker requires “–sysroot” option to be added for linking files.
So in qmake.conf file, we added under QMAKE_LFLAGS.

But when we compile, its adding this even for initial tools build on the x86 PC. So gcc complains and gives error.

The cross compiler tool chain which doesnt have a .pc file.

Please let me know where to add the “–sysroot” so that this is added only when it tries to cross compile.

Thanks.
Hari

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:17:51+00:00Added an answer on May 24, 2026 at 4:17 am

    You can do this using qmake scopes – specifically platform scope variables. To ensure that -sysroot is only evaluated for your ARM builds you can do something like this:

    arm-linux: {
        QMAKE_LFLAGS += --sysroot
    }
    

    You may need to change the scope, depending on the platform you’re actually targetting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to cross-compile dropbear for android. The files appear to compile find, but
I'm trying to cross compile php for arm and have good progress but I'm
I am trying to compile a project to run on an ARM board that
Iam trying to compile a file of the following format by making a parser
I'm trying to compile a static library to use on Android but I can't
I am trying to configure util-linux to cross compile using arm-none-linux-gnueabi from CodeSourcery. My
I'm trying to compile my first linux ARM hello world program and when I
I am trying to compile Python 3.2 for an ARM920T (architecture 4T) but I
When trying to compile a file that include winnt.h via windows.h, I get the
I am trying to compile Qt embedded for ARM. I have followed the instructions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.