Page 1 of 2
Compiling CelestiaCVS on Kubuntu Fiesty Fawn
Posted: 18.05.2007, 00:00
by NIGHTCAST2000
Hi to all,
I've recently installed the latest version of Kubuntu(v7.04 Fiesty Fawn) in a daul-boot configuration with my Windows XP Professional OS.
I am impressed with the distrobution,but here is my question:
I've enjoyed compiling the latest CVS version of Celestia in Windows.
I was wondering if I can do the same thing on my Linux distrobution,can anybody give me any pointers? I'm using Cervisia as my CVS client.
Regards,
Nightcast2000
Posted: 18.05.2007, 07:41
by steffens
In general, you would have to go to the directory with your CVS checkout and type:
Code: Select all
make -f Makefile.cvs
./configure --with-kde
make
sudo make install
You will need several development packages ("*-dev") for building Celestia, configure will tell you if there is something missing in your installation.
steffens
Posted: 18.05.2007, 11:27
by NIGHTCAST2000
Hi steffens,
I'd like to thank you very much for your advice.
Here's what I did,I did a CVS checkout with Cervisia and it updated Celestia to the latest files.Then I opened a terminal window on the celestia folder and typed in the first string of code from your reply and I got this:
Code: Select all
steve@Mernivia:~/Desktop/CVSROOT/celestia-1.4.1$ make -f Makefile.cvs
make: Makefile.cvs: No such file or directory
make: *** No rule to make target `Makefile.cvs'. Stop.
steve@Mernivia:~/Desktop/CVSROOT/celestia-1.4.1$
Would you(or anybody)can give me some advice about this one?
Regards,
Nightcast2000
Posted: 18.05.2007, 12:28
by steffens
Maybe you are not in the right folder?
The file "Makefile.cvs" should be there right in the root folder of the CVS checkout. Have a look here:
http://celestia.cvs.sourceforge.net/celestia/celestia/
how your CVS checkout should look like. Start from this folder and everything should be ok.
steffens
Posted: 18.05.2007, 21:15
by NIGHTCAST2000
Hi Steffens,
Thank you very much for the advice.I looked in my CVSROOT and found I was in the wrong directoy
,oh well.
On a positive side,I opened konsole on the correct folder and managed to compile celestia.Curiously,when I ran the executable produced(the blue cog in /home/steve/Desktop/CVSROOT/celestia),I got this error:
Something seems to be wrong with your installation of Celestia. The splash screen directory couldn't be found.
Start-up will continue, but Celestia will probably be missing some data files and may not work correctly, please check your installation.
Is there a log file I can upload to see what went wrong?I'm not sure where to find it.
Regards,
Nightcast2000
Posted: 20.05.2007, 19:42
by NIGHTCAST2000
Hi to all,
I've just tried re-compiling the latest version of CVSCelestia,to see if I could fix the problem I had earlier.
Here's what I did,I opened a konsole window,and ran these commands:
I'm very sorry for the long output,if someone can show me how to upload a compressed text file would be apprieceated.
Regards,
Nightcast2000
Here is the output I got from konsole:
Code: Select all
steve@Mernivia:~/Desktop/CVSROOT/celestia$ make -f Makefile.cvs
This Makefile is only for the CVS repository
This will be deleted before making the distribution
*** Creating acinclude.m4
*** Creating aclocal.m4
*** Creating configure
*** Creating config.h template
*** Creating Makefile templates
*** Postprocessing Makefile templates
*** Creating date/time stamp
*** Finished
Don't forget to run ./configure
If you haven't done so in a while, run ./configure --help
steve@Mernivia:~/Desktop/CVSROOT/celestia$ ./configure --with-kde
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... /usr/bin/install -c -p
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking whether to include debugging code... no
checking whether to be pedantic... no
checking whether to do profiling... no
checking whether to enable GLUT... no
checking whether to enable GTK... no
checking whether to enable Gnome... no
checking whether to enable KDE... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking whether g++ supports -Wmissing-format-attribute... yes
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether g++ supports -Wundef... yes
checking whether g++ supports -Wno-long-long... yes
checking whether g++ supports -Wnon-virtual-dtor... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fno-common... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -O0... yes
checking whether g++ supports -Wl,--no-undefined... yes
checking whether g++ supports -Wl,--allow-shlib-undefined... yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for deflate in -lz... yes
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking for glNewList in -lGL... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for gluLookAt in -lGLU... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
not using lib directory suffix
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking if C++ programs can be compiled... yes
checking for strlcat... no
checking if strlcat needs custom prototype... yes - in libkdefakes
checking for strlcpy... no
checking if strlcpy needs custom prototype... yes - in libkdefakes
checking for main in -lutil... yes
checking for main in -lcompat... no
checking for crypt in -lcrypt... yes
checking for socklen_t... yes
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking sys/bitypes.h usability... yes
checking sys/bitypes.h presence... yes
checking for sys/bitypes.h... yes
checking for poll in -lpoll... no
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
checking if res_init needs -lresolv... yes
checking for res_init... yes
checking if res_init needs custom prototype... no
checking for killpg in -lucb... no
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 4
checking for char *... yes
checking size of char *... 4
checking for dlopen in -ldl... (cached) yes
checking for shl_unload in -ldld... no
checking for size_t... yes
checking size of size_t... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking sizeof size_t == sizeof unsigned long... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for X... libraries , headers
checking for IceConnectionNumber in -lICE... (cached) yes
checking for libXext... yes
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for perl... /usr/bin/perl
checking for Qt... libraries /usr/share/qt3/lib, headers /usr/share/qt3/include using -mt
checking for moc... /usr/share/qt3/bin/moc
checking for uic... /usr/share/qt3/bin/uic
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... libraries /usr/lib, headers /usr/include/kde
checking if UIC has KDE plugins available... yes
checking for KDE paths... defaults
checking for dcopidl... /usr/bin/dcopidl
checking for dcopidl2cpp... /usr/bin/dcopidl2cpp
checking for mcopidl... /usr/bin/mcopidl
checking for artsc-config... /usr/bin/artsc-config
checking for meinproc... /usr/bin/meinproc
checking for kconfig_compiler... /usr/bin/kconfig_compiler
checking for dcopidlng... /usr/bin/dcopidlng
checking for xmllint... /usr/bin/xmllint
checking for THEORA... no
checking for jpeg_start_decompress in -ljpeg... yes
checking for png_create_info_struct in -lpng... yes
checking for ANSI C header files... (cached) yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking whether byte ordering is bigendian... no
checking whether we can create a new star database... no
checking for LUA... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/celutil/Makefile
config.status: creating src/celmath/Makefile
config.status: creating src/cel3ds/Makefile
config.status: creating src/celtxf/Makefile
config.status: creating src/celengine/Makefile
config.status: creating src/celestia/Makefile
config.status: creating data/Makefile
config.status: creating extras/Makefile
config.status: creating textures/Makefile
config.status: creating textures/lores/Makefile
config.status: creating textures/medres/Makefile
config.status: creating textures/hires/Makefile
config.status: creating models/Makefile
config.status: creating shaders/Makefile
config.status: creating fonts/Makefile
config.status: creating src/celestia/res/Makefile
config.status: creating src/celestia/kde/Makefile
config.status: creating src/celestia/kde/data/Makefile
config.status: creating src/celestia/kde/doc/Makefile
config.status: creating src/celestia/kde/doc/celestia/Makefile
config.status: creating src/celestia/gtk/Makefile
config.status: creating src/celestia/gtk/data/Makefile
config.status: creating po/Makefile.in
config.status: creating po2/Makefile.in
config.status: creating locale/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: creating po2/POTFILES
config.status: creating po2/Makefile
config.status: executing depfiles commands
***************************************************************
** Celestia configuration complete. Now do a 'make' followed **
** by 'make install' **
***************************************************************
Front-End: KDE
Use Lua: yes
Use Theora: no
steve@Mernivia:~/Desktop/CVSROOT/celestia$ make
cd . && /bin/bash /home/steve/Desktop/CVSROOT/celestia/admin/missing --run autoheader
rm -f stamp-h1
touch config.h.in
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory `/home/steve/Desktop/CVSROOT/celestia'
Making all in src
make[2]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src'
Making all in celutil
make[3]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celutil'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celutil'
Making all in celmath
make[3]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celmath'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celmath'
Making all in cel3ds
make[3]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/cel3ds'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/cel3ds'
Making all in celtxf
make[3]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celtxf'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celtxf'
Making all in celengine
make[3]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celengine'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celengine'
Making all in celestia
make[3]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia'
Making all in res
make[4]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/res'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/res'
Making all in kde
make[4]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde'
Making all in data
make[5]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde/data'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde/data'
Making all in doc
make[5]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde/doc'
Making all in celestia
make[6]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde/doc/celestia'
Making all in .
make[7]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde/doc/celestia'
make[7]: Nothing to be done for `all-am'.
make[7]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde/doc/celestia'
make[6]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde/doc/celestia'
make[6]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde/doc'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde/doc'
make[5]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde/doc'
make[5]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde'
make[4]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia/kde'
make[4]: Entering directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia'
/bin/bash ../../libtool --silent --tag=CXX --mode=link g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -I/usr/include/lua5.1 -DLUA_VER=0x050100 -DCELX -o celestia -L/usr/share/qt3/lib -R /usr/lib -R /usr/share/qt3/lib celestiacore.o configfile.o destination.o eclipsefinder.o favorites.o imagecapture.o url.o celx.o -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread -lkdecore -lkdeui -lkio kde/libkdegui.a ../celengine/libcelengine.a ../celtxf/libceltxf.a ../cel3ds/libcel3ds.a ../celmath/libcelmath.a ../celutil/libcelutil.a -lpng -ljpeg -lGLU -lGL -lz -lSM -lICE -lm -lXmu -lXi -lXext -lX11 -lm -lz -lGL -llua5.1
../celengine/libcelengine.a(scriptorbit.o): In function `ScriptedOrbit::initialize(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, AssociativeArray*)':
scriptorbit.cpp:(.text+0x502): undefined reference to `lua_newtable'
scriptorbit.cpp:(.text+0x69a): undefined reference to `lua_tostring'
scriptorbit.cpp:(.text+0x726): undefined reference to `lua_tostring'
../celengine/libcelengine.a(scriptrotation.o): In function `ScriptedRotation::initialize(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, AssociativeArray*)':
scriptrotation.cpp:(.text+0x5f7): undefined reference to `lua_newtable'
scriptrotation.cpp:(.text+0x640): undefined reference to `lua_tostring'
scriptrotation.cpp:(.text+0x6cc): undefined reference to `lua_tostring'
collect2: ld returned 1 exit status
make[4]: *** [celestia] Error 1
make[4]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src/celestia'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/steve/Desktop/CVSROOT/celestia'
make: *** [all] Error 2
steve@Mernivia:~/Desktop/CVSROOT/celestia$
Posted: 20.05.2007, 19:54
by t00fri
Obviously you got a problem with lua-5.1. So either you deactivate lua for now and see whether the rest compiles. Or you make sure that both the lua header files and the lua-5.1 lib are are found by the compiler.
Certainly, something is missing in your installation. I compile Celestia on a daily basis with lua-5.1 under Linux.
Since I cannot look over "your shoulder" most of this is guesswork, of course.
By Fridger
Posted: 20.05.2007, 21:43
by NIGHTCAST2000
Hi t00fri,
Thanks for the advice,I did try and compile the latest version of lus(which is 5.1.2 at the moment).The reason I did that was because Celestia was complaining that lua5.1 wasn't installed on my system.
I have tried compiling Celestia without lua,but I was still getting errors
Regards,
Nightcast2000
Posted: 21.05.2007, 08:11
by steffens
NIGHTCAST2000 wrote:On a positive side,I opened konsole on the correct folder and managed to compile celestia.Curiously,when I ran the executable produced(the blue cog in /home/steve/Desktop/CVSROOT/celestia),I got this error:
Something seems to be wrong with your installation of Celestia. The splash screen directory couldn't be found.
Start-up will continue, but Celestia will probably be missing some data files and may not work correctly, please check your installation.
You really need to install Celestia using
to get it working.
steffens
Posted: 21.05.2007, 10:06
by NIGHTCAST2000
Hi guys,
I believe I have solved my problem,here's what I did.
I deleted the Celestia folder I was using and then I used Cervisia to do a CVS checkout to get the latest fresh copy of Celestia.
After Cervisia downloaded it for me,I opened a konsole window and typed make -f Makefile.cvs,then ./configure --with-kde,then make and finally sudo make install(I ran the last command twice just to be sure)
I then went to K-menu,Run Command,and typed in celestia in the dialogue box I typed celestia and viola! the splash screen came up!
Interestingly,the splash screen displayed Celestia 1.4.1,but my Windows CVS version of Celestia comes up with 1.5.1.
Just one more question,what would be the best way of adding Celestia to the K-menu? I don't fancy having to use Run Command all the time.
I would like to thank Steffens and tr00fi for their help.
Regards,
Nightcast2000
Posted: 21.05.2007, 14:28
by Christophe
By default, that is if you didn't use specify the --prefix option when running ./configure, Celestia is installed in /usr/local. Chances are that your system is not configured for KDE applications to be installed there.
You need to add the following lines to your .bashrc file:
Code: Select all
export KDEDIRS=/usr/local:$KDEDIRS
export PATH=/usr/local/bin:$PATH
Then log off and back on again. Now when running celestia from the mini-cli the correct version should come up and Celestia should appear in your start menu.
Note as well that I provide
deb packages of the current CVS for Ubuntu.
Posted: 21.05.2007, 19:56
by NIGHTCAST2000
Hi Christophe,
I'd like to thank you for the info.I did a search for the .bashrc using Konqueror.However I'm a little confused,because Konqueror showed four entries for .bashrc,
one in /etc/bash.bashrc,
one in /etc/skel/.bashrc,
one in /home/steve/.bashrc,
and the last one in /root/.bashrc.
I had put the code into the bottom of /etc/bash.bashrc,(I made sure I put a return space between the code that is in there and the code you have given me in your post).
I then logged out and in again and looked in the various menus in the K-panel,but alas Celestia wasn't in there(but a few more apps which I have installed have appeared).
I hope someone can tell me which correct .bashrc location I should put the code in.
Regards,
Nightcast2000
Posted: 21.05.2007, 20:59
by Christophe
Normaly you would add this to your own .bashrc, that's the one in your home directory, but adding it to /etc/bash.bashrc should be fine too.
/etc/bash.bashrc is the system-wide bash configuration file as indicated in its header. It applies to all users, so to your user aswell.
/etc/skel/.bashrc is the new users default .bashrc, it gets copied to a newly created user's home directory.
/home/steve/.bashrc and /root/.bashrc are the .bashrc of users steve and root respectively.
If 'make install' worked, it should have created the following file: /usr/local/share/applnk/Edutainment/Science/celestia.desktop
which is the link to celestia which should appear in your KDE menu under Edutainment/Science. Then if KDEDIRS is correctly set (you can check that by running "echo $KDEDIRS" in konsole) KDE should find it and you should see the entry in the menu.
Posted: 22.05.2007, 00:04
by NIGHTCAST2000
Hi Christophe,
I've read your post and I've checked that
/usr/local/share/applnk/Edutainment/Science/celestia.desktop does exist
in that directory using Konqueror.I have also added the same code from my /etc/bash.bashrc into the /home/steve/.bashrc file aswell.
I have tried echo $KDEDIRS in konsole and got this output:
Code: Select all
steve@Mernivia:~$ echo $KDEDIRS
/usr/local:/usr/local:
I have even installed kstars using adept package manager to create the
Edutainment menu and did a re-start,but alas,celestia still doesn't appear in that menu.
I hope that helps.
Regards,
Nightcast2000
Posted: 22.05.2007, 22:16
by NIGHTCAST2000
Hi guys,
Here's an update,I had a look at the Kubuntu forum to see how I could manually add Celestia to the menu.I had discovered all I had to do was to right-click on the K-panel,and selected the Menu editor.
From the Menu Editor dialogue box,I navigated through the menu tree on the left: Edutaimnet>Science,then right-clicked on science and selected
New Item.I gave the new item the title Celestia and clicked ok.
In the right-hand pane of the K-menu dialogue box,I clicked on the folder icon next to command and navigated to where celestia.desktop is located.I also left-clicked icon panel and selected the celestia icon on the list.I then clicked on save,and KDE updated itself.
I have also updated KDE to the latest version (which is 3.5.7 at mo)to see if the latest bug-fixes would solve my problem.
But sadly it hasn't,I select celestia form the K-menu but nothing happens.
I try to launch celestia from run command and I get this message:
Code: Select all
KDEInit could not launch '/usr/local/share/applnk/Edutainment/Science/celestia.desktop'.
Interestingly,if I navigate to celestia.desktop using Konqueror and left-click on it,Celestia fires up as normal.
Regards,
Nightcast2000
Posted: 23.05.2007, 06:56
by steffens
You should enter "celestia" as the command to execute, not the "celestia.desktop", which is a kind of a link to the application, containing the command, a description and an icon.
steffens
Posted: 23.05.2007, 08:56
by NIGHTCAST2000
Hi Steffens,
I've looked at your last post and followed your advice.
I right-clicked on the K-panel and selected the menu editor again.
I then navigated to where celestia is on the start-up menu.
I then cleared out the path pointing to clelestia.desktop in the command box and relpaced it with just celestia and saved my changes.
KDE then updated it's system settings,I then closed menu-editor and left-clicked on the K-panel and scrolled up to celestia on the menu proper.
When I selected celestia on the menu,HORAY!!! Celestia loads up as normal!!
Thank you very much to all those that have been helping me with my problem.
Regards,
Nightcast2000
Makefile.cvs Not Working
Posted: 30.05.2007, 12:20
by NIGHTCAST2000
I have a slight problem,I've just done a CVS checkout with Cervisia using the string:
Code: Select all
cvs -d:pserver:anonymous:@cvs.sourceforge.net:/cvsrooot/celestia login
In my Repository Dialogue Box and waited for the latest Celestia to download.
After it had finished downloading,I navigated to the celestia folder in CVSROOT and opened a Konsole window on the folder.
Here is the code output I got:
Code: Select all
steve@Mernivia:~/Desktop/CVSROOT/celestia$ make -f Makefile.cvs
This Makefile is only for the CVS repository
This will be deleted before making the distribution
*** Creating acinclude.m4
*** Creating aclocal.m4
acinclude.m4:3345: the serial number must appear before any macro definition
acinclude.m4:3390: the serial number must appear before any macro definition
acinclude.m4:3435: the serial number must appear before any macro definition
acinclude.m4:5560: the serial number must appear before any macro definition
configure.in:283: warning: macro `AM_GCONF_SOURCE_2' not found in library
*** Creating configure
configure.in:283: error: possibly undefined macro: AM_GCONF_SOURCE_2
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make[1]: *** [cvs] Error 1
make: *** [all] Error 2
steve@Mernivia:~/Desktop/CVSROOT/celestia$
I'm not sure what has happened here.
Regards,
NIGHTCAST2000
Posted: 30.05.2007, 15:05
by steffens
I guess you need to install the gconf2 development package (libgconf2-dev).
steffens
Posted: 30.05.2007, 15:37
by NIGHTCAST2000
Thank you very much,I read your post and installed Gconf2-dev.
I tried :
and celestia did install successfully.
However,the command did give some strange output before it finished,
here it is:
Code: Select all
steve@Mernivia:~/Desktop/CVSROOT/celestia$ make -f Makefile.cvs
This Makefile is only for the CVS repository
This will be deleted before making the distribution
*** Creating acinclude.m4
*** Creating aclocal.m4
acinclude.m4:3345: the serial number must appear before any macro definition
acinclude.m4:3390: the serial number must appear before any macro definition
acinclude.m4:3435: the serial number must appear before any macro definition
acinclude.m4:5560: the serial number must appear before any macro definition
*** Creating configure
*** Creating config.h template
*** Creating Makefile templates
data/Makefile.am:12: wildcard *.ssc: non-POSIX variable name
data/Makefile.am:12: (probably a GNU make extension)
data/Makefile.am:12: wildcard *.dat: non-POSIX variable name
data/Makefile.am:12: (probably a GNU make extension)
data/Makefile.am:12: wildcard *.xyz: non-POSIX variable name
data/Makefile.am:12: (probably a GNU make extension)
data/Makefile.am:12: wildcard *.dsc: non-POSIX variable name
data/Makefile.am:12: (probably a GNU make extension)
data/Makefile.am:12: wildcard *.stc: non-POSIX variable name
data/Makefile.am:12: (probably a GNU make extension)
extras/Makefile.am:3: wildcard *.ssc: non-POSIX variable name
extras/Makefile.am:3: (probably a GNU make extension)
fonts/Makefile.am:3: wildcard *.txf: non-POSIX variable name
fonts/Makefile.am:3: (probably a GNU make extension)
locale/Makefile.am:3: wildcard COPYING_*: non-POSIX variable name
locale/Makefile.am:3: (probably a GNU make extension)
locale/Makefile.am:3: wildcard controls_*.txt: non-POSIX variable name
locale/Makefile.am:3: (probably a GNU make extension)
locale/Makefile.am:3: wildcard *.cel: non-POSIX variable name
locale/Makefile.am:3: (probably a GNU make extension)
models/Makefile.am:46: wildcard *.3ds: non-POSIX variable name
models/Makefile.am:46: (probably a GNU make extension)
shaders/Makefile.am:3: wildcard *.vp: non-POSIX variable name
shaders/Makefile.am:3: (probably a GNU make extension)
shaders/Makefile.am:3: wildcard *.fp: non-POSIX variable name
shaders/Makefile.am:3: (probably a GNU make extension)
src/cel3ds/Makefile.am:2: wildcard *.h: non-POSIX variable name
src/cel3ds/Makefile.am:2: (probably a GNU make extension)
src/celengine/Makefile.am:2: wildcard *.h: non-POSIX variable name
src/celengine/Makefile.am:2: (probably a GNU make extension)
src/celestia/Makefile.am:76: wildcard *.h: non-POSIX variable name
src/celestia/Makefile.am:76: (probably a GNU make extension)
src/celestia/gtk/Makefile.am:31: wildcard *.h: non-POSIX variable name
src/celestia/gtk/Makefile.am:31: (probably a GNU make extension)
src/celestia/kde/Makefile.am:31: wildcard *.h: non-POSIX variable name
src/celestia/kde/Makefile.am:31: (probably a GNU make extension)
src/celestia/kde/Makefile.am:59: `%'-style pattern rules are a GNU make extension
src/celestia/kde/Makefile.am:62: `%'-style pattern rules are a GNU make extension
src/celestia/kde/Makefile.am:65: `%'-style pattern rules are a GNU make extension
automake: wildcard *.h: non-POSIX variable name
automake: (probably a GNU make extension)
src/celestia/kde/Makefile.am:31: while processing `noinst_HEADERS'
src/celestia/kde/data/Makefile.am:6: wildcard celestia_*.png: non-POSIX variable name
src/celestia/kde/data/Makefile.am:6: (probably a GNU make extension)
src/celestia/kde/doc/celestia/Makefile.am:1: wildcard *.jpg: non-POSIX variable name
src/celestia/kde/doc/celestia/Makefile.am:1: (probably a GNU make extension)
src/celestia/res/Makefile.am:1: wildcard *.bmp: non-POSIX variable name
src/celestia/res/Makefile.am:1: (probably a GNU make extension)
src/celestia/res/Makefile.am:1: wildcard *.cur: non-POSIX variable name
src/celestia/res/Makefile.am:1: (probably a GNU make extension)
src/celestia/res/Makefile.am:1: wildcard *.ico: non-POSIX variable name
src/celestia/res/Makefile.am:1: (probably a GNU make extension)
src/celmath/Makefile.am:2: wildcard *.h: non-POSIX variable name
src/celmath/Makefile.am:2: (probably a GNU make extension)
src/celtxf/Makefile.am:2: wildcard *.h: non-POSIX variable name
src/celtxf/Makefile.am:2: (probably a GNU make extension)
src/celutil/Makefile.am:2: wildcard *.h: non-POSIX variable name
src/celutil/Makefile.am:2: (probably a GNU make extension)
textures/Makefile.am:5: wildcard *.jpg: non-POSIX variable name
textures/Makefile.am:5: (probably a GNU make extension)
textures/Makefile.am:5: wildcard *.png: non-POSIX variable name
textures/Makefile.am:5: (probably a GNU make extension)
textures/lores/Makefile.am:3: wildcard *.jpg: non-POSIX variable name
textures/lores/Makefile.am:3: (probably a GNU make extension)
textures/lores/Makefile.am:3: wildcard *.png: non-POSIX variable name
textures/lores/Makefile.am:3: (probably a GNU make extension)
textures/medres/Makefile.am:3: wildcard *.jpg: non-POSIX variable name
textures/medres/Makefile.am:3: (probably a GNU make extension)
textures/medres/Makefile.am:3: wildcard *.png: non-POSIX variable name
textures/medres/Makefile.am:3: (probably a GNU make extension)
Makefile.am:3: wildcard *.bat: non-POSIX variable name
Makefile.am:3: (probably a GNU make extension)
Makefile.am:15: wildcard *.cel: non-POSIX variable name
Makefile.am:15: (probably a GNU make extension)
*** Postprocessing Makefile templates
*** Creating date/time stamp
*** Finished
Don't forget to run ./configure
If you haven't done so in a while, run ./configure --help
steve@Mernivia:~/Desktop/CVSROOT/celestia$
I was wondering if this was normal.
Regards,
NIGHTCAST2000