mbedtls icon indicating copy to clipboard operation
mbedtls copied to clipboard

unable to cmake the project under windows

Open hxm-cpp opened this issue 1 year ago • 3 comments

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release

result in

[cmake] -- Configuring done (3.3s) [cmake] CMake Error at library/CMakeLists.txt:283 (add_library): [cmake] Cannot find source file: [cmake] [cmake] ../tf-psa-crypto/drivers/builtin/src/error.c [cmake] [cmake] Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm [cmake] .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 [cmake] .f95 .f03 .hip .ispc [cmake] [cmake] [cmake] CMake Error at library/CMakeLists.txt:299 (add_library): [cmake] Cannot find source file: [cmake] [cmake] ssl_debug_helpers_generated.c [cmake] [cmake] Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm [cmake] .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 [cmake] .f95 .f03 .hip .ispc

hxm-cpp avatar Aug 10 '24 10:08 hxm-cpp

Can you try the following,

  1. make neat
  2. git ls-files -o and remove anything that you don't care about

gowthamsk-arm avatar Aug 13 '24 13:08 gowthamsk-arm

IIRC the cmake build scripts have limitations under Windows because we don't want to assume that Python is available when it isn't needed. If you're building from Git rather than a release, you need to have Python available and to run cmake -DGEN_FILES=ON

gilles-peskine-arm avatar Aug 13 '24 13:08 gilles-peskine-arm

you need to have Python available

I believe Perl is also required. In general we don't support generating files on Windows from CMake. Development is not all that convenient and it's something that we could do with addressing.

davidhorstmann-arm avatar Aug 13 '24 15:08 davidhorstmann-arm