Did anyone successfully compile/run Celestia on OpenSolaris?
Thanks.
Celestia on OpenSolaris?
- John Van Vliet
- Posts: 2944
- Joined: 28.08.2002
- With us: 22 years 2 months
Re: Celestia on OpenSolaris?
--- edit ---
Last edited by John Van Vliet on 20.10.2013, 08:45, edited 1 time in total.
Re: Celestia on OpenSolaris?
OpenSolaris build needs some extra tweaking, since it's not Linux
Re: Celestia on OpenSolaris?
Moinak Ghosh submitted a patch for OpenSolaris compatibility: http://sourceforge.net/tracker/?func=de ... tid=371302
Can anyone please commit it into the source of Celestia?
(The solution for sun variable name collision is really partial, i.e. renaming sun to Sun etc. Cleaner solution would be to wrap all Celestia into its own namespace. I wonder why it wasn't done before).
Can anyone please commit it into the source of Celestia?
(The solution for sun variable name collision is really partial, i.e. renaming sun to Sun etc. Cleaner solution would be to wrap all Celestia into its own namespace. I wonder why it wasn't done before).
-
- Site Admin
- Posts: 4211
- Joined: 28.01.2002
- With us: 22 years 9 months
- Location: Seattle, Washington, USA
Re: Celestia on OpenSolaris?
shmerl wrote:Moinak Ghosh submitted a patch for OpenSolaris compatibility: http://sourceforge.net/tracker/?func=de ... tid=371302
Can anyone please commit it into the source of Celestia?
(The solution for sun variable name collision is really partial, i.e. renaming sun to Sun etc. Cleaner solution would be to wrap all Celestia into its own namespace. I wonder why it wasn't done before).
This isn't a problem with Celestia: the C++ header files on OpenSolaris are broken if they're defining 'sun'. Any idea where this is getting declared?
--Chris
Re: Celestia on OpenSolaris?
This is not a header #define, but a predefined macro in gcc and Sun cc compiler on OpenSolaris. You can see its usage for example in Xorg code in xf86_OSlib.h (on OpenSolaris in /usr/include/xorg/xf86_OSlib.h)
See for example http://blogs.sun.com/morganh/date/20060928 for some details.
Therefore it clashes with definition of sun variables. (This probably can be remedied with Celestia namepace usage as a good solution for all possible similar cases).
Code: Select all
#if (defined(SYSV) || defined(SVR4)) && \
(defined(sun) || defined(__i386__))
See for example http://blogs.sun.com/morganh/date/20060928 for some details.
Therefore it clashes with definition of sun variables. (This probably can be remedied with Celestia namepace usage as a good solution for all possible similar cases).
Re: Celestia on OpenSolaris?
So, can anyone with write access please commit these patches?
Thanks.
Thanks.