Skip to content

unittest build fails, claims it cannot find and link with the CoinUtils library #29

@bcdandurand

Description

@bcdandurand

After cloning the repository and cd into FlopCpp:

$ sudo ./configure > log.txt

Configuration is successful. However, it is relevant for this ticket to note that there does not seem to be a check for the COIN-OR package CoinUtils. From the configure script output in log.txt:

checking for pkg-config... pkg-config
checking pkg-config is at least version 0.16.0... yes
checking for COIN-OR package Osi... yes: devel
checking for COIN-OR package Cbc... yes: devel
checking for COIN-OR package Clp... yes: devel
checking whether this is a VPATH configuration... no
configure: configuring doxygen documentation options

Next, running make:
$ sudo make

Make appears to be successful.

Now testing:
$ sudo make test &> testout.txt

From the testout.txt:

...
creating unitTest
./unitTest
/home/bcdandurand/COIN-OR/FlopCpp/FlopCpp/unittest/.libs/lt-unitTest: error while loading shared libraries: libCoinUtils.so.0: cannot open shared object file: No such file or directory
make[2]: *** [Makefile:547: test] Error 127
make[2]: Leaving directory '/home/bcdandurand/COIN-OR/FlopCpp/FlopCpp/unittest'
make[1]: *** [Makefile:794: test] Error 2
make[1]: Leaving directory '/home/bcdandurand/COIN-OR/FlopCpp/FlopCpp'
make: *** [Makefile:679: test] Error 2

I know I have the needed CoinUtils libraries installed in my /usr/local/lib as with other COIN-OR libraries. As noted earlier, the configure script of the root FlopCpp directory does not seem to check for this library (it checks for other needed COIN-OR libraries as seen above). Also, CoinUtils is listed under FlopCpp/Dependencies.

I am attempting this build in WSL 2 with Ubuntu.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions