badlogic / vscode-dos-dev-extension

Visual Studio Code DOS development extension
MIT License
30 stars 3 forks source link

MacOS issue #8

Open terriblefire opened 2 months ago

terriblefire commented 2 months ago

Trying this clean on a MacOS install with latest VSCode.

Started by Installing the tools then running Dos: Init Project.

But it looks like the compiler is not being picked up by cmake

[main] Configuring project: dostest 
[proc] Executing command: /usr/local/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_MAKE_PROGRAM=/Users/stephen/.dos/ninja --no-warn-unused-cli -S/Users/stephen/git/dostest -B/Users/stephen/git/dostest/build -G Ninja
[cmake] Not searching for unused variables given on the command line.
[cmake] -- The C compiler identification is AppleClang 15.0.0.15000309
[cmake] -- The CXX compiler identification is AppleClang 15.0.0.15000309
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - done
[cmake] -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
[cmake] -- Detecting C compile features
[cmake] -- Detecting C compile features - done
[cmake] -- Detecting CXX compiler ABI info
[cmake] -- Detecting CXX compiler ABI info - done
[cmake] -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
[cmake] -- Detecting CXX compile features
[cmake] -- Detecting CXX compile features - done
[cmake] -- Configuring done (0.9s)
[cmake] -- Generating done (0.0s)
[cmake] -- Build files have been written to: /Users/stephen/git/dostest/build
[build] Starting build
[proc] Executing command: /usr/local/bin/cmake --build /Users/stephen/git/dostest/build --config Debug --target all --
[build] [1/2   0% :: 0.001] Re-checking globbed directories...
[build] [1/3  33% :: 0.056] cd /Users/stephen/git/dostest/build && /usr/local/Cellar/cmake/3.29.0/bin/cmake -E copy_directory /Users/stephen/git/dostest/assets /Users/stephen/git/dostest/build/assets
[build] [2/3  66% :: 0.136] Building C object CMakeFiles/main.dir/src/main.c.o
[build] FAILED: CMakeFiles/main.dir/src/main.c.o 
[build] /Library/Developer/CommandLineTools/usr/bin/cc   -g -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk -Wall -std=gnu99 -save-temps -MD -MT CMakeFiles/main.dir/src/main.c.o -MF CMakeFiles/main.dir/src/main.c.o.d -o CMakeFiles/main.dir/src/main.c.o -c /Users/stephen/git/dostest/src/main.c
[build] /Users/stephen/git/dostest/src/main.c:1:10: fatal error: 'bios.h' file not found
[build] #include <bios.h>
[build]          ^~~~~~~~
[build] 1 error generated.
[build] ninja: build stopped: subcommand failed.
[proc] The command: /usr/local/bin/cmake --build /Users/stephen/git/dostest/build --config Debug --target all -- exited with code: 1
[driver] Build completed: 00:00:00.168
[build] Build finished with exit code 1

Any ideas? happy to help narrow this down

terriblefire commented 2 months ago

Confirmed that -DCMAKE_TOOLCHAIN_FILE=~/.dos/toolchain-djgpp.cmake is not added to the initial CMake call .