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 -




- 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




  Reply Reply to author Forward
Cancel






       Send  Discard




From: abhinav <[EMAIL PROTECTED]>
To:
Cc:
Followup To:
 Add Cc | Add Followup-to | Edit Subject

Subject:



Send  Discard












timeless    View profile
  More options Feb 22, 12:23 pm

Newsgroups: mozilla.dev.embedding
From: "timeless" <[EMAIL PROTECTED]>
Date: 21 Feb 2007 23:23:16 -0800
Local: Thurs, Feb 22 2007 12:23 pm
Subject: Re: Mozilla over GTK DirectFB on ARM
Reply | Reply to author | Forward | Print | Individual message | Show
original | Report this message | Find messages by this author
On Feb 21, 11:29 am, "abhinav" <[EMAIL PROTECTED]> wrote:


> 3. armv5t ----- toolchain


zero, you didn't specify a branch, i'll assume trunk, if you meant
some branch then allow me to suggest you use trunk ...
first, gtk1 is dead.
second, gtk2 is basically dead.
third, you need cairo (specifically gtk2-cairo) - if you don't have
cairo ported yet, worry about that first.
fourth, people build for arm daily and they usually don't run into
problems w/ cross compiling.
fifth, java isn't required.
sixth, not including your mozconfig in your post isn't a good start
seventh, if you have something that's failing, at least list the
thing
that failed and the first error.
eighth, i don't know of "armv5t" as a toolchain, a toolchain includes
a specific compiler (vendor, version, host, target) and linker (...).
from memory the 't' means thumb. - we investigated thumb and I don't
believe we've switched to using it, iirc it caused issues for the
sucky version of gcc we were using (3.4?).

in general, you really shouldn't be running before you crawl.
that means:
1. don't --enable-optimize
2. don't --disable-debug (do --enable-debugger-info-modules)
3. don't --enable-strip (do --disable-strip)
4. don't use exotic flags (thumb, fast math,.... if you can imagine
using it, don't. in fact: don't use any flags, that includes things
like PIC - the build system should select things that work, if you
want to mess it up, do that *last*)


while http://www.mozilla.org/build/cross-compiling.html is /slightly/
out of date, i hope you read it anyway.




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










abhinav    View profile
  More options Mar 8, 4:12 pm

Newsgroups: mozilla.dev.embedding
From: "abhinav" <[EMAIL PROTECTED]>
Date: 8 Mar 2007 03:12:05 -0800
Local: Thurs, Mar 8 2007 4:12 pm
Subject: Re: Mozilla 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 22, 12:23 pm, "timeless" <[EMAIL PROTECTED]> wrote:



- Hide quoted text -
- Show quoted text -

> On Feb 21, 11:29 am, "abhinav" <[EMAIL PROTECTED]> wrote:

> > 3. armv5t ----- toolchain


> zero, you didn't specify a branch, i'll assume trunk, if you meant
> some branch then allow me to suggest you use trunk ...
> first, gtk1 is dead.
> second, gtk2 is basically dead.
> third, you need cairo (specifically gtk2-cairo) - if you don't have
> cairo ported yet, worry about that first.
> fourth, people build for arm daily and they usually don't run into
> problems w/ cross compiling.
> fifth, java isn't required.
> sixth, not including your mozconfig in your post isn't a good start
> seventh, if you have something that's failing, at least list the thing
> that failed and the first error.
> eighth, i don't know of "armv5t" as a toolchain, a toolchain includes
> a specific compiler (vendor, version, host, target) and linker (...).
> from memory the 't' means thumb. - we investigated thumb and I don't
> believe we've switched to using it, iirc it caused issues for the
> sucky version of gcc we were using (3.4?).


> in general, you really shouldn't be running before you crawl.
> that means:
> 1. don't --enable-optimize
> 2. don't --disable-debug (do --enable-debugger-info-modules)
> 3. don't --enable-strip (do --disable-strip)
> 4. don't use exotic flags (thumb, fast math,.... if you can imagine
> using it, don't. in fact: don't use any flags, that includes things
> like PIC - the build system should select things that work, if you
> want to mess it up, do that *last*)


> whilehttp://www.mozilla.org/build/cross-compiling.htmlis /slightly/
> out of date, i hope you read it anyway.



***************************************************************************­
*********************************************************************

PORTING ISSUES
***************************************************************************­
*********************************************************************


