diff --git a/common/utils/websrv/CMakeLists.txt b/common/utils/websrv/CMakeLists.txt index 5a54460342efda4237c9fab6d10ac520e0963f89..7d7b00b038aa3bfbd656a56f227eb447af5b9566 100644 --- a/common/utils/websrv/CMakeLists.txt +++ b/common/utils/websrv/CMakeLists.txt @@ -62,7 +62,7 @@ add_library(websrv MODULE websrv_utils.c ../../../openair1/PHY/TOOLS/nr_phy_scope.c ) -target_link_libraries(websrv PRIVATE ulfius jansson) +target_link_libraries(websrv PRIVATE ulfius jansson asn1_nr_rrc_hdrs) target_compile_definitions(websrv PUBLIC WEBSRVSCOPE) # put websrv into build root and not under build/common/utils/websrv/ set_target_properties(websrv PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../../..) diff --git a/common/utils/websrv/DOC/websrvuse.md b/common/utils/websrv/DOC/websrvuse.md index 684f64b10436e416713ce4b0ece4c1734d673b00..7f661da2a8bb271b2b70a27da2140f2afd67359c 100644 --- a/common/utils/websrv/DOC/websrvuse.md +++ b/common/utils/websrv/DOC/websrvuse.md @@ -38,6 +38,20 @@ $ sudo dnf install -y jansson-devel npm curl wget ulfius has to be installed as explained [here](https://github.com/babelouest/ulfius/blob/master/INSTALL.md#pre-compiled-packages). +## Install from source if needed + +```bash +sudo dnf install -y jansson-devel npm curl wget libmicrohttpd-devel curl curlpp-devel systemd-devel +git clone https://github.com/babelouest/orcania.git +cd orcania; mkdir build; cd build; cmake ..; sudo make install +cd +git clone https://github.com/babelouest/yder.git +cd yder ; mkdir build; cd build; cmake ..; sudo make install +git clone https://github.com/babelouest/ulfius.git +cd ulfius +mkdir build; cd build; cmake ..; sudo make install +``` + ## Additional dependencies for the frontend Currently the web server frontend can run with nodejs 18, you can check the @@ -54,6 +68,16 @@ beyond this doc. For example, to install a specific nodeJS version, you can run the below command, with the typical output printed below for your convenience: + +install method by nvm +```bash +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash +source ~/.bashrc +nvm install 18 +nvm use 18 +``` + +install by apt-get ```bash $ curl -s https://deb.nodesource.com/setup_18.x | sudo bash