LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apollon won't compile :( (https://www.linuxquestions.org/questions/linux-software-2/apollon-wont-compile-77096/)

jd121 07-29-2003 05:43 PM

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?

ovf 07-29-2003 06:53 PM

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.

jd121 07-29-2003 09:52 PM

Running the above command seems to execute fine. No error message is reported.

jd121 07-29-2003 09:55 PM

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?

ovf 07-29-2003 11:24 PM

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.

jd121 07-30-2003 07:36 PM

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 ???

jd121 07-31-2003 02:00 PM

^bump

ovf 08-01-2003 10:16 PM

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.