If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
Current date: 28.02.05
Current time: 04:57 (+3:00)
Subject: Fix for Linux build (on my FC3?)
So...
There is an error when you try to compile OGRE 1.0.0RC1
or even final
it's in a mistake in Scripts/m4/cppunit.m4. So my solution is to create a file start.sh (a bash script) and put there:
#!/bin/bash echo "Deleting autom4te cache..." rm -fr autom4te.cache/* rmdir autom4te.cache echo "Deleting wrong cppunit.m4 script..." rm -f ./Scripts/m4/cppunit.m4 echo "Copying the working one..." cp ./cppunit.m4 ./Scripts/m4/cppunit.m4 rm -f ./cppunit.m4 echo "Now all is OK, I'll delete myself and run a standart automake gibbons :-)" echo "Have fun!!!" rm -f $0 #Change the ./configure params here or comment next string ./configure --prefix=/usr && make && make install #That's all:)
And copy this script file to ogrenew directory. Then run
$ chmod +x start.sh
So finaly create a file cppunit.m4 in the same directory where script start.sh is located (ogrenew if you forgot:)) and put there the following:
dnl
dnl AM_PATH_CPPUNIT(MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
dnl
AC_DEFUN([AM_PATH_CPPUNIT],
[
AC_ARG_WITH(cppunit-prefix,[ --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)],
cppunit_config_prefix="$withval", cppunit_config_prefix="")
AC_ARG_WITH(cppunit-exec-prefix,[ --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)],
cppunit_config_exec_prefix="$withval", cppunit_config_exec_prefix="")
if test x$cppunit_config_exec_prefix != x ; then
cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
if test x${CPPUNIT_CONFIG+set} != xset ; then
CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
fi
fi
if test x$cppunit_config_prefix != x ; then
cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
if test x${CPPUNIT_CONFIG+set} != xset ; then
CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
fi
fi
AC_PATH_PROG(CPPUNIT_CONFIG, cppunit-config, no)
cppunit_version_min=$1
AC_MSG_CHECKING(for Cppunit - version >= $cppunit_version_min)
no_cppunit=""
if test "$CPPUNIT_CONFIG" = "no" ; then
no_cppunit=yes
else
CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
cppunit_version=`$CPPUNIT_CONFIG --version`
cppunit_major_version=`echo $cppunit_version | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
cppunit_minor_version=`echo $cppunit_version | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
cppunit_micro_version=`echo $cppunit_version | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
cppunit_major_min=`echo $cppunit_version_min | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
cppunit_minor_min=`echo $cppunit_version_min | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
cppunit_micro_min=`echo $cppunit_version_min | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
cppunit_version_proper=`expr $cppunit_major_version \> $cppunit_major_min \| $cppunit_major_version \= $cppunit_major_min \& $cppunit_minor_version \> $cppunit_minor_min \| $cppunit_major_version \= $cppunit_major_min \& $cppunit_minor_version \= $cppunit_minor_min \& $cppunit_micro_version \>= $cppunit_micro_min `
if test "$cppunit_version_proper" = "1" ; then
AC_MSG_RESULT([$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version])
else
AC_MSG_RESULT(no)
no_cppunit=yes
fi
fi
if test "x$no_cppunit" = x ; then
ifelse([$2], , :, [$2])
else
CPPUNIT_CFLAGS=""
CPPUNIT_LIBS=""
ifelse([$3], , :, [$3])
fi
AC_SUBST(CPPUNIT_CFLAGS)
AC_SUBST(CPPUNIT_LIBS)
])
It's an ellegant way to go away like an englishman )
Anyway you may just delete ogrenew/autom4te.cache directory and all of it's contence, then just change the line
AC_DEFUN(AM_PATH_CPPUNIT,
in ogrenew/Scripts/m4/cppunit.m4 to
AC_DEFUN([AM_PATH_CPPUNIT],
and run usual ./configure && make && make install.
Found a solution http://cppunit.sourceforge.net/cgi-bin/moin.cgi/BuildingCppUnit1#head-dbaa9ca011a5c2325563f7881fac60345a6d7bf5
here.
Yeah, and I prefer ./configure --prefix=/usr since it's more convenient... But then You'll have to change in a plugins.cfg line
PluginFolder=/usr/local/lib/OGRE to line
PluginFolder=/usr/lib/OGRE
Sorry for my bad english:)
Contributors to this page: Johnny
.
Page last modified on Monday 28 of February, 2005 02:21:16 GMT by Johnny.
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.

