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

Summary: cppunit library is not detected on Solaris
Product: cnd Reporter: Andrew Krasny <akrasny>
Component: UnitTest SupportAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Solaris   
Issue Type: ENHANCEMENT Exception Reporter:

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.