orbitersim / orbiter

Open-source repository of Orbiter Space Flight Simulator
MIT License
1.6k stars 215 forks source link

Porting to other OS #131

Open RevoluPowered opened 3 years ago

RevoluPowered commented 3 years ago

Would it be okay if I try to port this to Linux and Mac?

I would love to give it a shot.

P.S. Thanks for open sourcing, I hope that everything is okay! I saw the forum posts about it and you mentioned potentially taking down the orbiter website, but I don't think you need to.

JDat commented 3 years ago

You re not alone. If I remember correctly, Martin (Author) have following milestones: 1) Release 32 bit bugfix version 2) Release 64 bit next gen version 3) Porting on other platforms

There is small discussion about porting (eat list first attempts to compile) on Linux: https://www.orbiter-forum.com/threads/building-openorbiter-under-linux.40122/

It would be great if you can port to linux, but not except that your work will be merged to main branch immediately. Maybe 1st thing to work for portability is to make crossplatform GUI stuff (QT widgets instead of native window GUI system)? And then will se how it's going.

wiki-me commented 2 years ago

In case anybody is interested, someone is working on this here.

EnjoMitch commented 1 year ago

If I were to help here, I'd start piece by piece (i.e. file by file) to replace all Windows calls to POSIX calls, and made sure that at each iteration:

It would be great if you can port to linux, but not except that your work will be merged to main branch immediately. Maybe 1st thing to work for portability is to make crossplatform GUI stuff (QT widgets instead of native window GUI system)?

This would be just one branch, that can be done independently of the simulator's bare bones. If you're trying to port the GUI, I recommend wxWidgets more, as it has proven to have a lot stabler API across the years and is much lighter than Qt.

cederom commented 1 year ago

Awesome! Please let me know when anything is ready to build and test on FreeBSD Unix :-)

hardBSDk commented 7 months ago

I suggest the SDL cross-platform framework, there are many options for all interfaces.

If you want something more easy, there's the raylib library.

cederom commented 7 months ago

Yes SDL is portable everywhere works even on mobiles nowadays :-)

For GUI I recomment FLTK its simplest smallest fastest toolkit ever (much smaller and faster than GTK and QT and does not change that much) :-)