FET Forum

FET Support (English) => Get Help => Topic started by: Silver on July 23, 2009, 03:51:03 PM

Title: how i can compile Fet 5.10 in linux?
Post by: Silver on July 23, 2009, 03:51:03 PM
i want to compiling Fet in mandriva linux or install it from the source.
thanks.

Title: Re: how i can compile Fet 5.10 in linux?
Post by: Volker Dirr on July 23, 2009, 04:01:42 PM
Please have a look into the FET directory. There is a file called "README". Ask more detailed if have trouble with that explanation.
Title: Re: how i can compile Fet 5.10 in linux?
Post by: Silver on July 23, 2009, 04:23:12 PM
dear  Volker Dirr
i get this messege:
bash: qmake: command not found
Title: Re: how i can compile Fet 5.10 in linux?
Post by: Volker Dirr on July 23, 2009, 04:35:19 PM
You must install Qt first.
Maybe you already installed and forgot to set the path.

if you write "qmake -v" (without quotes)
you must get a information message like:
"QMake version 2.01a" ...

also check if you have installed gcc.
so if you write "gcc -v" there must also be a information message.

if you get something like "command not found", then you didn't install the software (gcc and Qt) or you forget to set path.
if you install Qt have a look in the readme file of Qt. there is an explaination how to set path correct.

Title: Re: how i can compile Fet 5.10 in linux?
Post by: Silver on July 23, 2009, 05:43:03 PM
QuoteYou must install Qt first.
Maybe you already installed and forgot to set the path.

if you write "qmake -v" (without quotes)
you must get a information message like:
"QMake version 2.01a" ...

also check if you have installed gcc.
so if you write "gcc -v" there must also be a information message.

if you get something like "command not found", then you didn't install the software (gcc and Qt) or you forget to set path.
if you install Qt have a look in the readme file of Qt. there is an explaination how to set path correct.


ok, now i install qt4.

QMake version 2.01a
Using Qt version 4.5.2 in /usr/lib


Using built-in specs.
Target: i586-manbo-linux-gnu
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-checking=release --enable-languages=c,c++,fortran,objc,obj-c++,java --build=i586-manbo-linux-gnu --host=i586-manbo-linux-gnu --with-cpu=generic --with-system-zlib --enable-threads=posix --enable-shared --enable-long-long --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-gtk-cairo --disable-libjava-multilib --enable-ssp --disable-libssp --disable-werror
Thread model: posix
gcc version 4.3.2 (GCC)


and i used qmake again and work but after 30 min from the start of combiling i get this messege:

unction.h:575: internal compiler error: in cp_parser_lookup_name, at cp/parser.c:16201
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [../../tmp/moc_addstudentsgroupform_template.o] Error 1
make[2]: Leaving directory `/home/me/fet/src/interface'
make[1]: *** [sub-interface-make_default] Error 2
make[1]: Leaving directory `/home/me/fet/src'
make: *** [sub-src-make_default] Error 2


and when i used "make install" i get :

