Help porting to FreeBSD?

Help porting to FreeBSD?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
Ralith
Posts: 22
Joined: 06 Aug 2007, 04:43

Help porting to FreeBSD?

Post by Ralith »

I'm interested in getting spring working on FreeBSD. It's similar to linux in many respects, so in theory very little should need changing; it's an astronomically simpler prospect than windows -> linux, for example. However, in beginning this effort, I've run into problems straight off; the build system appears to for some reason have hardcoded behavior for the supported platforms, and the fallback measures all fail badly. Even after having hacked at rts/build/scons/config.py for half an hour I can't get past the jni.h check, despite its presence on my system in /usr/local/jdk1.6.0/include/ , which I've tried to inform the build system of a wide variety of ways. Beyond this, the system assumes that headers are generally located in /usr/include. On FreeBSD all non-base-system headers are in /usr/local/include. Easy enough for me to hack around in a temporary manner, but I don't know the python to get all this working properly in a clean fashion that won't break any of the other platforms.

Suffice to say, I'm eager to put in the majority of the work here, and I can probably handle most issues in the meat of the code, but this build system is stopping me from going anywhere. Anyone want to volunteer aid?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Help porting to FreeBSD?

Post by smoth »

I am absolutely no help to you but I wish you luck.
Ralith
Posts: 22
Joined: 06 Aug 2007, 04:43

Re: Help porting to FreeBSD?

Post by Ralith »

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Help porting to FreeBSD?

Post by Forboding Angel »

O_o

SMOTH IS MAJIK!!!

/me rubs smoth

MAEK BLOOM FILTER NAO!!!!


/me waits for *poof*
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Re: Help porting to FreeBSD?

Post by clericvash »

That is pretty cool, nice work fella, looks like the wiki will need updating soon for FreeBSD setup as well :D
Ralith
Posts: 22
Joined: 06 Aug 2007, 04:43

Re: Help porting to FreeBSD?

Post by Ralith »

clericvash wrote:That is pretty cool, nice work fella, looks like the wiki will need updating soon for FreeBSD setup as well :D
I dunno, it should be pretty much the same procedure as for Linux, once both the build system and source code patches are applied.
Forboding Angel wrote:O_o

SMOTH IS MAJIK!!!

/me rubs smoth

MAEK BLOOM FILTER NAO!!!!


/me waits for *poof*
Offtopic much?
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Re: Help porting to FreeBSD?

Post by clericvash »

Ralith wrote:
clericvash wrote:That is pretty cool, nice work fella, looks like the wiki will need updating soon for FreeBSD setup as well :D
I dunno, it should be pretty much the same procedure as for Linux, once both the build system and source code patches are applied.
Well there should be a mention of it, and i am sure someone will eventually build installer packages for it, so it should go in the wiki, just because it's "pretty much the same" doesn't mean it should get left out :P
Ralith
Posts: 22
Joined: 06 Aug 2007, 04:43

Re: Help porting to FreeBSD?

Post by Ralith »

Er, maybe you don't understand the nature of systems like FreeBSD. A skilled admin generally installs everything by either A. compiling from source, B. compiling from ports, or C. installing a binary package compiled by the FreeBSD people from ports. An installer of any kind would probably never be used.
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Re: Help porting to FreeBSD?

Post by Dragon45 »

BSD is black magicz

its a historically important OS that's not supported by most popular things.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Help porting to FreeBSD?

Post by imbaczek »

I personally don't use it, but having a working spring on it can't hurt.
Ralith
Posts: 22
Joined: 06 Aug 2007, 04:43

Re: Help porting to FreeBSD?

Post by Ralith »

Dragon45 wrote:BSD is black magicz

its a historically important OS that's not supported by most popular things.
BSD is a long dead piece of history. FreeBSD is a very much alive and well supported modern unix.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Help porting to FreeBSD?

Post by REVENGE »

So, I am assuming we need a lobby port now? AFLobby for starters perhaps?
Ralith
Posts: 22
Joined: 06 Aug 2007, 04:43

Re: Help porting to FreeBSD?

Post by Ralith »

Any of the lobbies which work on Linux should (theoretically) work fine here, too; iirc, SpringLobby works without any changes. Now all that remains to be done is multiplayer sync testing of the new code.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Help porting to FreeBSD?

Post by REVENGE »

How is 3D acceleration handled on FreeBSD? Support for major vendors?
Ralith
Posts: 22
Joined: 06 Aug 2007, 04:43

Re: Help porting to FreeBSD?

Post by Ralith »

FreeBSD generally uses Xorg for graphics, just like most linuxes. In theory this means identical hardware support, but because most vendors don't release driver source code, that tends to fall apart in reality. Luckily, nVidia supplies proprietary drivers for 32-bit x86 FreeBSD, and I expect that once the open source 3D ATI drivers have been released, those will work too.
Wiledar
Posts: 1
Joined: 01 Oct 2008, 08:37

Re: Help porting to FreeBSD?

Post by Wiledar »

It is great that you are working on porting Spring to FreeBSD!

Unfortunately i didn't find a way to start single player in fbsd's Spring. I hope it will be possible and easier some day.

Thanks for your work =)
User avatar
panzeriv2
Posts: 208
Joined: 12 Aug 2008, 12:02

Re: Help porting to FreeBSD?

Post by panzeriv2 »

Why are you rezzing this thread?

Sorry, wrong person.

Welcome to the Spring forums!
Post Reply

Return to “Engine”