non parte la compilazione di fet 5.28.1

Started by Pg, October 10, 2015, 05:09:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pg

ciao.

ho un iMac con 10.11 el capitan.

ho installato l'ultimo aggiornamento di Xcode 7.0.1;

ho aggiornato a Qt 5.5.0;

ho provato ad installare fet 5.28.1 dal terminale ma non mi parte la compilazione in nessuno modo.

finora non ho mai avuto problemi.

capita solo a me?

avete qualche soluzione o è incompatibile con il nuovo sistema operativo?

grazie

ciao

Pg

Valdo

Riprendo la discussione sulla compilazione per mac.

Sono riuscito a compilarlo con le Qt 4.8 sul 10.6.8, poi anche su 10.11 con Qt 5.5 mi sembra, ma su quest'ultimo con la Qt 5.7 mi da un errore relativo al c++ 11 (vado sempre a memoria non ho cil computer davanti).

Ma l'altra questione che mi chiedevo è che il FET che compilo dipende dalla presenza della cartella Qt nel computer, se sposto questa non funziona più. Ora non c'è un modo nella compilazione per aggiungere le librerie Qt dentro il programma FET (non sono un esperto di programmazione, non so se mi sono espresso bene).

N.B. Ma poi le Qt diverse cambiano solo l'aspetto grafico giusto?

Liviu Lalescu

Quote from: Valdo on July 21, 2016, 08:55:00 AM
Riprendo la discussione sulla compilazione per mac.

Sono riuscito a compilarlo con le Qt 4.8 sul 10.6.8, poi anche su 10.11 con Qt 5.5 mi sembra, ma su quest'ultimo con la Qt 5.7 mi da un errore relativo al c++ 11 (vado sempre a memoria non ho cil computer davanti).

Ma l'altra questione che mi chiedevo è che il FET che compilo dipende dalla presenza della cartella Qt nel computer, se sposto questa non funziona più. Ora non c'è un modo nella compilazione per aggiungere le librerie Qt dentro il programma FET (non sono un esperto di programmazione, non so se mi sono espresso bene).


Scusi per l'inglese:

It has to be a way to include the Qt libraries into the FET executable for Mac, just as in the FET executable for Windows. But I cannot help with Mac.

Quote

N.B. Ma poi le Qt diverse cambiano solo l'aspetto grafico giusto?

Yes, it should be like this. Maybe change a bit the speed, but the results should be the same.

Valdo

I have find the solution  :D:

$ cd /Applications/Qt/5.5/clang_64/bin/
$ ./macdeployqt /"pathto"/fet.app       


Valdo

Se qualcuno vuole provarlo, si tratta di Fet 5.30 compilato con Qt 5.5 per MAC OS X El Capitan:

https://www.dropbox.com/s/jqmc88btvj8yvgn/fet%205.30.zip?dl=0

Liviu Lalescu

Quote from: Valdo on July 21, 2016, 12:51:47 PM
I have find the solution  :D:

$ cd /Applications/Qt/5.5/clang_64/bin/
$ ./macdeployqt /"pathto"/fet.app       

I might add this in the README. Is this how you compile FET, or how you make a package to run on other computers?

Valdo

#6
How to include the Qt libraries into the FET.app executable for Mac and make a package to run on other computers.

N.B.
in  $ cd /Applications/Qt/5.5/clang_64/bin/    Applications   is a pathto

so is better

$ cd /"pathto"/Qt/5.5/clang_64/bin/
$ ./macdeployqt /"pathto"/fet.app   

Liviu Lalescu

OK, I think I'll add this.

And how did you compile?

Valdo

Quote from: Liviu Lalescu on July 21, 2016, 01:54:51 PM
OK, I think I'll add this.

And how did you compile?

$ cd fet-x.x.x
$ /"pathto"/Qt/5.5/clang_64/bin/qmake -spec macx-g++ fet.pro
$ make -j 2

Liviu Lalescu

I added your method of obtaining a universal executable for Mac in the README.

I think you can compile with Qt 5.7 if you use a correct way, specified in the README. See the file README, search for the first occurrence of "Clang" - it is the (3) variant of compiling FET for Mac.