ld: library not found for -lSystem after unknown CMake command "SET_FILENAME"
petertorelli opened this issue · 4 comments
Seem to be calling a lib I've never heard of, nothing comes up on Google either?
Building test:
-- The C compiler identification is AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:26 (SET_FILENAME):
Unknown CMake command "SET_FILENAME".
Call Stack (most recent call first):
CMakeLists.txt:33 (ADD_CMOCKA_TEST)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.19)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/Users/ptorelli/git/jls/test/build/CMakeFiles/CMakeOutput.log".
See also "/Users/ptorelli/git/jls/test/build/CMakeFiles/CMakeError.log".
...looks like it is buried in CMake boilerplate?
% cat /Users/ptorelli/git/jls/test/build/CMakeFiles/CMakeError.log
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
Build flags:
Id flags:
The output was:
1
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
Build flags:
Id flags:
The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is on my mac.
P
Yeah, unfortunately your Mac cannot do #include <windows.h>
. See Windows dependencies here. That CMake error is unexpected.
I updated the release notes to indicate Windows only (no Mac or Linux support yet). We'll get there in the not too distant future.
Got it, thanks!
Thanks for trying it out so quickly! Sorry to get your hopes up prematurely.
I am really excited about this JLS file format. Files load and update into the Joulescope UI from HDD (old school spinning disks) with a barely noticeable delay.
The sooner I can replace my file writer (on all three OS's and all three EMONs) the sooner I can have less code to maintain! :)