2013年07月10日 How to fix about blackout of XIM input mode indicator([あ]) of kinput2 with gtk+-2.24.x [長年日記]
_ How to fix about blackout of XIM input mode indicator([あ]) of kinput2 with gtk+-2.24.x
I re-built buggy im-xim.so :P
$ tar xvvf gtk+-2.24.10.tar.xz $ cd gtk+-2.24.10/ $ patch <../gtk+-2.24.10.diff
gtk+-2.24.10.diff
*** modules/input/gtkimcontextxim.c.ORG	2013-07-10 14:19:05.820082738 +0900
--- modules/input/gtkimcontextxim.c	2013-07-10 14:20:01.192120239 +0900
***************
*** 1776,1791 ****
    cr = gdk_cairo_create (widget->window);
!   gdk_cairo_set_source_color (cr, &widget->style->base[GTK_STATE_NORMAL]);
    cairo_rectangle (cr,
                     0, 0,
                     widget->allocation.width, widget->allocation.height);
    cairo_fill (cr);
!   gdk_cairo_set_source_color (cr, &widget->style->text[GTK_STATE_NORMAL]);
    cairo_rectangle (cr,
!                    0, 0,
!                    widget->allocation.width - 1, widget->allocation.height - 1);
    cairo_fill (cr);
    return FALSE;
--- 1776,1791 ----
    cr = gdk_cairo_create (widget->window);
!   gdk_cairo_set_source_color (cr, &widget->style->text[GTK_STATE_NORMAL]);
    cairo_rectangle (cr,
                     0, 0,
                     widget->allocation.width, widget->allocation.height);
    cairo_fill (cr);
!   gdk_cairo_set_source_color (cr, &widget->style->base[GTK_STATE_NORMAL]);
    cairo_rectangle (cr,
!                    0 + 1, 0 + 1,
!                    widget->allocation.width - 1 - 1, widget->allocation.height - 1 - 1);
    cairo_fill (cr);
    return FALSE;
Let's config & build!
$ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/man \ --with-xinput=yes \ --enable-xkb \ --enable-introspection $ make
Don't care following error :P
Using catalogs: /etc/sgml/catalog Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#html Working on: /home/m-ito/tmp/gtk+-2.24.10/docs/tutorial/gtk-tut.sgml mv: cannot stat 'gtk-tut': No such file or directory mkdir: cannot create directory 'html/images': No such file or directory cp: target 'html/images' is not a directory make[3]: *** [html] Error 1 make[3]: Leaving directory `/home/m-ito/tmp/gtk+-2.24.10/docs/tutorial' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/m-ito/tmp/gtk+-2.24.10/docs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/m-ito/tmp/gtk+-2.24.10' make: *** [all] Error 2
Updated /usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so
# cp /usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so /usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so.ORG # install -s modules/input/.libs/im-xim.so /usr/lib/gtk-2.0/2.10.0/immodules/ # ldconfig
and everything gose fine :D
[ツッコミを入れる]
2013年07月26日 minitube-2.0 on Slackware-14.0 [長年日記]
_ minitube-2.0 on Slackware-14.0
minitube-2.0 can't play with phonon-gstreamer.
I have to use phonon-xine for minitube-2.0.
~/.kde/share/config/servicetype_profilerc
[PhononBackend] Entry0_Preference=3 Entry0_Service=phononbackends/xine.desktop Entry1_Preference=2 Entry1_Service=phononbackends/mplayer.desktop Entry2_Preference=1 Entry2_Service=phononbackends/gstreamer.desktop NumberOfEntries=3
[ツッコミを入れる]
2013年07月29日 Building openmovieeditor on Slackware-14.0 [長年日記]
_ Building openmovieeditor on Slackware-14.0
pre-require
gavl-1.4.0.tar.gz
$ tar xvvf gavl-1.4.0.tar.gz $ cd gavl-1.4.0 $ ./configure && make # make install && ldconfig
gmerlin-avdecoder-1.2.0.tar.gz
$ tar xvvf gmerlin-avdecoder-1.2.0.tar.gz $ cd gmerlin-avdecoder-1.2.0 $ ./configure && make # make install && ldconfig
gmerlin-1.2.0.tar.gz
$ tar xvvf gmerlin-1.2.0.tar.gz $ cd gmerlin-1.2.0 $ CFLAGS="-ldl -lpthread -lgtk" ./configure && make # make install && ldconfig
libquicktime-1.2.4.tar.gz
$ tar xvvf libquicktime-1.2.4.tar.gz $ cd libquicktime-1.2.4 $ LDFLAGS="-L/usr/local/lib" LIBS="-lx264" ./configure --enable-gpl --with-x264
Edit config.h by hand :P
/* Enable X264 */ /* #undef HAVE_X264 */ #define HAVE_X264 1
$ make # make install && ldconfig
jack-1.9.9.5.tar.bz2
$ tar xvvf jack-1.9.9.5.tar.bz2 $ cd jack-1.9.9.5 $ ./waf configure --alsa $ ./waf build # ./waf install # ldconfig # /usr/local/bin/jackd -d alsa &
pa_stable_v19_20111121.tgz
$ tar xvvf pa_stable_v19_20111121.tgz $ cd portaudio $ ./configure && make # make install && ldconfig
fltk-1.3.2-source.tar.gz
$ tar xvvf fltk-1.3.2-source.tar.gz $ cd fltk-1.3.2 $ ./configure && make # make install && ldconfig
Build openmovieeditor-0.0.20090105.tar.gz
$ tar xvvf openmovieeditor-0.0.20090105.tar.gz $ cd openmovieeditor-0.0.20090105 $ patch -p0 <openmovieeditor-0.0.20090105.diff
openmovieeditor-0.0.20090105.diff
*** ./src/VideoViewGL.H.ORG	2013-07-29 09:32:48.093571324 +0900
--- ./src/VideoViewGL.H	2013-07-29 09:33:30.076907190 +0900
***************
*** 20,25 ****
--- 20,26 ----
  #ifndef _VIDEO_VIEW_GL_H_
  #define _VIDEO_VIEW_GL_H_
