Difference between revisions of "Building with MSVC"

From ReactOS Wiki
Jump to: navigation, search
(Setting up the environment)
(Setting up the environment)
Line 7: Line 7:
 
2. Tools -> Options -> Projects and Solutions -> VC++ Directories, Executable files, add path to X:\RosBE\4.1.3\bin (provided you have as.exe file from RosBE in that directory).
 
2. Tools -> Options -> Projects and Solutions -> VC++ Directories, Executable files, add path to X:\RosBE\4.1.3\bin (provided you have as.exe file from RosBE in that directory).
  
3. In the same dialog as above, set paths to WDK includes (F:\WinDDK\6000\inc\api, F:\WinDDK\6000\inc\ddk)
+
3. In the same dialog as above, set paths to WDK includes (F:\WinDDK\6000\inc\api, F:\WinDDK\6000\inc\crt, F:\WinDDK\6000\inc\ddk)
  
 
4. In the same dialog as above, set paths to WDK libraries for linking
 
4. In the same dialog as above, set paths to WDK libraries for linking

Revision as of 12:18, 14 August 2007

Building the kernel with MSVC 9.0 (codename Orcas)

Setting up the environment

1. Install MSVC and WDK

2. Tools -> Options -> Projects and Solutions -> VC++ Directories, Executable files, add path to X:\RosBE\4.1.3\bin (provided you have as.exe file from RosBE in that directory).

3. In the same dialog as above, set paths to WDK includes (F:\WinDDK\6000\inc\api, F:\WinDDK\6000\inc\crt, F:\WinDDK\6000\inc\ddk)

4. In the same dialog as above, set paths to WDK libraries for linking

Making / compiling the project

1. "make msvc9" on a tree, this will result in a project files being created automatically, and a big ReactOS_auto.sln solution file with ALL projects there. Beware, it's huge!

2. Open up the solution in the MSVC, change Configuration to "Release" or "Debug" (but not the one with "ReactOS Headers").

Unsolved problems

1. zw.S for ntoskrnl is being generated in obj-i386/ntoskrnl/ex directory, but msvc project looks up in source tree ntoskrnl/ex dir. Temporary solved by either copying the file, or re-adding the file from the correct place.