Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error #141

Open
Nyxie98 opened this issue Jun 29, 2021 · 1 comment
Open

Build Error #141

Nyxie98 opened this issue Jun 29, 2021 · 1 comment

Comments

@Nyxie98
Copy link

Nyxie98 commented Jun 29, 2021

I've spent a while trying to get the CMake to work, but every time I run the given command, I get this error:

CMake Error at CMakeLists.txt:2 (project):
  Running

   'nmake' '-?'

  failed with:

   The system cannot find the file specified


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
@tehKaiN
Copy link
Member

tehKaiN commented Jun 30, 2021

Hi,

I assume you are building on Windows, right? Are you using Bebbo's compiler, or the Bartman's vscode extension?

CMake works by generating build commands for various build systems. On Windows, it defaults to Microsoft's NMake, but we need it to use GNU Make. Try the following:

  • remove all the files in CMake's temporary directory so that we'll be sure it won't use cached values
  • configure it again:
mkdir build && cd build
cmake .. -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=/path/to/AmigaCMakeCrossToolchains/m68k.cmake -DM68K_TOOLCHAIN_PATH=/path/to/toolchain -DM68K_CPU=68000 -DM68K_FPU=soft

The -G "MinGW Makefiles" is something I've missed in the docs. Sorry for that! If you're using msys2/cygwin instead of plain cmd, you may need to specify -G"Unix Makefiles" instead.

Let me know if this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants