Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install with Java doesn't work #38

Open
tdudgeon opened this issue Mar 6, 2017 · 8 comments
Open

Install with Java doesn't work #38

tdudgeon opened this issue Mar 6, 2017 · 8 comments

Comments

@tdudgeon
Copy link

tdudgeon commented Mar 6, 2017

Installing with the --with-java option does not work for me:
https://gist.github.com/tdudgeon/5213f4b4342b298c26ad23296dd0871e
With plain:
brew install rdkit
it works fine.
This is on El Capitan 10.11.5

@UnixJunkie
Copy link
Collaborator

The gist file no longer exists, so this could be closed.
Also, the issue is so old that I guess the user managed to make it work.

@UnixJunkie
Copy link
Collaborator

brew install homebrew/cask/java
brew install rdkit --with-inchi --with-java

@UnixJunkie
Copy link
Collaborator

There might be a broken build of the java wrappers on Mac:

Last 15 lines from /Users/berenger/Library/Logs/Homebrew/rdkit/02.make:
                            ^
src/org/RDKit/StringMolMap.java:98: error: incompatible types: Iterator cannot be converted to SWIGTYPE_p_std__mapT_std__string_boost__shared_ptrT_RDKit__ROMol_t_std__lessT_std__string_t_t__iterator
    while (itr.isNot(end)) {
                     ^
src/org/RDKit/StringMolMap.java:121: error: incompatible types: SWIGTYPE_p_std__mapT_std__string_boost__shared_ptrT_RDKit__ROMol_t_std__lessT_std__string_t_t__iterator cannot be converted to Iterator
      itr = itr.getNextUnchecked();
                                ^
src/org/RDKit/SubstructLibrary.java:43: error: incompatible types: byte cannot be converted to Short
       vec.add(b[size]);
                ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
22 errors
make[2]: *** [Code/JavaWrappers/gmwrapper/org.RDKit.jar] Error 1
make[1]: *** [Code/JavaWrappers/gmwrapper/CMakeFiles/GraphMolWrapJar.dir/all] Error 2
make: *** [all] Error 2

@UnixJunkie
Copy link
Collaborator

# java --version
openjdk 12.0.2 2019-07-16
OpenJDK Runtime Environment (build 12.0.2+10)
OpenJDK 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)

@UnixJunkie
Copy link
Collaborator

# brew list swig
/usr/local/Cellar/swig/4.0.1/

Maybe the SWIG version is the problem?

@UnixJunkie
Copy link
Collaborator

Tim Dudgeon uses those cmake lines on Linux:

RUN cmake -Wno-dev\
  -DPYTHON_EXECUTABLE=/usr/bin/python3\
  -DRDK_INSTALL_INTREE=OFF\
  -DRDK_BUILD_INCHI_SUPPORT=ON\
  -DRDK_BUILD_AVALON_SUPPORT=ON\
  -DRDK_BUILD_PYTHON_WRAPPERS=ON\
  -DRDK_BUILD_SWIG_WRAPPERS=ON\
  -DRDK_BUILD_PGSQL=ON\
  -DPostgreSQL_ROOT=/usr/lib/postgresql/$POSTGRES_VERSION\
  -DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql/$POSTGRES_VERSION/server\
  -DCMAKE_INSTALL_PREFIX=/usr\
  -DCPACK_PACKAGE_RELOCATABLE=OFF

@xrfinbupt
Copy link

There might be a broken build of the java wrappers on Mac:

Last 15 lines from /Users/berenger/Library/Logs/Homebrew/rdkit/02.make:
                            ^
src/org/RDKit/StringMolMap.java:98: error: incompatible types: Iterator cannot be converted to SWIGTYPE_p_std__mapT_std__string_boost__shared_ptrT_RDKit__ROMol_t_std__lessT_std__string_t_t__iterator
    while (itr.isNot(end)) {
                     ^
src/org/RDKit/StringMolMap.java:121: error: incompatible types: SWIGTYPE_p_std__mapT_std__string_boost__shared_ptrT_RDKit__ROMol_t_std__lessT_std__string_t_t__iterator cannot be converted to Iterator
      itr = itr.getNextUnchecked();
                                ^
src/org/RDKit/SubstructLibrary.java:43: error: incompatible types: byte cannot be converted to Short
       vec.add(b[size]);
                ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
22 errors
make[2]: *** [Code/JavaWrappers/gmwrapper/org.RDKit.jar] Error 1
make[1]: *** [Code/JavaWrappers/gmwrapper/CMakeFiles/GraphMolWrapJar.dir/all] Error 2
make: *** [all] Error 2

meet the same problem

@UnixJunkie
Copy link
Collaborator

@tdudgeon @xrfinbupt
you should ask the rdkit mailing list or open an issue in rdkit
https://github.com/rdkit/rdkit/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants