Installation Error

Started by azaer, May 07, 2015, 02:19:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

azaer

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?

Liviu Lalescu

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.

azaer

#2
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.

Liviu Lalescu

#3
Yes, sure: in fet.pro, second line, remove the text "src/src.pro ".

azaer

yeeeees. Your solution works well.  :D :D :D
thank u so much Liviu. I appreciate.
I'll try again with no fet interface.

Liviu Lalescu

You are welcome :)

You mean the cstdlib fix works? Or the command-line only?

azaer

I meant the "#include <cstdlib>", it fixed the main error.
and i think the second one will be fine.

Liviu Lalescu

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).

azaer

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.

Liviu Lalescu

#9
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.

Liviu Lalescu

I released a new version, 5.27.2, which has this bug fixed. Thank you for your report!