FET Forum

FET Support (English) => Get Help => Topic started by: Juan Pedro Secondo on November 22, 2008, 02:14:02 PM

Title: Fet on Linux and some more stuff
Post by: Juan Pedro Secondo on November 22, 2008, 02:14:02 PM
Hi everybody,

I've been doing some research on apps that would help me with the timetable at school and FET is the right choice.

This is the time (after 8 months of adjusting parameters) that we are going to make run with the real data to build the schedule of the next year 2009.

I've been using FET (win version) with no problem. I recently changed to Ubuntu and want to run in Linux but I haven't been able to run-prepare-compile or whatever is necesary to do it. I want to throw all my Win stuff and be able to live in a 100% open platform.

I followed the doc on the linux version but I didn't success. I need a little help on this.
Anyway I still run FET with WINE and its ok for now.

Is there any difference with the Lin and Win version of FET?

Thanks and keep the good work

Juan Pedro Secondo
Montevideo, Uruguay
Title: Re: Fet on Linux and some more stuff
Post by: Liviu Lalescu on November 22, 2008, 02:29:41 PM
Hello!

FET is made under GNU/Linux. The Windows exe version is obtained by compiling the sources (which are universal) under Windows.

I am not sure if FET runs faster under GNU/Linux than under Windows. It might be possible, but careful testing must be done to test this.

Under wine, it might be possible that FET runs slower. I am not sure, again testing must be done.

There can be a speed difference, but the quality of timetables should be the same. I use a custom random number generator from Knuth's TAOCP, which produces quality numbers on any platform, and the rest of the program uses the same routines.

To install under Kubuntu, please get the Qt packages and maybe gcc and gcc-g++ (or g++, I am not sure about the name). You need probably the packages qt4-lib or something like that - maybe qt4-make, qt4-devel. I attach the latest README file for FET, I modified it a bit.

It is not difficult to compile FET under GNU/Linux and it is highly recommendable.

Please let me know your exact problem, so I shall instruct you.
Title: Re: Fet on Linux and some more stuff
Post by: Juan Pedro Secondo on November 22, 2008, 02:57:39 PM
That was a fast answer!!!

Still trying!!! I managed to verify what version of QT was installed (both qt3 and 4 )

So I run QMAKE-QT4 fet.pro to force using the last

This is what I got:

Quotejsecondo@dell-ubuntu:~/Software/fet/fet-5.7.3$ qmake-qt4 -v
QMake version 2.01a
Using Qt version 4.4.3 in /usr/lib
jsecondo@dell-ubuntu:~/Software/fet/fet-5.7.3$ qmake-qt4 fet.pro
jsecondo@dell-ubuntu:~/Software/fet/fet-5.7.3$ make
cd src/ && make -f Makefile
make[1]: Entering directory `/home/jsecondo/Software/fet/fet-5.7.3/src'
cd interface && make -f Makefile
make[2]: Entering directory `/home/jsecondo/Software/fet/fet-5.7.3/src/interface'
/usr/share/qt3/bin/uic subjectsstatisticsform_template.ui -o ../../tmp/subjectsstatisticsform_template.h
uic: File generated with too recent version of Qt Designer (4.0 vs. 3.3.8b)
make[2]: *** [../../tmp/subjectsstatisticsform_template.h] Error 1
make[2]: Leaving directory `/home/jsecondo/Software/fet/fet-5.7.3/src/interface'
make[1]: *** [sub-interface] Error 2
make[1]: Leaving directory `/home/jsecondo/Software/fet/fet-5.7.3/src'
make: *** [sub-src-make_default] Error 2
jsecondo@dell-ubuntu:~/Software/fet/fet-5.7.3$


I can see some lines of code that reference some QT3 lib or something like that.

Juan Pedro Secondo
Montevideo - Uruguay
Title: Re: Fet on Linux and some more stuff
Post by: Liviu Lalescu on November 22, 2008, 03:22:53 PM
File subjectsstatisticsform_template.ui must be compiled using uic4. Probably, your GNU/Linux has uic linking to uic3, which is not right. Please check that you have uic4 package installed. Also, check in etc/alternatives, you may have a link named uic. This needs to point to uic4 (/usr/lib/uic probably). Anyway, when you type "uic -version" it has to be uic 4. FET uses also uic3, but this is explicitly written as "uic3".

I'll add this information in the README. Please keep me informed.
Title: Re: Fet on Linux and some more stuff
Post by: Juan Pedro Secondo on November 22, 2008, 03:29:16 PM
One step further!!!

The Makefiles in SRC and INTERFACE weren't prepared for qt4.
I did the qmake-qt4 on both and also realized that g++ was NOT installed!!!

It's comiling now. I'll let you know how that ended.

THANKS!!!!

Juan Pedro
Title: Re: Fet on Linux and some more stuff
Post by: Juan Pedro Secondo on November 22, 2008, 04:05:52 PM
 :D SUCCESS!!!

After 30 min compiling, FET is running on linux so no Winbug software is left on my computer!!!

The (SRC and INTERFACE).pro files should be remaked just like FET.pro

Keep the GREAT work!!!

Hope this works since it will save zillions of headaches

Juan Pedro Secondo

Title: Re: Fet on Linux and some more stuff
Post by: Liviu Lalescu on November 22, 2008, 04:53:27 PM
Quote:D SUCCESS!!!

After 30 min compiling, FET is running on linux so no Winbug software is left on my computer!!!

The (SRC and INTERFACE).pro files should be remaked just like FET.pro

Keep the GREAT work!!!

Hope this works since it will save zillions of headaches

Juan Pedro Secondo


Great!

The bug you have: you ran qmake, which is qt3 make. This generated some Makefiles. There are 3 makefiles, in fet-x.x.x, in fet-x.x.x/src/ and in fet-x.x.x/src/interface/. Now, if you run qt4 make, this sees the old Makefile-s and does not regenerate them. So, you need to remove them or remove fet and unpack it again. Your solution also works.
Title: Re: Fet on Linux and some more stuff
Post by: wayeast on February 27, 2009, 06:09:00 AM
If this thread is still open and of interest to anyone, users running Ubuntu can install FET directly from the Synaptic Package Manager repository.
Title: Re: Fet on Linux and some more stuff
Post by: Liviu Lalescu on February 27, 2009, 07:24:32 AM
Unfortunately, it is an old version.