August 9, 2011

mike4 mike4
Lab Rat
70 posts

[Moved] configure prefix

 

Hi
I want to compile flightgear [wiki.flightgear.org] but having the simgear dependency not at default location:

./configure —prefix=/path/to/fgInstallation —with-osg=/path/to/osg/installation —enable-osgviewer

Where would i put the above command line in qtcreator settings?
Many thanks
Michael

5 replies

August 9, 2011

sierdzio sierdzio
Area 51 Engineer
2330 posts

yes, go into Projects->Build steps->qmake [details]

There is an input field ‘Additional arguments’ – pu ‘em there.

All that assuming that flightgear is a Qt project.

 Signature 

(Z(:^

August 9, 2011

mike4 mike4
Lab Rat
70 posts

only make but says unrecognized option —prefix. doesn’t this belong in qtcreator below make?

./configure —prefix=/media/DATA/FGFS/install/fgfs/ —exec-prefix=/media/DATA/FGFS/install/fgfs/ —with-osg=/media/DATA/FGFS/install/OpenSceneGraph —with-simgear=/media/DATA/FGFS/install/simgear —with-plib=/media/DATA/FGFS/install/plib

Thanks
Michael

August 9, 2011

loladiro loladiro
Lab Rat
596 posts

There is an “Add build step” button in the same view. If the project doesn’t use qmake (I assume it doesn’t because it uses configure), you can also remove qmake there.

August 9, 2011

Volker Volker
Robot Herder
5428 posts

Moved to the tools forums, it’s a Qt Creator question, not a Qt issue neither one of installing Qt.

August 11, 2011

Tobias Hunger Tobias Hunger
Mad Scientist
3135 posts

I would personally not put the command into the Qt Creator settings at all: You do not want to keep re-running this for each and every build!

So just run it once from a terminal and then only add the “make” step to Qt Creator. That should work fine.

 
  ‹‹ why is publishing currently not possible for project?      How to draw rectangle, rhombus, triangle at the extremities of lines ››

You must log in to post a reply. Not a member yet? Register here!