trying to install cpputest on windows without any luck so far

935 views
Skip to first unread message

tombe 691

unread,
Oct 7, 2018, 8:52:08 AM10/7/18
to cpputest


Have previously used junit in intellij and with ant, used unity last year and had an idea that I should try cpputest this year
Tried to follow the following instructions>

Install cygwin, default and development packages.

Download and extract Cpputest to c:\cpputest-x.x

Configure and install cpputest: Start cygwin and input the following shell commands

cd c:\cpputest-x.x
./configure
make
make check

Install helper scripts (optional step)

cd scripts
./InstallScripts.sh

Add CPPUTEST_HOME as an environment variable: in c:\cygwin64\home\your_user_name.bash_profile add

< export CPPUTEST_HOME=/cygdrive/c/cpputest-x.x >

You should now be good to go. If not, write to the CppUTest google group, theres always friendly people willing to help.


I can extract the zip-file to my temp/folder just in c:/temp

./configure runs, print out a lot of yes and no

Then I try make, system stops telling me there is a missing separator on line 631, first my path contained a space but I temporary corrected that just to be able to continue, but I don't understand how to fix this error

this is what's on line 630 and 631

LD = C:/temp/mingw-w64/x86_64-7.3.0-win32-seh-rt_v5-rev0/mingw64/x86_64-w64-mingw32/bin/ld.exe

LDFLAGS = 

tombe 691

unread,
Oct 7, 2018, 3:33:32 PM10/7/18
to cpputest
Update, finally found that there were two makefiles, changed the path and got to the next problem and now I've been stucked here for several hours
$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /cygdrive/c/temp/cpputest-3.8/missing aclocal-1.15 -I m4
/cygdrive/c/temp/cpputest-3.8/missing: line 81: aclocal-1.15: command not found (translated from my swedish version)
WARNING: 'aclocal-1.15' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.perl.org/>
make: *** [Makefile:954: aclocal.m4] Error 127


Downloaded automake version 1.15 and placed it in the gygwin lib folder, tried configure again without any progress

Bas Vodde

unread,
Oct 9, 2018, 2:02:30 AM10/9/18
to CppUTest

Hi,

Doesn’t windows have a chocolate package for CppUTest? Or you just want to to work in Cygwin?

The error message you got suggests a missing package or a wrongly configured autotools.

Thanks,

Bas


--
You received this message because you are subscribed to the Google Groups "cpputest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpputest+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

tombe 691

unread,
Oct 9, 2018, 2:18:37 AM10/9/18
to cpputest
To write a unit-test is not a problem but I have limited experience of setting up things like this. As mentioned above, last year I started reading the book Test Driven Development for Embedded C and got Unity up and running. Later this year I will give a course where I thought it could be useful to show more than one x-unit-framework. However, finding info on the first steps to get things up and to work around all strange errors is harder than expected. Please tell me more about Chocolate, never heard of it. To me it doesn't matter how I set things up, just want it to be easy and understandable, either by following a tutorial or pointlist. I tried to follow the instructions this time, but unfortunately there were no hints what to do when it did not work.

Thanks,

Bas Vodde

unread,
Oct 9, 2018, 2:21:12 AM10/9/18
to cppu...@googlegroups.com

Miguel Mora Perea

unread,
Feb 8, 2019, 12:41:30 PM2/8/19
to cpputest
Hi, 

I also struggled to get CppUTest to work on Windows. But I managed to do it and documented my steps in my GitHub repository.

Feel free to go over it and try it, hopefully, it will help you to get up and running:



Best of luck!
Reply all
Reply to author
Forward
0 new messages