Skip to content
Adrien Destugues edited this page Nov 5, 2017 · 3 revisions

Requirements

  • cmake (version 2.8 or newer)
  • A decent C++ compiler (tested with Visual C++ express 2013 Desktop)

Dependencies

LibDSK

The binary releases for windows lack the import library, so you'll need to rebuild everything. Get the source release and import the Visual C++ 6 project (in the win32vc6 folder). The project is automatically migrated.

  • The solution to build is libdsk. You do not need the other parts.
  • Select "release" configuration, then generate the solution (press F7)

You will get the needed libdsk.dll and libdsk.lib files in the Release directory.

Compiling CPCTools

Run the CMake GUI wizard, and select the source directory (the cpctools/cpctools directory in the git project)

  • Select the build directory (usually cpctools/build, but it can be anywhere you like)
  • Press configure once, the configuration will fail because LibDSK is not found
  • Set the LIBDSK_HEADERS_DIR (to "include" in libdsk) and LIBDSK_LIB_DIR (to the "Release" dir generated above)
  • Press configure again. This time it should work.
  • Press Generate and select the Visual Studio 12 generator (or the one matching the compiler you want to use)
  • Open the solution (CPCTools.sln in the build folder) with Visual Studio and generate it (F7 key)
  • Use the ALL_BUILD solution to compile everything. Then use the PACKAGE solution to generate the release zip file with the libcpc and the binaries. Libdsk is automatically included, so you don't need to repackage it.
Clone this wiki locally