Just to note: I'm using Windows 7 (64 bit) SP1 and MSVS 2010 Pro SP1, so I can't guarantee different configurations will always work correctly the first time.
Download and install the following in their specified order (important!)
Open a Git Bash shell, which can now be found in your Start Menu, and change to the directory where you'd like to clone the dependencies to. Run the following:
git clone -b xul-9.0.1 https://github.com/nightingale-media-player/nightingale-deps.git
This may take awhile.
Now that the repo is cloned, open
C:\mozilla-build-1.9\start-shell-msvc2010.bat. DO NOT USE
Change into the repo directory, and run:
After this has finished, close the terminal.
C:\mozilla-build-1.9\start-shell-msvc2010.bat with a text editor (like Notepad++ or Sublime Text).
Scroll to the bottom and add the following:
set INCLUDE=%INCLUDE%;C:\WinDDK\7600.16385.1\inc\api;C:\WinDDK\7600.16385.1\inc\crt;C:\WinDDK\7600.16385.1\inc\atl71;c:\ng-deps\bison-2.4.1\include;c:\ng-deps\flex-2.5.33\include;c:\ng-deps\regex-0.12\include set LIB=%LIB%;c:\WinDDK\7600.16385.1\lib\wxp\i386;c:\WinDDK\7600.16385.1\lib\Crt\i386;C:\WinDDK\7600.16385.1\lib\ATL\i386;c:\ng-deps\bison-2.4.1;c:\ng-deps\flex-2.5.33\lib;c:\ng-deps\regex-0.12\lib set PATH=%PATH%;c:\WinDDK\7600.16385.1\bin\x86\x86;c:\ng-deps\bison-2.4.1\bin;c:\ng-deps\flex-2.5.33\bin;c:\ng-deps\regex-0.12\bin;c:\ng-deps\binutils-2.24-1\bin
Immediately BEFORE the line:
"%MOZILLABUILD%\msys\bin\bash" --login -i
To build, open “C:\mozilla-build-1.9\start-shell-msvc2010.bat” again, and change to the repo's directory.
Since the Windows dependencies builds are still a work in progress, the process is not as streamlined currently.
If you wish to build XR, which is needed to compile many of the other dependencies, run
fetch-build-xul.sh, which will download the source archive, extract it, and begin building.
You can open
win-dep-build.sh and uncomment lines corresponding to the dependencies you want to build at the moment. You do not need to build libtool, start with gettext. You can then choose which you'd like to build. Note, however, some of the dependencies must be built sequentially, e.g. libogg is needed for libvorbis, which is needed for libtheora.
GTK precompiled packages and explain about converting their .dlls to .libs using the Visual Studio Command Prompt:
dumpbin /exports somefile.dll > somefile.def
cut out extra stuff so it's just the function names
add “EXPORTS” to the top
lib /def:“somefile.def” /out:“somefile.lib” /machine:x86
The last time I checked, these were the MinGW packages I had installed:
libtool: link: cannot find the library `' or unhandled argument `c:/Users/jmurray/Documents/GitHub/nightingale/deps-xul-9.0.1/windows-i686-msvc10/gettext/debug/lib'
This is caused by the ”.la” files in already built dependencies. Specifically, in the
In the “dependency_libs” sections of the files, check to make sure they do NOT start with or contain
c:/<path to deps>/windows-i686-msvc10/<built dep>/<debug|release>/lib. They should have
-Lc:/<path to deps>/windows-i686-msvc10/<built dep>/<debug|release>/lib.
However, entries that do not have the ”-L” prefix but specify a specific library, like
c:/<path to deps>/windows-i686-msvc10/<built dep>/<debug|release>/lib/<some lib>.la, are CORRECT, and do not need to be fixed.