bph bph - 2 months ago 34
C Question

Building CUnit on Windows

Has anyone managed to build the CUnit library for Windows?

I want to run the same unit tests under Windows that I have currently developed under linux, so I need a windows version of the cunit shared library to link to

I'm struggling badly

have MinGW and MinGW MSYS tools installed so have a gcc compiler and Make and all that

but trying the standard:

./configure
make
make install


fails on
./configure


I've tried installing ftjam and following the instructions in the CUnit README but its failing with:

jam -f Jambase install
Jambase: No such file or directory
don't know how to make install
...found 1 target(s)...
...can't find 1 target(s)...


fast running out of ideas here - any assistance gratefully receveived

Answer

The answer above is wrong. The correct answer is as follows:

libtoolize

automake --add-missing 

autoreconf

./configure --prefix=/mingw

make

make install