Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4062D6A2 for ; Fri, 7 Sep 2012 08:59:24 +0000 (UTC) Received: (qmail 42401 invoked by uid 500); 7 Sep 2012 08:59:24 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 42332 invoked by uid 500); 7 Sep 2012 08:59:24 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 42311 invoked by uid 99); 7 Sep 2012 08:59:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 08:59:23 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jogischmidt@gmail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 08:59:16 +0000 Received: by bkcik5 with SMTP id ik5so1425831bkc.6 for ; Fri, 07 Sep 2012 01:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=EwjxWsXvzzbVeoJl4QSwWO3KLvLKkfeJc6u/jN146WM=; b=okS53CLFF8ftoH+I21BBzppBGuS8sJ4Rt88+OFXqkwnnduLEdVs7ESxzmsE9remAxW tmhyo0ZUAYhdxfhm9weSfp5T050m4m1B0KLQuclRg8WeuW9frpi9iLwvjmtHlyAigWpD oDqiHlKiz5veVwgYGQUUEY/JFjCMyJP+zLg+N1oRAuC5jiiGW6CDO+E2JtK6AmQs9RsB GD73/CNzl4HKxtueIxAE6EUX1pt6doCnWpR+IldF5OOAC0LgtS71UsXQkbRFuNE1QrQe uGtThcW+83h6DO95Q5w3Js4FovEOzmDsniCh1gQ3g4y9ID8UD+r5RVU1cNZqSaL9m+iV k4rw== Received: by 10.204.152.137 with SMTP id g9mr2263340bkw.106.1347008336184; Fri, 07 Sep 2012 01:58:56 -0700 (PDT) Received: from [9.155.131.86] (deibp9eh1--blueice2n2.emea.ibm.com. [195.212.29.172]) by mx.google.com with ESMTPS id m9sm2812802bkm.10.2012.09.07.01.58.54 (version=SSLv3 cipher=OTHER); Fri, 07 Sep 2012 01:58:55 -0700 (PDT) Message-ID: <5049B74E.9090702@gmail.com> Date: Fri, 07 Sep 2012 10:58:54 +0200 From: =?ISO-8859-1?Q?J=FCrgen_Schmidt?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: ooo-dev@incubator.apache.org Subject: Re: [EXT] MySQL SDBC Connector References: <20120907015021.GA22538@localhost> <5049A2DA.1060300@gmail.com> <20120907081529.GB30054@localhost> In-Reply-To: <20120907081529.GB30054@localhost> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit On 9/7/12 10:15 AM, Ariel Constenla-Haile wrote: > > Hi J�rgen, > > On Fri, Sep 07, 2012 at 09:31:38AM +0200, J�rgen Schmidt wrote: >> On 9/7/12 3:50 AM, Ariel Constenla-Haile wrote: >>> Hi *, >>> >>> I managed to build the MySQL Connector extension and make it work on >>> >>> * CentOS 5.8 32 and 64 bits >>> * Ubuntu 10.04 LTS 32 and 64 bits >>> * Fedora 15 32 bits and 17 64 bits >>> * Windows XP 32 bits >>> * Windows 7 64 bits (arch. does not matter on Win, AOO is a 32 bits >>> application) >>> >>> You can find the extension binaries on >>> http://people.apache.org/~arielch/extensions/aoo-my-sdbc/ >>> >>> These are supposed to be "universal" builds, that is, run on every >>> Windows version, and Linux distro (Linux base is CentOS 5 with glibc >>> 2.5). Everyone is welcome to test if they work on their systems; by >>> "work" I mean it does not crash, I didn't fix any of the existing >>> issues, it was just a try-to-build-it (for now). >>> >>> >> >> it's cool and will help probably many people. >> >> How did you build it? Did you simply use the former code and build it >> within our normal build env? Or did you use a SDK env or a completely >> new one. Did you create a separate module or project?. > > > I built it with the SDK environment, "just like" the Complex Toolbar > Controls example in /sdk/examples/cpp/complextoolbarcontrols that's what I hoped. I hope we can find time to improve the development/build experience for this kind of stuff. For Java extensions we have the NetBeans plugin and I think with some manual tweaking Eclipse can be used as well. Or the Eclipse plugin of Cedric of course. For C++ the SDK env is one approach but not the best one. For Windows I can think of a MS studio project file with all the necessary custom targets and tweaks. a lot of room for improvements as always ;-) But again I am glad that you give it a try and closed one gap. I think the connector is very useful for many users. Juergen > > Of course, with some little tweaking: the SDK only uses Make and Zip, > and as the extensions builds also the MySQL Connector/C and > Connector/C++, you need to add some extra tools, including cmake, but > I managed to use all these stuff with plain Makefile's and includes, > � la SDK. This has the advantage that anyone, with a minimal building > knowledge can set up the SDK environment and build the extension - at > least in theory, I set up the Makefile to build only on Linux and > Windows, but adapting a few things it may be buildable in other systems > too. > > Example of external tools needed on Windows: > > # Unx utilities for Windows: > # http://sourceforge.net/projects/unxutils/files/latest/download > > # Extract external libraries > # This tar does not understand -z, so we need zcat too > TAR=C:\UnxUtils\usr\local\wbin\tar.exe > ZCAT=C:\UnxUtils\usr\local\wbin\zcat.exe > > # patching the external libraries > PATCH=C:\UnxUtils\usr\local\wbin\patch.exe > > # get rid of echoing XML files > CAT=C:\UnxUtils\usr\local\wbin\cat.exe > SED=C:\UnxUtils\usr\local\wbin\sed.exe > > # we could use xcopy to copy recursively, but it sucks > COPY=C:\UnxUtils\usr\local\wbin\cp.exe > COPYRECURSIVE=$(COPY) -rf > > # MySQL Connector/C is built with CMake > # http://www.cmake.org/cmake/resources/software.html > CMAKE=C:\cmake-2.8.9-win32-x86\bin\cmake.exe > > > First I though about using configure and cygwin, but this approach makes > building the extension more easy: add these tools to a win.mk and simply > install and set up the AOO SDK, and build the extension with it. Of > course, in Linux developing is easier and straight forward; but on > Windows the SDK user already has to search for a GNU Make, and these > tools can be found on the same package (except for CMake, that can be > downloaded in a zip, no need to install it). > > >> Well we had reasons to exclude it from our normal builds and I think it >> would be good to learn more about the way you have chosen to build it. I >> remember that we talked about solutions for some removed features that >> somebody could take the code and could create a mini project somewhere >> else to ensure that it can be built and used with future AOO version. > > Some stuff needs to be linked against no URE libraries, like the removed > WordPerfect filter. I didn't look at the PDF Import extension, in theory > an extension should only link against URE libs, but this might be not > the case. Anyway, it might be useful to take the Hybrid PDF stuff out of > this extension and implement it in the main code, office-wide: it is > a nice feature. > > > Regards >