Re: [Open Babel] missing obabel executable when compiling by sources on HPC

2014-01-15 Thread Vedat Durmaz



Am 14.01.2014 19:10, schrieb Dimitri Maziuk:
 On 01/14/2014 11:21 AM, Vedat Durmaz wrote:
 ...
 i really don't
 understand, why obabel building is deactivated by default in the static
 case. however, i also don't have that much experience with that
 cmake/configure stuff.
 Looks like a braino to me, perhaps the endif(BUILD_SHARED) was supposed
 to be about 10 lines above where it is now?

but then still no obabel executable would have been compiled/linked in
case of a static build. maybe i haven't explained (and understood) well
enough. i don't know whether this will work, but i'll try to attach the
CMakeLists.txt file from the ./tools directory before and after
modification (concerning the last 1-15 lines only) ..

vedat


 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today. 
 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk


 ___
 OpenBabel-discuss mailing list
 OpenBabel-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

if(MINIMAL_BUILD)
  set(tools
babel
  )
else(MINIMAL_BUILD)
  set(tools
babel
obabel
obchiral
obconformer
obenergy
obfit
obgen
obminimize
obprobe
obprop
obrotamer
obrotate
 )
  if(EIGEN3_FOUND)
set(tools
${tools}
obrms
   )
  endif()
endif(MINIMAL_BUILD)

INCLUDE(CheckFunctionExists)
SET(GETOPT getopt)
CHECK_FUNCTION_EXISTS(${GETOPT} GETOPT_FOUND)

if(BUILD_SHARED)
  foreach(tool ${tools})
add_executable(${tool} ${tool}.cpp)
target_link_libraries(${tool} ${BABEL_LIBRARY})
install(TARGETS ${tool}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
  endforeach(tool)

  if(NOT MINIMAL_BUILD)
# obspectrophore -- requires getopt
if (NOT GETOPT_FOUND)
  add_executable(obspectrophore obspectrophore.cpp getopt.c)
else(NOT GETOPT_FOUND)
  add_executable(obspectrophore obspectrophore.cpp)
endif(NOT GETOPT_FOUND)
target_link_libraries(obspectrophore ${BABEL_LIBRARY})
install(TARGETS obspectrophore
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)

# obgrep -- requires getopt
if (NOT GETOPT_FOUND)
  add_executable(obgrep obgrep.cpp getopt.c)
else(NOT GETOPT_FOUND)
  add_executable(obgrep obgrep.cpp)
endif(NOT GETOPT_FOUND)
  target_link_libraries(obgrep ${BABEL_LIBRARY})
  install(TARGETS obgrep
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib
  )
  endif(NOT MINIMAL_BUILD)

else(BUILD_SHARED)
###
#
# Build STATIC babel with all plugins taken from the static libopenbabel.a
#
###

  # Set libs to imported openbabel target
  set(libs openbabel)
  if(WITH_STATIC_INCHI)
set(libs ${libs} ${LIBXML2_LIBRARIES})
  endif()
  if(WITH_STATIC_LIBXML)
set(libs ${libs} inchi)
  endif()

  if(NOT MSVC)
find_package(Threads)
if(CMAKE_USE_PTHREADS_INIT)
  if(BUILD_MIXED)
set(libs ${libs} ${CMAKE_THREAD_LIBS_INIT})
  else()
# Make sure to find the static library with .a suffix (see 
CMAKE_FIND_LIBRARY_SUFFIXES)
find_library(PTHREAD_LIBRARY NAMES pthread)
if(PTHREAD_LIBRARY)
  set(libs ${libs} ${PTHREAD_LIBRARY})
endif()
  endif()
endif()

if(BUILD_MIXED)
  if(CMAKE_COMPILER_IS_GNUCXX)
