Installing ns3gym with ns3.36 on ubuntu 20.04

122 views
Skip to first unread message

PRIYANKA MITTAL

unread,
Sep 8, 2024, 1:13:20 PM9/8/24
to ns-3-users
Facing issue with Cmake while running command ./ns3 configure --enable-examples


-- CCache is enabled. Precompiled headers are disabled by default.
-- Using default output directory /home/vboxuser/Desktop/networksim/ns-allinone-3.36/ns-3.36/build
-- find_external_library: SQLite3 was found.
-- GTK3 was found.
-- LibXML2 was found.
-- LibRT was found.
-- MPI was found.
-- GSL was found.
-- Processing contrib/opengym
-- protobuf_generate command not found -> use a local copy from /home/vboxuser/Desktop/networksim/ns-allinone-3.36/ns-3.36/contrib/opengym/protobuf-generate.cmake
-- Processing src/visualizer
-- Processing src/antenna
-- Processing src/aodv
-- Processing src/applications
-- Processing src/bridge
-- Processing src/brite
-- find_external_library: brite was found.
-- Processing src/buildings
-- Processing src/click
-- find_external_library: click was found.
-- Processing src/config-store
-- Processing src/core
-- 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
-- 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/mpi
-- Processing src/netanim
-- Processing src/network
-- Processing src/nix-vector-routing
-- Processing src/olsr
-- Processing src/openflow
-- find_external_library: openflow was found.
-- 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/vboxuser/Desktop/networksim/ns-allinone-3.36/ns-3.36/build
BRITE Integration             : ON
DES Metrics event collection  : OFF (not requested)
DPDK NetDevice                : OFF (not requested)
Emulation FdNetDevice         : ON
Examples                      : ON
File descriptor NetDevice     : ON
GNU Scientific Library (GSL)  : ON
GtkConfigStore                : ON
MPI Support                   : ON
NS-3 Click Integration        : ON
NS-3 OpenFlow Integration     : ON
Netmap emulation FdNetDevice  : OFF (missing dependency)
PyViz visualizer              : ON
Python Bindings               : ON
Real Time Simulator           : ON
SQLite stats support          : ON
Tap Bridge                    : ON
Tap FdNetDevice               : ON
Tests                         : ON


Modules configured to be built:
antenna                   aodv                      applications              
bridge                    brite                     buildings                
click                     config-store              core                      
csma                      csma-layout               dsdv                      
dsr                       energy                    fd-net-device            
flow-monitor              internet                  internet-apps            
lr-wpan                   lte                       mesh                      
mobility                  mpi                       netanim                  
network                   nix-vector-routing        olsr                      
openflow                  opengym                   point-to-point            
point-to-point-layout     propagation               sixlowpan                
spectrum                  stats                     tap-bridge                
test                      topology-read             traffic-control          
uan                       virtual-net-device        visualizer                
wave                      wifi                      wimax                    



-- Configuring done
CMake Error at scratch/CMakeLists.txt:47 (add_executable):
  Target "scratch_subdir_scratch-simulator-subdir" links to target
  "protobuf::libprotobuf" but the target was not found.  Perhaps a
  find_package() call is missing for an IMPORTED target, or an ALIAS target
  is missing?
Call Stack (most recent call first):
  scratch/CMakeLists.txt:97 (create_scratch)


CMake Error at scratch/CMakeLists.txt:47 (add_executable):
  Target "scratch_scratch-simulator" links to target "protobuf::libprotobuf"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  scratch/CMakeLists.txt:67 (create_scratch)


CMake Error at scratch/CMakeLists.txt:47 (add_executable):
  Target "scratch_subdir_scratch-simulator-subdir" links to target
  "protobuf::libprotobuf" but the target was not found.  Perhaps a
  find_package() call is missing for an IMPORTED target, or an ALIAS target
  is missing?
Call Stack (most recent call first):
  scratch/CMakeLists.txt:97 (create_scratch)


CMake Error at scratch/CMakeLists.txt:47 (add_executable):
  Target "scratch_scratch-simulator" links to target "protobuf::libprotobuf"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  scratch/CMakeLists.txt:67 (create_scratch)


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.



Please Help

Kakadus

unread,
Sep 8, 2024, 1:29:25 PM9/8/24
to ns-3-users
Hi,

have you checked out the issue board of ns3-gym [1]? There seem to be some related issues.

Instead of ns3-gym, I have worked with ns3-ai and experienced linkage issues which had a similar error message. Maybe my merged PR over there [2] can give you help in debugging this.

Best of luck,

Jonas

PRIYANKA MITTAL

unread,
Sep 10, 2024, 6:28:40 PM9/10/24
to ns-3-...@googlegroups.com
Thanks for kind help.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/45e68c52-5861-4c13-8d0d-f6173fa2e12bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages