FET Forum

FET Support (English) => Programming Help => Topic started by: Pg on October 11, 2015, 07:15:39 AM

Title: unable to compile FET 5.28.1
Post by: Pg on October 11, 2015, 07:15:39 AM
I have an iMac with 10.11 el capitan .

I installed the latest update of Xcode 7.0.1 ;

I upgraded to Qt 5.5.0 ;

I tried to install fet 5.28.1 from the terminal but I do not in any way part of the compilation .

so far I have never had any problems .

only it happens to me ?

you have any solution or is incompatible with the new operating system ?
Title: Re: unable to compile FET 5.28.1
Post by: Liviu Lalescu on October 11, 2015, 07:44:46 AM
It should work, but I don't know why you cannot compile it.
Title: Re: unable to compile FET 5.28.1
Post by: Volker Dirr on October 11, 2015, 07:51:52 AM
maybe tell us the error message from the terminal.
Title: Re: unable to compile FET 5.28.1
Post by: Pg on October 11, 2015, 03:19:50 PM
Last login: Sun Oct 11 16:14:14 on ttys000
iMac-di-Piergiorgio-Simoni:~ Pg$ cd fet-5.28.1
iMac-di-Piergiorgio-Simoni:fet-5.28.1 Pg$ qmake -spec macx-g++ fet.pro
-bash: qmake: command not found
iMac-di-Piergiorgio-Simoni:fet-5.28.1 Pg$ make
make: *** No targets specified and no makefile found.  Stop.
iMac-di-Piergiorgio-Simoni:fet-5.28.1 Pg$
Title: Re: unable to compile FET 5.28.1
Post by: Volker Dirr on October 11, 2015, 03:37:10 PM
you haven't installed Qt correct. maybe you only forgot to set the PATH
Title: Re: unable to compile FET 5.28.1
Post by: Pg on October 12, 2015, 07:20:30 AM
excuse but what does it mean ?

what is...set the patch?

I downloaded this :  qt-opensource-mac-x64-clang-5.5.0.dmg

from

http://download.qt.io/official_releases/qt/5.5/5.5.0/

and I installed it
Title: Re: unable to compile FET 5.28.1
Post by: Volker Dirr on October 12, 2015, 10:23:52 AM
I didn't wrote "patch", i wrote "PATH".
I bet you installed and then you opened the terminal.
That doesn't work, because the terminal don't know where you installed Qt. So it won't find Qt and that is why you get an "unknown command" error. You need to set up the PATH in you terminal. Check your ".profil" file. I bet there is no PATH in it.
Title: Re: unable to compile FET 5.28.1
Post by: davvidde on October 12, 2015, 08:44:29 PM
In my case I installed QT under my HomeDir:
/Users/Davide/Qt5.5.0/

So, in terminal, to start compilation I entered the subdir where FET source is expanded from the archive and I wrote:
/Users/Davide/Qt5.5.0/5.5/clang_64/bin/qmake -spec macx-g++ fet.pro

Then:
make

Davide.
Title: Re: unable to compile FET 5.28.1
Post by: Volker Dirr on October 12, 2015, 09:03:36 PM
yes, that is also possible. but i recommend to set the PATH into the ./profile
in that case you don't need to write so much (i know. once it is written you can also press "arrow up" key).
it is also easier to start the compiled executable then and also easier if you compile other projects.
Title: Re: unable to compile FET 5.28.1
Post by: Pg on October 14, 2015, 06:59:28 PM
this works! :

/Users/Pg/Qt5.5.0/5.5/clang_64/bin/qmake -spec macx-g++ fet.pro

thank you

Pg