if(CMAKE_SYSTEM_NAME MATCHES Linux)

  #
  # Relocatable binaries on linux using -static-libgcc. (GCC only)
  #
  set(CMAKE_CXX_FLAGS -static-libgcc ${CMAKE_CXX_FLAGS})
  # make sure the linker will find the static libstdc++
  file(REMOVE ${CMAKE_BINARY_DIR}/libstdc++.a)
  execute_process(COMMAND g++ -print-file-name=libstdc++.a
  OUTPUT_VARIABLE libstdcpp
  OUTPUT_STRIP_TRAILING_WHITESPACE)
  execute_process(COMMAND ln -s ${libstdcpp}
  WORKING_DIRECTORY ${CMAKE_BINARY_DIR})

  link_directories(${CMAKE_BINARY_DIR})

endif(CMAKE_SYSTEM_NAME MATCHES Linux)
  endif(CMAKE_COMPILER_IS_GNUCXX)
else(BUILD_MIXED)
  #
  # Default static build using GNU-like compiler.
  #
  if (NOT APPLE)
set(CMAKE_CXX_FLAGS -static ${CMAKE_CXX_FLAGS})
  endif()
  # APPLE doesn't use 

Re: [Open Babel] missing obabel executable when compiling by sources on HPC

2014-01-15 Thread Maciek Wójcikowski
I think you should build with SHARED = True and append correct directory
to LD_LIBRARY_PATH, which probably should look like:

export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/openbabel/openbabel-2.3.2-install/lib


Pozdrawiam,  |  Best regards,
Maciek Wójcikowski
mac...@wojcikowski.pl


2014/1/15 Vedat Durmaz dur...@zib.de




 Am 14.01.2014 19:10, schrieb Dimitri Maziuk:

 On 01/14/2014 11:21 AM, Vedat Durmaz wrote:
 ...

  i really don't
 understand, why obabel building is deactivated by default in the static
 case. however, i also don't have that much experience with that
 cmake/configure stuff.

  Looks like a braino to me, perhaps the endif(BUILD_SHARED) was supposed
 to be about 10 lines above where it is now?


 but then still no obabel executable would have been compiled/linked in
 case of a static build. maybe i haven't explained (and understood) well
 enough. i don't know whether this will work, but i'll try to attach the
 CMakeLists.txt file from the ./tools directory before and after
 modification (concerning the last 1-15 lines only) ..

 vedat



 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today. 
 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk



 ___
 OpenBabel-discuss mailing 
 listOpenBabel-discuss@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/openbabel-discuss




 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today.

 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
 ___
 OpenBabel-discuss mailing list
 OpenBabel-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


Re: [Open Babel] missing obabel executable when compiling by sources on HPC

2014-01-15 Thread Vedat Durmaz

the static build works fine after having modified CMakeLists.txt as
described in my previous mail!


in contrast, when setting the -DBUILD_SHARED=ON, i get this error:

