amazon-kinesis-video-streams-producer-sdk-cpp: Building failing on windows [project_libopenssl]
I am following the readme tutorial.
After executing the command cmake .. -G "NMake Makefiles"
It goes well until Performing update step for 'project_libopenssl'
My first error was that it was unable to find the command Pearl
So i installed the padre-perl-ide and it got me a little far in the instalation, but now it giving me this weird error:
C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe /I "." /I "crypto\include" /I "include" -DOPENSSL_USE_APPLINK -DDSO_WIN32 -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC "-DENGINESDIR=\"E:\\kin\\stream\\open-source\\local\\lib\\engines-1_1\"" "-DOPENSSLDIR=\"E:\\kin\\stream\\open-source\\local\"" -W3 -wd4090 -Gs0 -GF -Gy -nologo -DOPENSSL_SYS_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE -DUNICODE -D_UNICODE /MD /O2 /Zi /Fdossl_static -c /Focrypto\aes\aes_cbc.obj "crypto\aes\aes_cbc.c"
NMAKE : fatal error U1073: Don't know how to create '"crypto\aes\aes_cfb.c"'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe"' : Code of return '0x2'
Stop.
NMAKE : fatal error U1077: 'echo' : Code of return '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe"' : Code of return '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe"' : Code of return '0x2'
Stop.
CMake Error at open-source/amazon-kinesis-video-streams-producer-c/CMake/Utilities.cmake:59 (message):
CMake step for libopenssl failed: 2
Call Stack (most recent call first):
open-source/amazon-kinesis-video-streams-producer-c/CMakeLists.txt:78 (build_dependency)
Here is the log for my CMakeOutput.log
The system is: Windows - 10.0.17763 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
Build flags:
Id flags:
The output was:
0
Microsoft (R) C/C++ Optimizing Compiler Versão 19.16.27032.1 para x86
Copyright (C) Microsoft Corporation. Todos os direitos reservados.
CMakeCCompilerId.c
Microsoft (R) Incremental Linker Version 14.16.27032.1
Copyright (C) Microsoft Corporation. All rights reserved.
/out:CMakeCCompilerId.exe
CMakeCCompilerId.obj
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.exe"
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.obj"
The C compiler identification is MSVC, found in "E:/Kinesis stream cpp/amazon-kinesis-video-streams-producer-sdk-cpp/build/CMakeFiles/3.17.2/CompilerIdC/CMakeCCompilerId.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
Build flags:
Id flags:
The output was:
0
Microsoft (R) C/C++ Optimizing Compiler Versão 19.16.27032.1 para x86
Copyright (C) Microsoft Corporation. Todos os direitos reservados.
CMakeCXXCompilerId.cpp
Microsoft (R) Incremental Linker Version 14.16.27032.1
Copyright (C) Microsoft Corporation. All rights reserved.
/out:CMakeCXXCompilerId.exe
CMakeCXXCompilerId.obj
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.exe"
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.obj"
The CXX compiler identification is MSVC, found in "E:/Kinesis stream cpp/amazon-kinesis-video-streams-producer-sdk-cpp/build/CMakeFiles/3.17.2/CompilerIdCXX/CMakeCXXCompilerId.exe"
Determining if the C compiler works passed with the following output:
Change Dir: E:/Kinesis stream cpp/amazon-kinesis-video-streams-producer-sdk-cpp/build/CMakeFiles/CMakeTmp
Run Build Command(s):nmake /nologo cmTC_5240f\fast && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_5240f.dir\build.make /nologo -L CMakeFiles\cmTC_5240f.dir\build
Building C object CMakeFiles/cmTC_5240f.dir/testCCompiler.c.obj
C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x86\cl.exe @C:\Users\{my_user}\AppData\Local\Temp\nmF24F.tmp
testCCompiler.c
Linking C executable cmTC_5240f.exe
"C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_5240f.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100177~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100177~1.0\x86\mt.exe --manifests -- C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x86\link.exe /nologo @CMakeFiles\cmTC_5240f.dir\objects1.rsp @C:\Users\{my_user}\AppData\Local\Temp\nmF3D7.tmp
Detecting C compiler ABI info compiled with the following output:
Change Dir: E:/Kinesis stream cpp/amazon-kinesis-video-streams-producer-sdk-cpp/build/CMakeFiles/CMakeTmp
Run Build Command(s):nmake /nologo cmTC_03686\fast && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_03686.dir\build.make /nologo -L CMakeFiles\cmTC_03686.dir\build
Building C object CMakeFiles/cmTC_03686.dir/CMakeCCompilerABI.c.obj
C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x86\cl.exe @C:\Users\{my_user}\AppData\Local\Temp\nmF945.tmp
CMakeCCompilerABI.c
Linking C executable cmTC_03686.exe
"C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_03686.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100177~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100177~1.0\x86\mt.exe --manifests -- C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x86\link.exe /nologo @CMakeFiles\cmTC_03686.dir\objects1.rsp @C:\Users\{my_user}\AppData\Local\Temp\nmF9B3.tmp
Determining if the CXX compiler works passed with the following output:
Change Dir: E:/Kinesis stream cpp/amazon-kinesis-video-streams-producer-sdk-cpp/build/CMakeFiles/CMakeTmp
Run Build Command(s):nmake /nologo cmTC_80ab8\fast && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_80ab8.dir\build.make /nologo -L CMakeFiles\cmTC_80ab8.dir\build
Building CXX object CMakeFiles/cmTC_80ab8.dir/testCXXCompiler.cxx.obj
C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x86\cl.exe @C:\Users\{my_user}\AppData\Local\Temp\nmFE94.tmp
testCXXCompiler.cxx
Linking CXX executable cmTC_80ab8.exe
"C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_80ab8.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100177~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100177~1.0\x86\mt.exe --manifests -- C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x86\link.exe /nologo @CMakeFiles\cmTC_80ab8.dir\objects1.rsp @C:\Users\{my_user}\AppData\Local\Temp\nmFF22.tmp
Detecting CXX compiler ABI info compiled with the following output:
Change Dir: E:/Kinesis stream cpp/amazon-kinesis-video-streams-producer-sdk-cpp/build/CMakeFiles/CMakeTmp
Run Build Command(s):nmake /nologo cmTC_f1a07\fast && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_f1a07.dir\build.make /nologo -L CMakeFiles\cmTC_f1a07.dir\build
Building CXX object CMakeFiles/cmTC_f1a07.dir/CMakeCXXCompilerABI.cpp.obj
C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x86\cl.exe @C:\Users\{my_user}\AppData\Local\Temp\nm3A5.tmp
CMakeCXXCompilerABI.cpp
Linking CXX executable cmTC_f1a07.exe
"C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_f1a07.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100177~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100177~1.0\x86\mt.exe --manifests -- C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x86\link.exe /nologo @CMakeFiles\cmTC_f1a07.dir\objects1.rsp @C:\Users\{my_user}\AppData\Local\Temp\nm423.tmp
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (9 by maintainers)
So I managed to fix this issue as I started a discusion on the mailinglist for GStreamer. The issue was that I had installed numerous copies of GStreamer both the runtime and development version and apparently each time you switch between MinGW or MSVC version or download a new copy of GStreamer you need to refresh the cache for GStreamer by just deleting it, I couldn’t locate the cache on AppData for GStreamer as it moves around and at times is in a different location for others. What I did was uninstall all GStreamer components including the MinGW, MSVC and the chocolately version, restarted the machine and installed only the MSVC runtime and development msi installers and got GStreamer to work. Another useful tip would be to move the GStreamer bin and lib path directories above strawberry perls path in the PATH variable as I was told by one the devs the glib files could be getting picked up from strawberry perl instead of GStreamer.