PlaneShift

Development => Development Deliberation => Topic started by: bindkeeper on November 25, 2013, 07:55:46 pm

Title: syntax error near unexpected token `UNITTESTCPP,'
Post by: bindkeeper on November 25, 2013, 07:55:46 pm
Hi All,

First time compiling PS. I'm stuck in the early process of configuring cal3d( I mean ./configure).

The system is linux:

Code: [Select]
uname -a:
Linux debian7 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 GNU/Linux

Code: [Select]
autoreconf --version
autoreconf (GNU Autoconf) 2.69

The revision of the cal3d is: Revision: 560

The Error itself is :

Code: [Select]
./configure: line 15598: syntax error near unexpected token `UNITTESTCPP,'
./configure: line 15598: `       PKG_CHECK_MODULES(UNITTESTCPP, unittest++ >= 0.1, unittest_enabled="yes", unittest_enabled="no" )'

Thanks


Title: Re: syntax error near unexpected token `UNITTESTCPP,'
Post by: Neeno on November 25, 2013, 09:10:02 pm
Looks like you skipped following command:

Code: [Select]
sed -i 's/AM_USE_UNITTESTCPP/#\ AM_USE_UNITTESTCPP/' configure.in
You can find it in the compiling guide (https://svn.code.sf.net/p/planeshift/code/trunk/docs/compiling.html).
Title: Re: syntax error near unexpected token `UNITTESTCPP,'
Post by: bindkeeper on November 26, 2013, 06:09:18 pm
Thanks for the response.

I followed the instructions first time.

here is part of the configure.in file:

Code: [Select]
     58 AC_PATH_PROG(BLENDER, [blender])
     59 AC_PATH_PROG(VALGRIND, [valgrind])
     60
     61 # Check for unittest++
     62 # AM_USE_UNITTESTCPP
     63
     64 CPPFLAGS="$CPPFLAGS"' -I${top_srcdir}/src'

at line 62 the AM_USE_UNITTESTCPP line is commented out.
Title: Re: syntax error near unexpected token `UNITTESTCPP,'
Post by: Neeno on November 27, 2013, 05:57:07 pm
well, then try the revision used in the guide (507) not 560.
Title: Re: syntax error near unexpected token `UNITTESTCPP,'
Post by: Tuon on October 05, 2014, 08:42:13 am
I am having the same problem, OSX 10.9.5

made sure i'm using 507

Code: [Select]
MacBookPro:development lisa$ svn co -r 507 svn://svn.gna.org/svn/cal3d/trunk/cal3d cal3d
which finished with

Code: [Select]
Checked out revision 507.
removed the requested line 62, then ran autoreconf

Code: [Select]
MacBookPro:cal3d lisa$ autoreconf --install --forcefinishes with

Code: [Select]
./configure: line 15765: syntax error near unexpected token `UNITTESTCPP,'
./configure: line 15765: `       PKG_CHECK_MODULES(UNITTESTCPP, unittest++ >= 0.1, unittest_enabled="yes", unittest_enabled="no" )'

for giggles I tried running it with the line in it but it gives other warnings
Title: Re: syntax error near unexpected token `UNITTESTCPP,'
Post by: Tuon on October 05, 2014, 09:04:14 am
Ok I managed to get past this error

after doing the autoreconf  i went and opened configure with nano

went to line 15765 and commented it out... got to the next step