Skip to content
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

Open
mama0512 opened this issue Oct 24, 2024 · 13 comments
Open

Comments

@mama0512
Copy link

(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:

"/home/malizhi/SimAI/astra-sim-alibabacloud/extern/network_backend/ns3-interface/simulation/src/applications"

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

@Nngxu
Copy link

Nngxu commented Oct 24, 2024

Can the author provide a docker container for easy running?

@Huoyuan100861
Copy link
Collaborator

Great suggestion, we're about to upload the SimAI image to DockerHub.

@fwyc0573
Copy link

I met the same problem in compiling process.

-- ---- Summary of optional ns-3 features:
Build profile                 : debug
Build directory               : /research/d1/gds/ytyang/yichengfeng/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)  : OFF (missing dependency)
GtkConfigStore                : OFF (missing dependency)
LibXml2 support               : OFF (missing dependency)
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                : OFF (missing dependency)
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:

    "/research/d1/gds/ytyang/yichengfeng/SimAI/astra-sim-alibabacloud/extern/network_backend/ns3-interface/simulation/src/applications"

  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 '/research/d1/gds/ytyang/yichengfeng/SimAI/scripts/../bin/SimAI_simulator': File exists

@HUNMrsen
Copy link
Collaborator

HUNMrsen commented Oct 28, 2024

You can first execute ./scripts/build.sh -l ns3, and then try again with ./scripts/build.sh -c ns3.

@yue2388253
Copy link

I also encountered this problem.

CMake Error in src/applications/CMakeLists.txt:
  Target "libapplications" INTERFACE_INCLUDE_DIRECTORIES property contains
  path:

    "/research/d1/gds/ytyang/yichengfeng/SimAI/astra-sim-alibabacloud/extern/network_backend/ns3-interface/simulation/src/applications"

  which is prefixed in the source directory.

The following approach does not work.

You can first execute ./scripts/build.sh -l ns3, and then try again with ./scripts/build.sh -c ns3.

@yue2388253
Copy link

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 build_lib() function would install the target, which results in the error, as mentioned here.

The origin of the problem is not the target_include_directories command itself, but the attempt to install a target that has a public or interface include directory prefixed in the source path (i.e. the include directory is a subdirectory of your ${PROJECT_SOURCE_DIR}.)

@Huoyuan100861
Copy link
Collaborator

I also encountered this problem.

CMake Error in src/applications/CMakeLists.txt:
  Target "libapplications" INTERFACE_INCLUDE_DIRECTORIES property contains
  path:

    "/research/d1/gds/ytyang/yichengfeng/SimAI/astra-sim-alibabacloud/extern/network_backend/ns3-interface/simulation/src/applications"

  which is prefixed in the source directory.

The following approach does not work.

You can first execute ./scripts/build.sh -l ns3, and then try again with ./scripts/build.sh -c ns3.

When using CMake 3.27, I get this error too, but the compilation eventually succeeds. It's recommended to use CMake 3.16 instead.

@Huoyuan100861
Copy link
Collaborator

(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:

"/home/malizhi/SimAI/astra-sim-alibabacloud/extern/network_backend/ns3-interface/simulation/src/applications"

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

Could you try switching to CMake 3.16 and see if that works?

@HeRaNO
Copy link

HeRaNO commented Nov 1, 2024

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.

@HeRaNO
Copy link

HeRaNO commented Nov 1, 2024

(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:

"/home/malizhi/SimAI/astra-sim-alibabacloud/extern/network_backend/ns3-interface/simulation/src/applications"

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

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.

@HUNMrsen
Copy link
Collaborator

HUNMrsen commented Nov 4, 2024

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.

@maoshunyu
Copy link

maoshunyu commented Nov 5, 2024

Same problem, but is solved by uninstalling ninja, though this error still appears. @HeRaNO

@HeRaNO
Copy link

HeRaNO commented Nov 5, 2024

Same probelm, but is solved by uninstalling ninja, though this error still appears. @HeRaNO

If someone wants to use ninja to build, we should fix the error #2 (comment) mentioned here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants