LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   qsopcast compile problem on ubuntu 8.10 (https://www.linuxquestions.org/questions/linux-software-2/qsopcast-compile-problem-on-ubuntu-8-10-a-680563/)

sunnior 11-01-2008 10:30 PM

qsopcast compile problem on ubuntu 8.10
 
I tried to compile qsopcast on ubuntu 8.10
but failed and got the following message:
Quote:

main.cpp: In function ‘int main(int, char**)’:
main.cpp:49: error: ‘srand’ was not declared in this scope
make: *** [.obj/main.o] Error 1
I have installed qt3-apps-dev and qt4-dev-tools.
Is there something wrong with the compile PATH?

TIA:)

knudfl 11-02-2008 03:21 PM

Assume "qsopcast-0.3.5" , which cannot be compiled with g++-4.3 .

g++-4.1 and g++-4.2 will work, and both are present in synaptic.

I installed g++-4.2, removed /usr/bin/g++ and made a new symlink
g++ to g++-4.2 .
(It is easy to change back after finishing qsopcast compiling)

Regards

sunnior 11-02-2008 10:27 PM

It works! Thank you again!:)

Angertal 11-09-2008 11:49 AM

Quote:

Originally Posted by knudfl (Post 3329382)
Assume "qsopcast-0.3.5" , which cannot be compiled with g++-4.3 .

g++-4.1 and g++-4.2 will work, and both are present in synaptic.

I installed g++-4.2, removed /usr/bin/g++ and made a new symlink
g++ to g++-4.2 .
(It is easy to change back after finishing qsopcast compiling)

Regards

Hey, I'm super new and I just got this error too. I'm wondering if you'd be willing and able to explain just what this post is telling me to do :-\.

I get that I need to downgrade g++ from 4.3 to either 4.2 or .1, but I'm not sure I know what a symlink is and what it is that I'd be doing after I've finished installing qsopcast.

Thanks.

knudfl 11-09-2008 04:13 PM

Angertal : It goes like this :
1) 'sudo apt-get install g++-4.2' (or use synaptic)

2) 'cd /usr/bin'
3) 'sudo rm g++' (which is a symlink / softlink to g++-4.3)

4) 'sudo ln -s g++-4.2 g++'

Then "g++" is pointing to "g++-4.2"

And you can leave both compilers installed,
so it's not a real downgrade.

Regards

Angertal 11-10-2008 03:32 PM

Quote:

Originally Posted by knudfl (Post 3336435)
Angertal : It goes like this :
1) 'sudo apt-get install g++-4.2' (or use synaptic)

2) 'cd /usr/bin'
3) 'sudo rm g++' (which is a symlink / softlink to g++-4.3)

4) 'sudo ln -s g++-4.2 g++'

Then "g++" is pointing to "g++-4.2"

And you can leave both compilers installed,
so it's not a real downgrade.

Regards

Thanks so much, I've finally been able to install it. Now the problem seems to be that it says "Connecting..." forever. I'll do some more snooping around to see if this is a problem other folks have been having. Thanks again for your help knudfl.

sunnior 11-11-2008 07:28 AM

Quote:

Originally Posted by Angertal (Post 3337541)
Now the problem seems to be that it says "Connecting..." forever. I'll do some more snooping around to see if this is a problem other folks have been having. Thanks again for your help knudfl.

In fact, it's a very common problem, have you downloaded the sopcast binary?
Quote:

http://download.sopcast.cn/download/sp-auth.tgz
Unzip it and cd into that directory using terminal. Then run:
sudo cp sp-sc-auth /usr/bin/local/sp-sc(or somewhere you install sopcast)

Angertal 11-12-2008 07:03 PM

Quote:

Originally Posted by sunnior (Post 3338242)
In fact, it's a very common problem, have you downloaded the sopcast binary?

Thanks so much! I've got it working now. I appreciate your help.

codebraker 12-05-2008 04:27 PM

i kind of have the same problem whenever I paste or double click a link from the list e.g. espn... it says connecting... and thats it (using ubuntu 8.10)
could u please explain how u solved it... is it something to do with p2p port filtering by the way sopcast works fine on the windows partition.


All times are GMT -5. The time now is 03:37 PM.