Re: [gnome-db] how to install ligda-5.0 or ligda-4.0 on windows with Mingw
Vivien Malerba <[email protected]> Fri, 10 May 2013 14:00:09 +0200
| Newsgroups | gmane.comp.gnome.db |
|---|---|
| Message-ID | <CAEP1ZNnicehN3c9=2HPK2imbd5_7aa-e6bqrhWHrWk8K--vT0w@mail.gmail.com> |
Hi! here are attached the scripts I use, in the following context: * the scripts are located in the root directory of the source code (git clone) * when I want to do a Linux or MacOSX build, I just run "./do_configure" and then the traditional "make" and "make install" * when I want to create a Windows32 build, I create a "_Windows32" directory at the root of the source code, and from that directory, run "../do_configure", followed by "make" and "make install" * same for Windows 64, but with a "_Windows64" directory (though it's currently not working well, something I need to work on) * the Windows binaries (which you can also install from Fedora packages) are located in /local/Win32 and /local/Win32.Fedora on my box So to match you build environment, you'll have to modify those scripts a bit. Regards, Vivien On 4 May 2013 18:16, TJF <[email protected]> wrote: > > > Vivien Malerba wrote on 2013 April, 16 (13:40 h) > > > These packages basically contain the .h and .dll files required to > compile > > Libgda. Once they are installed, you can almost run the configure script > in > > Libgda (I'll give you the wrapper script I use once you get there). > > Hello Vivien, > > thank you (and all other developers) for your effort regarding libgda > and thanks for your kindly support. > > Would you mind sending (uploading) the wrapper script now? > > I'm also interested in cross-compiling libgda on Ubuntu to test some > patches I made for libgda-ui. > > I can run the original configure script. But it generates '-pthread' > compiler flags which cannot be handled by the cross-compiler. > > Hoping to get the missing inspiration from your wrapper script. > > BR > _______________________________________________ > gnome-db-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/gnome-db-list > _______________________________________________ gnome-db-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-db-list
do_configure.sh
(application/x-sh, 4.3 KB)
#!/bin/sh
#
# Parse command line arguments
#
if test -z "$1"
then
cmdarg=""
else
cmdarg=$1
fi
#
# locate Libgda's top SRCDIR
#
gdadir=`pwd`
while test "x$gdadir" != "x/"; do
if test -e $gdadir/configure.ac; then
break
fi
gdadir=`dirname $gdadir`
done
if test $gdadir = "/"; then
echo "Libgda's sources dir not found!"
exit 1
fi
echo "Detected Libgda's sources in $gdadir"
#
# determine if Windows build
#
current=`pwd`
current=`basename $current`
if test "x$current" = "x_Windows"; then
echo "Windows Build, 32 or 64 bits?"
exit 0
fi
if test "x$current" = "x_Windows32"; then
echo "Windows 32 Build"
export INSTALLDIR=/local/Win32/Libgda
$gdadir/mingw-configure --enable-debug --prefix=$INSTALLDIR --with-mysql=/local/Win32/mysql --with-bdb=/local/Win32/bdb --with-mdb=yes --enable-system-mdbtools=no --with-oracle=/local/Win32/oracle --with-firebird=no --with-postgres=/local/Win32/pgsql --with-java=no --with-ldap=/local/Win32/ldap --enable-vala=no --enable-vala-extensions=no
exit 0
fi
if test "x$current" = "x_Windows64"; then
echo "Windows 64 Build"
export INSTALLDIR=/local/Win64/Libgda
$gdadir/mingw-configure64 --enable-debug --prefix=$INSTALLDIR --with-mdb=yes --enable-system-mdbtools=no --with-oracle=/local/Win64/oracle --with-firebird=no --with-postgres=/local/Win64/pgsql --with-java=no
exit 0
fi
host=`hostname`
if [ $host = "me7-PC" ] ; then
echo "Native Windows Build"
export INSTALLDIR=/home/me7/win32install/Libgda
./configure --prefix=$INSTALLDIR --with-mdb=yes --enable-system-mdbtools=no --disable-crypto --enable-introspection=no --enable-gtk-doc=no
exit 0
fi
#
# if in _Linux build then deactivate gtkdoc build
#
if test "x$current" = "x_Linux"; then
export EXTRACONF="--enable-gtk-doc=no"
fi
#
# Set environment variables
#
version=`git branch | grep \* | sed -e 's/\* //'`
if [ $version = "LIBGDA_4.2" -o $version = "LDAP_4.2" ]; then
echo "In 4.2 branch"
export EXTRACONF="$EXTRACONF --enable-gtk-doc"
else
echo "In $version branch (using settings for the master branch)"
export EXTRACONF="$EXTRACONF --enable-json"
export EXTRACONF="$EXTRACONF --enable-gtk-doc"
fi
#
# Host name
#
host=`hostname -s`
echo "Running on $host"
#
# Actual running
#
case $cmdarg in
jhbuild)
# Good for F17
echo "JHBuild Build..."
export CFLAGS="-Wall -g -O0 -DGDA_DISABLE_DEPRECATED -DGSEAL_ENABLE"
$gdadir/configure --prefix=/local/extra --enable-debug --enable-binreloc --with-postgres=yes --with-mysql=yes --with-oracle=/home/vivien/Devel/Externals/OCI64 --enable-introspection=no --enable-gda-gi=no --enable-gdaui-gi=no --with-bdb=/local/extra/bdb --enable-binreloc $EXTRACONF --enable-warnings=max --with-mdb=/local/mdbtools7 --enable-system-mdbtools=yes --enable-gi-system-install=no --enable-vala=no --enable-system-sqlite --enable-vala-extensions=no --with-firebird-libdir-name=lib64 --enable-gtk-doc=yes
;;
cov*)
# Coverity
echo "COVERITY Build..."
export CFLAGS="-Wall -g -O0 -DGDA_DISABLE_DEPRECATED -DGLIB_DISABLE_DEPRECATION_WARNINGS -DGDK_DISABLE_DEPRECATION_WARNINGS -DPANGO_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DATK_DISABLE_DEPRECATED"
$gdadir/configure --prefix=/local/extra --enable-debug --enable-binreloc --with-postgres=yes --with-mysql=yes --with-oracle=/home/vivien/Devel/Externals/OCI64 --enable-introspection=no --enable-gda-gi=no --enable-gdaui-gi=no --with-bdb=/local/extra/bdb --enable-binreloc $EXTRACONF --enable-warnings=max --with-mdb=/local/mdbtools7 --enable-system-mdbtools=yes --enable-gi-system-install=no --enable-vala=no --enable-system-sqlite --enable-vala-extensions=no --with-firebird-libdir-name=lib64 --enable-gtk-doc=no
;;
*)
echo "DEFAULT Ubuntu 13.04 Build..."
export CFLAGS="-Wall -g -O0 -DGDA_DISABLE_DEPRECATED -DGSEAL_ENABLE"
$gdadir/configure --prefix=/local/extra --enable-debug --enable-binreloc --with-postgres=yes --with-mysql=yes --with-oracle=/home/vivien/Devel/Externals/OCI64 --enable-introspection=yes --enable-gda-gi=yes --enable-gdaui-gi=yes --with-bdb=/local/extra/bdb --enable-binreloc $EXTRACONF --enable-warnings=max --with-mdb=/local/mdbtools7 --enable-system-mdbtools=yes --enable-gi-system-install=no --enable-vala=yes --enable-gdaui-vala=yes --enable-system-sqlite=no --enable-vala-extensions=yes --with-firebird=/usr/lib --with-firebird-libdir-name=x86_64-linux-gnu
;;
esac
mingw-configure
(application/octet-stream, 5.1 KB) - not displayed
mingw-configure64
(application/octet-stream, 3.7 KB) - not displayed