Help starting a server on Linux
#31
tbh, it feels like you're missing an include. I always have to look them up, but iostream and stdlib maybe?
Thanks given by:
#32
(27 Mar 15, 05:36PM)Mousikos Wrote: tbh, it feels like you're missing an include. I always have to look them up, but iostream and stdlib maybe?

I need to look up an 'include' what does this mean? Sorry to pester.
Thanks given by:
#33
Could you post a full build log?
Thanks given by:
#34
(27 Mar 15, 06:02PM)SKB Wrote: Could you post a full build log?

Sure thing... How would I go about doing that :P
Thanks given by:
#35
Code:
make server_install 2>&1 | curl -F 'sprunge=<-' http://sprunge.us
Thanks given by:
#36
(27 Mar 15, 06:20PM)SKB Wrote:
Code:
make server_install 2>&1 | curl -F 'sprunge=<-' http://sprunge.us

Ohhh my bad. Forgot the 2>&1
Thanks given by:
#37
(27 Mar 15, 06:20PM)SKB Wrote:
Code:
make server_install 2>&1 | curl -F 'sprunge=<-' http://sprunge.us
http://sprunge.us/NIZG
Thanks given by:
#38
Do you have build-essential installed?

Code:
sudo apt-get update; sudo apt-get install build-essential

What does the following show?
Code:
make clean-enet; make clean; make CXX=g++ SERVER_LIBS='-L../enet/.libs -lenet -lz -lstdc++'  server_install 2>&1 | curl -F 'sprunge=<-' http://sprunge.us
Thanks given by:
#39
Hard to tell for sure from that build log as to what's missing. Please run these, then post the links:
sudo apt-get install g++ make automake libsdl1.2-dev libogg-dev libsdl-image1.2-dev libcurl4-openssl-dev libopenal-dev libvorbis-dev -y 2>&1 | curl -F 'sprunge=<-' http://sprunge.us

cd /home/pi/New/source/source/src && sudo make clean-enet && make clean && make server CXX=g++ 2>&1 | curl -F 'sprunge=<-' http://sprunge.us

(re: build-essential is good, but not necessary)
Thanks given by:
#40
(27 Mar 15, 08:01PM)RandumKiwi Wrote: Hard to tell for sure from that build log as to what's missing. 

