Hi, I'm trying to build mozzilla in order to see a good example application of XPCOM. I read somewhere (http://www.ibm.com/ developerworks/webservices/library/co-xpcom3.html) that this was a good way to get a working version. However, that website seemed to be out of date.
I would like to get some sort of "hello world" type of application of XPCOM on which I could conduct further experiements. Any suggestions about how I should get started? In trying to build an example app., I've been trying to build firefox following the directions at http://developer.mozilla.org/en/docs/Build_Documentation I'm downloaded the zip file with the source and I'm trying to build on Windows XP. I have cygwin and MSVC 6.0 installed. When I run: make -f client.mk I get the output shown below. It looks like the first problem is /d/ComponentFrameworks/XPCOM/mozilla/browser/config/version.txt cannot be found. What creates that file? Any ideas how to fix that? The bigger question is, is there a better way to get a simple working example of XPCOM? thanks, Chris ========================== Adding client.mk options from /cygdrive/d/ComponentFrameworks/XPCOM/ mozilla/.mozconfig: MOZ_CO_PROJECT=browser cd /d/ComponentFrameworks/XPCOM/mozilla /d/ComponentFrameworks/XPCOM/mozilla/configure In configure... Adding configure options from /cygdrive/d/ComponentFrameworks/XPCOM/ mozilla/.mozconfig: --disable-optimize --enable-debug --disable-tests --disable-static --enable-shared --enable-win32-target --with-windows-version=500 --enable-application=browser loading cache ./config.cache checking host system type... i686-pc-mingw32 checking target system type... i686-pc-mingw32 checking build system type... i686-pc-mingw32 checking for gcc... (cached) cl checking whether the C compiler (cl ) works... yes checking whether the C compiler (cl ) is a cross-compiler... no checking whether we are using GNU C... (cached) no checking whether cl accepts -g... (cached) no checking for c++... (cached) cl checking whether the C++ compiler (cl ) works... yes checking whether the C++ compiler (cl ) is a cross-compiler... no checking whether we are using GNU C++... (cached) no checking whether cl accepts -g... (cached) no checking for ranlib... (cached) ranlib checking for ml... (cached) /c/cygwin/bin/as checking for ar... (cached) ar checking for ld... (cached) link checking for strip... (cached) strip checking for windres... (cached) windres checking for gawk... (cached) gawk checking for midl... (cached) midl checking for midl flags... none needed checking how to run the C preprocessor... cl checking for mmintrin.h... (cached) no checking how to run the C preprocessor... cl checking how to run the C++ preprocessor... (cached) /lib/cpp checking for a BSD compatible install... (cached) ''\'''\''\'\'''\''/ bin/install -c'\''\'\'''\'''\''' checking whether ln -s works... (cached) no checking for perl5... (cached) /bin/perl checking for minimum required perl version >= 5.004... 5.006001 checking for full perl installation... yes checking for doxygen... (cached) /c/cygwin/bin/doxygen checking for whoami... (cached) /c/cygwin/bin/whoami checking for autoconf... (cached) /bin/autoconf checking for unzip... (cached) /d/mozilla-build//info-zip/unzip checking for zip... (cached) /d/mozilla-build//info-zip/zip checking for makedepend... no checking for xargs... (cached) /bin/xargs checking for make... (cached) /local/bin/make checking for X... (cached) no checking for 64-bit OS... no cat: /d/ComponentFrameworks/XPCOM/mozilla/browser/config/version.txt: No such file or directory creating browser/Makefile can't read /d/ComponentFrameworks/XPCOM/mozilla/browser/Makefile.in: No such file or directory creating browser/app/Makefile can't read /d/ComponentFrameworks/XPCOM/mozilla/browser/app/ Makefile.in: No such file or directory creating browser/app/profile/extensions/Makefile can't read /d/ComponentFrameworks/XPCOM/mozilla/browser/app/profile/ extensions/Makefile.in: No such file or directory creating browser/base/Makefile can't read /d/ComponentFrameworks/XPCOM/mozilla/browser/base/ Makefile.in: No such file or directory Makefile ...several other similar messages regarding Makefile.in creating chrome/tools/chromereg/Makefile can't read /d/ComponentFrameworks/XPCOM/mozilla/chrome/tools/chromereg/ Makefile.in: No such file or directory updating cache ./config.cache creating ./config.status creating config/autoconf.mk creating config/doxygen.cfg creating xpfe/global/buildconfig.html creating toolkit/content/buildconfig.html creating toolkit/components/passwordmgr/resources/content/contents.rdf creating toolkit/mozapps/contents-content.rdf creating gfx/gfx-config.h gfx/gfx-config.h is unchanged creating netwerk/necko-config.h netwerk/necko-config.h is unchanged creating xpcom/xpcom-config.h xpcom/xpcom-config.h is unchanged creating xpcom/xpcom-private.h xpcom/xpcom-private.h is unchanged configuring in nsprpub running /bin/sh /d/ComponentFrameworks/XPCOM/mozilla/nsprpub/ configure --disable-optimize --enable-debug --disable-tests --disable- static --enable-shared --enable-win32-target --with-windows- version=500 --enable-application=browser --with-dist-prefix=d:/ ComponentFrameworks/XPCOM/mozilla/dist --with-mozilla --cache- file=.././config.cache --srcdir=/d/ComponentFrameworks/XPCOM/mozilla/ nsprpub /d/ComponentFrameworks/XPCOM/mozilla/nsprpub/configure: ac_add_options: command not found loading cache .././config.cache checking host system type... i686-pc-mingw32 checking target system type... i686-pc-mingw32 checking build system type... i686-pc-mingw32 checking for cl... (cached) cl configure: error: Missing OS_TARGET for i686-pc-mingw32. Use --enable- win32-target to set. configure: error: /d/ComponentFrameworks/XPCOM/mozilla/nsprpub/ configure failed for nsprpub *** Fix above errors and then restart with "make -f client.mk build" make: *** [/d/ComponentFrameworks/XPCOM/mozilla/Makefile] Error 1 _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
