Determining if the include file pthread.h exists failed with the following output:
Change Dir: E:/kin/stream/build/CMakeFiles/CMakeTmp
Run Build Command(s):nmake /nologo cmTC_cd9bc\fast && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.exe" -f CMakeFiles\cmTC_cd9bc.dir\build.make /nologo -L CMakeFiles\cmTC_cd9bc.dir\build
Building C object CMakeFiles/cmTC_cd9bc.dir/CheckIncludeFile.c.obj
C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\cl.exe @C:\Users\Gabriel\AppData\Local\Temp\nmABA.tmp
CheckIncludeFile.c
E:\kin\stream\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Não é possível abrir arquivo incluir: 'pthread.h': No such file or directory
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\cl.exe' : c¾digo de retorno '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.exe"' : c¾digo de retorno '0x2'
Stop.
I don't want to be rude and I really appreciate the help, it may be my fault since I just started getting into the streaming services, but i never hit so much walls on other services than trying to make Amazon Kinesis work, I can't even make a simple test to tell my bosses if this service is good for us.
I managed to make it work with BrainPower after a lot of struggle. But it really is not the same as saying that i was able to use this service.
Looking at the Kinesis page it seen that this project is the entry point to start to work with the Kinesis stream, but I had trouble with this and the Java project, and i just want to make a successful test to tell my bosses if this look ok for own needs.
I don't want to lash out on nobody here, I'm also a programmer and i know how this kinda of stuff is, but my suggestion is that Amazon priorize a little this service, since I'm almost giving it up and using another service outside of Amazon.
@BurguerJohn totally understand why you are frustrated, it is annoying when stuff just doesn't work! I have been working on making it better, but it is a lot of work and just me doing it.
In the future I want to distribute binary builds so you don't have to build stuff, but for now all I can do is help fix the build.
It looks like GStreamer failed to be discovered via package-config
I am not exactly sure why though. If you run C:\gstreamer\1.0\x86_64\bin\pkg-config.exe --libs gstreamer-app-1.0
does that work?
It also might be worth doing a full install using the installers on GStreamer's official website
Sorry for the delay @Sean-Der my shift had ended.
You was right about my error. The problem was that I had installed gstreamer in my E:/
So I moved it to my C:/ and the build worked! Thanks.
After that it was missing a few DLL once i tried any of the .exe files, so I had to add a gstream and the open-source folder to my path and now the .exe open (and instantly close) without any error.
Are the .exe files are suppose to open and close like that?
This command cmd.exe /c cmake -G "NMake Makefiles" ..
still give me the same error from the first post NMAKE : fatal error U1073: Don't know how to create '"crypto\aes\aes_cfb.c"'
but cmake -G "NMake Makefiles" -DBUILD_TEST=TRUE -DBUILD_GSTREAMER_PLUGIN=TRUE ..
made the build work.
Just a few notes to help others with similar problems:
Make sure nmake and cmake are working corretly.
Install choco and do all instalation from travis and use this bat
Make sure gstreamer is at C:\gstreamer\1.0\
Following the readme and this link
I did try to add a few folders to my path and call.
gst-inspect-1.0 kvssink
and this command gst-launch-1.0 rtspsrc location="rtsp://YourCameraRtspUrl" short-header=TRUE ! rtph264depay ! video/x-h264, format=avc,alignment=au ! kvssink stream-name="YourStreamName" storage-size=512 access-key="YourAccessKey" secret-key="YourSecretKey" aws-region="YourAWSRegion"
Both show me this error:
Perhaps I try again the Java version since now i'm able to build the dll files.
Hello, we have similar issues for both Windows and Mac. We are using a .NET environment and followed the procedure:
git clone --recursive https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp.git
mkdir -p amazon-kinesis-video-streams-producer-sdk-cpp/build
cd amazon-kinesis-video-streams-producer-sdk-cpp/build
cmake .. -G "NMake Makefiles"
As for windows, we get errors related to openssl. For Mac we get issues related to liblog4cplus.
I have attached both files.
kinesis_log_windows.txt
cmake_log_mac.txt
Please advise,
Thanks!
You should use .github/build_windows.bat
In my case I changed the first line to:
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
Another thing is to make sure you have downloaded and populated directories in:
open-source/amazon-kinesis-video-streams-pic and open-source/amazon-kinesis-video-streams-producer-c. This should easily build what you need.
I am also having this issue. I used build_windows.bat, but i changed the call to "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat".
The issue is related to libopenssl
error :
C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe /I "." /I "crypto\include" /I "include" -DOPENSSL_USE_APPLINK -DDSO_WIN32 -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC "-DENGINESDIR=\"D:\\Projects\\iot-cam\\amazon-kinesis-video-streams-producer-sdk-cpp\\open-source\\local\\lib\\engines-1_1\"" "-DOPENSSLDIR=\"D:\\Projects\\iot-cam\\amazon-kinesis-video-streams-producer-sdk-cpp\\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 make '"crypto\aes\aes_cfb.c"' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: 'echo' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\nmake.exe"' : return code '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)
Please find error logs
windows_error_logs.log
Hi, on my Windows 7 PC using Visual Studio 2019, I've followed the steps above in combination with the build_windows.bat (that I modified to point to my VS19 bat)...
git clone --recursive https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp.git
mkdir -p amazon-kinesis-video-streams-producer-sdk-cpp/build
build_windows.bat
Initially, I was having the same openSSL build issues before using the build_windows.bat file. I'm now stuck at the same gstreamer point mentioned above...
I've tried installing both the VS and MinGW versions of GStreamer from their site, into c:\gstreamer as suggested. In both cases, build produces this:
-- Checking for module 'gstreamer-app-1.0'
-- No package 'gstreamer-app-1.0' found
CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/FindPkgConfig.cmake:458 (message):
A required package was not found
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.15/Modules/FindPkgConfig.cmake:637 (_pkg_check_modules_internal)
CMakeLists.txt:211 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
See also "C:/AWS/amazon-kinesis-video-streams-producer-sdk-cpp/build/CMakeFiles/CMakeOutput.log"
See also "C:/AWS/amazon-kinesis-video-streams-producer-sdk-cpp/build/CMakeFiles/CMakeError.log".
Microsoft (R) Program Maintenance Utility Version 14.24.28316.0
NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.
Running this from your question above...
C:\gstreamer\1.0\x86_64\bin\pkg-config.exe --libs gstreamer-app-1.0
C:\AWS\amazon-kinesis-video-streams-producer-sdk-cpp\build>c:\gstreamer\1.0\x86_64\bin\pkg-config.exe --libs gstreamer-app-1.0
Package gstreamer-app-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-app-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-app-1.0' found
@aeperaltan For your Mac build it seems to be using a broken CXX compiler, not sure why though! Can you try doing
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
and try again with a brand new build directory?
For Windows I have seen this race condition with OpenSSL, and I have been able to fix it by running the CMake
again. I will need to investigate what we can do about it, but haven't found anything yet unfortunately.
Folks, it seems that this thread is quite long and for some odd reason I don't see some of the replies any longer - perhaps GitHub has a limit on the length of the issue.
Just some comments (as I see in my email inbox but not here).
@amilaDulanjana the small snippet of log shows no problems at all with streaming. We had a printing bug/issue which is since fixed in PIC but not propagated to the CPP layer where the getStreamData returns 0x5200002f as an error but in fact, this is a notification only - it means no more data to send. This is good as your networking is keeping up just fine.
While I don't understand why you are unable to preview your stream, here are couple of suggestions:
Make sure you are streaming and viewing in the same Region.
Make sure you have video that's "playable" by the console - it should be h264 or h265
Make sure you either have AvCC format for the video stream. Most encoders produce Annex-B format so there are flags to adapt this to AvCC format. The KVS plugin will do that for you - same with the samples.
Cut a separate issue to track the playback.
Regarding Windows build issues. While we won't be able to solve all of the open source component builds on Windows, we can help sharing the knowledge but I would also strongly encourage folks to check the corresponding open source community pages.
Following the readme and this link
I did try to add a few folders to my path and call.
gst-inspect-1.0 kvssink
and this command gst-launch-1.0 rtspsrc location="rtsp://YourCameraRtspUrl" short-header=TRUE ! rtph264depay ! video/x-h264, format=avc,alignment=au ! kvssink stream-name="YourStreamName" storage-size=512 access-key="YourAccessKey" secret-key="YourSecretKey" aws-region="YourAWSRegion"
Both show me this error:
Perhaps I try again the Java version since now i'm able to build the dll files.
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.