Quote:undefined reference to `operator new[](unsigned long)'



Apparently gcc for arm don't have support for "new" and delete operators.
http://www.raspberrypi.org/forums/viewto...33&t=78357
Thanks given by:
#41
I'm running a server on ARM myself.
Thanks given by:
#42
(27 Mar 15, 07:46PM)SKB Wrote: Do you have build-essential installed?


Code:
sudo apt-get update; sudo apt-get install build-essential

What does the following show?

Code:
make clean-enet; make clean; make CXX=g++ SERVER_LIBS='-L../enet/.libs -lenet -lz -lstdc++'  server_install 2>&1 | curl -F 'sprunge=<-' http://sprunge.us

apparently build-essential was already installed 

Below is a screenshot of what happened when I entered the other line. Note: I lagged out for a few minutes before getting the broken pipe message

http://imgur.com/vCKNZHW
Thanks given by:
#43
Quote:Below is a screenshot of what happened when I entered the other line. Note: I lagged out for a few minutes before getting the broken pipe message

http://imgur.com/vCKNZHW

Run this...

(27 Mar 15, 08:01PM)RandumKiwi Wrote: Hard to tell for sure from that build log as to what's missing. Please run these, then post the links:
sudo apt-get install g++ make automake libsdl1.2-dev libogg-dev libsdl-image1.2-dev libcurl4-openssl-dev libopenal-dev libvorbis-dev -y 2>&1 | curl -F 'sprunge=<-' http://sprunge.us

cd /home/pi/New/source/source/src && sudo make clean-enet && make clean && make server CXX=g++ 2>&1 | curl -F 'sprunge=<-' http://sprunge.us

(re: build-essential is good, but not necessary)
Thanks given by:
#44
(27 Mar 15, 09:27PM)RandumKiwi Wrote:
Quote:Below is a screenshot of what happened when I entered the other line. Note: I lagged out for a few minutes before getting the broken pipe message

http://imgur.com/vCKNZHW

Run this...



(27 Mar 15, 08:01PM)RandumKiwi Wrote: Hard to tell for sure from that build log as to what's missing. Please run these, then post the links:
sudo apt-get install g++ make automake libsdl1.2-dev libogg-dev libsdl-image1.2-dev libcurl4-openssl-dev libopenal-dev libvorbis-dev -y 2>&1 | curl -F 'sprunge=<-' http://sprunge.us

cd /home/pi/New/source/source/src && sudo make clean-enet && make clean && make server CXX=g++ 2>&1 | curl -F 'sprunge=<-' http://sprunge.us

(re: build-essential is good, but not necessary)

First thing I entered didn't manage to get a url response.  Picture: http://imgur.com/mb973b2

The second thing fortunately did spit out a URL though it doesn't seem to be particularly thought provoking... http://sprunge.us/IYKY

Picture: http://imgur.com/JZxWKR4
Thanks given by:
#45
I see a curl error but don't see where you called curl.
Thanks given by:
#46
(28 Mar 15, 03:26PM)Mousikos Wrote: I see a curl error but don't see where you called curl.

Sorry looks like it a didn't fit in the screenshot.  Here's a full screen picture. You might need to zoom in a bit. 

http://imgur.com/3vlwiD9
Thanks given by:
#47
Since you're having trouble uploading to sprunge, can you just run the command without the parts "| curl -F 'sprunge=<-' http://sprunge.us"
Thanks given by:
#48
(28 Mar 15, 08:35PM)RandumKiwi Wrote: Since you're having trouble uploading to sprunge, can you just run the command without the parts "| curl -F 'sprunge=<-' http://sprunge.us"

First one says everything is already updated. 

Second one: http://imgur.com/fZpQ3pH

By the way do I have a chance of running a server on here? 

 I don't mean to attack anyone on the forums; you've all been really helpful to me but I don't feel like I'm getting anywhere. 
Thanks given by:
#49
Lol, "I'm not getting anywhere"... it looks like it succesfully compiled to me (tonnes of errors though, looks like enet failed compile, for example... but then it seems to succeed..?)

Try this:
Code:
cp /home/pi/New/source/source/src/ac_server /home/pi/New/source/bin_unix/native_server && cd /home/pi/New/source/source && ./bin_unix/native_server -mlocalhost
Thanks given by:
#50
(29 Mar 15, 01:41AM)RandumKiwi Wrote: Lol, "I'm not getting anywhere"... it looks like it succesfully compiled to me (tonnes of errors though, looks like enet failed compile, for example... but then it seems to succeed..?)

Try this:

Code:
cp /home/pi/New/source/source/src/ac_server /home/pi/New/source/bin_unix/native_server && cd /home/pi/New/source/source && ./bin_unix/native_server -mlocalhost
. /bin_unix/native_server: no such file or directory 
Thanks given by:
#51
Quote:
Code:
cp /home/pi/New/source/source/src/ac_server /home/pi/New/source/bin_unix/native_server && cd /home/pi/New/source/source && ./bin_unix/native_server -mlocalhost
 

Maybe I am crazy but I feel like the last change directory is throwing this off?

I feel it should work like this:
Code:
cp /home/pi/New/source/source/src/ac_server /home/pi/New/source/bin_unix/native_server && cd /home/pi/New/source && ./bin_unix/native_server -mlocalhost

Maybe?
Thanks given by:
#52
(29 Mar 15, 05:47PM)+f0r3v3r+ Wrote:
Quote:
Code:
cp /home/pi/New/source/source/src/ac_server /home/pi/New/source/bin_unix/native_server && cd /home/pi/New/source/source && ./bin_unix/native_server -mlocalhost
 

Maybe I am crazy but I feel like the last change directory is throwing this off?

I feel it should work like this:

Code:
cp /home/pi/New/source/source/src/ac_server /home/pi/New/source/bin_unix/native_server && cd /home/pi/New/source && ./bin_unix/native_server -mlocalhost

Maybe?

Now it says ''is a directory''
Thanks given by:
#53
Do cp -r
Thanks given by:
#54
(30 Mar 15, 12:06AM)HoeHunter Wrote: Do cp -r

yes perform CPR on your RPi pls
Thanks given by: