Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build stream #2630

Open
Azkazar opened this issue Dec 15, 2024 · 1 comment
Open

Unable to build stream #2630

Azkazar opened this issue Dec 15, 2024 · 1 comment

Comments

@Azkazar
Copy link

Azkazar commented Dec 15, 2024

what am i supposed to do to build stream.exe ?

i am using copy of the cloned repo, "make stream" doesnt work on root folder

hp_5C@DESKTOP-B2S5CM7 MINGW64 ~/whisper.cpp - Copy (master)
$ make stream
make: *** No rule to make target 'stream'.  Stop.

i tried using cmake build, in windows and git bash, but to no avail.

i have tried this steps

  1. build using cmake -DWHISPER_SDL2=ON .. inside manually "build" folder

    Build Details
         hp_5C@DESKTOP-B2S5CM7 MINGW64 ~/whisper.cpp - Copy/build (master)
         $ cmake -DWHISPER_SDL2=ON ..
         -- Building for: Visual Studio 17 2022
         CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
           Compatibility with CMake < 3.10 will be removed from a future version of
           CMake.
    
       Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
       to tell CMake that the project requires at least <min> but has been updated
       to work with policies introduced by <max> or earlier.
     
     
     -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045.
     -- The C compiler identification is MSVC 19.40.33808.0
     -- The CXX compiler identification is MSVC 19.40.33808.0
     -- Detecting C compiler ABI info
     -- Detecting C compiler ABI info - done
     -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - 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: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
     -- Detecting CXX compile features
     -- Detecting CXX compile features - done
     -- Found Git: C:/Program Files/Git/mingw64/bin/git.exe (found version "2.42.0.windows.2")
     -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
     -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
     -- Looking for pthread_create in pthreads
     -- Looking for pthread_create in pthreads - not found
     -- Looking for pthread_create in pthread
     -- Looking for pthread_create in pthread - not found
     -- Found Threads: TRUE
     -- ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF.
     -- CMAKE_SYSTEM_PROCESSOR: AMD64
     -- CMAKE_GENERATOR_PLATFORM:
     -- Including CPU backend
     -- Found OpenMP_C: -openmp (found version "2.0")
     -- Found OpenMP_CXX: -openmp (found version "2.0")
     -- Found OpenMP: TRUE (found version "2.0")
     -- Performing Test HAS_AVX_1
     -- Performing Test HAS_AVX_1 - Success
     -- Performing Test HAS_AVX2_1
     -- Performing Test HAS_AVX2_1 - Success
     -- Performing Test HAS_FMA_1
     -- Performing Test HAS_FMA_1 - Success
     -- Performing Test HAS_AVX512_1
     -- Performing Test HAS_AVX512_1 - Failed
     -- Performing Test HAS_AVX512_2
     -- Performing Test HAS_AVX512_2 - Failed
     -- Adding CPU backend variant ggml-cpu: /arch:AVX2 GGML_AVX2;GGML_FMA;GGML_F16C
     -- SDL2_INCLUDE_DIRS = C:/msys64/mingw64/include;C:/msys64/mingw64/include/SDL2
     -- SDL2_LIBRARIES    = SDL2::SDL2main;SDL2::SDL2
     -- Configuring done (41.7s)
     -- Generating done (0.6s)
     -- Build files have been written to: C:/Users/hp_5C/whisper.cpp - Copy/build
    
  2. Build with release config with "cmake --build --config Release"

     hp_5C@DESKTOP-B2S5CM7 MINGW64 ~/whisper.cpp - Copy/build (master)
     $ cmake --build . --config Release
     MSBuild version 17.10.4+10fbfbf2e for .NET Framework
    

    1>Checking Build System
    Building Custom Rule C:/Users/hp_5C/whisper.cpp - Copy/ggml/src/CMakeLists.txt
    ggml.c
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\winbase.h(9531,5): warning C5105: macro expansion producing 'defined' has undefined behavior [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(1960,26): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(1960,31): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(1960,36): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(1960,41): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(2844,26): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(2844,31): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(2844,36): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(2844,41): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3232,22): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3233,22): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3234,22): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3235,22): warning C4244: '=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3237,22): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3238,22): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3239,22): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3240,22): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3746,48): warning C4244: 'function': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3914,41): warning C4244: 'function': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3914,51): warning C4244: 'function': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3923,51): warning C4244: 'function': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3923,65): warning C4244: 'function': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3959,35): warning C4244: 'return': conversion from 'float' to 'int64_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(3972,54): warning C4244: 'function': conversion from 'int' to 'float', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(4009,46): warning C4244: 'initializing': conversion from 'float' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(4009,50): warning C4244: 'initializing': conversion from 'float' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(4032,46): warning C4244: 'initializing': conversion from 'float' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(4032,50): warning C4244: 'initializing': conversion from 'float' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(4068,47): warning C4244: 'function': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(4068,72): warning C4244: 'function': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(4068,93): warning C4244: 'function': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(4068,103): warning C4244: 'function': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(4439,36): warning C4244: 'initializing': conversion from 'int64_t' to 'const int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(4440,36): warning C4244: 'initializing': conversion from 'int64_t' to 'const int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(5518,108): warning C4244: 'function': conversion from 'const int32_t' to 'float', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(5518,112): warning C4244: 'function': conversion from 'const int32_t' to 'float', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(5796,29): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(6822,25): warning C4267: 'function': conversion from 'size_t' to 'long', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(6998,23): warning C4244: 'return': conversion from 'const uint64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(7050,37): warning C4244: 'return': conversion from 'uint64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(7133,23): warning C4244: 'return': conversion from 'const uint64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(7175,30): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(7276,35): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(7299,21): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(7326,94): warning C4244: 'function': conversion from 'uint64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(7331,143): warning C4244: 'function': conversion from 'uint64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(7347,32): warning C4244: 'initializing': conversion from 'uint64_t' to 'const int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(7351,33): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml.c(7431,24): warning C4244: '=': conversion from 'double' to 'size_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    ggml-alloc.c
    ggml-quants.c
    ggml-aarch64.c
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml-aarch64.c(94,68): warning C4244: '+=': conversion from 'int64_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml-aarch64.c(82,30): warning C4244: 'initializing': conversion from 'int64_t' to 'const int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    Generating Code...
    ggml-backend.cpp
    ggml-opt.cpp
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml-opt.cpp(599,77): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml-opt.cpp(600,77): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml-opt.cpp(810,30): warning C4244: '=': conversion from 'const int64_t' to 'int32_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-base.vcxproj]
    ggml-threading.cpp
    Generating Code...
    Auto build dll exports
    Creating library C:/Users/hp_5C/whisper.cpp - Copy/build/ggml/src/Release/ggml-base.lib and object C:/Users/hp_5C/whisper.cpp - Copy/build/ggml/src/Release/ggml-base.exp
    ggml-base.vcxproj -> C:\Users\hp_5C\whisper.cpp - Copy\build\bin\Release\ggml-base.dll
    Building Custom Rule C:/Users/hp_5C/whisper.cpp - Copy/ggml/src/CMakeLists.txt
    ggml-cpu.c
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\winbase.h(9531,5): warning C5105: macro expansion producing 'defined' has undefined behavior [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml-cpu.vcxproj]
    ggml-cpu.cpp
    ggml-cpu-aarch64.c
    ggml-cpu-quants.c
    Generating Code...
    amx.cpp
    mmq.cpp
    Generating Code...
    Auto build dll exports
    Creating library C:/Users/hp_5C/whisper.cpp - Copy/build/ggml/src/Release/ggml-cpu.lib and object C:/Users/hp_5C/whisper.cpp - Copy/build/ggml/src/Release/ggml-cpu.exp
    ggml-cpu.vcxproj -> C:\Users\hp_5C\whisper.cpp - Copy\build\bin\Release\ggml-cpu.dll
    Building Custom Rule C:/Users/hp_5C/whisper.cpp - Copy/ggml/src/CMakeLists.txt
    ggml-backend-reg.cpp
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml-backend-reg.cpp(88,31): warning C4996: 'std::codecvt_utf8_utf16<wchar_t,1114111,(std::codecvt_mode)0>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to suppress this warning. [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml-backend-reg.cpp(88,10): warning C4996: 'std::wstring_convert<std::codecvt_utf8_utf16<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to suppress this warning. [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml-backend-reg.cpp(88,60): warning C4996: 'std::wstring_convert<std::codecvt_utf8_utf16<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator>::wstring_convert': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to suppress this warning. [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml-backend-reg.cpp(89,38): warning C4996: 'std::wstring_convert<std::codecvt_utf8_utf16<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator>::from_bytes': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to suppress this warning. [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\ggml\src\ggml-backend-reg.cpp(422,64): warning C4267: 'argument': conversion from 'size_t' to 'DWORD', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\ggml\src\ggml.vcxproj]
    Auto build dll exports
    Creating library C:/Users/hp_5C/whisper.cpp - Copy/build/ggml/src/Release/ggml.lib and object C:/Users/hp_5C/whisper.cpp - Copy/build/ggml/src/Release/ggml.exp
    ggml.vcxproj -> C:\Users\hp_5C\whisper.cpp - Copy\build\bin\Release\ggml.dll
    Building Custom Rule C:/Users/hp_5C/whisper.cpp - Copy/src/CMakeLists.txt
    whisper.cpp
    Auto build dll exports
    Creating library C:/Users/hp_5C/whisper.cpp - Copy/build/src/Release/whisper.lib and object C:/Users/hp_5C/whisper.cpp - Copy/build/src/Release/whisper.exp
    whisper.vcxproj -> C:\Users\hp_5C\whisper.cpp - Copy\build\bin\Release\whisper.dll
    Building Custom Rule C:/Users/hp_5C/whisper.cpp - Copy/examples/bench/CMakeLists.txt
    bench.cpp
    bench.vcxproj -> C:\Users\hp_5C\whisper.cpp - Copy\build\bin\Release\bench.exe
    Building Custom Rule C:/Users/hp_5C/whisper.cpp - Copy/examples/CMakeLists.txt
    common.cpp
    C:\Users\hp_5C\whisper.cpp - Copy\examples\common.h(299,41): warning C4244: '=': conversion from 'double' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\examples\common.vcxproj]
    common-ggml.cpp
    grammar-parser.cpp
    Generating Code...
    common.vcxproj -> C:\Users\hp_5C\whisper.cpp - Copy\build\examples\Release\common.lib
    Building Custom Rule C:/Users/hp_5C/whisper.cpp - Copy/examples/CMakeLists.txt
    common-sdl.cpp
    C:\msys64\mingw64\include\SDL2\SDL_stdinc.h(63,11): error C1083: Cannot open include file: 'strings.h': No such file or directory [C:\Users\hp_5C\whisper.cpp - Copy\build\examples\common-sdl.vcxproj]
    Building Custom Rule C:/Users/hp_5C/whisper.cpp - Copy/examples/main/CMakeLists.txt
    main.cpp
    C:\Users\hp_5C\whisper.cpp - Copy\examples\common.h(299,41): warning C4244: '=': conversion from 'double' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\examples\main\main.vcxproj]
    main.vcxproj -> C:\Users\hp_5C\whisper.cpp - Copy\build\bin\Release\main.exe
    Building Custom Rule C:/Users/hp_5C/whisper.cpp - Copy/examples/quantize/CMakeLists.txt
    quantize.cpp
    C:\Users\hp_5C\whisper.cpp - Copy\examples\common.h(299,41): warning C4244: '=': conversion from 'double' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\examples\quantize\quantize.vcxproj]
    quantize.vcxproj -> C:\Users\hp_5C\whisper.cpp - Copy\build\bin\Release\quantize.exe
    Building Custom Rule C:/Users/hp_5C/whisper.cpp - Copy/examples/server/CMakeLists.txt
    server.cpp
    C:\Users\hp_5C\whisper.cpp - Copy\examples\common.h(299,41): warning C4244: '=': conversion from 'double' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\examples\server\server.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\examples\server\server.cpp(680,57): warning C4996: 'tmpnam': This function or variable may be unsafe. Consider using tmpnam_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\hp_5C\whisper.cpp - Copy\build\examples\server\server.vcxproj]
    server.vcxproj -> C:\Users\hp_5C\whisper.cpp - Copy\build\bin\Release\server.exe
    Building Custom Rule C:/Users/hp_5C/whisper.cpp - Copy/examples/wchess/libwchess/CMakeLists.txt
    WChess.cpp
    C:\Users\hp_5C\whisper.cpp - Copy\examples\common.h(299,41): warning C4244: '=': conversion from 'double' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\examples\wchess\libwchess\wchess-core.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\examples\wchess\libwchess\WChess.cpp(92,43): warning C4244: 'initializing': conversion from 'double' to 'const size_t', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\examples\wchess\libwchess\wchess-core.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\examples\wchess\libwchess\WChess.cpp(113,28): warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\examples\wchess\libwchess\wchess-core.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\examples\wchess\libwchess\WChess.cpp(166,66): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\examples\wchess\libwchess\wchess-core.vcxproj]
    Chessboard.cpp
    C:\Users\hp_5C\whisper.cpp - Copy\examples\wchess\libwchess\Chessboard.cpp(22,28): warning C4267: 'initializing': conversion from 'size_t' to 'const char', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\examples\wchess\libwchess\wchess-core.vcxproj]
    C:\Users\hp_5C\whisper.cpp - Copy\examples\wchess\libwchess\Chessboard.cpp(82,15): warning C4267: 'return': conversion from 'size_t' to 'char', possible loss of data [C:\Users\hp_5C\whisper.cpp - Copy\build\examples\wchess\libwchess\wchess-core.vcxproj]
    Generating Code...
    wchess-core.vcxproj -> C:\Users\hp_5C\whisper.cpp - Copy\build\examples\wchess\libwchess\Release\wchess-core.lib

  3. Release result, there is no stream (cmd)

       C:\Users\hp_5C\whisper.cpp - Copy\build\bin\Release>dir /a
       Volume in drive C is C
       Volume Serial Number is 686E-DF3A
       Directory of C:\Users\hp_5C\whisper.cpp - Copy\build\bin\Release
       15/12/2024  15:04              .
       15/12/2024  15:04              ..
       15/12/2024  15:04            20.480 bench.exe
       15/12/2024  15:03           418.816 ggml-base.dll
       15/12/2024  15:04           302.592 ggml-cpu.dll
       15/12/2024  15:04            83.968 ggml.dll
       15/12/2024  15:04           169.472 main.exe
       15/12/2024  15:04            97.792 quantize.exe
       15/12/2024  15:04           390.656 server.exe
       15/12/2024  15:04           427.008 whisper.dll
                      8 File(s)      1.910.784 bytes
                      2 Dir(s)  77.560.053.760 bytes free
     
@bayyy7
Copy link

bayyy7 commented Dec 24, 2024

build using cmake -DWHISPER_SDL2=ON .. inside manually "build" folder
Build with release config with "cmake --build --config Release"

hello @Azkazar, You should run that build on the project root, not inside build directory. You can delete build folder and follow this steps

  1. Build C++ on the project root
cmake -B build -DWHISPER_SDL2=ON
cmake --build build --config Release
  1. Navigate to build directory
cd ./build
  1. Build Stream
make stream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants