Closed mipac closed 4 years ago
ok, I found that recipe that works on debian 9 with: cmake version 3.13.2 llvm/clang/libc++ version 7 from apt
I need to add that line in CMakeLists.txt
project(kfr CXX)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -v -stdlib=libc++ -std=c++17") ...
"-v" is just to verbose and debug the problem... you can omit it
you can add -DCMAKE_CXX_FLAGS="-stdlib=libc++ -std=c++17" to cmake arguments to keep CMakeLists.txt as is.
hope that could help someone, or the dev team to modify cmakelists.txt to make it easier for the mass ;)
thanks
for infos, the packages installed: clang-7 clang-tools-7 lib32gcc1 lib32stdc++6 libc++-7-dev libc++1-7 libc++abi-7-dev libc++abi1-7 libc6-i386 libclang-common-7-dev libclang1-7 libllvm7 libobjc-6-dev libobjc4 libomp-7-dev libomp5-7 llvm-7 llvm-7-dev llvm-7-runtime
help !
I try to build kfr_dft with clang 7 on debian 9 I get : error: no type named 'align_val_t' in namespace 'std' inline static void* operator new(size_t size, std::align_val_t al) noexcept
it seems to point to the gcc headers ...
how can I do? cmake detect clang 7 OK, but include seems to point in bad place ...
could someone post a "tuto" about compiling kfr_dft on linux ?
thanks