Page 1 of 1

Compiling on Mandrake Cooker

Posted: 02.12.2002, 02:26
by drjoe
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.

More Mandrake CVS stuff

Posted: 02.12.2002, 02:50
by drjoe
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"

better fix for configure problems Mandrake CVS

Posted: 02.12.2002, 03:04
by drjoe
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))

Success!!!!

Posted: 02.12.2002, 18:42
by drjoe
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.

More Mandrake CVS stuff

Posted: 02.12.2002, 21:36
by Christophe
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