Hi guys,
I am trying to install OpenCV2.2.0 from the sources and to make it easier in the future I want to create a rpm on my OpenSuse 11.2 x86_64 platform. The instructions how to install are in the specfile
The relevant parts of the specfile below:
Code:
---snipp
%prep
%setup
%build
mkdir release
cd release
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DLIB_INSTALL_DIR:PATH=%{_libdir} -DBUILD_PYTHON_SUPPORT=ON ..
%install
cd release
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
---snipp
What happens when I try to run
Code:
rpmbuild -bi OpenCV.spec
is I get the following message
Code:
+ /usr/lib/rpm/brp-lib64-linux
sf@suse.de: if you find problems with this script, drop me a note
/home/oliver/rpmhome/BUILDROOT/OpenCV-2.2.0-1joec2d.x86_64/usr/lib/libopencv_objdetect.so: file format elf64-x86-64
/home/oliver/rpmhome/BUILDROOT/OpenCV-2.2.0-1joec2d.x86_64/usr/lib/libopencv_objdetect.so: should be in */lib64
error: Bad exit status from /home/oliver/rpmhome/tmp/rpm-tmp.5zQNS9 (%install)
What I understand is the libs are in /usr/lib instead of /usr/lib64 so I spent some time and asked google but just found hints to use the cmake flag LIB_INSTALL_DIR. Unfortunately that is not the solution. Can anyone give me a hint at which point I am going wrong? Thanks