forked from electronicarts/CnC_Generals_Zero_Hour
-
Notifications
You must be signed in to change notification settings - Fork 60
build_with_clion_vc6_toolchain
DevGeniusCode edited this page Mar 29, 2025
·
2 revisions
- CLion installed and configured.
- Microsoft Visual C++ 6.0 (VC6) installed (assuming it’s installed in the default directory).
- Source code of the project cloned from the TheSuperHackers repository.
-
Open the cloned folder in CLion and go to File -> Settings -> Build, Execution, Deployment -> Toolchains.
-
Add a new Toolchain by clicking the + button.
-
Select System as the Type (not Visual Studio).
-
Rename the toolchain to Visual Studio 6
-
Next to the toolchain name, add the environment file by clicking the + button and pointing to the following file:
C:\Program Files (x86)\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT
-
Set the paths for the tools:
-
Build Tool: Choose the
NMAKE.EXE
file from VC6. For example:C:/Program Files (x86)/Microsoft Visual Studio/VC98/Bin/NMAKE.EXE
-
C Compiler: The
cl.exe
should be detected automatically. If not, set it manually to:C:/Program Files (x86)/Microsoft Visual Studio/VC98/Bin/cl.exe
-
C++ Compiler: The
cl.exe
will also be detected automatically.
-
- In Cmake profiles, enable the profiles you want to use, like vc6, vc6dgb, vc6int, vc6prof.
- In the target application options, do the following:
- Set Program arguments with your favorite arguments,like
-win, -quickstart, -nologo
. - Set Working directory to the game directory.
- Check the run as administrator option.
- In 'Before launch' section, add a new 'install' step.
- To avoid duplication build, remove the 'Build' step.
- Save the configuration, and you are ready to build and run the project.
- Now, click the Build button in CLion, or click Install in build menu.
- CLion will start the build/install process using the VC6 (x86) toolchain.
- Once the build is successfully completed, a executable file will be generated (and installed in the game directory).
- Working with VC6 requires some adjustments, so it’s always a good idea to check that the toolchain is working properly.
- You can add Release and Debug profiles in CLion to build the project in different configurations.
- Admin rights might be required to run VC6 tools, so make sure to run CLion as an administrator if needed.
- How to Get Involved
- How to Contribution
- Replays for testing
- Community forks
- License
- Credits
- Changelog
- FAQ
- Known Issues
- Contact & Community
-
Visual Studio 6 Guides:
-
Visual Studio 2022 Guides:
- DirectX
- STLport
- Max4SDK
- NVASM
- Benchmark
- MilesSoundSystem
- Bink
- SafeDisk
- Asimp3
- GameSpy
- ZLib
- LZHCompress