Hi Christian,

I'm using dynamic linking to libboost_regex.
At first, edit $RDBASE/Code/GraphMol/SLNParse/CMakeLists.txt as below.

==================================================
--- ../Code/GraphMol/SLNParse/CMakeLists.txt    (revision 1440)
+++ ../Code/GraphMol/SLNParse/CMakeLists.txt    (working copy)
@@ -1,7 +1,7 @@
  FIND_PACKAGE(BISON)
  FIND_PACKAGE(FLEX)

-set(Boost_USE_STATIC_LIBS ON)
+set(Boost_USE_STATIC_LIBS OFF)
  find_package(Boost 1.39.0 COMPONENTS regex REQUIRED)
==================================================

and delete $RDBASE/build/CMakeCache.txt to forget the previous configs,
then in the $RDBASE/build directory, cmake .. && make.

Regards,
Kei

bouille wrote:
> Dear Greg
>
> Having removed old libraries and compiled boost1.43 again
>
> [ 80%] Built target MolCatalog
> [ 80%] Built target testMolCatalog
> [ 80%] Built target rdMolCatalog
> Linking CXX shared library libSLNParse.so
> /usr/bin/ld: /usr/local/lib/libboost_regex.a(instances.o): relocation
> R_X86_64_32 against
> `boost::object_cache<boost::re_detail::cpp_regex_traits_base<char>,
> boost::re_detail::cpp_regex_traits_implementation<char>
>> ::do_get(boost::re_detail::cpp_regex_traits_base<char>  const&, unsigned
> long)::s_data' can not be used when making a shared object; recompile
> with -fPIC
> /usr/local/lib/libboost_regex.a: could not read symbols: Bad value
> collect2: ld a retourné 1 code d'état d'exécution
> make[2]: *** [Code/GraphMol/SLNParse/libSLNParse.so] Erreur 1
> make[1]: *** [Code/GraphMol/SLNParse/CMakeFiles/SLNParse.dir/all] Erreur
> 2
> make: *** [all] Erreur 2
>
> Best Regards
> Christian
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Rdkit-discuss mailing list
> Rdkit-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to