Linking CXX executable ../bin/babel
cd /home/b/becdurma/openbabel/openbabel-2.3.2-build/tools 
/sw/tools/cmake/2.8.11/generic/GNU/bin/cmake -E cmake_link_script
CMakeFiles/babel.dir/link.txt --verbose=1
/opt/cray/craype/2.01/bin/CC   -O2 -g -DNDEBUG -O2 -g 
-Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc
-Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  
CMakeFiles/babel.dir/babel.o  -o ../bin/babel -rdynamic
../lib/libopenbabel.so.4.0.2 -lm -ldl -lz
-Wl,-rpath,/home/b/becdurma/openbabel/openbabel-2.3.2-build/lib::
/usr/bin/ld: attempted static link of dynamic object
`../lib/libopenbabel.so.4.0.2'


which i was not able to solve. even setting LD_LIBRARY_PATH as you
suggested didn't eliminate the error.

conclusion: the easiest way for me was: modifying CMakeLists.txt
accordingly and choosing -DBUILD_SHARED=OFF

vedat



Am 15.01.2014 13:13, schrieb Maciek Wójcikowski:
 I think you should build with SHARED = True and append correct
 directory to LD_LIBRARY_PATH, which probably should look like:

 export
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/openbabel/openbabel-2.3.2-install/lib

 
 Pozdrawiam,  |  Best regards,
 Maciek Wójcikowski
 mac...@wojcikowski.pl mailto:mac...@wojcikowski.pl


 2014/1/15 Vedat Durmaz dur...@zib.de mailto:dur...@zib.de




 Am 14.01.2014 tel:14.01.2014 19:10, schrieb Dimitri Maziuk:
 On 01/14/2014 11:21 AM, Vedat Durmaz wrote:
 ...
 i really don't
 understand, why obabel building is deactivated by default in the static
 case. however, i also don't have that much experience with that
 cmake/configure stuff.
 Looks like a braino to me, perhaps the endif(BUILD_SHARED) was supposed
 to be about 10 lines above where it is now?

 but then still no obabel executable would have been
 compiled/linked in case of a static build. maybe i haven't
 explained (and understood) well enough. i don't know whether this
 will work, but i'll try to attach the CMakeLists.txt file from the
 ./tools directory before and after modification (concerning the
 last 1-15 lines only) ..

 vedat



 
 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today. 
 
 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk


 ___
 OpenBabel-discuss mailing list
 OpenBabel-discuss@lists.sourceforge.net 
 mailto:OpenBabel-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


 
 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today.
 
 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
 ___
 OpenBabel-discuss mailing list
 OpenBabel-discuss@lists.sourceforge.net
 mailto:OpenBabel-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/openbabel-discuss



--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


Re: [Open Babel] missing obabel executable when compiling by sources on HPC

2014-01-14 Thread Vedat Durmaz

many thanks for thinking about it, noel. if i do not use that setting by
saying:

cmake ../openbabel-2.3.2
-DCMAKE_INSTALL_PREFIX=~/openbabel/openbabel-2.3.2-install
-DPYTHON_BINDINGS=ON -DEIGEN3_INCLUDE_DIR=/home/b/becdurma/include

i get a linker error concerning the babel executable:

/opt/cray/craype/2.01/bin/CC   -O2 -g -DNDEBUG -O2 -g 
-Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc
-Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  
CMakeFiles/babel.dir/babel.o  -o ../bin/babel -rdynamic
../lib/libopenbabel.so.4.0.2 -lm -ldl -lz
-Wl,-rpath,/home/b/becdurma/openbabel/openbabel-2.3.2-build/lib::
/usr/bin/ld: attempted static link of dynamic object
`../lib/libopenbabel.so.4.0.2'
collect2: error: ld returned 1 exit status

i have no idea what to change next!

vedat



Am 13.01.2014 21:21, schrieb Noel O'Boyle:
 I guess BUILD_SHARED=OFF isn't very well maintained. Is there some
 particular reason you want to use this option?

 - Noel

 On 13 January 2014 13:43, Vedat Durmaz dur...@zib.de wrote:
 hi folks,

 for the first time, I was trying to install openbabel-2.3 by myself on a
 Cray XC30 machine.

 Actually, the cmake and make commands work fine (withour errors).
 However, in the bin directory, only babel and roundtrip were created
 as executables, but no obabel executable which I used to employ on my
 local ubuntu system. There's only a static library called libopenbabel.a
 in the lib directory.

 Does anyone know a reason for that behaviour? Thanks in advance,

 Vedat


 ps: My cmake command and output:

 $ cmake ../openbabel-2.3.2
 -DCMAKE_INSTALL_PREFIX=~/openbabel/openbabel-2.3.2-install
 -DEIGEN3_INCLUDE_DIR=/home/user/include -DBUILD_SHARED=OFF
 -DCMAKE_BUILD_TYPE=Release
 -- The C compiler identification is GNU 4.8.1
 -- The CXX compiler identification is GNU 4.8.1
 -- Check for working C compiler: /opt/cray/craype/2.01/bin/cc
 -- Check for working C compiler: /opt/cray/craype/2.01/bin/cc -- works
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working CXX compiler: /opt/cray/craype/2.01/bin/CC
 -- Check for working CXX compiler: /opt/cray/craype/2.01/bin/CC -- works
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - done
 -- Using included inchi library.
 -- Found LibXml2: /usr/lib64/libxml2.a (found version 2.7.6)
 -- Found ZLIB: /usr/lib64/libz.a (found version 1.2.7)
 -- Could NOT find wxWidgets (missing:  wxWidgets_FOUND)
 -- Looking for conio.h
 -- Looking for conio.h - not found
 -- Looking for sys/time.h
 -- Looking for sys/time.h - found
 -- Looking for time.h
 -- Looking for time.h - found
 -- Looking for strings.h
 -- Looking for strings.h - found
 -- Looking for rpc/xdr.h
 -- Looking for rpc/xdr.h - found
 -- Looking for regex.h
 -- Looking for regex.h - found
 -- Looking for C++ include sstream
 -- Looking for C++ include sstream - found
 -- Looking for rint
 -- Looking for rint - found
 -- Looking for snprintf
 -- Looking for snprintf - found
 -- Looking for sranddev
 -- Looking for sranddev - not found
 -- Looking for strcasecmp
 -- Looking for strcasecmp - found
 -- Looking for strncasecmp
 -- Looking for strncasecmp - found
 -- Looking for dlopen in dl
 -- Looking for dlopen in dl - found
 -- Looking for sys/types.h
 -- Looking for sys/types.h - found
 -- Looking for stdint.h
 -- Looking for stdint.h - found
 -- Looking for stddef.h
 -- Looking for stddef.h - found
 -- Check size of clock_t
 -- Check size of clock_t - done
 -- Performing Test SCANDIR_NEEDS_CONST
 -- Performing Test SCANDIR_NEEDS_CONST - Failed
 -- Performing Test HAVE_GCC_VISIBILITY
 -- Performing Test HAVE_GCC_VISIBILITY - Success
 -- Found PkgConfig: /usr/bin/pkg-config (found version 0.23)
 -- checking for module 'cairo'
 --   found cairo, version 1.8.8
 -- Could NOT find Cairo (missing:  CAIRO_LIBRARIES)
 -- Could NOT find Cairo. PNG output will NOT be supported.
 -- Looking for getopt
 -- Looking for getopt - found
 -- Looking for include file pthread.h
 -- Looking for include file pthread.h - found
 -- Looking for pthread_create
 -- Looking for pthread_create - found
 -- Found Threads: TRUE
 -- GUI will not be built
 -- Found PythonInterp: /sw/tools/python/2.7.6/generic/bin/python (found
 version 2.7.6)
 -- Configuring done
 -- Generating done
 -- Build files have been written to:
 /home/user/openbabel/openbabel-2.3.2-build



 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today.
 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
 ___
 OpenBabel-discuss mailing list
 OpenBabel-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/openbabel-discuss



Re: [Open Babel] missing obabel executable when compiling by sources on HPC

2014-01-14 Thread Geoffrey Hutchison
 i get a linker error concerning the babel executable:
 ..
 /opt/cray/craype/2.01/bin/CC   -O2 -g -DNDEBUG -O2 -g 