"cd src/ && make -f Makefile install
make[1]: Entering directory `/home/goldm/fet/src'
cd interface/ && make -f Makefile install
make[2]: Entering directory `/home/goldm/fet/src/interface'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/home/goldm/fet/src/interface'
make[1]: Leaving directory `/home/goldm/fet/src'
"

Title: Re: how i can compile Fet 5.10 in linux?
Post by: Liviu Lalescu on July 23, 2009, 06:00:49 PM
FET has no "make install" available, unfortunately.

The error is weird. Please try typing "make" again or try to compile with another version of gcc (or install another version of gcc). You should obtain a "fet" executable.
Title: Re: how i can compile Fet 5.10 in linux?
Post by: Silver on July 23, 2009, 10:46:05 PM
i do it, i get fet executable.
but it's very big !!!!!!! :
fet folder= 574.9 mb
fet executable file= 147.8 mb
Title: Re: how i can compile Fet 5.10 in linux?
Post by: Volker Dirr on July 23, 2009, 11:27:39 PM
what was your bug?

about filesize:

the big executable filesize is a already known bug. compare README:
QuoteNote2: under my openSUSE GNU/Linux, the intermediary files and the executable are very large, with default settings.
     (the fet executable is over 100 MB!). To avoid this, you need to modify the /usr/share/qt4/mkspecs/common/g++.conf
     line 10, remove the "-g" flag for the release version (from QMAKE_CFLAGS_RELEASE section)
     (root access needed to make this change).
     Under Fedora GNU/Linux for the same problem, a user told me that you need to modify /usr/lib/qt4/mkspecs/common/g++.conf
     and /usr/lib/qt4/mkspecs/linux-g++/qmake.conf (remove the -g flag from QMAKE_CFLAGS_RELEASE section).

The big filesize of the folder is no bug. that is normal. the compiler store many temporary files in the /tmp/ directory.
you can delete that if you want.
i recommend that only if you know that you don't need to recompile in the next days. because if you recompile it will take very long to creat all that tmp files again. so while i am coding i am never deleting that files, because i don't have so much time to recompile always :-)

Of course before releasing a FET-Version we delete that /tmp/ directory, because other guys can't use that files.
Title: Re: how i can compile Fet 5.10 in linux?
Post by: Liviu Lalescu on July 24, 2009, 04:07:43 AM
The normal size of fet exe is ~10 MB and of tmp->~30 MB,  if you do what Volker said.
Title: Re: how i can compile Fet 5.10 in linux?
Post by: Silver on July 24, 2009, 09:40:33 AM
thanks, now it's 9.4 mb.
- please how i can make fet.rpm ?
- there are no color in "teachers_free_periods_days_horizontal.html" !
- can i copy fet folder after compiled ,and paste in (any linux , any device ) , Or must be rebuilt on each new device ?
Title: Re: how i can compile Fet 5.10 in linux?
Post by: Volker Dirr on July 24, 2009, 12:04:57 PM
Quote
- there are no color in "teachers_free_periods_days_horizontal.html" !
But the other tables have?
What html level did you use in FET->settings?
i can't reproduce that bug on my computer. i have colors. please give me more information.

Quote
- can i copy fet folder after compiled ,and paste in (any linux , any device ) , Or must be rebuilt on each new device ?

I am not 100% sure. Maybe Liviu can tell more detailed. If the system has Qt installed (only the shared libaries, not the Developer Qt stuff) it should always work. So it should work at least on every Linux system with KDE.

Quote
- can i copy fet folder after compiled ,and paste in (any linux , any device ) , Or must be rebuilt on each new device ?

I have never done that before. Please read manuals in the internet.
I know someone already done that, but i can't find his mails at the moment. I know he wrote here in the forum or in the maillinglist.
He already wrote the needed configuraion file for FET.
If you want to help by creating rpm files, then i recommend to read also this site:
http://en.opensuse.org/Build_Service

It contain information about how to build packages for many linux systems at one time (not only openSuse, all linuxes that use rpm). But i can't answer questions about that. it is also interesting, but i have more fun while coding on the algorithm.
Title: Re: how i can compile Fet 5.10 in linux?
Post by: Silver on July 24, 2009, 01:40:57 PM
QuoteBut the other tables have?
What html level did you use in FET->settings?
i can't reproduce that bug on my computer. i have colors. please give me more information.
level 2

Quoteam not 100% sure. Maybe Liviu can tell more detailed. If the system has Qt installed (only the shared libaries, not the Developer Qt stuff) it should always work. So it should work at least on every Linux system with KDE.

i used gnome and it's ok , but i installed "‏qt4-designer - qt4 visual design tool​" .
(only the shared libaries) : what is the shared libaries.
Title: Re: how i can compile Fet 5.10 in linux?
Post by: Volker Dirr on July 24, 2009, 02:33:59 PM
Quote
QuoteBut the other tables have?
What html level did you use in FET->settings?
i can't reproduce that bug on my computer. i have colors. please give me more information.
level 2
The teachers free times tables are only colored with html level >=3.
So increase the level.


Quote
Quoteam not 100% sure. Maybe Liviu can tell more detailed. If the system has Qt installed (only the shared libaries, not the Developer Qt stuff) it should always work. So it should work at least on every Linux system with KDE.

i used gnome and it's ok , but i installed "‏qt4-designer - qt4 visual design tool​" .
(only the shared libaries) : what is the shared libaries.

a coder don't code all from the beginning.
for example all windows should look similar. in normal case top line has a special color. top right corner has special buttion (close, enlarge, minimize) and so on. So if i want to open/code a window i don't need to code all that. i just write somehting like "open window". but of course the computer need to know what i mean with open a window. so he watch into a libary what i mean with open a windows.
and that libariy is used by many other programms. so i don't need to code that libary, i just use the Qt libary (like KDE). That is why all windows look like the same in so mayne different programms. We use all the same libary. If the system can't find the libary, then it doesn't what what to do. but must linux system has laready that libaries installed, even if you use gnome. (but gnome doesn't use the Qt libary. it use the gtk libary.)
Title: Re: how i can compile Fet 5.10 in linux?
Post by: Liviu Lalescu on July 24, 2009, 03:19:11 PM
I am not sure about portability of executable. Maybe you can try to compile with static Qt - this should be portable (maybe a larger fet executable).
Title: Re: how i can compile Fet 5.10 in linux?
Post by: Silver on July 24, 2009, 04:02:59 PM
now i used "level 3" , it's ok.
thnkx Liviu Lalescu
thnkx Volker Dirr


Title: Re: how i can compile Fet 5.10 in linux?
Post by: Zsolt Udvari on August 05, 2009, 11:36:08 AM
Quote- please how i can make fet.rpm ?
You should use spec-files and rpmbuild. See an example here (http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/fet/fet.spec?rev=1.38;content-type=text%2Fplain).
Title: Re: how i can compile Fet 5.10 in linux?
Post by: Silver on August 06, 2009, 12:35:27 PM
Quote
Quote- please how i can make fet.rpm ?
You should use spec-files and rpmbuild. See an example here (http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/fet/fet.spec?rev=1.38;content-type=text%2Fplain).

thanks