Compiling on Mandrake Cooker

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
drjoe

Compiling on Mandrake Cooker

Post #1by drjoe » 02.12.2002, 02:26

I'm going to have a go at compiling celestia on mandrake cooker.

Already ran into one problem. automake/autoconf

autoconf2.5-2.54-1mdk.noarch.rpm
automake1.6-1.7.1-2mdk.noarch.rpm

don't work. I have to downgrade to the
automake/autoconf on Mandrake 9.0

automake1.6-1.6.3-1mdk
autoconf2.5-2.53-3mdk

Don't have the energy to figure out what is wrong, but wanted to leave
this note for anyone trying to do this.

Topic author
drjoe

More Mandrake CVS stuff

Post #2by drjoe » 02.12.2002, 02:50

Had to create three zero length files for configure

admin/ltmain.sh
admin/config.guess
admin/config.sub

Also had to modify the configure script by hand to get past the Glut test

Had to change the following. Not sure how to modify config script

Code: Select all

*** configure~  Sun Dec  1 19:30:25 2002
--- configure   Sun Dec  1 19:52:49 2002
***************
*** 29295,29301 ****
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
! LIBS="-lglut  $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
  #line $LINENO "configure"
  #include "confdefs.h"
--- 29295,29301 ----
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
! LIBS="-lglut  -lXmu -lXt $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
  #line $LINENO "configure"
  #include "confdefs.h"

Topic author
drjoe

better fix for configure problems Mandrake CVS

Post #3by drjoe » 02.12.2002, 03:04

The better thing to do is to check for Xmu and Xt which are necessary for GlUt to work

Done configing... Starting to compile.....

Code: Select all

--- configure.in.~1.24.~        2002-11-28 22:51:59.000000000 -0600
+++ configure.in        2002-12-01 20:08:46.000000000 -0600
@@ -236,6 +236,16 @@
 dnl Check for GLUT headers first.
 AC_CHECK_HEADERS(GL/glut.h,,AC_MSG_ERROR([[No glut.h found.  See INSTALL file for details on correcting this problem.]]))
 
+
+dnl Check for X11 Intrinsics.
+AC_CHECK_LIB(Xt, XtInitialize,,
+       AC_MSG_ERROR(Xt library not found))
+
+
+dnl Check for Xmu
+AC_CHECK_LIB(Xmu, XmuSnprintf,,
+       AC_MSG_ERROR(Xmu library not found))
+
 dnl Check for GLUT.
 AC_CHECK_LIB(glut, glutKeyboardUpFunc,,
        AC_MSG_ERROR(GLUT library version >= 3.7 not found))

Topic author
drjoe

Success!!!!

Post #4by drjoe » 02.12.2002, 18:42

Managed to get it working on Mandrake cooker with the config changes.
There were some include files that I had to add.

Now to start hacking the code.

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 7 months
Location: Lyon (France)

More Mandrake CVS stuff

Post #5by Christophe » 02.12.2002, 21:36

drjoe wrote:Had to create three zero length files for configure

admin/ltmain.sh
admin/config.guess
admin/config.sub



You can run 'libtoolize --force' to create those.

There are problems with the linux version of the latest CVS. You can check out with -D '2002-11-22' to get the latest stable code.

What errors do you get with cooker's automake/autoconf?

--
Christophe


Return to “Development”