Another Approach To Building: Difference between revisions

From NARS2000
Jump to navigationJump to search
(New page: == Need to set some system environment variables: == Right click on My Computer and select Properties. Then select the "Advanced" tab and then press the "Environment Variables" button. ...)
 
mNo edit summary
Line 29: Line 29:
REM 7-zip file compression
REM 7-zip file compression
REM double quotes required
REM double quotes required
ZIPPRG <-- "C:\Program Files\7-Zip\7z.exe
ZIPPRG <-- "C:\Program Files\7-Zip\7z.exe"
</pre>
</pre>


Line 118: Line 118:
and copy the contents of the
and copy the contents of the


     include\gsl
     gsl\include\gsl


subdirectory to
subdirectory to


     <proj_root>\gsl
     <proj_root>\gsl


Now copy
Now copy

Revision as of 21:59, 28 December 2009

Need to set some system environment variables:

Right click on My Computer and select Properties. Then select the "Advanced" tab and then press the "Environment Variables" button. Add or verify these system environment variables.

REM Visual Studio 2008 C/C++ compiler
MSVC <-- C:\Program Files\Microsoft Visual Studio 9.0\VC\

REM Contains BISON and GREP
PARDIR <-- C:\tools\GnuWin32

REM Bison Parser Generator
PARGEN <-- C:\tools\GnuWin32\bin\bison.exe

PATH <-- %PARDIR%\bin;C:\tools\PHP\;%PATH%

REM PHP Resource Compile
PHPRC <-- C:\tools\PHP\

REM Windows SDK
SDK <-- C:\Program Files\Microsoft SDKs\Windows\v6.0A\

REM Set by Visual Studio 2008 install
REM Need to access NMAKE
VS90COMNTOOLS <-- c:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\

REM 7-zip file compression
REM double quotes required
ZIPPRG <-- "C:\Program Files\7-Zip\7z.exe"

Modify mk32.bat and mkd32.bat

REM comment out "@echo off"
REM Add the call vsvars32.bat to set more Visual Studio 2008 environment
rem @echo off
call "%VS90COMNTOOLS%vsvars32.bat"

Install PHP, 7-zip, Bison, and Grep On Windows

PHP

PHPMainPage

PHPForWindows

7-zip

Get7Zip

Bison

GetWinBison

Grep

GetWinGrep


Double Quote Some NMAKE Vars In makefile.w32

This make it so Windows filenames with spaces work, such as C:\Program Files\...

Change

    LD=$(MSVC)bin\link.exe
    CC=$(MSVC)bin\cl.exe
    RC=$(SDK)Bin\rc.exe
    ML=$(MSVC)bin\ml.exe

to

    LD="$(MSVC)bin\link.exe"
    CC="$(MSVC)bin\cl.exe"
    RC="$(SDK)Bin\rc.exe"
    ML="$(MSVC)bin\ml.exe"

Set up qdebug

Need to get the qdebug files in

    <proj_root>\RET\D32\qdebug

and

    <proj_root>\RET\ND32\qdebug

The three files are:

    QDebug.pro
    QDEBUG32.DLL
    QDEBUG32.LIB

These come in the NARS2000 developer tools in the file:

    qdebug.zip

You have to click on the "Display All Files" button to see these tools at:

DevTools

Put the GNU Scientific Library in <proj_root>/gsl

Unzip

    gsldir.zip

and copy the contents of the

    gsl\include\gsl

subdirectory to

    <proj_root>\gsl


Now copy

    gsl\libgsl32-double.lib

and

    \gsl\libgsl64-double.lib

to

    <proj_root>\gsl

To get NARS2000 developer tool in the file gsldir.zip you have to click on the "Display All Files" button to see these tools at:

DevTools

--AlanG01 00:49, 29 December 2009 (UTC)