LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-01-2008, 10:30 PM   #1
sunnior
Member
 
Registered: Feb 2008
Distribution: ubuntu
Posts: 43

Rep: Reputation: 15
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
 
Old 11-02-2008, 03:21 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
 
Old 11-02-2008, 10:27 PM   #3
sunnior
Member
 
Registered: Feb 2008
Distribution: ubuntu
Posts: 43

Original Poster
Rep: Reputation: 15
It works! Thank you again!
 
Old 11-09-2008, 11:49 AM   #4
Angertal
LQ Newbie
 
Registered: Aug 2003
Location: New York
Distribution: Ubuntu 8.10
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
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.
 
Old 11-09-2008, 04:13 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

Last edited by knudfl; 11-09-2008 at 04:16 PM.
 
Old 11-10-2008, 03:32 PM   #6
Angertal
LQ Newbie
 
Registered: Aug 2003
Location: New York
Distribution: Ubuntu 8.10
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
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.
 
Old 11-11-2008, 07:28 AM   #7
sunnior
Member
 
Registered: Feb 2008
Distribution: ubuntu
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Angertal View Post
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)
 
Old 11-12-2008, 07:03 PM   #8
Angertal
LQ Newbie
 
Registered: Aug 2003
Location: New York
Distribution: Ubuntu 8.10
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by sunnior View Post
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.
 
Old 12-05-2008, 04:27 PM   #9
codebraker
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile C in Ubuntu 8.04 lipun4u Ubuntu 4 10-24-2008 10:59 AM
Newbie: Ubuntu won't compile Steve W Linux - Software 7 01-05-2008 05:06 AM
c++ compile problem under ubuntu heyinba0904 Programming 8 01-05-2007 11:31 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration