Hello,
I haven't been able to get the XCode generator to work, but what I found is
that if I follow the standard build instructions using cmake:
mv openbabel-2.3.0 ob-src
mkdir ob-build
cd ob-build
cmake ../ob-src 2>&1 | tee cmake.out
make 2>&1 | tee make.out
I find that the executables are debuggable using (gdb) as long as I keep
the source files in the right place, etc. So I guess the cmakelists.txt
file builds debugabble files by default then?
Thanks,
Eric
On Mon, Nov 28, 2011 at 10:49 AM, Noel O'Boyle <[email protected]> wrote:
> Well, it's supposed to work. :-/ It's either a CMake bug, or a problem
> with our setup somehow. If you go through the generated xcodeproj
> file, you might be able to figure it out the origin of the problem.
> Otherwise, my only advice is to make sure you use the latest version
> of CMake - perhaps there was a bug that has now been fixed.
>
> An alternative IDE you could use is Eclipse (with the C++ extensions).
> I (think I) have successfully compiled Open Babel under this in the
> past.
>
> - Noel
>
> On 27 November 2011 18:59, Eric Jang <[email protected]> wrote:
> >
> >
> > ---------- Forwarded message ----------
> > From: Eric Jang <[email protected]>
> > Date: Sat, Nov 26, 2011 at 8:03 PM
> > Subject: Re: [Open Babel] debug openbabel
> > To: Noel O'Boyle <[email protected]>
> >
> >
> > I ran cmake -G Xcode ../openbabel-2.3.1 and it produced the xcodeproj
> file.
> > However when I try to open the file, it says that XCode cannot open
> because
> > it cannot parse the file.
> >
> > I did a quick Google search for this kind of problem and it seems like
> > the CMakeLists.txt file is to blame? Any suggestions?
> >
> > Thanks!
> >
> > - Eric
> >
> > On Sat, Nov 26, 2011 at 1:26 PM, Noel O'Boyle <[email protected]>
> wrote:
> >>
> >> Cmake can generate build files for many different IDEs include Xcode.
> >> Just use the usual command-line (see our build instructions [1]) but
> >> include "-G Xcode" at the start.
> >>
> >> [1]
> >>
> http://openbabel.org/docs/dev/Installation/install.html#basic-build-procedure
> >>
> >> The default build is to generate makefiles. If you want to generate a
> >> debug build see also [1]. But if you're using XCode I guess it will do
> >> this for you itself.
> >>
> >> - Noel
> >>
> >> On 26 November 2011 22:03, Eric Jang <[email protected]> wrote:
> >> > Hello!
> >> >
> >> > I was wondering if someone could show me how to build a debuggable
> >> > version
> >> > of OpenBabel? Specifically I want to step through the obenergy
> program.
> >> > I
> >> > asked earlier how to port over to XCode (since that would give me a
> >> > better
> >> > understanding of where I am and what vars are present), but perhaps I
> >> > should
> >> > figure out how to compile the debuggable version via CMake or command
> >> > line
> >> > first.
> >> >
> >> > if someone could provide me the command sequence and flags I have to
> add
> >> > that would be fantastic.
> >> >
> >> > Thanks!
> >> >
> >> >
> >> >
> ------------------------------------------------------------------------------
> >> > All the data continuously generated in your IT infrastructure
> >> > contains a definitive record of customers, application performance,
> >> > security threats, fraudulent activity, and more. Splunk takes this
> >> > data and makes sense of it. IT sense. And common sense.
> >> > http://p.sf.net/sfu/splunk-novd2d
> >> > _______________________________________________
> >> > OpenBabel-discuss mailing list
> >> > [email protected]
> >> > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
> >> >
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > All the data continuously generated in your IT infrastructure
> > contains a definitive record of customers, application performance,
> > security threats, fraudulent activity, and more. Splunk takes this
> > data and makes sense of it. IT sense. And common sense.
> > http://p.sf.net/sfu/splunk-novd2d
> > _______________________________________________
> > OpenBabel-discuss mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
> >
>
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
OpenBabel-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss