You are not logged in.

#1 2006-07-19 21:28:40

karsten
Member
Registered: 2006-07-14
Posts: 261

[SOLVED] celestia on arch 64 doesn't work

does it work for anyone? from the menu it appears in the taskbar then disappears.  console reads this:

(celestia:2795): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
Cannot chdir to '${prefix}/share/celestia', probably due to improper installation.

(celestia:2795): Gtk-CRITICAL **: gtk_widget_set_size_request: assertion `width >= -1' failed
Error reading configuration file.


any idears?  thanks smile

Offline

#2 2006-07-20 12:11:39

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,638

Re: [SOLVED] celestia on arch 64 doesn't work

Same on my system sad

I asked google without a helpfull response. Gentoo and Fedora packages don't patch much more than we do. In the Gentoo ebuild is mentioned that there are issues known when compiling with commercial nvidia driver installed. This could be the reason as I have nvidia installed on my system.

Can you check it with recompiling without nvidia driver installed? Or I will do it later in my chroot environment.

AndyRTR

Offline

#3 2006-07-20 21:18:29

karsten
Member
Registered: 2006-07-14
Posts: 261

Re: [SOLVED] celestia on arch 64 doesn't work

that shouldn't really matter.. i'm kind of a celestia geek and used to compile it myself a bit under suse x86_64 and it worked fine there.  actually now that i remember the issue was with gcc 4, which needed a patch to get it to work.  are you using this already since it compiles? i'll try to find it.

karsten

Offline

#4 2006-08-03 02:21:45

karsten
Member
Registered: 2006-07-14
Posts: 261

Re: [SOLVED] celestia on arch 64 doesn't work

maybe it's something with the 32-bit opengl "compatibility libraries" the driver asks to install? i used the nvidia driver when compiling under suse and it worked. 

AndyRTR wrote:

Same on my system sad

I asked google without a helpfull response. Gentoo and Fedora packages don't patch much more than we do. In the Gentoo ebuild is mentioned that there are issues known when compiling with commercial nvidia driver installed. This could be the reason as I have nvidia installed on my system.

Can you check it with recompiling without nvidia driver installed? Or I will do it later in my chroot environment.

AndyRTR

Offline

#5 2006-08-03 02:51:55

karsten
Member
Registered: 2006-07-14
Posts: 261

Re: [SOLVED] celestia on arch 64 doesn't work

dude i'm an idiot.  i got it to work:

$ cd /usr/share/celestia
$ celestia

:-)  it fires right up.

Offline

#6 2006-08-03 03:26:24

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,638

Re: [SOLVED] celestia on arch 64 doesn't work

Same here. But why that?

Offline

#7 2006-08-03 04:11:52

karsten
Member
Registered: 2006-07-14
Posts: 261

Re: [SOLVED] celestia on arch 64 doesn't work

this works, i think we can track it down somehow:

$ celestia --dir=/usr/share/celestia

also, why i s it passing back {prefix} instead of /usr?  that seems odd..



$ celestia --help-all
Usage:
  celestia [OPTION...]

Help Options:
  -?, --help                    Show help options
  --help-all                    Show all help options
  --help-gtk                    Show GTK+ Options

GTK+ Options
  --class=CLASS                 Program class as used by the window manager
  --name=NAME                   Program name as used by the window manager
  --screen=SCREEN               X screen to use
  --sync                        Make X calls synchronous
  --gtk-module=MODULES          Load additional GTK+ modules
  --g-fatal-warnings            Make all warnings fatal

Application Options:
  -c, --conf=file               Alternate configuration file
  -d, --dir=directory           Alternate installation directory
  -e, --extrasdir=directory     Additional "extras" directory
  -f, --fullscreen              Start full-screen
  -s, --nosplash                Disable splash screen
  --display=DISPLAY             X display to use

Offline

#8 2006-08-03 21:37:22

karsten
Member
Registered: 2006-07-14
Posts: 261

Re: [SOLVED] celestia on arch 64 doesn't work

andy-- i opened up a thread on celestia's shatters.net for this issue, they're thinking it's a build system problem with automake and autoconf, setting the path wrong in the makefiles.  here's the link for the thread: http://shatters.net/forum/viewtopic.php?p=74789

does that help at all?  check this out:

$ strings /usr/bin/celestia | grep usr
/usr/share/locale

$ strings /usr/bin/celestia | grep share
${prefix}/share/celestia
/usr/share/locale

$ strings /usr/bin/celestia | grep prefix
${prefix}/share/celestia

hope that helps,
karsten

Offline

#9 2006-08-08 01:41:42

karsten
Member
Registered: 2006-07-14
Posts: 261

Re: [SOLVED] celestia on arch 64 doesn't work

hi i just wanted to let you know it works now with a little workaround that can be put into the PKGBUILD big_smile.  abor over in the celestia group came up with this:

for mfile in $(find ./ -name Makefile) ; do
        TmP=$(<mfile> "$mfile"
    done
    echo "End of write. Run "${0/*//} -p" to check." ;

here's a modified PKGBUILD; i had to take out the 'make || return 1' because it was messing up the script, it just does a straight make install:

# $Id: PKGBUILD,v 1.11 2006/06/03 12:40:08 tpowa Exp $
# Contributor : Damir Perisa <damir>
# Maintainer: damir <damir>

pkgname=celestia
pkgver=1.4.1
pkgrel=2
pkgdesc="Real-time space simulation"
arch=(i686 x86_64)
url="http://www.shatters.net/celestia/"
depends=('gtk2' 'lua' 'gtkglext' 'glut' 'libxmu' 'mesa')
source=(http://umn.dl.sourceforge.net/sourceforge/celestia/$pkgname-$pkgver.tar.gz 
        celestia-lua51.patch celestia-1.4.0-compile.patch)
       #  http://celestia.teyssier.org/download/1.3.2/qt-stl.patch 
       #  gcc34x.patch)

build() {
    cd $startdir/src/$pkgname-$pkgver
    #patch -p1 -i $startdir/src/gcc34x.patch
    #patch -p0 -i $startdir/src/qt-stl.patch
    patch -Np1 -i $startdir/src/celestia-lua51.patch || return 1
    patch -Np0 -i $startdir/src/celestia-1.4.0-compile.patch || return 1
    ./configure --prefix=/usr 
                --with-lua=/usr/bin 
                --with-gtk
    
#    make || return 1

    for mfile in $(find ./ -name Makefile) ; do
        TmP=$(<mfile> "$mfile"
    done
    echo "End of write. Run "${0/*//} -p" to check." ;
    echo "";

    make DESTDIR=$startdir/pkg install
    # rm $startdir/pkg/$pkgname.schemas
}


md5sums=('be1d36fc97a13b9a276249dbc0efac41' 'ecc2e10ab99c5d026656b78c7602d31d'
         '87d5e252bb171fb5e339a24c4dbda81a')

i've emailed damir the maintainer for the package.

Offline

#10 2006-08-09 22:16:01

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,638

Re: [SOLVED] celestia on arch 64 doesn't work

Hm. That pkgbuilld is not working. Please check it.

Offline

#11 2006-08-09 22:31:45

karsten
Member
Registered: 2006-07-14
Posts: 261

Re: [SOLVED] celestia on arch 64 doesn't work

what  error does it give you? i thought i copied and pasted it in there

Offline

Board footer

Powered by FluxBB