Has anyone successfully ported MOZILLA with GTK-DirectFB as backend
???..... I am trying to do it but my compilation is failing after
around 60% . It is giving a lot of problems which i would like to
share.

Firstly I would like to tell about my system :


1. TI Davinci (arm926ejs + DM6446) ----- target
2. i386 ----- host
3. armv5t ----- toolchain
4. Montavista Linux-2.6.10 ------ OS


I have successfully ported GTK and DirectFB and i am able to run the
applications without any problem.


Problems faced while building Mozilla :


1. Cross Compilation is giving a hell of a problem as the binaries
generated for arm are required to build mozilla further. So obviously
i
get errors like "FILE IN WRONG FORMAT ".......Somehow its a lil silly
becoz it totally nullifies the  need of Cross-Compilation.......I
would
love to get some tips on this .


2. To overcome this issue , I got the gnu make on my target system
and
started Compiling Mozilla on arm itself. Believe me its a very
irritating idea coz it takes around 2.5 hrs to build around 50%
(obviously the processor speed is a big drawback-----300MHz). My work
was going on well until i got messed up with some java utilities
which
needed "java, javac, javah, jar " tools. I tried to find the Source
for
JDK which i had planned to cross compile for arm but i was not able
to
get it on the net freely.........(If someone can share,it will be a
big
help). The only thing that was close to solving my problem was JDK
built for arm4. But somehow it didn't work as for my system i need
arm5
built.


So here I am, totally stuck up and that too on the verge of getting a
gr8 result.


I need some help and if that can be provided by some of you experts
it
will be a big boost. As for any questions on GTK or DirectFB
......anyone and everyone is most Welcome.


Thanks
Abhinav Pathak




  Reply Reply to author Forward










bsd    View profile
  More options Feb 5, 9:26 pm

Newsgroups: mozilla.dev.embedding
From: bsd <[EMAIL PROTECTED]>
Date: Mon, 5 Feb 2007 08:26:33 -0800 (PST)
Local: Mon, Feb 5 2007 9:26 pm
Subject: Re: Mozilla porting over GTK-DirectFB on arm
Reply | Reply to author | Forward | Print | Individual message | Show
original | Report this message | Find messages by this author

>1. Cross Compilation is giving a hell of a problem as the binaries
>generated for arm are required to build mozilla further. So obviously i
>get errors like "FILE IN WRONG FORMAT ".......Somehow its a lil silly
>becoz it totally nullifies the  need of Cross-Compilation.......I would
>love to get some tips on this .


I am no expert but I have crosscompiled firefox 1.5 with the directfb
patch
applied OK. Once you have things configured OK should compile without
such
problems. Ensure you have libIDL compiled for both your host and
target.

Makesure your .mozconfig has something along the lines of


CROSS_COMPILE=1
LIBIDL_CONFIG=/usr/$MYTARGETCHOST/usr/bin/libIDL-config-2
HOST_LIBIDL_CONFIG=/usr/bin/libIDL-config-2
CXX=$MYTARGETCHOST-gcc
CC=$CXX
ac_add_options --target=$MYTARGETCHOST


substituting $MYTARGETCHOST as appropriate. LIBIDL_CONFIG needs to
point to
a libIDL-config-2 for the target and HOST_LIBIDL_CONFIG to one for the
host.
This is essentially what I used -


'CXX=$MYTARGETCHOST-gcc
CC=$CXX'


may not actually be required but I dont have time to try it without
now.


You may find you need to update build/autoconf/config.sub,
build/autoconf/config.guess,  mozilla/nsprpub/build/autoconf/
config.sub,
mozilla/nsprpub/build/autoconf/config.guess ,
directory/c-sdk/config/autoconf/config.sub,
directory/c-sdk/config/autoconf/config.guess so that it configures
properly
for with your CHOST - perhaps take config.sub and config.guess from
the root
of your gtk+ tree for this.


Once it's configuring correctly you should at least find it's not
trying to
execute binaries built for the target on the host. You'll probably
still hit
further problems - I may be able to help with these if you post the
specific
problems.



>2. To overcome this issue , I got the gnu make on my target system and
>started Compiling Mozilla on arm itself. Believe me its a very
>irritating idea coz it takes around 2.5 hrs to build around 50%
>(obviously the processor speed is a big drawback-----300MHz). My work
>was going on well until i got messed up with some java utilities which
>needed "java, javac, javah, jar " tools. I tried to find the Source for
>JDK which i had planned to cross compile for arm but i was not able to
>get it on the net freely.........(If someone can share,it will be a big
>help). The only thing that was close to solving my problem was JDK
>built for arm4. But somehow it didn't work as for my system i need arm5
>built.


I dont have any java* in my cross compile environment. Perhaps you
can
disable some stuff in your .mozconfig. I disabled alot of stuff with
the
intention of re-enabling it if I needed it. I wanted smallest
possible
build.

Hope this is of some help. Be interesting to hear how you get on.
--
View this message in context: 
http://www.nabble.com/Mozilla-porting-over-GTK-DirectFB-on-arm-tf3034...
Sent from the Mozilla - Embedding mailing list archive at Nabble.com.




  Reply Reply to author Forward     Rate this post:  Text for clearing
space










abhinav    View profile
  More options Feb 21, 2:27 pm

Newsgroups: mozilla.dev.embedding
From: "abhinav" <[EMAIL PROTECTED]>
Date: 21 Feb 2007 01:27:31 -0800
Local: Wed, Feb 21 2007 2:27 pm
Subject: Re: Mozilla porting over GTK-DirectFB on arm
Reply | Reply to author | Forward | Print | Individual message | Show
original | Remove | Report this message | Find messages by this
author
On Feb 5, 9:26 pm, bsd <[EMAIL PROTECTED]> wrote:



- Hide quoted text -
- Show quoted text -

> >1. Cross Compilation is giving a hell of a problem as the binaries
> >generated for arm are required to build mozilla further. So obviously i
> >get errors like "FILE IN WRONG FORMAT ".......Somehow its a lil silly
> >becoz it totally nullifies the  need of Cross-Compilation.......I would
> >love to get some tips on this .

> I am no expert but I have crosscompiled firefox 1.5 with the directfb patch
> applied OK. Once you have things configured OK should compile without such
> problems. Ensure you have libIDL compiled for both your host and target.


> Makesure your .mozconfig has something along the lines of


> CROSS_COMPILE=1
> LIBIDL_CONFIG=/usr/$MYTARGETCHOST/usr/bin/libIDL-config-2
> HOST_LIBIDL_CONFIG=/usr/bin/libIDL-config-2
> CXX=$MYTARGETCHOST-gcc
> CC=$CXX
> ac_add_options --target=$MYTARGETCHOST


> substituting $MYTARGETCHOST as appropriate. LIBIDL_CONFIG needs to point to
> a libIDL-config-2 for the target and HOST_LIBIDL_CONFIG to one for the host.
> This is essentially what I used -


> 'CXX=$MYTARGETCHOST-gcc
> CC=$CXX'


> may not actually be required but I dont have time to try it without now.


> You may find you need to update build/autoconf/config.sub,
> build/autoconf/config.guess,  mozilla/nsprpub/build/autoconf/config.sub,
> mozilla/nsprpub/build/autoconf/config.guess ,
> directory/c-sdk/config/autoconf/config.sub,
> directory/c-sdk/config/autoconf/config.guess so that it configures properly
> for with your CHOST - perhaps take config.sub and config.guess from the root
> of your gtk+ tree for this.


> Once it's configuring correctly you should at least find it's not trying to
> execute binaries built for the target on the host. You'll probably still hit
> further problems - I may be able to help with these if you post the specific
> problems.


> >2. To overcome this issue , I got the gnu make on my target system and
> >started Compiling Mozilla on arm itself. Believe me its a very
> >irritating idea coz it takes around 2.5 hrs to build around 50%
> >(obviously the processor speed is a big drawback-----300MHz). My work
> >was going on well until i got messed up with some java utilities which
> >needed "java, javac, javah, jar " tools. I tried to find the Source for
> >JDK which i had planned to cross compile for arm but i was not able to
> >get it on the net freely.........(If someone can share,it will be a big
> >help). The only thing that was close to solving my problem was JDK
> >built for arm4. But somehow it didn't work as for my system i need arm5
> >built.


> I dont have any java* in my cross compile environment. Perhaps you can
> disable some stuff in your .mozconfig. I disabled alot of stuff with the
> intention of re-enabling it if I needed it. I wanted smallest possible
> build.


> Hope this is of some help. Be interesting to hear how you get on.
> --
> View this message in 
> context:http://www.nabble.com/Mozilla-porting-over-GTK-DirectFB-on-arm-tf3034...
> Sent from the Mozilla - Embedding mailing list archive at Nabble.com.



Sir i tried what you told me but i am still getting the same problem
while cross-compiling. The binaries generated for arm are the ones
which i386 tries to execute. Can you elaborate me the technique and
can you also throw more light as to what changes are needed to be
brougth abt in    build/autoconf/config.guess,  mozilla/nsprpub/
build/
autoconf/config.sub, directory/c-sdk/config/autoconf/config.sub,
directory/c-sdk/config/autoconf/config.guess . I am still a beginner
and so i need a little more elaborate description of solution.

Hope to hear from you soon.


Regards

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to