openaicellular / srsRAN-e2

srsRAN cellular stack enabled with the E2 agent
GNU Affero General Public License v3.0
8 stars 3 forks source link

Error building srsRAN from source - No package 'sctp' found #2

Closed joshuamoorexyz closed 2 years ago

joshuamoorexyz commented 2 years ago

Issue Description

Error when trying to build srsRan from source.

-- CMAKE_SYSTEM: Linux-5.4.0-107-generic -- CMAKE_SYSTEM_PROCESSOR: x86_64 -- CMAKE_CXX_COMPILER: /usr/bin/c++ -- Build type not specified: defaulting to Release. -- FFTW3F LIBRARIES: /usr/lib/x86_64-linux-gnu/libfftw3f.so -- FFTW3F STATIC LIBRARIES: /usr/lib/x86_64-linux-gnu/libfftw3f.a -- FFTW3F INCLUDE DIRS: /usr/include -- FFT_LIBRARIES: /usr/lib/x86_64-linux-gnu/libfftw3f.so -- Checking for module 'polarssl' -- No package 'polarssl' found -- POLARSSL LIBRARIES: POLARSSL_LIBRARIES-NOTFOUND -- POLARSSL STATIC LIBRARIES: POLARSSL_STATIC_LIBRARIES-NOTFOUND -- POLARSSL INCLUDE DIRS: POLARSSL_INCLUDE_DIRS-NOTFOUND -- Could NOT find Polarssl (missing: POLARSSL_LIBRARIES POLARSSL_INCLUDE_DIRS) -- Checking for module 'mbedtls' -- No package 'mbedtls' found -- MBEDTLS LIBRARIES: /usr/lib/x86_64-linux-gnu/libmbedcrypto.so -- MBEDTLS STATIC LIBRARIES: /usr/lib/x86_64-linux-gnu/libmbedcrypto.a -- MBEDTLS INCLUDE DIRS: /usr/include -- Checking for module 'libpcsclite' -- No package 'libpcsclite' found -- Could NOT find PCSCLite (missing: PCSCLITE_LIBRARY PCSCLITE_INCLUDE_DIR) -- PCSC LIBRARIES: PCSCLITE_LIBRARY-NOTFOUND -- PCSC INCLUDE DIRS: PCSCLITE_INCLUDE_DIR-NOTFOUND -- UHD LIBRARIES /usr/local/lib/libuhd.so -- UHD INCLUDE DIRS /usr/local/include -- SKIQ LIBRARIES SKIQ_LIBRARY-NOTFOUND/usr/lib/x86_64-linux-gnu/libglib-2.0.a/usr/lib/x86_64-linux-gnu/libusb-1.0.a -- SKIQ INCLUDE DIRS SKIQ_INCLUDE_DIRS-NOTFOUND -- Could NOT find SKIQ (missing: SKIQ_INCLUDE_DIRS) -- Checking for module 'libbladeRF' -- No package 'libbladeRF' found -- libbladeRF not found. -- FINDING SOAPY. -- Checking for module 'SoapySDR' -- No package 'SoapySDR' found -- libSOAPYSDR not found. -- FINDING ZEROMQ. -- Boost version: 1.65.1 -- Found the following Boost libraries: -- program_options -- SRSGUI LIBRARIES SRSGUI_LIBRARIES-NOTFOUND -- SRSGUI INCLUDE DIRS SRSGUI_INCLUDE_DIRS-NOTFOUND -- Could NOT find SRSGUI (missing: SRSGUI_LIBRARIES SRSGUI_INCLUDE_DIRS) -- Could NOT find libdw (missing: LIBDW_LIBRARY LIBDW_INCLUDE_DIR) -- Could NOT find libbfd (missing: LIBBFD_LIBRARY LIBBFD_INCLUDE_DIR) -- Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR LIBELF_LIBRARY LIBELF_INCLUDE_DIR) -- Backward-cpp found, but external libraries are missing. -- SSE4.1 is enabled - target CPU must support it -- AVX is enabled - target CPU must support it -- AVX2 is enabled - target CPU must support it -- FMA is enabled - target CPU must support it -- SSE4.1 is enabled - target CPU must support it -- AVX is enabled - target CPU must support it -- AVX2 is enabled - target CPU must support it -- FMA is enabled - target CPU must support it -- CMAKE_C_FLAGS is -Wno-unused-but-set-variable -march=native -Werror=incompatible-pointer-types -Wall -Wno-comment -Wno-write-strings -Wno-unused-result -Wformat -Wmissing-field-initializers -Wtype-limits -std=c99 -fno-strict-aliasing -D_GNU_SOURCE -O3 -fno-trapping-math -fno-math-errno -DBUILD_TYPE_RELEASE -mfpmath=sse -mavx2 -DLV_HAVE_AVX2 -DLV_HAVE_AVX -DLV_HAVE_SSE -mfma -DLV_HAVE_FMA -Ofast -funroll-loops -fvisibility=hidden -Werror --param large-function-growth=1600 -- CMAKE_CXX_FLAGS is -Wall -Wno-comment -Wno-reorder -Wno-unused-variable -Wtype-limits -std=c++11 -fno-strict-aliasing -Wno-unused-but-set-variable -march=native -mfpmath=sse -mavx2 -DLV_HAVE_AVX2 -DLV_HAVE_AVX -DLV_HAVE_SSE -fvisibility=hidden -O3 -fno-trapping-math -fno-math-errno -DBUILD_TYPE_RELEASE -Werror -- Using install prefix: /usr/local -- Building for version: 21.10.0 -- examples will be installed. -- Checking for module 'sctp' -- No package 'sctp' found -- SCTP LIBRARIES: /usr/lib/x86_64-linux-gnu/libsctp.so -- SCTP INCLUDE DIRS: /usr/include -- No post-build command defined -- No post-build command defined -- Building with srsUE -- No post-build command defined -- No post-build command defined -- No post-build-UE command defined -- Building with srsENB -- Found LibConfig++: /usr/lib/x86_64-linux-gnu/libconfig++.so -- static LibConfig++ path: /usr/lib/x86_64-linux-gnu/libconfig++.a -- Found LibConfig: /usr/lib/x86_64-linux-gnu/libconfig.so -- static LibConfig path: /usr/lib/x86_64-linux-gnu/libconfig.a -- Checking for module 'sctp' -- No package 'sctp' found -- SCTP LIBRARIES: /usr/lib/x86_64-linux-gnu/libsctp.so -- SCTP INCLUDE DIRS: /usr/include -- No post-build-ENB command defined -- Building with srsEPC -- Found LibConfig++: /usr/lib/x86_64-linux-gnu/libconfig++.so -- static LibConfig++ path: /usr/lib/x86_64-linux-gnu/libconfig++.a -- Found LibConfig: /usr/lib/x86_64-linux-gnu/libconfig.so -- static LibConfig path: /usr/lib/x86_64-linux-gnu/libconfig.a -- Checking for module 'sctp' -- No package 'sctp' found -- SCTP LIBRARIES: /usr/lib/x86_64-linux-gnu/libsctp.so -- SCTP INCLUDE DIRS: /usr/include -- No post-build-EPC command defined -- Configuring incomplete, errors occurred! See also "/root/srsRAN-OAIC/srsRAN-e2/build/CMakeFiles/CMakeOutput.log". See also "/root/srsRAN-OAIC/srsRAN-e2/build/CMakeFiles/CMakeError.log".

