Author Topic: syntax error near unexpected token `UNITTESTCPP,'  (Read 335 times)

bindkeeper

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
syntax error near unexpected token `UNITTESTCPP,'
« on: November 25, 2013, 01: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



Neeno

  • Traveller
  • *
  • Posts: 29
    • View Profile
    • GreatShift
Re: syntax error near unexpected token `UNITTESTCPP,'
« Reply #1 on: November 25, 2013, 03: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.
« Last Edit: November 25, 2013, 03:12:05 pm by Neeno »

bindkeeper

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
Re: syntax error near unexpected token `UNITTESTCPP,'
« Reply #2 on: November 26, 2013, 12: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.

Neeno

  • Traveller
  • *
  • Posts: 29
    • View Profile
    • GreatShift
Re: syntax error near unexpected token `UNITTESTCPP,'
« Reply #3 on: November 27, 2013, 11:57:07 am »
well, then try the revision used in the guide (507) not 560.

Tuon

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
Re: syntax error near unexpected token `UNITTESTCPP,'
« Reply #4 on: October 05, 2014, 01: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

Tuon

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
Re: syntax error near unexpected token `UNITTESTCPP,'
« Reply #5 on: October 05, 2014, 02: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