You are not logged in.

#1 2011-10-27 15:39:14

b9anders
Member
Registered: 2007-11-07
Posts: 691

[SOLVED] how to compile transmission for gtk2?

I see the new version of transmission is now compiled againt gtk3.

As an xfce user, I dislike looking at this unthemed eyesore, so as I have done with nm-applet, I figured I would just recompile it for gtk2.

I've pulled the PKGBUILD from ABS and puled in the sources but nowhere in any files can I find reference to an argument I can pass to make it compile against gtk2.

Does anyone know?

Last edited by b9anders (2011-10-27 19:44:30)

Offline

#2 2011-10-27 15:42:46

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] how to compile transmission for gtk2?

you can remove gtk3 from your system and just recompile or you can pass --with-gtk=2 as option to configure


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-10-27 17:42:00

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: [SOLVED] how to compile transmission for gtk2?

wonder wrote:

you can remove gtk3 from your system and just recompile or you can pass --with-gtk=2 as option to configure

I had tried "gtkver=2" as that is what nm-applet wants. Cheers for that. It's not compiling though. I can compile it just fine with gtk3 but when I pass "--with-gtk=2" to configure, I get a lot of "undefined reference" lines before it aborts. These are the final lines of it:


/home/abs/transmission/src/transmission-2.42/gtk/util.c:563: undefined reference to `gtk_widget_show'
util.o: In function `gtr_unrecognized_url_dialog':
/home/abs/transmission/src/transmission-2.42/gtk/util.c:591: undefined reference to `g_string_free'
util.o: In function `gtr_paste_clipboard_url_into_entry':
/home/abs/transmission/src/transmission-2.42/gtk/util.c:618: undefined reference to `g_free'
util.o: In function `gtr_label_set_text':
/home/abs/transmission/src/transmission-2.42/gtk/util.c:631: undefined reference to `gtk_label_set_text'
collect2: ld returned 1 exit status
make[2]: *** [transmission-gtk] Error 1
make[2]: Leaving directory `/home/abs/transmission/src/transmission-2.42/gtk'
make[1]: *** [install-recursive] Error 1

PKGBUILD

Offline

#4 2011-10-27 18:03:24

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] how to compile transmission for gtk2?

sorry, i'm wrong. with-gtk just enabled building the gtk frontend. can be yes or no.

there isn't any way to force building with gtk2. you can do it only if gtk3 is not available


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2011-10-27 19:44:00

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: [SOLVED] how to compile transmission for gtk2?

wonder wrote:

sorry, i'm wrong. with-gtk just enabled building the gtk frontend. can be yes or no.

there isn't any way to force building with gtk2. you can do it only if gtk3 is not available

that did the trick (passing -dd to pacman for temporary removal though. scary number of packages require it even though I don't have a single app that actually runs gtk3).

Thanks. smile

Last edited by b9anders (2011-10-27 19:44:20)

Offline

#6 2011-10-27 19:48:07

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] how to compile transmission for gtk2?

you can start building packages in clean chroots

pacman -S devtools

sudo extra-i686-build or extra-x86_64-build smile

note, chroots are saved in /var/tmp/archbuild


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2011-10-27 20:49:45

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: [SOLVED] how to compile transmission for gtk2?

If you want to build it with gtk2 when gtk3 is installed, you can edit locally configure.ac, the code for that is after line 314.

Last edited by Mad Fish (2011-10-27 20:49:55)

Offline

Board footer

Powered by FluxBB