Mobile/Build/Windows Mobile Build Instructions: Difference between revisions

Line 35: Line 35:
   
   
  $ '''cd mozilla-central'''
  $ '''cd mozilla-central'''
 
  $ '''export topsrcdir=`pwd` # this sets the top source directory to be mozilla-central. mozconfig makes use of this environment variable.'''
  $ '''export topsrcdir=`pwd` # $topsrcdir becomes the path to mozilla-central/
   
   
  $ '''hg clone http://hg.mozilla.org/mobile-browser mobile'''
  $ '''hg clone http://hg.mozilla.org/mobile-browser mobile'''
Line 52: Line 52:
  $ '''hg qpush -a'''
  $ '''hg qpush -a'''
   
   
  $ '''export PATH="$PATH:/c/mozilla/mozilla-central/build/wince/tools/bin"'''
  $ '''export PATH="$PATH:$topsrcdir/build/wince/tools/bin"'''


Include the following in your $PATH so that arm-wince-gcc.exe can be found.
Include the following in your $PATH so that arm-wince-gcc.exe can be found.


  $ '''export PATH="$PATH:/c/mozilla/mozilla-central/build/wince/tools/vs8ppc2003arm" # for VS8'''
  $ '''export PATH="$PATH:$topsrcdir/build/wince/tools/vs8ppc2003arm" # for VS8'''
  $ '''export PATH="$PATH:/c/mozilla/mozilla-central/build/wince/tools/vs9ppc2003arm" # for VS9'''
  $ '''export PATH="$PATH:$topsrcdir/build/wince/tools/vs9ppc2003arm" # for VS9'''




  '''Make sure you have the following options in your mozconfig'''
'''Make sure you have the following options in your mozconfig'''


     ''ac_add_options --disable-printing''
     ''ac_add_options --disable-printing''
Line 66: Line 66:
     ''ac_add_options --disable-oji''
     ''ac_add_options --disable-oji''


  ''' Adjust this for VS8.  If you have VS9, just do this '''
''' Adjust this for VS8.  If you have VS9, just do this '''
     ''ac_add_options --with-wince-sdk="c:/Program Files/Windows Mobile 6 SDK/PocketPC/Include/Armv4i"''
     ''ac_add_options --with-wince-sdk="c:/Program Files/Windows Mobile 6 SDK/PocketPC/Include/Armv4i"''


Line 74: Line 74:




'''NOTE:''' You will have to copy the MOZ_SHUNT.DLL executable file into the ''OBJDIR''\dist\bin\ directory (so that it is in the same directory as xulrunner.exe). You can use the following command from the ''OBJDIR'' directory:
==NOTE after building==
 
To debug fennec in VS8/9, you will have to copy
$ '''cp ../build/wince/shunt/build/vs8/mozce_shunt.dll dist/bin'''
$topsrcdir/build/wince/shunt/build/vs[89]/mozce_shunt.dll
into
''$OBJDIR''\mobile\xulrunner\dist\bin\
so that the .dll file is in the ''same directory'' as where xulrunner.exe is in.


Otherwise, you will receive a ''Could not find 'XULRunner' (or one of its components).  Make sure that the path and filename are correct and that all the required libraries are available.'' error dialog if you try to run XULRunner.exe from a File Explorer.   
Otherwise, you will receive a ''Could not find 'XULRunner' (or one of its components).  Make sure that the path and filename are correct and that all the required libraries are available.'' error dialog if you try to run XULRunner.exe from a File Explorer.