Closed Vaveform closed 3 years ago
The problem is here:
C:\Program Files\OpenSSL\openssl-1.1\x64\lib\libssl.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'x86'
C:\Program Files\OpenSSL\openssl-1.1\x64\lib\libcrypto.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'x86'
The OpenSSL build installed in C:\Program Files\OpenSSL\openssl-1.1\x64\lib
is for x64 (64 bits), whereas you try to compile libdatachannel for x86 (32 bits). You need to install OpenSSL for Win32 is you want to target 32-bit architectures.
May I use this library to build C++ application, which can broadcast video from webcam to the web page ?
Sure, you should look at the streamer example to see how to send video frames.
I am not a good in cmake, can you give me a hint how to build library for x64 in Microsoft Windows with Microsoft Visual C++? When i use commands from building instructions (cmake -B build -G "NMake Makefiles"; cd build; nmake) cmake builds for x86
Try passing -DCMAKE_GENERATOR_PLATFORM=x64
on the cmake line.
Is this solved?
@paullouisageneau Yes, I built library. I used this commands:
cmake -G "Visual Studio 16 2019" -A x64 -S \path_to_source\ -B "build64"
cmake --build build64 --config Release
While building library I got errors. I build in Microsoft Windows with Microsoft Visual C++ (Windows 10). I installed OpenSSL. Where can be problem? Do I understand correctly that submodules are installed automatically, and optional dependencies and Openssl are installed separately? May I use this library to build C++ application, which can broadcast video from webcam to the web page? (My colleague Web-developer and he created signaling server based on websockets, web page and found STUN/TURN servers)