Skip to content

Windows fixes for CMake & Github CI#5

Merged
antimatter15 merged 2 commits into
antimatter15:masterfrom
anzz1:master
Mar 17, 2023
Merged

Windows fixes for CMake & Github CI#5
antimatter15 merged 2 commits into
antimatter15:masterfrom
anzz1:master

Conversation

@anzz1

@anzz1 anzz1 commented Mar 16, 2023

Copy link
Copy Markdown

AI for the masses

  • Fix CMakeLists.txt to fix building on Windows

  • Github CI changes

    • Fixed autobuild for Windows and disabled non-working Mac/Linux builds for now
    • Add feature to manually trigger CI and choose whether to create a new release (workflow_dispatch)
    • Autobuild triggers only on relevant changes (code, not readme) or manually
    • Autorelease triggers only on pushes to master branch or manually

@EliasVincent EliasVincent mentioned this pull request Mar 16, 2023
@antimatter15
antimatter15 merged commit bf24462 into antimatter15:master Mar 17, 2023
@txomon txomon mentioned this pull request Mar 17, 2023
@innovus-h

innovus-h commented Mar 17, 2023

Copy link
Copy Markdown

(Windows 10)
(Input) cmake chat
(Output) CMake Error: The source directory "D:/.../chat" does not exist.

@anzz1

anzz1 commented Mar 17, 2023

Copy link
Copy Markdown
Author

Try:

  mkdir build
  cd build
  cmake ..
  cmake --build . --config Release

@innovus-h

innovus-h commented Mar 17, 2023

Copy link
Copy Markdown

Same error: Cmake\bin is in PATH:

C:..\alpaca.cpp>mkdir build

C:..\alpaca.cpp>cd build

C:..\alpaca.cpp\build>cmake ..
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
-- Configuring incomplete, errors occurred!

C:..\alpaca.cpp\build>"

@anzz1

anzz1 commented Mar 17, 2023

Copy link
Copy Markdown
Author

You are missing a C/C++ compiler according to CMake.
You'll need to have one, for example Clang / MinGW (GCC) / MSVC installed and configured with CMake.

nmake is part of Visual Studio (MSVC) toolchain but you either don't have Visual Studio installed or it is not properly configured. Refer to the CMake documentation on how to configure it for Visual Studio. The environment variables need to be set correctly for command line building with vcvars

You can also use the prebuilt binaries for windows

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

Successfully merging this pull request may close these issues.

3 participants