Skip to content

uSockets header and lib not installed system-wide #1600

Open
@robosina

Description

@robosina

Problem description:

I have installed uWebSockets on my Ubuntu system, but I noticed that the libusockets.h header file and the uSockets.a archive file from the uSockets dependency are not installed system-wide. This causes problems when trying to use uWebSockets in my CMake project, as the required header and archive files are not found.

Steps to reproduce:

  1. Clone and build uWebSockets using the provided instructions in the README.
  2. Install uWebSockets using sudo make install.
  3. Notice that libusockets.h and uSockets.a files are not installed in the system include directories (e.g., /usr/local/include/uWebSockets) and library directories (e.g., /usr/local/lib or /usr/lib).

Expected behavior:

The libusockets.h header file and the uSockets.a archive file should be installed system-wide along with the uWebSockets headers so that they are available for use in projects that depend on uWebSockets.

Possible solutions:

  • Update the uWebSockets Makefile to install the libusockets.h header file and the uSockets.a archive file when installing uWebSockets.
  • Provide an installation target in the uSockets Makefile to allow for system-wide installation of uSockets headers and library files.

Additional context:

I was able to manually copy the libusockets.h file to my system include directory, and also copy the uSockets.a archive file as a workaround. However, this is not an ideal solution, as it requires manual work to be done(I wrote a script to do all things).

Please let me know if there is a better solution or if this issue can be addressed in future updates of uWebSockets/uSockets. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions