apollon won't compile :(
I was looking for a good p2p program that would work off the kazaa network, and I found apollon. I dl'd it and try to compile it. The ./configure ran just fine, but when compiling it, i get the output
"... In file included from main.cpp:11: apollon.h:38:25: preferences.h: No such file or directory In file included from main.cpp:11: apollon.h:58: syntax error before `*' token *** Error code 1" Any ideas here? |
I downloaded the source and am compiling it on RH 9.0. It looks like preferences.h is created in ~/apollon-0.8/apollon by the following rule in the Makefile:
preferences.h: $(srcdir)/preferences.ui $(UIC) -o preferences.h $(srcdir)/preferences.ui You might try executing the "uic -o preferences.h preferences.ui" command to see if it generates errors. |
Running the above command seems to execute fine. No error message is reported.
|
Ok....
Now upon running the make command, the output seems to keep repeating itself. I get several warnings. It keeps spitting this out, and then repeating itself. The last line before repeating itslef it says: /usr/include/g++/bits/istream.tcc:1205: warning: ISO C++ forbids the use of `extern' on explicit instantiations Then it simply stats over, and repeats the same output. Any thoughts on this? |
Did you happen to notice if preferences.h existed before you ran the uic command? If not I'd do a "make distclean" then reconfigure and recompile to see if there might have been a failure early in the make process.
I did a search of istream.tcc on my box and came up with:/usr/include/c++/3.2.2/bits/istream.tcc which has a slightly different path from what's shown in your log. what version of gcc are you running? Does the program finish compiling eventually? I get numerous warning but the program does compile and link. The warnings I'm getting are different though. |
I did a make distclean. I re did the configure and make and make is still giving the error :
/usr/include/g++/bits/istream.tcc:1205: warning: ISO C++ forbids the use of `extern' on explicit instantiations In file included from main.cpp:11: apollon.h:58: syntax error before `*' token *** Error code 1 Not sure what exactly is causing this. Any ideas ??? |
^bump
|
Did the make command rebuild the preferences.h file automatically? If it didn't then I'd start by figuring out why that doesn't work. Also what version of gcc are you using? I'm using 3.2.2.
|
All times are GMT -5. The time now is 07:43 PM. |