FET Forum

FET Support (English) => General Stuff => Topic started by: azaer on May 07, 2015, 02:19:41 PM

Title: Installation Error
Post by: azaer on May 07, 2015, 02:19:41 PM
Hi everyone.
I have CentOS 6 with no GUI. I have installed fet fet-5.26.1 and tried to compile it as instructions in README.
-> gcc version:  (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)
-> g++ version: (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)
-> Make version: 3.81
cd /fet-5.26.1 && qmake-qt4, then make. After about tow hours i get this error:

interface/fet.cpp: In function 'int main(int, char**)':
interface/fet.cpp:677: error: 'srand' was not declared in this scope
make[1]: *** [../tmp/commandline/fet.o] Error 1
make: *** [sub-src-src-cl-pro-make_default] Error 2

i could do that on ubunut with no issue and it's took about ten minutes, but still doesn't work for CentOS over and over again.
can any one help me plz?
Title: Re: Installation Error
Post by: Liviu Lalescu on May 07, 2015, 02:35:50 PM
After line 43 of fet.cpp (#include <ctime>) please add this line:

#include <cstdlib>

Please let me know if now it compiles OK. It is a FET bug which will be fixed in the next version (unfortunately, I just released today, so I cannot release too soon). But I need your confirmation that this solution is good.
Title: Re: Installation Error
Post by: azaer on May 07, 2015, 02:42:23 PM
Thanks Liviu Lalescu.
I will try it again and confirm u.
I have another question. can I compile FET only for command line cause it takes a long time ??
i need only fet-cl, is that possible??
i tried fordian fet version from GIT but it doesn't work and old version.
Title: Re: Installation Error
Post by: Liviu Lalescu on May 07, 2015, 02:46:35 PM
Yes, sure: in fet.pro, second line, remove the text "src/src.pro ".
Title: Re: Installation Error
Post by: azaer on May 07, 2015, 02:53:17 PM
yeeeees. Your solution works well.  :D :D :D
thank u so much Liviu. I appreciate.
I'll try again with no fet interface.
Title: Re: Installation Error
Post by: Liviu Lalescu on May 07, 2015, 02:57:39 PM
You are welcome :)

You mean the cstdlib fix works? Or the command-line only?
Title: Re: Installation Error
Post by: azaer on May 07, 2015, 03:01:32 PM
I meant the "#include <cstdlib>", it fixed the main error.
and i think the second one will be fine.
Title: Re: Installation Error
Post by: Liviu Lalescu on May 07, 2015, 03:39:18 PM
Could you help me testing the latest snapshot for this "#include <cstdlib>" problem? Get the snapshot from http://lalescu.ro/liviu/Backup-fet/ and compile it. If you don't have time, only command-line would suffice, but it is best to test everything (maybe later, when you'll have more time).
Title: Re: Installation Error
Post by: azaer on May 08, 2015, 10:32:33 AM
Hi.
I did a test for the latest snapshot u gave it. Every thing has done well (with GUI), and compilation didn't take a long time as "fet-5.26.1" and no error showed at all.
thank u.
Title: Re: Installation Error
Post by: Liviu Lalescu on May 08, 2015, 10:35:50 AM
Thank you! However, the compilation time must be the same, but I guess you didn't meter very accurately. Because I did not improve this part from FET-5.26.1 to FET-5.27.2-snapshot.

To find out the compilation time on GNU/Linux-like systems, you can type "time make ..." instead of "make ..." (the dots represent additional parameters you may give, like "-j 2" for dual core processor). But please do not waste the time to compile again.
Title: Re: Installation Error
Post by: Liviu Lalescu on May 12, 2015, 12:49:30 PM
I released a new version, 5.27.2, which has this bug fixed. Thank you for your report!