...
 /usr/bin/ld: attempted static link of dynamic object
 `../lib/libopenbabel.so.4.0.2'
 collect2: error: ld returned 1 exit status

When you re-ran cmake, did you remove everything in the build directory? I'd 
try:

cd build
rm -rf *
cmake ../openbabel-2.3.2 # [..]
etc.

I can think of two possibilities. One is that cmake didn't properly change the 
linking steps in the Makefile to use dynamic linking. Two is that the version 
of Cmake that you have installed doesn't work correctly with the Cray compiler. 
(I'm not an HPC person, so it might help to find a technical support person at 
this facility. Most HPC centers have people to help you compile codes for the 
different systems and have experience with the compilers and developer tools.)

Hope that helps,
-Geoff
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


Re: [Open Babel] missing obabel executable when compiling by sources on HPC

2014-01-14 Thread Vedat Durmaz


ok. thanks for your help guys! forget about the technical support. i've
succeeded in doing it right before ultimately giving up. (and i'm really
proud of myself!)

some background: our HPC system consists of cray xc30, sandy bridge
(afaik) hardware run by the SUSE Linux Enterprise Server (SLES) 11
(x86_64) system.

i went back to the static way calling cmake with the -DBUILD_SHARED=OFF
option:

cmake ../openbabel-2.3.2
-DCMAKE_INSTALL_PREFIX=~/openbabel/openbabel-2.3.2-install
-DEIGEN3_INCLUDE_DIR=~/include -DBUILD_SHARED=OFF

However, after having untared openbabel-2.3.2, i had to modify the
file ./openbabel-2.3.2/tools/CMakeLists.txt in order to activate the
building of the obabel executable (in addition to the babel exe). right
before the last line endif(BUILD_SHARED) of that file enclosing the
case of static linking, i pasted the following lines

  # build a static obabel
  add_executable(obabel obabel.cpp)
  target_link_libraries(obabel ${libs})

  if(NOT BUILD_MIXED)
# Prevent -Wl,-Bdynamic from being added to the end of the link line.
set_target_properties(obabel PROPERTIES LINK_SEARCH_END_STATIC TRUE)
  endif(NOT BUILD_MIXED)

  install(TARGETS obabel
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib)

which i had copied from the preceding lines concerning the building of
babel instead and slightly modified by substituting babel by obabel.

after make  make install i was able to use my favorite openbabel
command, something like:

obabel --gen3d -:NC(=O)N1C2=C(C=CC=C2)C=CC2=C1C=CC=C2 -O test.sdf

the resulting structure file looks as expected. i really don't
understand, why obabel building is deactivated by default in the static
case. however, i also don't have that much experience with that
cmake/configure stuff.

vedat


Am 14.01.2014 17:33, schrieb Geoffrey Hutchison:
 i get a linker error concerning the babel executable:
 ..
 /opt/cray/craype/2.01/bin/CC   -O2 -g -DNDEBUG -O2 -g 
 ...
 /usr/bin/ld: attempted static link of dynamic object
 `../lib/libopenbabel.so.4.0.2'
 collect2: error: ld returned 1 exit status
 When you re-ran cmake, did you remove everything in the build directory? I'd 
 try:

 cd build
 rm -rf *
 cmake ../openbabel-2.3.2 # [..]
 etc.

 I can think of two possibilities. One is that cmake didn't properly change 
 the linking steps in the Makefile to use dynamic linking. Two is that the 
 version of Cmake that you have installed doesn't work correctly with the Cray 
 compiler. (I'm not an HPC person, so it might help to find a technical 
 support person at this facility. Most HPC centers have people to help you 
 compile codes for the different systems and have experience with the 
 compilers and developer tools.)

 Hope that helps,
 -Geoff


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


Re: [Open Babel] missing obabel executable when compiling by sources on HPC

2014-01-14 Thread Dimitri Maziuk
On 01/14/2014 11:21 AM, Vedat Durmaz wrote:
...
 i really don't
 understand, why obabel building is deactivated by default in the static
 case. however, i also don't have that much experience with that
 cmake/configure stuff.

Looks like a braino to me, perhaps the endif(BUILD_SHARED) was supposed
to be about 10 lines above where it is now?

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu



signature.asc
Description: OpenPGP digital signature
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


Re: [Open Babel] missing obabel executable when compiling by sources on HPC

2014-01-13 Thread Noel O'Boyle
I guess BUILD_SHARED=OFF isn't very well maintained. Is there some
particular reason you want to use this option?

- Noel

On 13 January 2014 13:43, Vedat Durmaz dur...@zib.de wrote:
 hi folks,

 for the first time, I was trying to install openbabel-2.3 by myself on a
 Cray XC30 machine.

 Actually, the cmake and make commands work fine (withour errors).
 However, in the bin directory, only babel and roundtrip were created
 as executables, but no obabel executable which I used to employ on my
 local ubuntu system. There's only a static library called libopenbabel.a
 in the lib directory.

 Does anyone know a reason for that behaviour? Thanks in advance,

 Vedat


 ps: My cmake command and output:

 $ cmake ../openbabel-2.3.2
 -DCMAKE_INSTALL_PREFIX=~/openbabel/openbabel-2.3.2-install
 -DEIGEN3_INCLUDE_DIR=/home/b/becdurma/include -DBUILD_SHARED=OFF
 -DCMAKE_BUILD_TYPE=Release
 -- The C compiler identification is GNU 4.8.1
 -- The CXX compiler identification is GNU 4.8.1
 -- Check for working C compiler: /opt/cray/craype/2.01/bin/cc
 -- Check for working C compiler: /opt/cray/craype/2.01/bin/cc -- works
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working CXX compiler: /opt/cray/craype/2.01/bin/CC
 -- Check for working CXX compiler: /opt/cray/craype/2.01/bin/CC -- works
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - done
 -- Using included inchi library.
 -- Found LibXml2: /usr/lib64/libxml2.a (found version 2.7.6)
 -- Found ZLIB: /usr/lib64/libz.a (found version 1.2.7)
 -- Could NOT find wxWidgets (missing:  wxWidgets_FOUND)
 -- Looking for conio.h
 -- Looking for conio.h - not found
 -- Looking for sys/time.h
 -- Looking for sys/time.h - found
 -- Looking for time.h
 -- Looking for time.h - found
 -- Looking for strings.h
 -- Looking for strings.h - found
 -- Looking for rpc/xdr.h
 -- Looking for rpc/xdr.h - found
 -- Looking for regex.h
 -- Looking for regex.h - found
 -- Looking for C++ include sstream
 -- Looking for C++ include sstream - found
 -- Looking for rint
 -- Looking for rint - found
 -- Looking for snprintf
 -- Looking for snprintf - found
 -- Looking for sranddev
 -- Looking for sranddev - not found
 -- Looking for strcasecmp
 -- Looking for strcasecmp - found
 -- Looking for strncasecmp
 -- Looking for strncasecmp - found
 -- Looking for dlopen in dl
 -- Looking for dlopen in dl - found
 -- Looking for sys/types.h
 -- Looking for sys/types.h - found
 -- Looking for stdint.h
 -- Looking for stdint.h - found
 -- Looking for stddef.h
 -- Looking for stddef.h - found
 -- Check size of clock_t
 -- Check size of clock_t - done
 -- Performing Test SCANDIR_NEEDS_CONST
 -- Performing Test SCANDIR_NEEDS_CONST - Failed
 -- Performing Test HAVE_GCC_VISIBILITY
 -- Performing Test HAVE_GCC_VISIBILITY - Success
 -- Found PkgConfig: /usr/bin/pkg-config (found version 0.23)
 -- checking for module 'cairo'
 --   found cairo, version 1.8.8
 -- Could NOT find Cairo (missing:  CAIRO_LIBRARIES)
 -- Could NOT find Cairo. PNG output will NOT be supported.
 -- Looking for getopt
 -- Looking for getopt - found
 -- Looking for include file pthread.h
 -- Looking for include file pthread.h - found
 -- Looking for pthread_create
 -- Looking for pthread_create - found
 -- Found Threads: TRUE
 -- GUI will not be built
 -- Found PythonInterp: /sw/tools/python/2.7.6/generic/bin/python (found
 version 2.7.6)
 -- Configuring done
 -- Generating done
 -- Build files have been written to:
 /home/b/becdurma/openbabel/openbabel-2.3.2-build



 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today.
 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
 ___
 OpenBabel-discuss mailing list
 OpenBabel-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss