On Thu, Oct 15, 2009 at 12:28 AM, Igor Filippov [Contr] <ig...@helix.nih.gov> wrote: > TJ, > > Glad I was able to help :) > As for myself I only needed libopenbabel-3.dll which I get with: > > ./configure --disable-dynamic-modules > make > make install > > Compilation of babel.exe breaks, but libopenbabel DLL contains all the > formats within it (it's a huge library) and my own program works fine > with this DLL. > I think I was able to get a working babel.exe from an svn snapshot just > before 2.2.3 release, but not from the released source. It was awhile > ago though and I don't recall all the details. The discussion still > could be in the mail list archives.
Not sure if your problem has been resolved but last time I ckecked compiling with cmake was working for mingw. This was when I fixed the "formats not being found" bug. In order to find the formats a direcotry structure like below is required though: bin/myapp.exe bin/openbqbel-2.dll lib/openbabel/BABEL_VERSION/*.obf [BABELVERSION=2.2.2, ...] If I find some time, I'll check if formats are working with ./configure too (it might require an additional preprocessor definition... Cheers, Tim > Igor > > > On Wed, 2009-10-14 at 14:45 -0700, TJ O'Donnell wrote: >> Thanks Igor. That simple edit made things much better. >> Still using make (cmake gave more errors than I can recount) >> I can link everything OK and get a running babel, BUT >> $ pwd >> /home/tj/openbabel/bin >> $ ./babel -H >> ..... >> >> The following file formats are recognized: >> formats is not a recognized plugin type. Those with instances of >> sub-types loaded are: >> descriptors >> fingerprints >> forcefields >> loaders >> ops >> >> This bin folder has all sorts of *format.dll.a, populated by make >> install. I get the same symptom with my own programs using openbabel >> (OBConversion::SetInAndOutFormats fails to recognize the formats "sdf", >> etc.) >> Something is missing somewhere. Can you help? >> $ echo $PATH >> .:/usr/local/bin:/mingw/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/Program >> Files/NTRU Cryptosystems/NTRU TCG Software Stack/bin/:/c/Program >> Files/Wave Systems Corp/Dell Preboot Manager/Access >> Client/v5/:/c/Program Files/android/tools:/c/Program Files/Bitvise >> Tunnelier:/c/Program Files/TortoiseSVN/bin:/c/Program >> Files/OpenBabel-2.2.3:/c/Program Files/OpenBabel-2.2.1:/c/Program >> Files/OpenBabel-2.2.0:/c/Program Files/CMake >> 2.6/bin:/c/qt/2009.03/qt/bin/:/c/qt/2009.03/bin/ >> >> TJ O'Donnell >> >> P.S. When I install 2.2.3 into C:\Program Files\OpenBabel\ >> using the windows installer exe, babel -H works as expected. >> >> >> Igor Filippov [Contr] wrote: >> > Ok, thanks for "resident expert" title :) Not sure I'm an expert, but >> > I've seen this issue with libstdc++.dll.a in MinGW - it's a known >> > problem, has nothing to do with Openbabel. See: >> > >> > http://thread.gmane.org/gmane.comp.gnu.mingw.user/30206/focus=30243 >> > >> > To solve it: >> > edit the file /mingw/lib/gcc/mingw32/4.4.0/libstdc++.la >> > to remove (or comment out) the line: >> > library_names='libstdc++.dll.a' >> > >> > Hope this helps, >> > Igor >> > >> > On Wed, 2009-10-14 at 10:21 -0400, Geoffrey Hutchison wrote: >> >> On Oct 9, 2009, at 5:19 PM, TJ O'Donnell wrote: >> >>> I am NOT using cmake. Is that required? I took the wiki section >> >>> about >> >>> building OB using cmake to be for those who do use cmake. >> >>> I am using the ./configure & make method. >> >> I think the "resident expert" in MinGW is Igor Filippov. Here's what >> >> he said about the 2.2.2 release: >> >> >> >>> But to be completely fair, I ended up using configure for all but >> >>> one of >> >>> the systems I have compiled OB 2.2.2 (the one I was able to use >> >>> cmake on >> >>> was Fedora 9 system). Even on MinGW I ended up running configure to >> >>> have >> >>> a monolithic libopenbabel-3.dll with everything compiled in. Things >> >>> that >> >>> worked for SVN branch snapshot just didn't for the release - and I >> >>> didn't want to bring up the MinGW question again after all the great >> >>> work everyone put into it before the 2.2.2 release :( >> >> -Geoff >> > > -- > Igor Filippov [Contr] <ig...@helix.nih.gov> > > > ------------------------------------------------------------------------------ > 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-Devel mailing list > OpenBabel-Devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbabel-devel > ------------------------------------------------------------------------------ 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-Devel mailing list OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel