#5151 closed Bugs (fixed)
Cannot compile Boost on CentOS 5.5
Reported by: | Owned by: | ||
---|---|---|---|
Milestone: | To Be Determined | Component: | None |
Version: | Boost 1.45.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Hi,
I'm trying to compile Boost on my CentOS 5.5 64bits i7 machine.
(
mkdir serial cd serial cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS="NONE" \
-DENABLE_SINGLE_THREADED=YES -DINSTALL_VERSIONED=OFF \ -DWITH_MPI=OFF \ -DCMAKE_CXX_FLAGS="%{optflags} -DBOOST_IOSTREAMS_USE_DEPRECATED" ..
make %{?_smp_mflags}
)
make -C serial install DESTDIR=%{buildroot}
Cmake will finish the kitchen job, no problems. When I look at the actual build dir (install starts), it creates a 32bits branch, completly ignoring the lib64 detection:
+ /bin/rm -f '/var/tmp/boost-1.45.0-7.el5-root-florenusr/lib64/*-d.*' + find /var/tmp/boost-1.45.0-7.el5-root-floren/usr/lib64 -name '*.cmake' -exec /bin/rm -f '{}' ';' find: /var/tmp/boost-1.45.0-7.el5-root-floren/usr/lib64: No such file or directory.
The files are created into: /var/tmp/boost-1.45.0-7.el5-root-floren/usr/local/lib
I need to find a way and force Cmake to push the build with the proper libs. For example, I tried: %define _cmake_lib_suffix -DBOOST_INSTALL_LIB_SUBDIR_NAME=lib64
No effect. I really apreciuate if you could point me into right direction how to force Cmake create the /var/tmp/boost-1.45.0-7.el5-root-floren/usr/lib64 dir, instead of the /var/tmp/boost-1.45.0-7.el5-root-floren/usr/local/lib one.
Thanks
Change History (2)
comment:1 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Adding the Fedora set of macros for CMake fixed the compile issues on 64bits.