Found a solution, but I guess the CMakeLists.txt should be updated to work
with the current state of the project.

adding "maeparser coordgen RingDecomposerLib DataStructs" to the end of the
COMPONENTS list will add the correct .so files to RDKIT_LIBRARIES and it
compiles...

/Rasmus

On Fri, Jan 3, 2020 at 9:46 AM Rasmus "Termo" Lundsgaard <
termope...@gmail.com> wrote:

> Hi Dan
>
> Yes, they are in the $RDBASE/lib directory and LD_LIBRARY_PATH is set to
> point to this as well. That was also my first guess that LD_LIBRARY_PATH
> was not set correctly.
>
> mkdir -p build && cd build
> export RDBASE=/home/termo/HFlabs/rdkit
> export
> LD_LIBRARY_PATH=$RDBASE/lib:/home/termo/miniconda3/envs/rdkit-dev/include
>
> echo ""
> echo "LD_LIBRARY_PATH:" $LD_LIBRARY_PATH
> ls $RDBASE/lib/libRDKitmaeparser.so.1
> echo ""
>
> cmake -DBOOST_ROOT="/home/termo/miniconda3/envs/rdkit-dev" ..
> make VERBOSE=1
> cd ..
>
> gives this attached output (the same as before, but now also showing the
> file exists and LD_LIBRARY_PATH)
>
>
>
> On Fri, Jan 3, 2020 at 12:36 AM Dan Nealschneider <
> dan.nealschnei...@schrodinger.com> wrote:
>
>> Looks like you're missing  libRDKitmaeparser.so.1,
>> libRDKitcoordgen.so.1, libRDKitRingDecomposerLib.so.1,
>> and libRDKitDataStructs.so.1. Are they in a directory pointed to by your
>> LD_LIBRARY_PATH?
>>
>> *dan nealschneider* | senior developer
>> [image: Schrodinger Logo] <https://www.schrodinger.com/>
>>
>>
>> On Thu, Jan 2, 2020 at 1:25 PM Rasmus "Termo" Lundsgaard <
>> termope...@gmail.com> wrote:
>>
>>> I have compiled rdkit as suggested in the docs by using a conda
>>> environment for c++ and boost.
>>>
>>> I would like to move from python to cpp with my RDkit work, and I
>>> thought to start with the C++ exaples in the Docs/Book, but I'm having some
>>> problems getting the minimal c++ examples to link with the current CMake
>>> files there.
>>>
>>> Attached is the output from the make command where I have only set it to
>>> make "example1.cpp" in CMakeLists.txt
>>>
>>> I guess the problem is the "/bin/ld: warning: libRDKitmaeparser.so.1,
>>> needed by /home/termo/HFlabs/rdkit/lib/libRDKitFileParsers.so, not found"
>>>
>>> I have set RDBASE and LD_LIBRARY_PATH, and as far as I can see with the
>>> "-Wl,-rpath,/home/termo/HFlabs/rdkit/lib" part in the linking command
>>> it should find the needed .so file (that is there).
>>>
>>> Any idea why it fails to find the .so files?
>>>
>>> /Rasmus
>>> _______________________________________________
>>> Rdkit-discuss mailing list
>>> Rdkit-discuss@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
>>>
>>
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to