File: README

package info (click to toggle)
rdkit 201809.1%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 123,688 kB
  • sloc: cpp: 230,509; python: 70,501; java: 6,329; ansic: 5,427; sql: 1,899; yacc: 1,739; lex: 1,243; makefile: 445; xml: 229; fortran: 183; sh: 123; cs: 93
file content (45 lines) | stat: -rw-r--r-- 1,736 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
To build on Windows:
====================

Since cmake doesn't know anything about C#, there's an unfortunate
manual step involved in this. 

  - Make sure that the cmake configuration variable
    RDK_BUILD_SWIG_CSHARP_WRAPPER is set to ON. 
  - Run cmake to generate the solution file and open it in Visual
    Studio. 
  - Select the option to add an existing project and add
    $RDBASE/Code/JavaWrappers/csharp_wrapper/RDKit2DotNet.csproj 
  - Right click on the added project (named RDKit2DotNet) and add a
    dependency to RDKFuncs (this is the project that creates the C++
    dll that the C# project needs) 
  - Build the RDKit2DotNet project.

Your bin directory
($RDBASE/Code/JavaWrappers/csharp_wrapper/bin/Release if you did a
release build) now contains two DLLs: 
  - RDKFuncs.dll is the C++ dll containing the RDKit functionality 
  - RDKit2DotNet.dll contains the C# wrapper. 
To use the wrappers in your own projects, you should copy both dlls
into your project directory and add a reference to RDKit2DotNet.dll 

The directory RDKitCSharpTest contains a sample test project and some
code that makes very basic use of the wrapper functionality. 


To build on a linux system with mono installed:
==============================================

  - Make sure that the cmake configuration variable
    RDK_BUILD_SWIG_CSHARP_WRAPPER is set to ON. 
  - Run cmake and then do "make install"

This will create, in this directory, two files:
  - libRDKFuncs.{so,dynlib} (name depends on OS): the C++ dll
    containing the RDKit functionality
  - RDKit2DotNet.dll contains the C# wrapper.
  
Build and run the test code:
-------------------------------
gmcs -out:test.exe -addmodule:./RDKit2DotNet.dll test.cs
mono test.exe