[Libwebsockets] failed to install lws on my VM

madhan reddy madhanreddy433 at gmail.com
Tue Aug 31 10:31:26 CEST 2021


Hi All,

I am trying to build and install LWS on my VM using steps mentioned in
https://github.com/warmcat/libwebsockets/blob/v4.2-stable/READMEs/README.build.md

git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
vcpkg install libwebsockets


I am getting below errors

==============================================
madhan at ubuntu:~/Desktop$ git clone https://github.com/microsoft/vcpkg.git
Cloning into 'vcpkg'...
remote: Enumerating objects: 118751, done.
remote: Counting objects: 100% (103/103), done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 118751 (delta 81), reused 75 (delta 74), pack-reused 118648
Receiving objects: 100% (118751/118751), 38.15 MiB | 3.01 MiB/s, done.
Resolving deltas: 100% (73909/73909), done.
Updating files: 100% (7953/7953), done.
madhan at ubuntu:~/Desktop$ cd
lib_dir/                  libwebsockets-4.2-stable/ vcpkg/

madhan at ubuntu:~/Desktop$ cd vcpkg/
madhan at ubuntu:~/Desktop/vcpkg$
madhan at ubuntu:~/Desktop/vcpkg$
madhan at ubuntu:~/Desktop/vcpkg$ ./bootstrap-vcpkg.sh
./bootstrap-vcpkg.sh: 168: /home/madhan/Desktop/vcpkg/scripts/bootstrap.sh:
[[: not found
Downloading cmake...
Downloading cmake... done.
Extracting cmake...
Extracting cmake... done.
./bootstrap-vcpkg.sh: 168: /home/madhan/Desktop/vcpkg/scripts/bootstrap.sh:
[[: not found
Downloading ninja...
Downloading ninja... done.
Extracting ninja...
Extracting ninja... done.
Downloading vcpkg tool sources
Building vcpkg-tool...
-- The CXX compiler identification is GNU 9.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting the C++ compiler in use
-- Detecting the C++ compiler in use - gcc
-- Detecting the C++ standard library
-- Detecting the C++ standard library - libstdc++
-- Detecting how to use the C++ filesystem library
-- Detecting how to use the C++ filesystem library - <filesystem>
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/madhan/Desktop/vcpkg/buildtrees/_vcpkg/build
[0/2] Re-checking globbed directories...
[90/90] Linking CXX executable vcpkg
Telemetry
---------
vcpkg collects usage data in order to help us improve your experience.
The data collected by Microsoft is anonymous.
You can opt-out of telemetry by re-running the bootstrap-vcpkg script with
-disableMetrics,
passing --disable-metrics to vcpkg on the command line,
or by setting the VCPKG_DISABLE_METRICS environment variable.

Read more about vcpkg telemetry at docs/about/privacy.md
madhan at ubuntu:~/Desktop/vcpkg$ ./vcpkg integrate install
Applied user-wide integration for this vcpkg root.

CMake projects should use:
"-DCMAKE_TOOLCHAIN_FILE=/home/madhan/Desktop/vcpkg/scripts/buildsystems/vcpkg.cmake"
madhan at ubuntu:~/Desktop/vcpkg$ ./vcpkg integrate install
-DCMAKE_TOOLCHAIN_FILE=/home/madhan/Desktop/vcpkg/scripts/buildsystems/vcpkg.cmake
Error: short options are not supported:
-DCMAKE_TOOLCHAIN_FILE=/home/madhan/Desktop/vcpkg/scripts/buildsystems/vcpkg.cmake
madhan at ubuntu:~/Desktop/vcpkg$ vcpkg install libwebsockets
vcpkg: command not found
madhan at ubuntu:~/Desktop/vcpkg$
=============================================================

Could anyone please help me to resolve this and install pkg in my VM?


Regards,
Madhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20210831/270c8838/attachment.htm>


More information about the Libwebsockets mailing list