On 10/5/2016 11:30 AM, Richard Hipp wrote:
On 10/5/16, arnoldemu <[email protected]> wrote:
I see that fossil can be built with a batch file "buildmsvc.bat" which uses
the command-line visual studio compiler. It uses some kind of custom build
where the headers which are needed are added to the files and output into a
separate directory. I don't really understand fully how this works and is a
guess from what I have seen so far.
To build using msvc from the command-line:

     cd win
     nmake /f makefile.msc

To get a debug build, just add DEBUG=1 to the nmake command. You might want that to be a clean build the first time so that you get everything built for debugging. You should be able to just use the resulting EXE and PDB files in Visual Studio.

In a 32-bit VisualStudio command prompt where all the compiler tools are available:

    C:>cd win
    C:>nmake /f makefile.msc DEBUG=1

Note that building for 64-bit needs something trickier than just following that recipe from a 64-bit VisualStudio prompt. Fossil will build, but the resulting executable seems to be linked to a mix of 64-bit and 32-bit DLLs, and that can't possibly be the right answer.

Personally, I've never built fossil other than 32-bit on Windows (and usually using GCC via MinGW) and I've never had any issues with it not being a 64-bit build.

There are other configuration options you can choose in a similar way, see the start of Makefile.msc for the complete list.

--
Ross Berteig                               [email protected]
Cheshire Engineering Corp.           http://www.CheshireEng.com/
+1 626 303 1602

_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to