Please see 
http://openbabel.org/wiki/Install_%28MSVC%29#Compiling_the_2.3.x_series_.28subversion_trunk.29

2009/10/10 Eric Zhou <[email protected]>:
> Hi,
>
>
>
>          I checked out code from
> https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/trunk, and
> then set BABEL_DATADIR to locate the data folder, and add include folder to
> Include files in vc2005 options, when I open openbabel.sln by vc2005 and
> build it, it return some errors, anybody who can help me? Thanks in advance.
>
>
>
> 1>------ Build started: Project: OpenBabelDLL, Configuration: Release Win32
> ------
>
> 1>Copying compiler specific babelconfig.h (if out of date)
>
> 1>0 File(s) copied
>
> 1>Compiling...
>
> 1>zindoformat.cpp
>
> 1>yasaraformat.cpp
>
> 1>xyzformat.cpp
>
> 1>xmlformat.cpp
>
> 1>xedformat.cpp
>
> 1>viewmolformat.cpp
>
> 1>unichemformat.cpp
>
> 1>turbomoleformat.cpp
>
> 1>titleformat.cpp
>
> 1>tinkerformat.cpp
>
> 1>thermoformat.cpp
>
> 1>smilesformat.cpp
>
> 1>shelxformat.cpp
>
> 1>rxnformat.cpp
>
> 1>rsmiformat.cpp
>
> 1>reportformat.cpp
>
> 1>qchemformat.cpp
>
> 1>pubchem.cpp
>
> 1>PQSformat.cpp
>
> 1>povrayformat.cpp
>
> 1>Compiling...
>
> 1>pngformat.cpp
>
> 1>D:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2674) :
> warning C4996: 'std::_Equal' was declared deprecated
>
> 1>        D:\Program Files\Microsoft Visual Studio
> 8\VC\include\xutility(2661) : see declaration of 'std::_Equal'
>
> 1>        Message: 'You have used a std:: construct that is not safe. See
> documentation on how to use the Safe Standard C++ Library'
>
> 1>        ..\..\src\formats\pngformat.cpp(127) : see reference to function
> template instantiation 'bool std::equal<const
> char*,char*>(_InIt1,_InIt1,_InIt2)' being compiled
>
> 1>        with
>
> 1>        [
>
> 1>            _InIt1=const char *,
>
> 1>            _InIt2=char *
>
> 1>        ]
>
> 1>pdbformat.cpp
>
> 1>pcmodelformat.cpp
>
> 1>nwchemformat.cpp
>
> 1>msmsformat.cpp
>
> 1>msiformat.cpp
>
> 1>mpqcformat.cpp
>
> 1>mpdformat.cpp
>
> 1>mopacformat.cpp
>
> 1>molreport.cpp
>
> 1>moldenformat.cpp
>
> 1>mol2format.cpp
>
> 1>mmodformat.cpp
>
> 1>mmcifformat.cpp
>
> 1>mdlformat.cpp
>
> 1>..\..\src\formats\mdlformat.cpp(163) : warning C4101: 'buffer' :
> unreferenced local variable
>
> 1>MCDLformat.cpp
>
> 1>jaguarformat.cpp
>
> 1>inchiformat.cpp
>
> 1>..\..\src\formats\inchiformat.cpp(467) : warning C4244: '=' : conversion
> from 'unsigned long' to 'AT_NUM', possible loss of data
>
> 1>..\..\src\formats\inchiformat.cpp(468) : warning C4244: '=' : conversion
> from 'unsigned long' to 'AT_NUM', possible loss of data
>
> 1>..\..\src\formats\inchiformat.cpp(470) : warning C4244: '=' : conversion
> from 'unsigned long' to 'AT_NUM', possible loss of data
>
> 1>..\..\src\formats\inchiformat.cpp(503) : warning C4244: '=' : conversion
> from 'unsigned long' to 'AT_NUM', possible loss of data
>
> 1>..\..\src\formats\inchiformat.cpp(504) : warning C4244: '=' : conversion
> from 'unsigned long' to 'AT_NUM', possible loss of data
>
> 1>..\..\src\formats\inchiformat.cpp(505) : warning C4244: '=' : conversion
> from 'unsigned long' to 'AT_NUM', possible loss of data
>
> 1>..\..\src\formats\inchiformat.cpp(506) : warning C4244: '=' : conversion
> from 'unsigned long' to 'AT_NUM', possible loss of data
>
> 1>hinformat.cpp
>
> 1>gromos96format.cpp
>
> 1>Compiling...
>
> 1>ghemicalformat.cpp
>
> 1>gausszmatformat.cpp
>
> 1>gaussformat.cpp
>
> 1>..\..\src\formats\gaussformat.cpp(131) : warning C4800: 'const char *' :
> forcing value to bool 'true' or 'false' (performance warning)
>
> 1>gausscubeformat.cpp
>
> 1>..\..\src\formats\gausscubeformat.cpp(577) : warning C4146: unary minus
> operator applied to unsigned type, result still unsigned
>
> 1>gamessformat.cpp
>
> 1>freefracformat.cpp
>
> 1>fingerprintformat.cpp
>
> 1>fhformat.cpp
>
> 1>featformat.cpp
>
> 1>fchkformat.cpp
>
> 1>fastsearchformat.cpp
>
> 1>fastaformat.cpp
>
> 1>dmolformat.cpp
>
> 1>cssrformat.cpp
>
> 1>CSRformat.cpp
>
> 1>crkformat.cpp
>
> 1>copyformat.cpp
>
> 1>cmlreactformat.cpp
>
> 1>cmlformat.cpp
>
> 1>cifformat.cpp
>
> 1>..\..\src\formats\cifformat.cpp(302) : warning C4305: '*=' : truncation
> from 'double' to 'float'
>
> 1>..\..\src\formats\cifformat.cpp(303) : warning C4305: '*=' : truncation
> from 'double' to 'float'
>
> 1>..\..\src\formats\cifformat.cpp(304) : warning C4305: '*=' : truncation
> from 'double' to 'float'
>
> 1>D:\Program Files\Microsoft Visual Studio 8\VC\include\vector(47) : warning
> C4503: 'std::_Tree<_Traits>::_Key' : decorated name length exceeded, name
> was truncated
>
> 1>        with
>
> 1>        [
>
> 1>
> _Traits=std::_Tmap_traits<std::set<OpenBabel::ci_string>,std::map<OpenBabel::ci_string,std::vector<std::string>>,std::less<std::set<OpenBabel::ci_string>>,std::allocator<std::pair<const
> std::set<OpenBabel::ci_string>,std::map<OpenBabel::ci_string,std::vector<std::string>>>>,false>
>
> 1>        ]
>
> 1>D:\Program Files\Microsoft Visual Studio 8\VC\include\vector(47) : warning
> C4503: 'std::_Tree<_Traits>::_Myval' : decorated name length exceeded, name
> was truncated
>
> 1>        with
>
> 1>        [
>
> 1>
> _Traits=std::_Tmap_traits<std::set<OpenBabel::ci_string>,std::map<OpenBabel::ci_string,std::vector<std::string>>,std::less<std::set<OpenBabel::ci_string>>,std::allocator<std::pair<const
> std::set<OpenBabel::ci_string>,std::map<OpenBabel::ci_string,std::vector<std::string>>>>,false>
>
> 1>        ]
>
> 1>D:\Program Files\Microsoft Visual Studio 8\VC\include\vector(47) : warning
> C4503: 'std::_Tree<_Traits>::insert' : decorated name length exceeded, name
> was truncated
>
> 1>        with
>
> 1>        [
>
> 1>
> _Traits=std::_Tmap_traits<std::set<OpenBabel::ci_string>,std::map<OpenBabel::ci_string,std::vector<std::string>>,std::less<std::set<OpenBabel::ci_string>>,std::allocator<std::pair<const
> std::set<OpenBabel::ci_string>,std::map<OpenBabel::ci_string,std::vector<std::string>>>>,false>
>
> 1>        ]
>
> 1>D:\Program Files\Microsoft Visual Studio 8\VC\include\vector(47) : warning
> C4503: 'std::_Tree<_Traits>::_Insert' : decorated name length exceeded, name
> was truncated
>
> 1>        with
>
> 1>        [
>
> 1>
>      _Traits=std::_Tmap_traits<std::set<OpenBabel::ci_string>,std::map<OpenBabel::ci_string,std::vector<std::string>>,std::less<std::set<OpenBabel::ci_string>>,std::allocator<std::pair<const
> std::set<OpenBabel::ci_string>,std::map<OpenBabel::ci_string,std::vector<std::string>>>>,false>
>
> 1>        ]
>
> 1>D:\Program Files\Microsoft Visual Studio 8\VC\include\vector(47) : warning
> C4503: 'std::_Tree<_Traits>::_Lbound' : decorated name length exceeded, name
> was truncated
>
> 1>        with
>
> 1>        [
>
> 1>
> _Traits=std::_Tmap_traits<std::set<OpenBabel::ci_string>,std::map<OpenBabel::ci_string,std::vector<std::string>>,std::less<std::set<OpenBabel::ci_string>>,std::allocator<std::pair<const
> std::set<OpenBabel::ci_string>,std::map<OpenBabel::ci_string,std::vector<std::string>>>>,false>
>
> 1>        ]
>
> 1>D:\Program Files\Microsoft Visual Studio 8\VC\include\vector(47) : warning
> C4503: 'std::_Tree<_Traits>::_Buynode' : decorated name length exceeded,
> name was truncated
>
> 1>        with
>
> 1>        [
>
> 1>
> _Traits=std::_Tmap_traits<std::set<OpenBabel::ci_string>,std::map<OpenBabel::ci_string,std::vector<std::string>>,std::less<std::set<OpenBabel::ci_string>>,std::allocator<std::pair<const
> std::set<OpenBabel::ci_string>,std::map<OpenBabel::ci_string,std::vector<std::string>>>>,false>
>
> 1>        ]
>
> 1>Compiling...
>
> 1>chemtoolformat.cpp
>
> 1>chemkinformat.cpp
>
> 1>chemdrawct.cpp
>
> 1>chemdrawcdx.cpp
>
> 1>..\..\src\formats\chemdrawcdx.cpp(37) : warning C4244: 'argument' :
> conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
>
> 1>..\..\src\formats\chemdrawcdx.cpp(37) : warning C4244: 'argument' :
> conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
>
> 1>..\..\src\formats\chemdrawcdx.cpp(755) : warning C4065: switch statement
> contains 'default' but no 'case' labels
>
> 1>..\..\src\formats\chemdrawcdx.cpp(1089) : warning C4065: switch statement
> contains 'default' but no 'case' labels
>
> 1>chem3dformat.cpp
>
> 1>cdxmlformat.cpp
>
> 1>cccformat.cpp
>
> 1>carformat.cpp
>
> 1>cacheformat.cpp
>
> 1>cacaoformat.cpp
>
> 1>boxformat.cpp
>
> 1>bgfformat.cpp
>
> 1>balstformat.cpp
>
> 1>APIInterface.cpp
>
> 1>amberformat.cpp
>
> 1>alchemyformat.cpp
>
> 1>acrformat.cpp
>
> 1>xml.cpp
>
> 1>vector3.cpp
>
> 1>typer.cpp
>
> 1>Compiling...
>
> 1>transform3d.cpp
>
> 1>transform.cpp
>
> 1>tokenst.cpp
>
> 1>spacegroup.cpp
>
> 1>smartsdescriptors.cpp
>
> 1>rotor.cpp
>
> 1>rotamer.cpp
>
> 1>ring.cpp
>
> 1>residue.cpp
>
> 1>rand.cpp
>
> 1>plugin.cpp
>
> 1>phmodel.cpp
>
> 1>patty.cpp
>
> 1>parsmart.cpp
>
> 1>optransform.cpp
>
> 1>obutil.cpp
>
> 1>obmolecformat.cpp
>
> 1>obiter.cpp
>
> 1>oberror.cpp
>
> 1>obconversion.cpp
>
> 1>Compiling...
>
> 1>molchrg.cpp
>
> 1>mol.cpp
>
> 1>matrix3x3.cpp
>
> 1>matrix.cpp
>
> 1>loader.cpp
>
> 1>kekulize.cpp
>
> 1>groupcontrib.cpp
>
> 1>griddata.cpp
>
> 1>grid.cpp
>
> 1>getinchi.cpp
>
> 1>generic.cpp
>
> 1>format.cpp
>
> 1>forcefielduff.cpp
>
> 1>forcefieldmmff94.cpp
>
> 1>forcefieldghemical.cpp
>
> 1>forcefield.cpp
>
> 1>fingerprint.cpp
>
> 1>finger3.cpp
>
> 1>finger2.cpp
>
> 1>filters.cpp
>
> 1>Compiling...
>
> 1>dlhandler_win32.cpp
>
> 1>descriptor.cpp
>
> 1>data.cpp
>
> 1>cmpdfilter.cpp
>
> 1>chiral.cpp
>
> 1>chains.cpp
>
> 1>canon.cpp
>
> 1>builder.cpp
>
> 1>bondtyper.cpp
>
> 1>bond.cpp
>
> 1>bitvec.cpp
>
> 1>base.cpp
>
> 1>atom.cpp
>
> 1>alias.cpp
>
> 1>Compiling...
>
> 1>gen3d.cpp
>
> 1>Linking...
>
> 1>LINK : fatal error LNK1181: cannot open input file '..\libinchi.lib'
>
> 1>Build log was saved at
> "file://f:\software\JChem\mychem\openbabel\windows-vc2005\OpenBabelDLL\Release\BuildLog.htm"
>
> 1>OpenBabelDLL - 1 error(s), 24 warning(s)
>
> 2>------ Build started: Project: OBGUII, Configuration: Release Win32 ------
>
> 3>------ Build started: Project: OBComLn, Configuration: Release Win32
> ------
>
> 3>Copying compiler specific babelconfig.h (if out of date)
>
> 3>0 File(s) copied
>
> 3>Compiling...
>
> 3>babel.cpp
>
> 3>Linking...
>
> 3>LINK : fatal error LNK1181: cannot open input file 'OpenBabelDLL.lib'
>
> 3>Build log was saved at
> "file://f:\software\JChem\mychem\openbabel\windows-vc2005\OBComLn\Release\BuildLog.htm"
>
> 3>OBComLn - 1 error(s), 0 warning(s)
>
> 4>------ Build started: Project: template, Configuration: Release Win32
> ------
>
> 4>Compiling...
>
> 4>template.cpp
>
> 2>Copying compiler specific babelconfig.h (if out of date)
>
> 2>0 File(s) copied
>
> 2>Compiling...
>
> 2>stdwx.cpp
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/base.h(297) : warning
> C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
> of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/atom.h(234) : warning
> C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
> of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/data.h(216) : warning
> C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
> of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/data.h(242) : warning
> C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
> of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/data.h(284) : warning
> C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
> of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/bitvec.h(121) :
> warning C4267: 'return' : conversion from 'size_t' to 'unsigned int',
> possible loss of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/typer.h(52) : warning
> C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
> of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/typer.h(80) : warning
> C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
> of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/typer.h(111) :
> warning C4267: 'return' : conversion from 'size_t' to 'unsigned int',
> possible loss of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/ring.h(60) : warning
> C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/ring.h(63) : warning
> C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/generic.h(514) :
> warning C4267: 'return' : conversion from 'size_t' to 'unsigned int',
> possible loss of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/generic.h(566) :
> warning C4267: 'return' : conversion from 'size_t' to 'unsigned int',
> possible loss of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/generic.h(659) :
> warning C4267: 'return' : conversion from 'size_t' to 'unsigned int',
> possible loss of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/mol.h(272) : warning
> C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible loss
> of data
>
> 4>F:\software\JChem\mychem\openbabel\include\openbabel/mol.h(581) : warning
> C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
>
> 4>Linking...
>
> 4>LINK : fatal error LNK1181: cannot open input file
> '..\openbabeldll\openbabeldll.lib'
>
> 4>Build log was saved at
> "file://f:\software\JChem\mychem\openbabel\windows-vc2005\template\Release\BuildLog.htm"
>
> 4>template - 1 error(s), 16 warning(s)
>
> 2>optswx.cpp
>
> 2>D:\wxWidgets-2.8.10\include\wx/wxchar.h(886) : warning C4273: '_snprintf'
> : inconsistent dll linkage
>
> 2>        D:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(339)
> : see previous definition of '_snprintf'
>
> 2>OBGUI.cpp
>
> 2>D:\wxWidgets-2.8.10\include\wx/wxchar.h(886) : warning C4273: '_snprintf'
> : inconsistent dll linkage
>
> 2>        D:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(339)
> : see previous definition of '_snprintf'
>
> 2>..\..\src\GUI\OBGUI.cpp(515) : error C2065: 'wxStreamToTextRedirector' :
> undeclared identifier
>
> 2>..\..\src\GUI\OBGUI.cpp(515) : error C2146: syntax error : missing ';'
> before identifier 'cerrCapture'
>
> 2>..\..\src\GUI\OBGUI.cpp(515) : error C3861: 'cerrCapture': identifier not
> found
>
> 2>..\..\src\GUI\OBGUI.cpp(516) : error C2146: syntax error : missing ';'
> before identifier 'clogCapture'
>
> 2>..\..\src\GUI\OBGUI.cpp(516) : error C3861: 'clogCapture': identifier not
> found
>
> 2>Generating Code...
>
> 2>Build log was saved at
> "file://f:\software\JChem\mychem\openbabel\windows-vc2005\OBGUII\release\BuildLog.htm"
>
> 2>OBGUII - 5 error(s), 2 warning(s)
>
> ========== Build: 0 succeeded, 4 failed, 0 up-to-date, 0 skipped ==========
>
>
>
>
>
> Eric Zhou
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> OpenBabel-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
OpenBabel-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to