Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

Need to specify path to library which is installed by a BuildRequires dependency

$
0
0
Hey all,

I'm fairly new to writing spec files and the Open Build Service and I wonder if somebody can clue me in here. I am writing a specfile that requires some libraries from Boost, which is a package I built on the OBS. This package provides a specific library, /usr/lib/libboost_thread.so, which I must specify as a parameter to configure. The relevant lines are:

Code:

BuildRequires: boost
%configure --prefix=/usr/local --with-eigen=/usr/include/eigen --with-boost=/usr/include/boost --with-boost-thread=/usr/lib/libboost_thread.so
make

Locally, this works because the boost package installs the library to that directory and then it is found during the make; however, on the OBS, I get this:

Code:

[  142s] g++: /usr/lib/libboost_thread.so: No such file or directory

Any help is appreciated!


Mario

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>