Re: some errors during building openbabel dll

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: some errors during building openbabel dll

Chris Morley-3
In Visual Studio, the file atomrecord.cpp should be removed from the
project.

(It would be better to send questions like this to the mailing list.)

Chris

周锐 wrote:

> Hi, every body
>  
> I checkout code from
> https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/tags/openbabel-2-2-3,
> and open OpenBabelDLL.vcproj(in windows-vc2005\OpenBabelDLL directory)
> by Visual C++ 2005 Express Edition, then I try to build OpenBabelDLL,
> because the mychem need openbabel dll file. but there two errors, the
> messages as following:
>  
> 1>------ Build started: Project: OpenBabelDLL, Configuration: Debug
> Win32 ------
> 1>Copying compiler specific babelconfig.h (if out of date)
> 1>复制了 0 个文件
> 1>Compiling...
> 1>alias.cpp
> 1>atom.cpp
> 1>base.cpp
> 1>bitvec.cpp
> 1>bond.cpp
> 1>bondtyper.cpp
> 1>builder.cpp
> 1>canon.cpp
> 1>..\..\src\canon.cpp(188) : warning C4305: '+=' : truncation from
> 'double' to 'float'
> 1>chains.cpp
> 1>chiral.cpp
> 1>cmpdfilter.cpp
> 1>data.cpp
> 1>descriptor.cpp
> 1>dlhandler_win32.cpp
> 1>..\..\src\dlhandler_win32.cpp(80) : warning C4101: 'buffer' :
> unreferenced local variable
> 1>filters.cpp
> 1>finger2.cpp
> 1>finger3.cpp
> 1>fingerprint.cpp
> 1>forcefield.cpp
> 1>..\..\src\forcefield.cpp(1894) : warning C4244: 'argument' :
> conversion from 'time_t' to 'unsigned int', possible loss of data
> 1>forcefieldghemical.cpp
> 1>Generating Code...
> 1>Compiling...
> 1>forcefieldmmff94.cpp
> 1>forcefielduff.cpp
> 1>format.cpp
> 1>generic.cpp
> 1>getinchi.cpp
> 1>grid.cpp
> 1>griddata.cpp
> 1>groupcontrib.cpp
> 1>kekulize.cpp
> 1>..\..\src\kekulize.cpp(318) : warning C4101: 'atom2' : unreferenced
> local variable
> 1>loader.cpp
> 1>matrix.cpp
> 1>matrix3x3.cpp
> 1>mol.cpp
> 1>molchrg.cpp
> 1>obconversion.cpp
> 1>oberror.cpp
> 1>obiter.cpp
> 1>obmolecformat.cpp
> 1>obutil.cpp
> 1>optransform.cpp
> 1>Generating Code...
> 1>Compiling...
> 1>parsmart.cpp
> 1>patty.cpp
> 1>phmodel.cpp
> 1>plugin.cpp
> 1>rand.cpp
> 1>residue.cpp
> 1>ring.cpp
> 1>rotamer.cpp
> 1>rotor.cpp
> 1>smartsdescriptors.cpp
> 1>spacegroup.cpp
> 1>tokenst.cpp
> 1>transform.cpp
> 1>transform3d.cpp
> 1>..\..\src\math\transform3d.cpp(58) : warning C4244: '=' : conversion
> from 'double' to 'int', possible loss of data
> 1>typer.cpp
> 1>vector3.cpp
> 1>xml.cpp
> 1>APIInterface.cpp
> 1>cdxmlformat.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(1087) : warning C4065: switch
> statement contains 'default' but no 'case' labels
> 1>Generating Code...
> 1>Compiling...
> 1>chemkinformat.cpp
> 1>cmlformat.cpp
> 1>cmlreactformat.cpp
> 1>copyformat.cpp
> 1>fastsearchformat.cpp
> 1>fingerprintformat.cpp
> 1>freefracformat.cpp
> 1>gausscubeformat.cpp
> 1>..\..\src\formats\gausscubeformat.cpp(577) : warning C4146: unary
> minus operator applied to unsigned type, result still unsigned
> 1>gaussformat.cpp
> 1>..\..\src\formats\gaussformat.cpp(131) : warning C4800: 'const char *'
> : forcing value to bool 'true' or 'false' (performance warning)
> 1>gausszmatformat.cpp
> 1>inchiformat.cpp
> 1>MCDLformat.cpp
> 1>mdlformat.cpp
> 1>mmcifformat.cpp
> 1>mol2format.cpp
> 1>moldenformat.cpp
> 1>molreport.cpp
> 1>msiformat.cpp
> 1>msmsformat.cpp
> 1>pdbformat.cpp
> 1>Generating Code...
> 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>pubchem.cpp
> 1>reportformat.cpp
> 1>rsmiformat.cpp
> 1>rxnformat.cpp
> 1>smilesformat.cpp
> 1>thermoformat.cpp
> 1>tinkerformat.cpp
> 1>titleformat.cpp
> 1>xmlformat.cpp
> 1>Generating Code...
> 1>f:\software\jchem\mychem\openbabel-2-2-3\src\formats\smilesformat.cpp(350)
> : warning C4715: 'OpenBabel::OBTetraPlanarStereo::ToInternal' : not all
> control paths return a value
> 1>f:\software\jchem\mychem\openbabel-2-2-3\src\formats\smilesformat.cpp(375)
> : warning C4715: 'OpenBabel::OBTetraPlanarStereo::ToShape' : not all
> control paths return a value
> 1>Compiling...
> 1>gen3d.cpp
> 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>LINK : fatal error LNK1104: cannot open file '..\libinchi.lib'
> 1>Creating browse information file...
> 1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
> 1>Copyright (C) Microsoft Corporation. All rights reserved.
> 1>BSCMAKE: error BK1506 : cannot open file '.\debug\atomrecord.sbr': No
> such file or directory
> 1>Build log was saved at
> "file://f:\software\JChem\mychem\openbabel-2-2-3\windows-vc2005\OpenBabelDLL\Debug\BuildLog.htm
> <file:///f:/software/JChem/mychem/openbabel-2-2-3/windows-vc2005/OpenBabelDLL/Debug/BuildLog.htm>"
> 1>OpenBabelDLL - 2 error(s), 14 warning(s)
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
> but after i add libinchi.lib and rebuild it again, one error there, the
> message:
>  
> 1>------ Build started: Project: OpenBabelDLL, Configuration: Debug
> Win32 ------
> 1>Copying compiler specific babelconfig.h (if out of date)
> 1>复制了 0 个文件
> 1>Linking...
> 1>LINK : fatal error LNK1104: cannot open file '.\debug\atomrecord.obj'
> 1>Creating browse information file...
> 1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
> 1>Copyright (C) Microsoft Corporation. All rights reserved.
> 1>BSCMAKE: error BK1506 : cannot open file '.\debug\atomrecord.sbr': No
> such file or directory
> 1>Build log was saved at
> "file://f:\software\JChem\mychem\openbabel-2-2-3\windows-vc2005\OpenBabelDLL\Debug\BuildLog.htm
> <file:///f:/software/JChem/mychem/openbabel-2-2-3/windows-vc2005/OpenBabelDLL/Debug/BuildLog.htm>"
> 1>OpenBabelDLL - 2 error(s), 0 warning(s)
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
> now, I don't know how to do it, would you give me some suggestions?
> thanks in advance!
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.819 / Virus Database: 271.1.1/2857 - Release Date: 05/06/10 07:26:00
>


------------------------------------------------------------------------------
_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Reply | Threaded
Open this post in threaded view
|

Re: some errors during building openbabel dll

Chris Morley-3
On 19/05/2010 09:10, 周锐 wrote:
> Dear Chris,
> I download the 2.2.3 version openbabel, why there is no openbabel.sln
> file in windows-vc2005 folder?
>
> do you have idea about it or how can i get openbabel.sln file ?
> thanks very much.

The file you need is OpenBabelOBF.sln which has projects which build
the majority of OpenBabel code. It produces several exe and dll files;
some of the dll files have .obf extensions. There is also OBTools.sln
which builds smaller subsidiary exe files.

It would be better to send questions like this to the mailing list
(https://lists.sourceforge.net/lists/listinfo/openbabel-discuss). More
people have a chance to answer them and more people could potentially
benefit from the answers.

Chris


------------------------------------------------------------------------------

_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss