Loading ...
Sorry, an error occurred while loading the content.

GTK2 and Vim70f

Expand Messages
  • Steven Klass
    Hi all, I have been unsuccessful at building 7.0f with gtk2 support. I build all of the dependancies in a self contained tree, but vim configure is not
    Message 1 of 1 , Apr 27, 2006
    • 0 Attachment
      Hi all,

      I have been unsuccessful at building 7.0f with gtk2 support. I build
      all of the dependancies in a self contained tree, but vim configure is
      not recognizing the gtk2 trees..

      I have attached my build script for reference but no matter what I do
      I can't seem to get this to look at my "new" gtk2 builds. Am I
      missing something?

      Is there a way to point to using my gtk2 directories? For gtk2
      gtk-config is depracated in favor of pkg-config. The local version of
      pkg-config does correctly identify gtk2 as a valid library using
      pkg-config --list-all. Anyone else out there confirm this?



      #!/bin/bash

      #
      # File build-me.sh
      #
      # By: Steven Klass
      #
      # Description:
      #

      dest=`pwd`"/gvim7.0"

      files=" ./fontconfig-2.3.2.tar \
      ./freetype-2.1.10.tar \
      ./libpng-1.2.8.tar \
      ./jpeg-6b.tar \
      ./tiff-3.7.4.tar \
      ./glib-2.8.6.tar \
      ./pkg-config-0.20.tar \
      ./cairo-1.0.4.tar \
      ./atk-1.10.3.tar \
      ./pango-1.10.4.tar \
      ./gtk+-2.8.17.tar \
      ./vim70f.tar"


      logfile='/tmp/gvim7.log'


      echo "Building gvim with prefix = $dest" | tee $logfile

      if [ -d $dest ] ; then
      echo "Removing Destination Directory $dest" | tee -a $logfile
      rm -rf $dest/*
      mkdir $dest/bin
      mkdir $dest/lib
      else
      mkdir $dest
      fi

      cd src

      # Time to set up the build stuff..

      export PATH="$dest/bin:$PATH"
      export LD_LIBRARY_PATH="$dest/lib:$LD_LIBRARY_PATH"
      export LDFLAGS="-L$dest/lib"
      export CPPFLAGS="-I$dest/include"

      echo "Building dependancies" | tee -a $logfile
      echo "==============================" | tee -a $logfile
      for file in $files; do
      options=""

      echo "Starting to work on $file" | tee -a $logfile
      dir=`echo $file | sed "s/\.tar//"`

      if [ -d $dir ] ; then
      echo " Removing existing directory $dir" | tee -a $logfile
      rm -rf $dir
      fi

      echo " Untarring $file" | tee -a $logfile
      tar xpvf $file > /dev/null

      if [ -d $dir ] ; then

      cd $dir/

      if [ -f configure ] ;then


      if [ "$dir" == "./libpng-1.2.8" ] ; then
      cat scripts/makefile.smsc | sed
      "s#prefix=/usr/local#prefix=$dest#" > Makefile
      else
      # Option specific stuff..
      if [ "$dir" == "./fontconfig-2.3.2" ] ; then
      echo " ..setting options" | tee -a $logfile
      options="--disable-docs"
      fi
      if [ "$dir" == "./vim70f" ] ; then
      echo " ..setting options" | tee -a $logfile
      options="--with-features=huge --enable-gui=gtk2
      --enable-perlinterp --enable-pythoninterp --enable-cscope"
      fi

      echo " ..configure $options" | tee -a $logfile

      ./configure --prefix=$dest $options > /dev/null
      if [ $? -eq 0 ] ; then
      echo " ..configure ok" | tee -a $logfile
      else
      echo " ..configure $dir not ok" | tee -a $logfile
      exit
      fi

      fi

      if [ "$dir" == "./cairo-1.0.4" ] ; then
      mv config.h config.h.orig
      cat config.h.orig | sed "s/#define HAVE_FT_GLYPHSLOT_EMBOLDEN
      1//" > config.h

      fi

      make > /dev/null
      if [ $? -eq 0 ] ; then
      echo " ..make ok" | tee -a $logfile
      else
      echo " ..make $dir not ok" | tee -a $logfile
      exit
      fi
      make test > /dev/null
      if [ $? -eq 0 ] ; then
      echo " ..make test ok" | tee -a $logfile
      else
      echo " ..make test $dir not ok" | tee -a $logfile
      fi

      make install > /dev/null
      if [ $? -eq 0 ] ; then
      echo " ..make install ok" | tee -a $logfile
      else
      echo " ..make install $dir not ok" | tee -a $logfile
      exit
      fi

      else
      echo "Configure script does not exists for $dir"
      exit
      fi
      else
      echo "Directory $dir does not exist for $file"
      exit
      fi
      echo " $dir is complete" | tee -a $logfile
      cd ../
      done





      --
      ---

      Steven M. Klass

      Design Automation Manager

      SMSC
      3930 East Ray Road, Suite 200
      Phoenix, Arizona 85044
      (480) 704-7046 (Desk)
      (480) 225-1112 (Mobile)
      steven.klass@...
    Your message has been successfully submitted and would be delivered to recipients shortly.