Subject: Re: minimo
To: Masahiko Ito <m-ito@mbox.kyoto-inet.or.jp>
From: Andy Ruhl <acruhl@gmail.com>
List: port-hpcmips
Date: 03/11/2005 09:20:56
On Fri, 11 Mar 2005 19:54:22 +0900 (JST), Masahiko Ito
<m-ito@mbox.kyoto-inet.or.jp> wrote:
> Hello all.
>
> From: Andy Ruhl <acruhl@gmail.com>
> Subject: Re: minimo
> Date: Thu, 10 Mar 2005 21:27:55 -0700
> Message-ID: <78a2305a05031020273f135b7b@mail.gmail.com>
>
> acruhl> I tried to build minimo a few times on my Qube, but it never worked.
> acruhl> There is a lot of conflicting info about how to build it, but the
> acruhl> problems I was getting didn't look like config problems, they looked
> acruhl> like code compatibility problems (from what my feeble mind can
> acruhl> comprehend anyway).
> acruhl>
> acruhl> Went back to the above mentioned page and it looks like this guy may
> acruhl> be joining us to tell us about his exploits soon. I can't wait, I'd
> acruhl> really like to see how minimo works on my Mobilepro 880. Dillo is just
> acruhl> about infuriating... mMosaic is slightly better.
> acruhl>
> acruhl> Andy
> acruhl>
>
> Befor I build minimo (with gtk+-1.2.10) on NetBSD/hpcmips, I
> had to install followings.
>
> 1. glib-1.2.10.tar.gz
> =====================
>
> * patch for glib-1.2.10
>
> -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
> *** config.sub.ORG Sat Jan 29 20:00:02 2005
> --- config.sub Sat Jan 29 20:01:23 2005
> ***************
> *** 212,218 ****
> | mipstx39-* | mipstx39el-* | mcore-* \
> | f301-* | armv*-* | t3e-* \
> | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
> ! | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )
> ;;
> # Recognize the various machine names and aliases which stand
> # for a CPU type and a company and sometimes even an OS.
> --- 212,218 ----
> | mipstx39-* | mipstx39el-* | mcore-* \
> | f301-* | armv*-* | t3e-* \
> | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
> ! | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* | hpcmips-*)
> ;;
> # Recognize the various machine names and aliases which stand
> # for a CPU type and a company and sometimes even an OS.
> -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
>
> * tar xvzf glib-1.2.10.tar.gz
> * cd glib-1.2.10
> * patch <patch_for_glib-1.2.10
> * ./configure
> * make
> * make install
>
> 2. gtk+-1.2.10.tar.gz
> =====================
>
> * patch1 for gtk+-1.2.10
>
> -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
> *** config.sub.ORG Sat Jan 29 20:36:10 2005
> --- config.sub Sat Jan 29 20:36:49 2005
> ***************
> *** 212,218 ****
> | mipstx39-* | mipstx39el-* | mcore-* \
> | f301-* | armv*-* | t3e-* \
> | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
> ! | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )
> ;;
> # Recognize the various machine names and aliases which stand
> # for a CPU type and a company and sometimes even an OS.
> --- 212,218 ----
> | mipstx39-* | mipstx39el-* | mcore-* \
> | f301-* | armv*-* | t3e-* \
> | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
> ! | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* | hpcmips-* )
> ;;
> # Recognize the various machine names and aliases which stand
> # for a CPU type and a company and sometimes even an OS.
> -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
>
> * patch2 for gtk+-1.2.10
> If you don't use multibyte character, this patch is not needed.
>
> -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
> *** configure.ORG Wed Feb 23 13:05:21 2005
> --- configure Wed Feb 23 13:46:31 2005
> ***************
> *** 76,81 ****
> --- 76,83 ----
> --disable-glibtest Do not try to compile and run a test GLIB program"
> ac_help="$ac_help
> --with-x use the X Window System"
> + ac_help="$ac_help
> + --with-xlocale force use X_LOCALE"
>
> # Initialize some variables set by options.
> # The variables have the same names as the options, with
> ***************
> *** 427,432 ****
> --- 429,437 ----
> # Obsolete; use --with-x.
> with_x=yes ;;
>
> + --with-xlocale)
> + with_xlocale=yes ;;
> +
> -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
> | --x-incl | --x-inc | --x-in | --x-i)
> ac_prev=x_includes ;;
> ***************
> *** 5845,5850 ****
> --- 5850,5859 ----
> need_x_locale=yes
> fi
> rm -fr conftest*
> + fi
> +
> + if test "x$with_xlocale" = xyes; then
> + need_x_locale=yes
> fi
>
> echo "$ac_t""$need_x_locale" 1>&6
> -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
>
> * tar xvzf gtk+-1.2.10.tar.gz
> * cd gtk+-1.2.10
> * patch <patch1_for_gtk+-1.2.10
> * patch <patch2_for_gtk+-1.2.10
> * ./configure --with-locale=ja_JP.eucJP --with-xlocale
> It seem that locale function of NetBSD/hpcmips is broken :-<, so `--with-xlocale'
> option use X_LOCALE force.
> If you don't use multibyte character, `--with-xlocale' option is not needed.
> * make
> * make install
>
> 3. libIDL-0.6.8.tar.gz
> ======================
>
> * patch for libIDL-0.6.8
>
> -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
> *** config.sub.ORG Sun Jan 30 01:04:19 2005
> --- config.sub Sun Jan 30 01:05:10 2005
> ***************
> *** 207,213 ****
> | mipstx39-* | mipstx39el-* \
> | f301-* | armv*-* | t3e-* \
> | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
> ! | thumb-* | v850-* | d30v-* | tic30-* | c30-* )
> ;;
> # Recognize the various machine names and aliases which stand
> # for a CPU type and a company and sometimes even an OS.
> --- 207,213 ----
> | mipstx39-* | mipstx39el-* \
> | f301-* | armv*-* | t3e-* \
> | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
> ! | thumb-* | v850-* | d30v-* | tic30-* | c30-* | hpcmips-*)
> ;;
> # Recognize the various machine names and aliases which stand
> # for a CPU type and a company and sometimes even an OS.
> -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
>
> * tar xvzf libIDL-0.6.8.tar.gz
> * cd libIDL-0.6.8
> * patch <patch_for_libIDL-0.6.8
> * ./configure
> * make
> * make install
>
> 4. unzip551.tar.gz
> ==================
>
> * tar xvzf unzip551.tar.gz
> * cd unzip-5.51
> * ln -s unix/Makefile .
> * make
> * make install
>
> 5. zip23.tar.gz
> ===============
>
> * tar xvzf zip23.tar.gz
> * cd zip-2.3
> * ln -s unix/Makefile .
> * make
> * make install
>
> I think the biggest problem to build minimo for NetBSD/hpcmips that
> gcc(2.95.3) generate broken assembler source when combination of -fPIC
> option and switch-case sentence. and as got error like
>
> {standard input}: Assembler messages:
> {standard input}:2218: Fatal error: {standard input}:997: bad return from bfd_install_relocation
> gmake[1]: *** [nsObsoleteAStringThunk.o] Error 1
>
> so I changed switch-case sentence to if-else sentence when
> `bfd_install_relocation' error happened. This is my main work to
> resolve problems of building minimo.
>
> patch is here.
>
> -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
> begin 644 firefox-1.0-netbsd-hpcmips.diff.gz
> M'XL("*=$,4(``VUO>FEL;&$N9&EF9@#E6GMSVD@2_]OY%+,DFP/,2P)LP(NK
> M"`:;#38^P)O<U5:QLAA`9R$1:;#C\^:[7_>,$*,'#Y.]VKI;56+FT=/3T]/]
> MFYZ6QL9D0K*Z0^;VOPW3U'*]_F5>MZV),5TZ=-6Z;GF33J?C:8\&2XOT=$:*
> M"E%.:LIIK5PA:J%0>I/-9J.,CC[1,;G6'$*J!&@5I58\1?(RSB`_?,9R\:20
> M@3]EPIN0XZJI2J"6?4/\I]GN-BX']<0[42#93UHF^W5JLX1,]/FS3^85HX1G
> M9V^.>6&VT.?&PDVGO/J.:8[WG>9X-8V@IJZFKZ<F)%X5Y=.33+E<4215E"N@
> MBG)56:FBU6OC<$*.PDO(^FLX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A;WW,0``
> `
> end
> -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
>
> * tar xvzf firefox-1.0-source.tar.bz2
> * cd mozilla
> * zcat /somewhere/firefox-1.0-netbsd-hpcmips.diff.gz | patch -p1
> * vi .mozconfig
>
> export MOZ_PHOENIX=1
> mk_add_options MOZ_PHOENIX=1
>
> ac_add_options --disable-ldap
> ac_add_options --disable-mailnews
> ac_add_options --enable-extensions=cookie,xmlextras
> ac_add_options --enable-crypto
> ac_add_options --disable-composer
> ac_add_options --enable-single-profile
> ac_add_options --disable-profilesharing
> ac_add_options --enable-optimize
> ac_add_options --disable-debug
> ac_add_options --enable-default-toolkit=gtk
> ac_add_options --disable-xft
> ac_add_options --disable-freetype2
> ac_add_options --disable-profilesharing
> ac_add_options --disable-profilelocking
> ac_add_options --enable-single-profile
> ac_add_options --disable-accessibility
> ac_add_options --disable-composer
> ac_add_options --enable-plaintext-editor-only
> ac_add_options --disable-postscript
> ac_add_options --disable-mathml
> ac_add_options --disable-jsd
> ac_add_options --disable-installer
> ac_add_options --disable-xprint
> ac_add_options --disable-necko-disk-cache
> ac_add_options --enable-necko-small-buffers
> ac_add_options --disable-logging
> ac_add_options --disable-tests
> ac_add_options --enable-crypto
> ac_add_options --enable-necko-protocols=http,file,res,jar
> ac_add_options --enable-image-decoders=png,gif,jpeg
> ac_add_options --enable-strip
> ac_add_options --enable-reorder
>
> * make -f client.mk build
> * cd xpinstall/packager
> * make MOZILLA_BIN=../../dist/bin/firefox
> * cd ../../embedding/config
> * make
> * cd ../../dist/
> * tar cf - Embed ; (cd ~ && tar xvf -)
> * vi ~/Embed/greprefs/all.js
>
> if you need, edit this.
>
> example
> =======
>
> pref("network.proxy.type", 1);
> pref("network.proxy.ftp", "192.168.0.100");
> pref("network.proxy.ftp_port", 8080);
> pref("network.proxy.http", "192.168.0.100");
> pref("network.proxy.http_port", 8080);
> pref("network.proxy.ssl", "192.168.0.100");
> pref("network.proxy.ssl_port", 8080);
> pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, 192.168.0.0/24");
>
> * cd ~/Embed/
> * ./run-mozilla.sh ./TestGtkEmbed http://www.yahoo.com/
>
> I have done build of minimo(+gtk+-1.2.10) and I can run minimo, but
> this minimo replied *no* reaction when any button on web page was
> clicked :-<
>
> Next, I tried to build minimo with gtk+-2.2.4, but this minimo dead
> with message
>
> new_gtk_browser
> menu bar
> tool bar
> location bar
> status bar
> Segmentation fault - core dumped
>
> This is my current status of building minimo.
Thanks a lot for that info! Too bad it doesn't work yet. There aren't
any very nice options for "lightweight" browswers in my opinion. The
screenshots you have of Minimo are very promising.
Andy