Build error - MS Casablanca on Linux SUSE Enterprise

Nov 18, 2013 at 7:16 AM
Hi All,

I was trying to build the casablanca SDK on a Linux SUSE Enterprise 11 machine. The "make all" failed midway with the following error (slightly modified, i have replaced the long path leading to "restcpp" with <path to directory>):
make[2]: Entering directory `/<path to directory>/restcpp/chkout/Release/src'
Building library /<path to directory>/restcpp/chkout/Release/../Binaries/Debug64/libcasablanca.so
/usr/bin/ld: cannot find -lboost_locale
/usr/bin/ld: cannot find -lboost_regex
collect2: error: ld returned 1 exit status
I have followed the instructions on this page (modifying as required for Linux).

I have made sure that libxml++, boost and SSL libraries are installed.

Also, the make shows the following warning for every file it is compiling:
Package libxml++-2.6 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml++-2.6.pc'
to the PKG_CONFIG_PATH environment variable
I tried to find the directory where the above file was, but "find" could not locate the .pc file at all.

Any help on this would be much appreciated.
Coordinator
Nov 18, 2013 at 6:45 PM
Hi prashanthravoor,

The linker fails to find boost_locale and boost_regex. Here is how I suggest to trouble-shoot it:
locate boost_locale
On my system (Ubuntu) I get the following:
/usr/lib/i386-linux-gnu/libboost_locale.a
/usr/lib/i386-linux-gnu/libboost_locale.so
Try this and see if you have the library installed properly.

The pkg-config error is unrelated and can be ignored for now (this is something we need to fix on our side, but it should be benign).
Marked as answer by prashanthravoor on 11/19/2013 at 5:21 AM
Nov 19, 2013 at 1:21 PM
Hi arturl,

I followed your instructions, as it turns out there were a few broken symbolic links in the /usr/lib directory. I reinstalled boost.

Its working now.

Thanks for the quick response!