+ #include <stdint.h>
  #include <FL/Fl.H>
  #include <FL/Fl_Gl_Window.H>
*** ./src/AddCommand.cxx.ORG	2013-07-29 09:37:17.030751855 +0900
--- ./src/AddCommand.cxx	2013-07-29 09:37:48.086698907 +0900
***************
*** 18,23 ****
--- 18,24 ----
   */
+ #include <stdio.h>
  #include "AddCommand.H"
  #include "timeline/Clip.H"
  #include "Timeline.H"
*** ./src/Fl_Split.cpp.ORG	2013-07-29 09:47:00.044849949 +0900
--- ./src/Fl_Split.cpp	2013-07-29 09:47:38.387723132 +0900
***************
*** 38,44 ****
  void Fl_Split::position(int oix, int oiy, int newx, int newy) {
    Fl_Widget*const* a = array();
!   short* p = sizes();
    p += 8; // skip group & resizable's saved size
    for (int i=children(); i--; p += 4) {
      Fl_Widget* o = *a++;
--- 38,44 ----
  void Fl_Split::position(int oix, int oiy, int newx, int newy) {
    Fl_Widget*const* a = array();
!   short* p = (short *)sizes();
    p += 8; // skip group & resizable's saved size
    for (int i=children(); i--; p += 4) {
      Fl_Widget* o = *a++;
***************
*** 88,94 ****
  	  return;
    }
!   short* p = sizes();
    // resize this (skip the Fl_Group resize):
    Fl_Widget::resize(X,Y,W,H);
--- 88,94 ----
  	  return;
    }
!   short* p = (short *)sizes();
    // resize this (skip the Fl_Group resize):
    Fl_Widget::resize(X,Y,W,H);
***************
*** 155,161 ****
  		  int oldx = 0;
  		  int oldy = 0;
  		  Fl_Widget*const* a = array();
! 		  short* q = sizes();
  		  short* p = q+8;
  		  //printf("cursor(%d,%d)\n", mx,my);
  		  for (int i=children(); i--; p += 4) {
--- 155,161 ----
  		  int oldx = 0;
  		  int oldy = 0;
  		  Fl_Widget*const* a = array();
! 		  short* q = (short *)sizes();
  		  short* p = q+8;
  		  //printf("cursor(%d,%d)\n", mx,my);
  		  for (int i=children(); i--; p += 4) {
*** ./src/WaveForm.H.ORG	2013-07-29 09:35:37.174060583 +0900
--- ./src/WaveForm.H	2013-07-29 09:36:12.358532348 +0900
***************
*** 17,22 ****
--- 17,23 ----
   *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   */
+ #include <stdint.h>
  #include "global_includes.H"
  #include "JobManager.H"
*** ./src/DiskCache.cxx.ORG	2013-07-29 09:53:43.362109498 +0900
--- ./src/DiskCache.cxx	2013-07-29 09:54:02.806580790 +0900
***************
*** 25,30 ****
--- 25,31 ----
  #include <sys/stat.h>
  #include <cerrno>
  #include <cstring>
+ #include <unistd.h>
  #include "DiskCache.H"
  #include "globals.H"
$ CPPFLAGS="-fpermissive" ./configure && make # make install && ldconfig
[ツッコミを入れる]
2013年07月30日 Building openshot on Slackware-14.0 [長年日記]
_ Building openshot on Slackware-14.0
pre-require
Python-3.3.2.tar.bz2
$ tar xvvf Python-3.3.2.tar.bz2 $ cd Python-3.3.2 $ export LC_ALL=ja_JP.UTF-8; export LANG=ja_JP.UTF-8 $ ./configure && make # make install && ldconfig
ladspa_sdk.tgz
$ tar xvvf ladspa_sdk.tgz $ cd ladspa_sdk # cp src/ladspa.h /usr/local/include/
frei0r-plugins-1.4.tar.gz
$ tar xvvf frei0r-plugins-1.4.tar.gz $ cd frei0r-plugins-1.4 $ ./configure && make # make install && ldconfig
goocanvas-1.0.0.tar.bz2
$ tar xvvf goocanvas-1.0.0.tar.bz2 $ cd goocanvas-1.0.0 $ ./configure && make # make install && ldconfig
goocanvas-2.0.1.tar.bz2
$ tar xvvf goocanvas-2.0.1.tar.bz2 $ cd goocanvas-2.0.1 $ ./configure --enable-python=yes && make # make install && ldconfig
pygoocanvas-0.14.1.tar.bz2
$ tar xvvf pygoocanvas-0.14.1.tar.bz2 $ cd pygoocanvas-0.14.1 $ ./configure && make # make install && ldconfig
pyxdg-0.25.tar.gz
$ tar xvvf pyxdg-0.25.tar.gz $ cd pyxdg-0.25 # python setup.py install
mlt-0.9.0.tar.gz
$ tar xvvf mlt-0.9.0.tar.gz
$ cd mlt-0.9.0
$ ./configure --enable-gpl  --enable-gpl3 --swig-languages="java perl php python ruby tcl"
$ make
# make install
# cd src/swig/python
# PYTHONSITEPKG=$(python -c "import sys, os; print os.path.join('/usr/lib${LIBDIRSUFFIX}', 'python%s' % sys.version[:3], 'site-packages')")
# install -m755 mlt.py $PYTHONSITEPKG/
# install -m755 _mlt.so $PYTHONSITEPKG/
# install -m755 mlt_wrap.o $PYTHONSITEPKG/
echo "/usr/local/lib/mlt" >>/etc/ld.so.conf && ldconfig
Install blender-2.68.tar.gz
oiio-Release-1.2.0.zip
$ unzip -x oiio-Release-1.2.0.zip
$ cd oiio-Release-1.2.0
$ cat ../oiio-Release-1.2.0.diff
*** ./src/libOpenImageIO/fmath_test.cpp.ORG	2013-07-30 18:57:09.981238833 +0900
--- ./src/libOpenImageIO/fmath_test.cpp	2013-07-30 18:57:41.813284520 +0900
***************
*** 72,79 ****
      OIIO_CHECK_EQUAL ((bit_range_convert<2,20>(3)), 1048575);
      OIIO_CHECK_EQUAL ((bit_range_convert<20,2>(1048575)), 3);
      OIIO_CHECK_EQUAL ((bit_range_convert<20,21>(1048575)), 2097151);
!     OIIO_CHECK_EQUAL ((bit_range_convert<32,32>(4294967295)), 4294967295);
!     OIIO_CHECK_EQUAL ((bit_range_convert<32,16>(4294967295)), 65535);
  // These are not expected to work, since bit_range_convert only takes a
  // regular 'unsigned int' as parameter.  If we need >32 bit conversion,
  // we need to add a uint64_t version of bit_range_convert.
--- 72,79 ----
      OIIO_CHECK_EQUAL ((bit_range_convert<2,20>(3)), 1048575);
      OIIO_CHECK_EQUAL ((bit_range_convert<20,2>(1048575)), 3);
      OIIO_CHECK_EQUAL ((bit_range_convert<20,21>(1048575)), 2097151);
!     OIIO_CHECK_EQUAL ((bit_range_convert<32,32>(4294967295U)), 4294967295U);
!     OIIO_CHECK_EQUAL ((bit_range_convert<32,16>(4294967295U)), 65535);
  // These are not expected to work, since bit_range_convert only takes a
  // regular 'unsigned int' as parameter.  If we need >32 bit conversion,
  // we need to add a uint64_t version of bit_range_convert.
$ patch -p0 <oiio-Release-1.2.0.diff
$ CFLAGS="-march=i586 -Werror" CXXFLAGS="-march=i586 -Werror" make
# mkdir /usr/local/openimageio
# cd dist/linux
# tar cf - . | (cd /usr/local/openimageio && tar xvpif -)
# chown -R root.root /usr/local/openimageio
# echo /usr/local/openimageio/lib >>/etc/ld.so.conf && ldconfig
add PATH setting in ~/.profile
PATH=${PATH}:/usr/local/openimageio/bin
blender-2.68.tar.gz
$ tar xvvf blender-2.68.tar.gz $ cd blender-2.68 $ OPENIMAGEIO_ROOT_DIR=/usr/local/openimageio make # cd ../build_linux/bin # mkdir /usr/local/blender-2.68 # tar cf - . | (cd /usr/local/blender-2.68 && tar xvpif -) # chown -R root.root /usr/local/blender-2.68 # cd /usr/local/bin # ln -s /usr/local/blender-2.68/blender .
Install openshot-1.4.3.tar.gz
$ tar xvvf openshot-1.4.3.tar.gz $ cd openshot-1.4.3 # python setup.py install
[ツッコミを入れる]