-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed : # Compile SimAI-Simulation (ns3) $ ./scripts/build.sh -c ns3 #2
Comments
Can the author provide a docker container for easy running? |
Great suggestion, we're about to upload the SimAI image to DockerHub. |
I met the same problem in compiling process.
|
You can first execute ./scripts/build.sh -l ns3, and then try again with ./scripts/build.sh -c ns3. |
I also encountered this problem.
The following approach does not work.
|
It seems that the problem is due to the include statement in the CMakeLists.txt. It tries to include the current directory prefix but the
|
When using CMake 3.27, I get this error too, but the compilation eventually succeeds. It's recommended to use CMake 3.16 instead. |
Could you try switching to CMake 3.16 and see if that works? |
Not work. The same error appears. It's quite weird that the configuration procedure is broken, but the binary file can be built. |
For this error, you can just use gmake (provided by cmake) to build the binary instead of ninja. Since the generating procedure is broken, CMake (maybe) could not generate correct files for ninja. If someone wants to use ninja to build, we should fix the error #2 (comment) mentioned here. |
We have actually tested in the environment of Ubuntu 20.04 with gcc/g++ 9.4.0, Python 3.8.10, and CMake 3.16.3, which you may refer to for your configuration, and we use the CMake build system, not recommending the installation of Ninja. |
Same problem, but is solved by uninstalling ninja, though this error still appears. @HeRaNO |
|
(astra-sim) root@ainode3:/home/malizhi/SimAI# ./scripts/build.sh -c ns3
/home/malizhi/SimAI/astra-sim-alibabacloud/build/astra_ns3
/home/malizhi/SimAI/astra-sim-alibabacloud/build/astra_ns3/build/
/home/malizhi/SimAI/astra-sim-alibabacloud/build/astra_ns3
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/malizhi/SimAI/astra-sim-alibabacloud/build/astra_ns3/build
/home/malizhi/SimAI/astra-sim-alibabacloud/build/astra_ns3/../../inputs/config/SimAI.conf is not exist
-- The CXX compiler identification is GNU 9.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using default output directory /home/malizhi/SimAI/astra-sim-alibabacloud/extern/network_backend/ns3-interface/simulation/build
-- Proceeding without cmake-format
-- find_external_library: SQLite3 was found.
-- Found GTK3_GTK: /usr/lib/x86_64-linux-gnu/libgtk-3.so
-- GTK3 was found.
-- LibXML2 was found.
-- LibRT was found.
-- Found Python3: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter Development
-- Visualizer requires Python bindings
-- Found Boost: /root/anaconda3/envs/astra-sim/lib/cmake/Boost-1.82.0/BoostConfig.cmake (found version "1.82.0")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- GSL was found.
-- Found Sphinx: /root/anaconda3/bin/sphinx-build
-- docs: sphinx documentation not enabled due to missing dependencies: epstopdf;pdflatex;latexmk;dvipng
-- Performing Test HAVE_UINT128_T
-- Performing Test HAVE_UINT128_T - Failed
-- Performing Test HAVE___UINT128_T
-- Performing Test HAVE___UINT128_T - Success
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include inttypes.h
-- Looking for C++ include inttypes.h - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include sys/stat.h
-- Looking for C++ include sys/stat.h - found
-- Looking for C++ include dirent.h
-- Looking for C++ include dirent.h - found
-- Looking for C++ include stdlib.h
-- Looking for C++ include stdlib.h - found
-- Looking for C++ include signal.h
-- Looking for C++ include signal.h - found
-- Looking for C++ include netpacket/packet.h
-- Looking for C++ include netpacket/packet.h - found
-- Looking for getenv
-- Looking for getenv - found
-- Precompiled headers were enabled
-- Processing src/antenna
-- Processing src/aodv
-- Processing src/applications
-- Processing src/bridge
-- Processing src/brite
-- find_external_library: brite was not found. Missing headers: "Brite.h" and missing libraries: "brite".
-- Skipping src/brite
-- Processing src/buildings
-- Processing src/click
-- find_external_library: click was not found. Missing headers: "simclick.h" and missing libraries: "nsclick;click".
-- Skipping src/click
-- Processing src/config-store
-- Processing src/core
-- Looking for include files boost/units/quantity.hpp, boost/units/systems/si.hpp
-- Looking for include files boost/units/quantity.hpp, boost/units/systems/si.hpp - found
-- Boost Units have been found.
-- Processing src/csma
-- Processing src/csma-layout
-- Processing src/dsdv
-- Processing src/dsr
-- Processing src/energy
-- Processing src/fd-net-device
-- Looking for C++ include net/ethernet.h
-- Looking for C++ include net/ethernet.h - found
-- Looking for C++ include netpacket/packet.h
-- Looking for C++ include netpacket/packet.h - found
-- Looking for C++ include net/if.h
-- Looking for C++ include net/if.h - found
-- Looking for C++ include linux/if_tun.h
-- Looking for C++ include linux/if_tun.h - found
-- Looking for C++ include net/netmap_user.h
-- Looking for C++ include net/netmap_user.h - not found
-- Looking for C++ include sys/ioctl.h
-- Looking for C++ include sys/ioctl.h - found
-- Checking for module 'libdpdk'
-- Found libdpdk, version 19.11.14
-- Processing src/flow-monitor
-- Processing src/internet
-- Processing src/internet-apps
-- Processing src/lr-wpan
-- Processing src/lte
-- Processing src/mesh
-- Processing src/mobility
-- Processing src/mtp
-- Processing src/netanim
-- Processing src/network
-- Processing src/nix-vector-routing
-- Processing src/olsr
-- Processing src/openflow
-- find_external_library: openflow was not found. Missing headers: "openflow.h" and missing libraries: "openflow".
-- Skipping src/openflow
-- Processing src/point-to-point
-- Processing src/point-to-point-layout
-- Processing src/propagation
-- Processing src/sixlowpan
-- Processing src/spectrum
-- Processing src/stats
-- Processing src/tap-bridge
-- Processing src/test
-- Processing src/topology-read
-- Processing src/traffic-control
-- Processing src/uan
-- Processing src/virtual-net-device
-- Processing src/wave
-- Processing src/wifi
-- Processing src/wimax
-- ---- Summary of optional ns-3 features:
Build profile : debug
Build directory : /home/malizhi/SimAI/astra-sim-alibabacloud/extern/network_backend/ns3-interface/simulation/build
BRITE Integration : OFF (missing dependency)
DES Metrics event collection : OFF (not requested)
DPDK NetDevice : OFF (not requested)
Emulation FdNetDevice : ON
Examples : OFF (not requested)
File descriptor NetDevice : ON
GNU Scientific Library (GSL) : ON
GtkConfigStore : ON
LibXml2 support : ON
MPI Support : OFF (not requested)
Multithreaded Simulation : ON
ns-3 Click Integration : OFF (missing dependency)
ns-3 OpenFlow Integration : OFF (missing dependency)
Netmap emulation FdNetDevice : OFF (missing dependency)
PyViz visualizer : OFF (missing dependency)
Python API Scanning Support : OFF (not requested)
Python Bindings : OFF (not requested)
Real Time Simulator : ON
SQLite support : ON
Tap Bridge : ON
Tap FdNetDevice : ON
Tests : OFF (not requested)
Modules configured to be built:
antenna aodv applications
bridge buildings config-store
core csma csma-layout
dsdv dsr energy
fd-net-device flow-monitor internet
internet-apps lr-wpan lte
mesh mobility mtp
netanim network nix-vector-routing
olsr point-to-point point-to-point-layout
propagation sixlowpan spectrum
stats tap-bridge topology-read
traffic-control uan virtual-net-device
wave wifi wimax
Modules that cannot be built:
brite click mpi
openflow test visualizer
-- Configuring done
CMake Error in src/applications/CMakeLists.txt:
Target "libapplications" INTERFACE_INCLUDE_DIRECTORIES property contains
path:
which is prefixed in the source directory.
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
Finished executing the following commands:
mkdir cmake-cache
ninja: error: loading 'build.ninja': No such file or directory
ln: failed to create symbolic link '/home/malizhi/SimAI/scripts/../bin/SimAI_simulator': File exists
The text was updated successfully, but these errors were encountered: