snkas / hypatia

Low earth orbit (LEO) satellite network simulation framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Successfully installed the dependencies but could not build the project.

Chaoyism opened this issue · comments

Problem

Hi! I am having problems trying to build the project and run the tests. After installing dependencies with no errors, I could not build the project.

build_result

Environment

The environment is Ubuntu 22.04 and Python 3.10.6.

Reproduction

To reproduce this issue, firstly run sudo apt-get update and sudo apt-get upgrade in a new Ubuntu 22.04 or 20.04 virtual machine running on VirtualBox-7.0.6-155176-Win.

The new system did not have pip by default, so directly installing the dependencies would not proceed, and pip was installed with apt-get install python3-pip.

After pip was installed, bash hypatia_install_dependencies.sh could be correctly executed, and bash hypatia_build.sh would get errors as the screenshot above.

Guess

The problem could be led to by two possible reasons.

The first reason is that the makefile treated all warnings as errors as shown in the screenshot above.

The second reason is that there were some necessary modules not installed in my environment or some files were missed in the repository, as the not found and not enabled error messages implied when building the project.
notfound
notenabled

Could anyone who had successfully built the project kindly provide their environment or any hints on how to solve this problem? Thank you very much in advance!

Hi! Eventually I've successfully run the test. The problem of my environment is that the 'python' command in the terminal was not linked to python3, which was the default setting of Ubuntu 20/22. I suggest everyone who is going to use Hypatia to configure the environment in the following way:

  1. Install Ubuntu 20.04 LTS (mine is 20.04.6 LTS) on Virtualbox (mine is Virtualbox 7.0.4), and upgrade system softwares.

sudo apt-get update

sudo apt-get upgrade

  1. Link 'python' command to built-in Python3.

sudo apt install python-is-python3

  1. Install dependencies not included in the script

sudo apt install python3-pip

sudo apt install git

sudo apt-get install screen

  1. Clone the project and run the .sh files.

Many thanks to Simon and everyone who contributed to this amazing project!

hey, i had a question, did you every manage to visualise the constellation using the visualize_constellation.py script?

I fixed this error a different way --- I turned off "-Werror" in the compilation. Look at ns3-sat-sim/simulator/waf-tools/cflags.py on line 162.

Hi, I have the same building problem (using Ubuntu 22.04 and Python 3.10.12 ). Running: bash hypatia_build.sh --disable-werror I still have the same problem, any solution without changing the Ubuntu version?