![]() The aforementioned command will display the version. Further on, check if you are able to execute the command with its absolute path: /usr/bin/make -version. To do so, use the ls function to check the content of the /usr/bin/make directory: ls /usr/bin/make. Then you have to modify the CMake module path so that it can be found. cmake tries to determine the platform you use, and will look for the requires tools. Before fixing the error, first, you need to verify if make is installed on your system. In order to use it you have to place it somewhere in your project for instance into a cmake subdirectory. REQUIRED_VARS SDL2_LIBRARY SDL2_INCLUDE_DIR So I cannot call this from within ADDCUSTOMCOMMAND. NOTE: If this package has multiple flavors (see below), then use one. Windows sees the file with the 'pwd' command in C:MSysbin as an ordinary file, not an executable. To add the package, run one of these commands: pkg install devel/cmake pkg install cmake. However, the CMake documentation seems to rule this out: not compatible with a Windows command prompt. MSys installed on my machine, but the pwd 'command' is not really a command (i.e.exe) under MSys, but a shell script, which invokes the shell command 'pwd'. How to proceed Is there a chance to work around the sh.exe problem Other advice on the web suggests to use -G 'MSYS Makefiles'. You can use the following code: cmake_minimum_required (VERSION 3.7 ) project (SDL2Test ) find_package (SDL2 REQUIRED ) include_directories ( $ ) include (FindPackageHandleStandardArgs ) FIND_PACKAGE_HANDLE_STANDARD_ARGS (SDL bash: cmake: command not found bash: cmake: command not found. Somewhere it’s suggested to add -DCMAKESH'CMAKESH-NOTFOUND', which, however, has no effect. Again, those errors do not happen when invoking cmake from CMD (even though I usually use MSYS2s own bash/MINGW64 shell, I did try from CMD to see if it was a VSC/CMake Tools issue). You need to create a CMakeLists.txt file for your project that includes SDL2 Also when configuring, I get this error: cmake CMake Error: CMAKEAR was not found, please set to archive program. In thisīlog post I will describe the necessary steps to use SDL2 with CMake on both ![]() Then I thought I need to automate it rather than providing -G MSYS Makefiles from the command line manually, so I modified CMakeLists. Together with CMake to build a cross platform multimedia application. I go to command line (which is msys) and generate MSYS Makefiles with mkdir build & cd build & cmake. SDL2 is the newest version of the Simple Directmedia Layer API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |