This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 218118 - cppunit library is not detected on Solaris
Summary: cppunit library is not detected on Solaris
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: UnitTest Support (show other bugs)
Version: 7.3
Hardware: PC Solaris
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 10:37 UTC by Andrew Krasny
Modified: 2014-04-14 14:32 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Krasny 2012-09-11 10:37:55 UTC
Steps to reproduce:
- compile and install cppunit from sources (in /usr/local/lib by default);
- My LD_LIBRARY_PATH doesn't contain /usr/local/lib
=> When trying to create a cppunit test I get a warning:
   "cppunit library is not detected. Test compilation might fail."

However this information could be easily detected:

$ which cppunit-config
/usr/local/bin/cppunit-config

$ cppunit-config --libs
-L/usr/local/lib -lcppunit -ldl
$  cppunit-config --cflags
-I/usr/local/include


(Moreover, -ldl option reported by the cppunit-config should be respected by NB)

As a workaround for library-detection problem, one could set LD_LIBRARY_PATH before starting nb.