Hi,
I'm using MacOS
I tried to install CUnit as execuable and also to build the library from the source code.
Download:
$ brew install cunit
I see the addition
$ ls -la /opt/homebrew/Cellar/cunit/2.1-3
total 136
drwxr-xr-x 14 admin 448 May 12 16:10 .
drwxr-xr-x 3 admin 96 May 12 16:10 ..
drwxr-xr-x 3 admin 96 Apr 23 2014 .brew
-rw-r--r-- 1 admin 340 Apr 23 2014 AUTHORS
-rw-r--r-- 1 admin 25959 Apr 23 2014 COPYING
-rw-r--r-- 1 admin 13878 Apr 23 2014 ChangeLog
-rw-r--r-- 1 admin 960 May 12 16:10 INSTALL_RECEIPT.json
-rw-r--r-- 1 admin 137 Apr 23 2014 NEWS
-rw-r--r-- 1 admin 6451 Apr 23 2014 README
-rw-r--r-- 1 admin 761 Apr 23 2014 TODO
drwxr-xr-x 3 admin 96 Apr 23 2014 doc
drwxr-xr-x 3 admin 96 Apr 23 2014 include
drwxr-xr-x 6 admin 192 May 12 16:10 lib
drwxr-xr-x 4 admin 128 Apr 23 2014 share
% pwd
/opt/homebrew/Cellar/cunit/2.1-3/lib
% file libcunit.a
libcunit.a: current ar archive random library
Which I assume is the library I should used for the testing
Build:
I have downloed the file CUnit-2.1-3.tar.bz2 and opened it
I want to build the library.
**Q: where are the C/CPP files ?
**
I see only header file
**I'm looking at the README file
**
To build using jam:
1. Set the working directory to the top of the source tree
2. Generate Jamrules
a. On Linux, run autoconf & configure
b. On Windows, copy Jamrules.in to Jamrules
3. Edit the top section of Jamrules to match your preferences
4. jam -f Jambase install
To build using jam:
$% brew install jamrules
fail
I tried also without jam
Linux:
In addition to jam, the standard GNU build system is still supported.
The usual sequence of steps should succeed in building and installing CUnit:
1. aclocal (if necessary)
2. autoconf (if necessary)
3. automake (if necessary)
4. chmod u+x configure (if necessary)
5. ./configure --prefix <your choice="" of="" directory="" for="" installation="">
6. make
7. make install</your>
**Q: Does the Linux instructions valid also for MacOS?
**
I have aclocal, autoconf and automake installed on my system
Q: What is the command sequence I need to run in order to build the librart?
Best.
Rami
Anonymous