Hi,
      I am sorry for my previous post. Anyways i am sending you the
exact details of the problem i am facing while Cross-Compiling
Mozilla
for arm .


Firstly i would like to refresh about my setup :


HOST : i386
TARGET : arm
ToolChain : armv5t
LINUX  : Montavista Linux 2.6.10


The "mozconfig" that i ve got looks like this :


#
# See http://www.mozilla.org/build/ for build instructions.
#


# Options for client.mk.
#mk_add_options MOZ_CO_PROJECT=browser


# Options for 'configure' (same as command-line options).
#ac_add_options --enable-application=browser
#ac_add_options --enable-default-toolkit=gtk2
#ac_add_options --disable-pedantic
#ac_add_options --prefix=$PREFIX
#ac_add_options --without-x
#ac_add_options --enable-pango
#ac_add_options --disable-xft
#ac_add_options --enable-extensions=default,spatialnavigation
#ac_add_options --enable-directfb


mk_add_options MOZ_CO_PROJECT=browser


# Options for 'configure' (same as command-line options).
CROSS_COMPILE=1
LIBIDL_CONFIG=/home/radhika/workdir/filesys/usr/bin/libIDL-config-2
HOST_LIBIDL_CONFIG=/usr/bin/libIDL-config-2
ac_add_options --enable-application=browser
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-pedantic
ac_add_options --prefix=$PREFIX
ac_add_options --enable-debug
ac_add_options --without-x
ac_add_options --disable-gtktest
ac_add_options --disable-tests
#ac_add_options --disable-plugins
ac_add_options --enable-pango
ac_add_options --disable-xft
#ac_add_options --enable-extensions=default,spatialnavigation
ac_add_options --disable-xinerama
ac_add_options --enable-directfb
ac_add_options --with-system-jpeg=/home/radhika/workdir/filesys/usr/
lib
ac_add_options --with-system-zlib=/home/radhika/workdir/filesys/usr/
lib
ac_add_options --with-system-png=/home/radhika/workdir/filesys/usr/
lib
ac_add_options --enable-debug=-g
ac_add_options --enable-logging


/
***************************************************************************­
*******************************************************************/


When configuring i am passing these arguments to the script


./configure --build=i386 --host=arm --target=arm


The error that i am getting on executing make looks like this :


[EMAIL PROTECTED] mozilla]# make
cat: ./config/build_number: No such file or directory
rm -f -rf ./dist/sdk
rm -f -rf ./dist/include
/usr/bin/gmake -C config export
cat: ../config/build_number: No such file or directory
gmake[1]: Entering directory `/root/Abhinav/browser/mozilla/config'
nsinstall.c
gcc -o host_nsinstall.o -c -DXP_UNIX -O2   -I../dist/include -I../
dist/
include -I../dist/include/nspr    -I../dist/sdk/include -I../dist/
include/nspr nsinstall.c
pathsub.c
gcc -o host_pathsub.o -c -DXP_UNIX -O2   -I../dist/include -I../dist/
include -I../dist/include/nspr    -I../dist/sdk/include -I../dist/
include/nspr pathsub.c
gcc -o nsinstall -DXP_UNIX -O2  host_nsinstall.o host_pathsub.o
rm -f nfspwd
cp nfspwd.pl nfspwd
chmod +x nfspwd
rm -f revdepth
cp revdepth.pl revdepth
chmod +x revdepth
/usr/bin/perl -I. ./bdate.pl build_number
rm -f nsBuildID.h
/usr/bin/perl -I. ./aboutime.pl -m ./milestone.txt nsBuildID.h
build_number ./nsBuildID.h.in
/bin/nsinstall -R -m 644 nsBuildID.h ../mozilla-config.h ./
nsStaticComponents.h  ../dist/include
/bin/nsinstall: /bin/nsinstall: cannot execute binary file
gmake[1]: *** [export] Error 126
gmake[1]: Leaving directory `/root/Abhinav/browser/mozilla/config'
make: *** [default] Error 2


/
***************************************************************************­
*******************************************************************/


Moreover the libraries that i am using in my built are :


1. DirectFb-1.0
2. glib-2.12.2
3. atk-1.9.1
4. cairo-1.2.4
5. pango-1.14.0
6. gtk+-2.10.1
7. firefox-1.5.0.3


/
***************************************************************************­
*****************************************************************/


regards
Abhinav

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

Reply via email to