Hello all:
I am new to Openbabel and am first time trying to compile the OpenBabel. But
I am having a compiling error as follows.
I followed the Compile Instructions but I am still having troubles.
I have installed the latest CMake2.8.5 and have added the CMake
bindirectory to the PATH environment variable.
I have also installed MSVS 2008 Professional version.
When I ran the "..\windows-vc2008\default_build.bat", I got the following
error. Can someone help me, please?
===============================================================================
C:\openbabel-2.3.0\openbabel-2.3.0\windows-vc2008>default_build.bat
C:\openbabel-2.3.0\openbabel-2.3.0\windows-vc2008\build>cmake.exe
-DCMAKE_INSTAL
L_PREFIX=..\install -G "Visual Studio 9 2008"
-DLIBXML2_LIBRARIES="C:\openbabel-
2.3.0\openbabel-2.3.0\windows-vc2008\build\..\libs\i386\libxml2.lib"
-DMINIMAL_B
UILD=OFF -DLIBXML2_INCLUDE_DIR=.
-DZLIB_LIBRARY="C:\openbabel-2.3.0\openbabel-2.
3.0\windows-vc2008\build\..\libs\i386\zlib1.lib" -DZLIB_INCLUDE_DIR=.
-DINCHI_LI
BRARY="C:\openbabel-2.3.0\openbabel-2.3.0\windows-vc2008\build\..\libs\i386\libi
nchi.lib"
-DXDR_LIBRARY="C:\openbabel-2.3.0\openbabel-2.3.0\windows-vc2008\build
\..\libs\i386\xdr.lib" -DEIGEN2_INCLUDE_DIR="" -DRUN_SWIG=ON
-DJAVA_BINDINGS=ON
-DENABLE_TESTS=OFF -DBUILD_GUI=ON -DwxWidgets_ROOT_DIR=""
-DwxWidgets_LIB_DIR="/
lib/vc_lib" -DwxWidgets_CONFIGURATION=msw ..\..
-- Check for working C compiler using: Visual Studio 9 2008
-- Check for working C compiler using: Visual Studio 9 2008 -- broken
CMake Error at C:/Program Files/CMake
2.8/share/cmake-2.8/Modules/CMakeTestCComp
iler.cmake:52 (MESSAGE):
The C compiler "cl" is not able to compile a simple test program.
It fails with the following output:
Change Dir:
C:/openbabel-2.3.0/openbabel-2.3.0/windows-vc2008/build/CMakeFile
s/CMakeTmp
Run Build Command:c:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
Microsoft (R) Visual Studio Version 9.0.21022.8.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: cmTryCompileExec, Configuration:
DebugWin32 ------
1>Compiling...
1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08
for
80x86
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\""
/D "_MBCS" /FD /RTC1 /MDd /Fo"cmTryCompileExec.dir\Debug\\"
/Fd"C:\openbabel-2.3.0\openbabel-2.3.0\windows-vc2008\build\CMakeFiles\CMakeTm
p\Debug/cmTryCompileExec.pdb"
/W3 /c /Zi /TC /Zm1000
1> ".\testCCompiler.c"
1>testCCompiler.c
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>Embedding manifest...
1>Project : error PRJ0003 : Error spawning 'cmd.exe'.
1>Build log was saved at
"file://c:\openbabel-2.3.0\openbabel-2.3.0\windows-vc2008\build\CMakeFiles\CMa
keTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"
1>cmTryCompileExec - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
===================================================================
Thanks a lot for the help,
RJ
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss