On Feb 22, 12:23 pm, "timeless" <[EMAIL PROTECTED]> wrote:
> 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