aligungr / UERANSIM

Open source 5G UE and RAN (gNodeB) implementation.
GNU General Public License v3.0
758 stars 316 forks source link

How to use maven compile ? #62

Closed Iverson-Zheng closed 4 years ago

Iverson-Zheng commented 4 years ago

Hello every one I'm new to ue-ran-sim and sorry for asking questions suddenly. I followed the guidance in https://github.com/aligungr/ue-ran-sim, but was stuck at the build process. "All native libraries and Java source codes are compiled automatically on maven compile." I fell very confused with this sentence, how to use maven compile pom.xml?
Besides, can this project be able to simulate 5G RAN and UE? Thanks for your help, best wishes.

s5uishida commented 4 years ago

Hi,

1) upgrade g++ to 7.5.0

$ sudo apt update
$ sudo apt upgrade
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)

2) set JAVA_HOME For example, in the case of /usr/lib/jvm/java-1.11.0-openjdk-amd64

$ echo 'export JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64' >> ~/.bashrc
$ source ~/.bashrc

3) maven compile

$ cd /path/to/ue-ran-sim
$ mvn clean install
...
$ ls ueransim/target
classes  generated-sources  lib  maven-archiver  maven-status  original-ueransim-1.0.8.jar  ueransim-1.0.8.jar
$ ls yaml
flows  gnb.yaml  mockedAmf.yaml  ue_i2i.yaml  ue_valid8.yaml
Iverson-Zheng commented 4 years ago

ls ueransim/target

Thanks for your help, I have already successfully built up ue-ran-simualtor By the way,would you mind telling me how to run this simulator? Thanks a lot.

aligungr commented 4 years ago

@s5uishida Thanks for the clear explanation.

@Iverson-Zheng To answer your question "Besides, can this project be able to simulate 5G RAN and UE?" Yes, this project contains both 5G UE and gNB. However all of the features are not complete yet such as user plane functionalities etc. But we are actively developing the simulator. You can check the implemented features status in README file.

Iverson-Zheng commented 4 years ago

@s5uishida Thanks for the clear explanation.

@Iverson-Zheng To answer your question "Besides, can this project be able to simulate 5G RAN and UE?" Yes, this project contains both 5G UE and gNB. However all of the features are not complete yet such as user plane functionalities etc. But we are actively developing the simulator. You can check the implemented features status in README file.

Ok, I got it. Thanks for your reply and effort.