You are not logged in.

#1 2009-05-06 21:33:50

tjwallace
Member
Registered: 2009-03-07
Posts: 40
Website

ruby-gtkmozembed

I am trying to get this to work so I can try http://redcareditor.com/ but I am having problems:

==> Making package: ruby-gtkmozembed 0.18.1-1 x86_64 (Wed May  6 17:28:00 EDT 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found ruby-gnome2-all-0.18.1.tar.gz in build dir
==> Validating source files with md5sums...
    ruby-gnome2-all-0.18.1.tar.gz ... Passed
==> Extracting Sources...
  -> bsdtar -x -f ruby-gnome2-all-0.18.1.tar.gz
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
Package qt-mt was not found in the pkg-config search path.
Perhaps you should add the directory containing `qt-mt.pc'
to the PKG_CONFIG_PATH environment variable
Package 'qt-mt', required by 'avahi-qt3', not found
checking for GCC... yes
checking for rb_define_alloc_func() in ruby.h... yes
checking for rb_block_proc() in ruby.h... yes
checking for new allocation framework... yes
checking for attribute assignment... yes
xulrunner-gtkmozembed is not found.
firefox-gtkmozembed is not found.
mozilla-gtkmozembed is found.
checking for gtk+-2.0... yes
checking for mozilla-gtkmozembed... yes
checking for G_PLATFORM_WIN32... no
checking for main() in -lgtkembedmoz... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/bin/ruby
    --with-pkg-config
    --without-pkg-config
    --with-gtkembedmozlib
    --without-gtkembedmozlib
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.
    Aborting...

mkmf.log for more detail:

"gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I.    -march=x86-64 -mtune=generic -O2 -pipe  -fPIC     -c conftest.c"
checked program was:
/* begin */
1: /*top*/
2: #ifndef __GNUC__
3: # error
4: >>>>>> __GNUC__ undefined <<<<<<
5: #endif
/* end */

have_func: checking for rb_define_alloc_func() in ruby.h... -------------------- yes

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I.    -I/usr/lib/ruby/site_ruby/1.8/x86_64-linux  -march=x86-64 -mtune=generic -O2 -pipe  -fPIC   -Wall conftest.c  -L. -L/usr/lib -Wl,-R/usr/lib -L.  -rdynamic -Wl,-export-dynamic     -lruby-static  -lpthread -ldl -lcrypt -lm   -lc"
checked program was:
/* begin */
1: #include <ruby.h>
2: 
3: /*top*/
4: int main() { return 0; }
5: int t() { void ((*volatile p)()); p = (void ((*)()))rb_define_alloc_func; return 0; }
/* end */

--------------------

have_func: checking for rb_block_proc() in ruby.h... -------------------- yes

"gcc -o conftest -I. -I/usr/lib/ruby/1.8/x86_64-linux -I.    -I/usr/lib/ruby/site_ruby/1.8/x86_64-linux  -march=x86-64 -mtune=generic -O2 -pipe  -fPIC   -Wall conftest.c  -L. -L/usr/lib -Wl,-R/usr/lib -L.  -rdynamic -Wl,-export-dynamic     -lruby-static  -lpthread -ldl -lcrypt -lm   -lc"
checked program was:
/* begin */
1: #include <ruby.h>
2: 
3: /*top*/
4: int main() { return 0; }
5: int t() { void ((*volatile p)()); p = (void ((*)()))rb_block_proc; return 0; }
/* end */

--------------------

"gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I.    -I/usr/lib/ruby/site_ruby/1.8/x86_64-linux  -march=x86-64 -mtune=generic -O2 -pipe  -fPIC   -Wall   -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: #include "node.h"
3: int node_attrasgn = (int)NODE_ATTRASGN;
/* end */

"gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I.    -I/usr/lib/ruby/site_ruby/1.8/x86_64-linux  -march=x86-64 -mtune=generic -O2 -pipe  -fPIC   -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -fshort-wchar -I/usr/include/xulrunner-1.9/unstable -I/usr/include/nspr     -c conftest.c"
conftest.c:4:3: error: #error 
conftest.c:5: error: expected identifier or '(' before '>>' token
checked program was:
/* begin */
1: #include <glibconfig.h>
2: /*top*/
3: #ifndef G_PLATFORM_WIN32
4: # error
5: >>>>>> G_PLATFORM_WIN32 undefined <<<<<<
6: #endif
/* end */

have_library: checking for main() in -lgtkembedmoz... -------------------- no

"gcc -o conftest -I/home/jeff/builds/ruby-gtkmozembed/src/ruby-gnome2-all-0.18.1/gtkmozembed/gtk/src -I/home/jeff/builds/ruby-gtkmozembed/src/ruby-gnome2-all-0.18.1/gtk/src -I/home/jeff/builds/ruby-gtkmozembed/src/ruby-gnome2-all-0.18.1/gtkmozembed/glib/src -I/home/jeff/builds/ruby-gtkmozembed/src/ruby-gnome2-all-0.18.1/glib/src -I. -I/usr/lib/ruby/1.8/x86_64-linux -I.    -I/usr/lib/ruby/site_ruby/1.8/x86_64-linux  -march=x86-64 -mtune=generic -O2 -pipe  -fPIC   -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -fshort-wchar -I/usr/include/xulrunner-1.9/unstable -I/usr/include/nspr   -DDEFAULT_MOZILLA_FIVE_HOME='"/usr/lib/xulrunner-devel-1.9/lib"'  conftest.c  -L. -L/usr/lib -Wl,-R/usr/lib -L.  -rdynamic -Wl,-export-dynamic  -L/usr/lib/xulrunner-devel-1.9/lib -Wl,-rpath /usr/lib/xulrunner-devel-1.9/lib     -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl   -lruby-static -lgtkembedmoz  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl   -lpthread -ldl -lcrypt -lm   -lc"
/usr/bin/ld: cannot find -lgtkembedmoz
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */

"gcc -o conftest -I/home/jeff/builds/ruby-gtkmozembed/src/ruby-gnome2-all-0.18.1/gtkmozembed/gtk/src -I/home/jeff/builds/ruby-gtkmozembed/src/ruby-gnome2-all-0.18.1/gtk/src -I/home/jeff/builds/ruby-gtkmozembed/src/ruby-gnome2-all-0.18.1/gtkmozembed/glib/src -I/home/jeff/builds/ruby-gtkmozembed/src/ruby-gnome2-all-0.18.1/glib/src -I. -I/usr/lib/ruby/1.8/x86_64-linux -I.    -I/usr/lib/ruby/site_ruby/1.8/x86_64-linux  -march=x86-64 -mtune=generic -O2 -pipe  -fPIC   -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -fshort-wchar -I/usr/include/xulrunner-1.9/unstable -I/usr/include/nspr   -DDEFAULT_MOZILLA_FIVE_HOME='"/usr/lib/xulrunner-devel-1.9/lib"'  conftest.c  -L. -L/usr/lib -Wl,-R/usr/lib -L.  -rdynamic -Wl,-export-dynamic  -L/usr/lib/xulrunner-devel-1.9/lib -Wl,-rpath /usr/lib/xulrunner-devel-1.9/lib     -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl   -lruby-static -lgtkembedmoz  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl   -lpthread -ldl -lcrypt -lm   -lc"
/usr/bin/ld: cannot find -lgtkembedmoz
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: /*top*/
2: int main() { return 0; }
3: int t() { main(); return 0; }
/* end */

--------------------

And the PKGBUILD:

# Maintainer: Jeff Wallace <jeff@tjwallace.ca>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=ruby-gtkmozembed
pkgver=0.18.1
pkgrel=1
pkgdesc="Ruby GtkMozEmbed bindings"
arch=('i686' 'x86_64')
url="http://ruby-gnome2.sourceforge.jp"
license=('LGPL')
depends=('ruby' 'gtk2' 'nspr')
source=(http://dl.sourceforge.net/sourceforge/ruby-gnome2/ruby-gnome2-all-$pkgver.tar.gz)
md5sums=('7b312986a9098cbfa180b3ae46cee063')

build() {
  cd $startdir/src/ruby-gnome2-all-$pkgver/gtkmozembed
  ruby extconf.rb
  make || return 1
  make DESTDIR=$startdir/pkg install
}

From the mkmf.log file, it looks like I need the lgtkembedmoz library but I'm not sure where to get it...

Offline

#2 2009-05-06 21:52:27

tjwallace
Member
Registered: 2009-03-07
Posts: 40
Website

Re: ruby-gtkmozembed

Whoops...  This thread might need to be moved to PKGBUILDs & ABS Support.

Offline

#3 2009-05-07 09:48:31

syntaxerrormmm
Member
From: Italy
Registered: 2008-10-22
Posts: 80
Website

Re: ruby-gtkmozembed

From my understanding, libgtkembedmoz.so should be made available from firefox, mozilla or something like that.
I tried to download and search for something more precise, but only came out with --with-embedding-profile option to firefox-3.0.10 configure.

HTH


syntaxerrormmm - Homepage

Offline

#4 2009-05-07 14:25:41

tjwallace
Member
Registered: 2009-03-07
Posts: 40
Website

Re: ruby-gtkmozembed

syntaxerrormmm wrote:

From my understanding, libgtkembedmoz.so should be made available from firefox, mozilla or something like that.
I tried to download and search for something more precise, but only came out with --with-embedding-profile option to firefox-3.0.10 configure.

HTH

That's what I thought too, but I have firefox, firefox-3.5 and firefox-nightly installed...

Offline

#5 2009-05-11 06:57:55

Gigamo
Member
Registered: 2008-01-19
Posts: 394

Re: ruby-gtkmozembed

Install 'xulrunner-1-8' from the AUR and it should work fine. Had the same problem :-)

Offline

#6 2009-05-11 07:45:27

tjwallace
Member
Registered: 2009-03-07
Posts: 40
Website

Re: ruby-gtkmozembed

Thanks for the help.

I couldn't get xulrunner-1.8 to build but I guess that is another problem...

make[4]: *** [nsAppRunner.o] Error 1
make[4]: Leaving directory `/tmp/yaourt-tmp-jeff/aur-xulrunner-1.8/xulrunner-1.8/src/xulrunner-1.8.1.14/toolkit/xre'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/tmp/yaourt-tmp-jeff/aur-xulrunner-1.8/xulrunner-1.8/src/xulrunner-1.8.1.14/toolkit'
make[2]: *** [tier_50] Error 2
make[2]: Leaving directory `/tmp/yaourt-tmp-jeff/aur-xulrunner-1.8/xulrunner-1.8/src/xulrunner-1.8.1.14'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-jeff/aur-xulrunner-1.8/xulrunner-1.8/src/xulrunner-1.8.1.14'
make: *** [build] Error 2

I also tried with xulrunner-1.9 but still no luck.

Offline

#7 2009-05-27 02:30:20

lf
Member
Registered: 2008-05-01
Posts: 17

Re: ruby-gtkmozembed

tjwallace wrote:

Thanks for the help.

I couldn't get xulrunner-1.8 to build but I guess that is another problem...

make[4]: *** [nsAppRunner.o] Error 1
make[4]: Leaving directory `/tmp/yaourt-tmp-jeff/aur-xulrunner-1.8/xulrunner-1.8/src/xulrunner-1.8.1.14/toolkit/xre'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/tmp/yaourt-tmp-jeff/aur-xulrunner-1.8/xulrunner-1.8/src/xulrunner-1.8.1.14/toolkit'
make[2]: *** [tier_50] Error 2
make[2]: Leaving directory `/tmp/yaourt-tmp-jeff/aur-xulrunner-1.8/xulrunner-1.8/src/xulrunner-1.8.1.14'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-jeff/aur-xulrunner-1.8/xulrunner-1.8/src/xulrunner-1.8.1.14'
make: *** [build] Error 2

I also tried with xulrunner-1.9 but still no luck.

Is this related? http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505606

Offline

Board footer

Powered by FluxBB