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

  • SEARCH
  • Home
  • 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 4018556
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:59:50+00:00 2026-05-20T09:59:50+00:00

I have a project I am working on, and need to be able to

  • 0

I have a project I am working on, and need to be able to compile both 32bit and 64bit versions on linux. I have both 32 and 64bit versions of the Qt libraries installed, and use eclipse to do my work. Inside eclipse I can switch between the different Qt versions through the Qt properties menu in project properties. My question is this:

Since the machine is 64bit, QMAKESPEC is linux-g++-64 by default, even if I switch my qt libraries to the 32 bit versions, g++ still outputs 64bit object files- which I cannot link with other 32bit libraries. I know one can export the QMAKESPEC environment variable, and that works in the shell, but is it possible to do this within eclipse? So that when I run qmake within eclipse, the appropriate QMAKESPEC is applied?

Thank you in advance!

  • 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-20T09:59:51+00:00Added an answer on May 20, 2026 at 9:59 am

    I have had to deal with this problem when doing some cross-compiling for multiple targets with Qt under Eclipse (really Momentics). I came up with 2 different ways. The first one was what I settled on, but here are they both are.

    1) The first way is to start by creating the project as a normal CDT C/C++ project instead of a Qt project. QMake is then added as an External Tool (Run –> External Tools –> External Tools Configuration…) with Arguments specific for how to run qmake (e.g. ‘-r -unix -spec linux-g++-64 “CONFIG+=enableFeature”‘). Multiple versions of the QMake external tool are used for different configurations. To change between them, the different external tools are invoked.

    The advantage of this approach is that it gives very fine control of exactly how QMake is invoked and when it is invoked. The drawback is that the *.pro files are note automatically managed.

    2) The other method I tried (and I think worked… YMMV) was with a Qt Project. Here, the QMAKESPEC is set as an environmental variable in the Project Properties under “C/C++ Make Project” under the “Environment” tab.

    IIRC, the big issue I found here (and for which I filed a bug report) was that changing other properties would cause the QMAKESPEC to be “corrected” automatically back to another value for you. The practical implication is that you need to make sure it is the last thing set before clicking OK to close the Properties dialog.

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

Sidebar

Related Questions

I am working on asp.net project and each time i need to use jquery
I have a normal VS2008 project that I've been working on for awhile that
I have this project I'm working on. The following conditions apply In this project
For a small project I'm working on I need to cycle through a list.
I project I have been working on has now been split between me and
I have a Django project that I need mounted at two different subdirectories of
I am working on a project where the user would be able to buy
I am working on a project where I have a class called HGraphic that
I am working on a project where I have a set of known measurements
I am working on project where I need to delete all empty folder (directories)

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.