Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
455 views
in Technique[技术] by (71.8m points)

c - 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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

libtoolize

automake --add-missing 

autoreconf

./configure --prefix=/mingw

make

make install

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...