Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > x86 64-bit Users
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

x86 64-bit Users
For the discussion of Ubuntu on the AMD 64 platform.

 
Thread Tools Display Modes
Old May 23rd, 2006   #21
art
Quad Shot of Ubuntu
 
Join Date: Apr 2005
Beans: 430
Re: How to: Compile Thunderbird 1.5 on 64 bit

OK, at this point I would suggest to start over to be sure what is happening, and compile it with the installer this time (a bit different route but should bring to the same place)
So let's check you have all that is needed to compile again
Code:
sudo apt-get install build-essential libgtk2.0-dev libidl-dev libxt-dev libgnomevfs2-dev
Get the Thunderbird source, and put it in your $HOME, NOT /opt.
Code:
tar jxf thunderbird-1.5.0.2-source.tar.bz2
cd mozilla
make your mozconfig in the current directory as (taken from ubuntu wiki):
Code:
. $topsrcdir/mail/config/mozconfig

export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
ac_add_options --enable-official-branding

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/thunderbird-bin

ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-pango
ac_add_options --with-user-appdir=.mozilla
ac_add_options --with-system-png=/usr
ac_add_options --with-system-jpeg=/usr
ac_add_options --enable-postscript
ac_add_options --disable-installer
ac_add_options --disable-xprint
ac_add_options --enable-crypto
ac_add_options --enable-strip-libs
ac_add_options --enable-canvas
ac_add_options --enable-svg
ac_add_options --enable-svg-renderer=cairo
ac_add_options --enable-system-cairo
ac_add_options --enable-mathml
ac_add_options --disable-tests
ac_add_options --disable-gtktest
ac_add_options --disable-debug
ac_add_options --enable-xft
ac_add_options --enable-optimize=-O3 
ac_add_options --with-system-zlib=/usr
ac_add_options --without-system-nspr
ac_add_options --enable-xinerama
ac_add_options --enable-extensions=default
ac_add_options --disable-pedantic
ac_add_options --disable-long-long-warning
ac_add_options --enable-single-profile
ac_add_options --disable-profilesharing
ac_add_options --enable-gnomevfs
ac_add_options --disable-updater
ac_add_options --enable-application=mail
ac_cv_visibility_pragma=no
mk_add_options MOZ_MAKE_FLAGS=-j2
Code:
make -f client.mk build
make -C thunderbird-bin/mail/installer/
a tar.gz file will be created in $HOME/mozilla/thunderbird-bin/dist/, which you'll install in /opt

Code:
sudo rm -rf /opt/thunderbird
sudo rm -rf /opt/thunderbird_build
Code:
sudo rm /usr/bin/thunderbird
cd /$HOME/mozilla/thunderbird-bin/dist/
sudo tar -C /opt -zxf *.tar.gz
sudo ln -s /opt/thunderbird/thunderbird /usr/bin/thunderbird
Has to work...
art is offline   Reply With Quote
Old May 23rd, 2006   #22
radinator
5 Cups of Ubuntu
 
Join Date: May 2006
Beans: 17
Re: How to: Compile Thunderbird 1.5 on 64 bit

Thanks for the help.

I had to make a minor addition to get it to build:

Code:
mk_add_options MOZ_CO_PROJECT=mail
I went through the procedure, and when I run it (type 'thunderbird') I get:

Code:
/opt/thunderbird/thunderbird-bin: symbol lookup error: /opt/thunderbird/components/libgfx_gtk.so: undefined symbol: pango_xft_get_font_map
I've checked and the libpango1.0 and libxft stuff is already installed.

Ray

Last edited by radinator; May 23rd, 2006 at 02:37 PM..
radinator is offline   Reply With Quote
Old May 23rd, 2006   #23
art
Quad Shot of Ubuntu
 
Join Date: Apr 2005
Beans: 430
Re: How to: Compile Thunderbird 1.5 on 64 bit

Well, try compiling with the:
ac_add_options --enable-pango
removed from .mozconfig. We'll need to go in successive approximations I guess...
art is offline   Reply With Quote
Old May 24th, 2006   #24
radinator
5 Cups of Ubuntu
 
Join Date: May 2006
Beans: 17
Re: How to: Compile Thunderbird 1.5 on 64 bit

Art,

I want to thank you for the help.

Somehow, the problem has been fixed. In between trying these little experiments I would go back to the original recipie and give it a shot again and again. I must have compiled the whole thing 10 times or so, trying little variations and looking for what changed.

In one of your latest posts, you mentioned creating .mozconfig in the <build>/mozilla/ directory where in the original recipie you mentioned putting it in the /home directory. Well, that was the latest change I made.

Somehow in these variations I have a version that works using the original recipie. I'm not exactly sure what the key was, but it now works.

Thank you for your time.

Ray
radinator is offline   Reply With Quote
Old May 24th, 2006   #25
art
Quad Shot of Ubuntu
 
Join Date: Apr 2005
Beans: 430
Re: How to: Compile Thunderbird 1.5 on 64 bit

I am glad it worked. Maybe it was not looking at the right mozconfig indeed...
art is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:33 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry