Hi Noel,

Forgive the delay, this work is for my PhD which I'm completing in my spare
time outside of work.

I've configured a POM that contains redefinable properties for all paths
and ON/OFF flags in the .make, then generates a .make with values
substituted in. Then it executes the .make . This structure is
cross-platform compliant, though I've only tested it on Windows 7 64 bit.

The next step is to configure the POM to generate a new JAR containing
openbabel.jar and the cpp libraries etc. This will enable submission to a
public maven repository as originally intended.

Question: the ctest script is only generating the project solution,
correct? It shouldn't also build the project, should it? Because it's
completing successfully, but far too quickly to be doing that... I'm sure I
can identify whether libs and dlls have been generated but I'd like to know
what it *should* be doing.

Dave


On 12 June 2012 10:11, N David Brown <hubd...@gmail.com> wrote:

> Fantastic, thank you Noel. I'll get back to you towards the end of the
> week assuming no issues using it in the meantime. I'll try to create an OB
> pom by then.
>
> David
>
>
>
> On 12 June 2012 10:04, Noel O'Boyle <baoille...@gmail.com> wrote:
>
>> Please find attached a ctest script you can run as follows:
>>  ctest -S ob-win-tmp.cmake -VV > cmake-build.out
>>
>> ("-VV" is verbose output, which is useful in case of problems)
>>
>> If you look through the script it should make sense, apart from the
>> reference to CVS which is a quirk of ctest. BTW, before running this,
>> the directory pointed to by the first line of the script needs to
>> exist.
>>
>> - Noel
>>
>> On 11 June 2012 21:30, N David Brown <hubd...@gmail.com> wrote:
>> > If it's not much trouble that would be great, Noel. I'd not heard of
>> CTest
>> > but have looked it up now - it makes perfect sense to have CMake
>> perform the
>> > build.
>> >
>> > This is actually ideal, as it should allow me to create a complete
>> pom.xml
>> > for OB that you can include in the JAR from now on. If done properly,
>> this
>> > will allow Java developers to introduce OB as a dependency with the
>> greatest
>> > of ease.
>> >
>> > Let me know how you get on.
>> >
>> > David
>> >
>> >
>> > On 11 June 2012 21:10, Noel O'Boyle <baoille...@gmail.com> wrote:
>> >>
>> >> Sounds good.
>> >>
>> >> Sorry - I just realised something that should make things easier.
>> >> Perhaps the best way to do this is actually via a ctest script as you
>> >> don't have to hardcode the compiler path. The one we use for our
>> >> nightly builds does 4 things: (1) check out of SVN (or else update),
>> >> (2) build, (3) run tests, (4) send results up to our dashboard. For a
>> >> build system, you could just run steps 1 and 2.
>> >>
>> >> If you want to go down this route, I can put together the script for
>> you.
>> >>
>> >> - Noel
>> >>
>> >> On 11 June 2012 20:58, N David Brown <hubd...@gmail.com> wrote:
>> >> > Hi Noel,
>> >> >
>> >> > I've built it the standard way several times before. I'm now
>> configuring
>> >> > my
>> >> > own maven project to build the latest version from SVN automatically
>> if
>> >> > it's
>> >> > not found locally. The configuration's set up for CMake, it's just
>> the
>> >> > build
>> >> > command I need to get right.
>> >> >
>> >> > Thank you for providing that command and describing how you found it,
>> >> > that's
>> >> > very helpful. Seeking info in the MSDN notes points to vcbuild.exe
>> and
>> >> > the
>> >> > options listed suggest that you can specify a project or a solution,
>> but
>> >> > not
>> >> > both.
>> >> >
>> >> > The way to deploy OpenBabel to a public maven repo would be to add a
>> >> > Maven
>> >> > POM to the Java bindings (this is an xml project configuration) that
>> >> > will
>> >> > grab the correct version of the library for those bindings then build
>> >> > it,
>> >> > either auto-detecting the platform to infer the appropriate make
>> command
>> >> > or
>> >> > else containing a definable property which is switched on to
>> determine
>> >> > the
>> >> > build process.
>> >> >
>> >> > I'll post to the mailing list my configuration for Win 7 64 bit when
>> >> > it's
>> >> > complete and may suggest a skeletal pom.xml that a developer could
>> >> > expand
>> >> > on.
>> >> >
>> >> > David
>> >> >
>> >> >
>> >> > On 11 June 2012 20:41, Noel O'Boyle <baoille...@gmail.com> wrote:
>> >> >>
>> >> >> Have you tried first of all compiling it as per the instructions?
>> >> >>
>> http://openbabel.org/docs/dev/Installation/install.html#windows-msvc
>> >> >>
>> >> >> Here is the command that ctest uses on my machine to compile
>> >> >> everything at the command-line:
>> >> >> C:\PROGRA~2\MICROS~1.0\Common7\IDE\VCExpress.exe openbabel.sln
>> /build
>> >> >> Release /project ALL_BUILD
>> >> >> (from "grep MAKE_COMMAND CMakeCache.txt")
>> >> >> Note that it runs in the background without any screen output.
>> >> >>
>> >> >> The development version does not include the Java bindings. You need
>> >> >> to build them yourself. Unzip Swig 2.0.7 somewhere and specify its
>> >> >> location with -DSWIG_EXECUTABLE=whereever.
>> >> >>
>> >> >> We welcome anything you can do to mavenize Open Babel, but you
>> >> >> probably know more about Java than the rest of us put together so
>> it's
>> >> >> pretty much down to you to sort it out and document it.
>> >> >>
>> >> >> - Noel
>> >> >>
>> >> >> On 11 June 2012 00:59, N David Brown <hubd...@gmail.com> wrote:
>> >> >> > Hello all,
>> >> >> >
>> >> >> > I created the following batch script to run CMake on OpenBabel
>> >> >> > sources
>> >> >> > (located in checkout/OpenBabel), then build the generated project:
>> >> >> >
>> >> >> > "C:\Program Files (x86)\Microsoft Visual Studio
>> 9.0\VC\vcvarsall.bat"
>> >> >> > x86 &&
>> >> >> > mkdir checkout\OpenBabel\build && cd checkout\OpenBabel\build &&
>> >> >> > cmake
>> >> >> > -DCMAKE_BUILD_TYPE="Release" -DZLIB_INCLUDE_DIR=..\include
>> >> >> > -DLIBXML2_INCLUDE_DIR=..\include
>> >> >> > -DZLIB_LIBRARY=..\windows-vc2008\zlibs\x64\lib1.lib
>> >> >> > -DLIBXML2_LIBRARIES=..\windows-vc2008\libs\x64\libxml2.lib
>> >> >> > -DRUN_SWIG=ON
>> >> >> > -DJAVA_BINDINGS=ON -G "Visual Studio 9 2008" .. && vcbuild
>> >> >> > ALL_BUILD.vcproj
>> >> >> >
>> >> >> > I'm facing two problems:
>> >> >> >
>> >> >> > I've included -DRUN_SWIG=ON simply because without it I'm warned
>> that
>> >> >> > Java
>> >> >> > bindings could not be found.
>> >> >> > However, upon inclusion the following output is produced:
>> >> >> >
>> >> >> > -- Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE)
>> >> >> > -- Could NOT find SWIG (missing:  SWIG_EXECUTABLE SWIG_DIR)
>> >> >> > -- Could NOT find SWIG (missing:  SWIG_EXECUTABLE SWIG_DIR)
>> (Required
>> >> >> > is
>> >> >> > at
>> >> >> > least version "2.0")
>> >> >> >
>> >> >> >
>> >> >> > The vcbuild command produces the following output despite the
>> project
>> >> >> > not
>> >> >> > yet being built:
>> >> >> >
>> >> >> > Microsoft (R) Visual C++ Project Builder - Command Line Version
>> >> >> > 9.00.30729
>> >> >> > Copyright (C) Microsoft Corporation. All rights reserved.
>> >> >> > Build started: Project: ALL_BUILD, Configuration: Debug|Win32
>> >> >> > ALL_BUILD - up-to-date
>> >> >> > Build started: Project: ALL_BUILD, Configuration: Release|Win32
>> >> >> > ALL_BUILD - up-to-date
>> >> >> > Build started: Project: ALL_BUILD, Configuration: MinSizeRel|Win32
>> >> >> > ALL_BUILD - up-to-date
>> >> >> > Build started: Project: ALL_BUILD, Configuration:
>> >> >> > RelWithDebInfo|Win32
>> >> >> > ALL_BUILD - up-to-date
>> >> >> >
>> >> >> > I'd be extremely grateful if you can suggest how I overcome these
>> >> >> > issues.
>> >> >> >
>> >> >> > Sincere thanks,
>> >> >> >
>> >> >> > David
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> ------------------------------------------------------------------------------
>> >> >> > Live Security Virtual Conference
>> >> >> > Exclusive live event will cover all the ways today's security and
>> >> >> > threat landscape has changed and how IT managers can respond.
>> >> >> > Discussions
>> >> >> > will include endpoint security, mobile security and the latest in
>> >> >> > malware
>> >> >> > threats.
>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> >> >> > _______________________________________________
>> >> >> > OpenBabel-Devel mailing list
>> >> >> > OpenBabel-Devel@lists.sourceforge.net
>> >> >> > https://lists.sourceforge.net/lists/listinfo/openbabel-devel
>> >> >> >
>> >> >
>> >> >
>> >
>> >
>>
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to