My .mozconfig looks like this:
Code: Select all
ac_add_options --enable-application=suite
mk_add_options MOZ_OBJDIR=c:/msrc/comm-central/src/obj-sm-release
And I run the process in this way, capturing output in a log file:
Code: Select all
mozmake -f client.mk > build.log 2>&1
The build process ends after a few minutes and I can spot this error at the end of the log:
Code: Select all
mozmake[4]: Entering directory 'c:/msrc/comm-central/src/obj-sm-release/extensions/inspector'
c:/msrc/comm-central/src/mozilla/config/config.mk:47: *** Variable PREF_JS_EXPORTS is defined in c:/msrc/comm-central/src/obj-sm-release/extensions/inspector/Makefile. It should only be defined in moz.build files. Stop.
mozmake[4]: Leaving directory 'c:/msrc/comm-central/src/obj-sm-release/extensions/inspector'
c:/msrc/comm-central/src/mozilla/config/recurse.mk:82: recipe for target 'extensions/inspector/export' failed
mozmake[3]: *** [extensions/inspector/export] Error 2
Any idea what went wrong?
Another problem - this happened earlier when I was trying to build an earlier 2.32b3 release from source downloaded via mozilla ftp. For some reason I didn't get the inspector error above but another error later in the process:
Code: Select all
mozmake[4]: Entering directory 'c:/msrc/comm-beta/obj-sm-release/mailnews/import/outlook/src'
mkdir -p '.deps/'
MapiApi.cpp
c:/msrc/comm-beta/obj-sm-release/_virtualenv/Scripts/python.exe -m mozbuild.action.cl cl -FoMapiApi.obj -c -I../../../../dist/stl_wrappers -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DOSTYPE=\"WINNT6.1\" -DOSARCH=WINNT -DNO_NSPR_10_SUPPORT -Ic:/msrc/comm-beta/mailnews/import/outlook/src -I. -Ic:/msrc/comm-beta/mailnews/import/outlook/src/../../src -I../../../../dist/include -Ic:/msrc/comm-beta/obj-sm-release/dist/include/nspr -Ic:/msrc/comm-beta/obj-sm-release/dist/include/nss -MD -FI ../../../../dist/include/mozilla-config.h -DMOZILLA_CLIENT -TP -nologo -D_HAS_EXCEPTIONS=0 -W3 -Gy -arch:IA32 -FS -wd4251 -wd4244 -wd4267 -wd4345 -wd4351 -wd4482 -wd4800 -wd4819 -we4553 -GR- -DNDEBUG -DTRIMMED -Zi -Zi -UDEBUG -DNDEBUG -O1 -Oi -Oy -Fdgenerated.pdb c:/msrc/comm-beta/mailnews/import/outlook/src/MapiApi.cpp
MapiMessage.cpp
MapiApi.cpp
c:\msrc\comm-beta\mailnews\import\outlook\src\MapiApi.h(16) : fatal error C1083: Cannot open include file: 'mapix.h': No such file or directory
c:/msrc/comm-beta/config/rules.mk:966: recipe for target 'MapiApi.obj' failed
mozmake[4]: *** [MapiApi.obj] Error 2
I suppose this was something to do with MAPI Header Files but I had those installed and I added C:\Office 2010 Developer Resources\Outlook 2010 MAPI Headers to the INCLUDE environment variable and then tried also with the PATH variable but still the compiler apparently couldn't find mapix.h. What do to about it?
I haven't yet experienced the mapix.h error in trying to build from comm-central today but I suspect I may get to it if I manage somehow to go past the first error with the inspector.
Edit: As to the MAPI issue I think I missed this part from the instructions: "You should copy the header files to a Windows SDK include directory so that the build process will find the files, for example to C:\Program Files (x86)\Windows Kits\8.1\Include\shared.". I've done that now so I hope at least this problem will go away. We'll see..