Setup Details

[Specify details of the test setup. This would help us reproduce the problem reliably] e.g. Network configuration, Operation System, Hardware, RF front-end, library and driver versions

Ubuntu:18.04 UHD 4.1 Intel NUC: https://ark.intel.com/content/www/us/en/ark/products/89187/intel-nuc-kit-nuc6i7kyk.html

Expected Behavior

Sucessful Build

Steps to reproduce the problem

Follow steps to build srsRAN from source as detailed in setup instructions.

Additional Information

N/A

jgaeddert commented 2 years ago

Look at updated build instructions. This is also related to Issue #3

joshuamoorexyz commented 2 years ago

Fixed by:

implemented new changes in master branch of docs.

cd srsRAN-e2 mkdir build export SRS=realpath . cd build cmake ../ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DRIC_GENERATED_E2AP_BINDING_DIR=${SRS}/e2_bindings/E2AP-v01.01 \ -DRIC_GENERATED_E2SM_KPM_BINDING_DIR=${SRS}/e2_bindings/E2SM-KPM \ -DRIC_GENERATED_E2SM_NI_BINDING_DIR=${SRS}/e2_bindings/E2SM-NI \ -DRIC_GENERATED_E2SM_GNB_NRT_BINDING_DIR=${SRS}/e2_bindings/E2SM-GNB-NRT make -jnproc make test sudo ldconfig

From: https://openaicellular.github.io/oaic/srsRAN_installation.html