On 3/18/22 07:34, Adnan Rashid wrote:
> With simple Configure command the way you told me , it works but
> actually not. have look plz
The below looks like a compilation issue with your code, and also it
seems that you may have a problem with CMakeLists.txt in the new
examples directory that you appear to have created:
> CMake Error at examples/CMakeLists.txt:6 (add_subdirectory):
> The source directory
>
> /home/adnan/git/ns-3-dev/examples/build
>
> does not contain a CMakeLists.txt file.
- Tom
>
>
> *adnan@adnan:~/git/ns-3-dev$ ./ns3 clean*
> Finished executing the following commands:
> rm -R build
> rm -R cmake-cache
> rm .lock-ns3_linux_build
> *adnan@adnan:~/git/ns-3-dev$ ./ns3 configure*
> -- The CXX compiler identification is GNU 9.4.0
> -- The C 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
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
>
> .
> .
> .
> .
>
> .
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/adnan/git/ns-3-dev/cmake-cache
> Finished executing the following commands:
> mkdir cmake-cache
> cd cmake-cache; /usr/bin/cmake -DCMAKE_BUILD_TYPE=debug
> -DNS3_NATIVE_OPTIMIZATIONS=OFF -G Ninja .. ; cd ..
> *adnan@adnan:~/git/ns-3-dev$ ./ns3 build*
> *adnan@adnan:~/git/ns-3-dev$ *
>
>
>
>
> *route-over-topology.cc *is the file on which I am working, it was fine
> when there was a *waf. *But anyway, I removed the file from scratch even
> I am using *Ubuntu 20.04.4 LTS* Let me show you the output
>
> *adnan@adnan:~/git/ns-3-dev$ ./ns3 clean*
> Finished executing the following commands:
> rm -R build
> rm -R cmake-cache
> rm .lock-ns3_linux_build
> *adnan@adnan:~/git/ns-3-dev$ ./ns3 configure --build-profile=debug
> --enable-examples --enable-tests*
> *adnan@adnan:~/git/ns-3-dev$ ./ns3 build*
> ninja: error: loading 'build.ninja': No such file or directory
> Finished executing the following commands:
> cd cmake-cache; cmake --build . -j 11 ; cd ..
> *adnan@adnan:~/git/ns-3-dev$ *
> <
https://groups.google.com/d/topic/ns-3-users/XSpx0LnmYH4/unsubscribe>.
> <mailto:
ns-3-users+...@googlegroups.com>.
> <
https://groups.google.com/d/msgid/ns-3-users/7af30abd-e578-7646-6505-882955abbdf8%40tomh.org?utm_medium=email&utm_source=footer>.
>
>
>
> --
> Regards,
>
> Adnan
>
>
>
> --
> Regards,
>
> Adnan
>
> 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
> <mailto:
ns-3-users+...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/ns-3-users/CAGm_170LK60yAdnKCiBzsrAJP5kC-LK3QMB33cp1o9OMSE3DMw%40mail.gmail.com
> <
https://groups.google.com/d/msgid/ns-3-users/CAGm_170LK60yAdnKCiBzsrAJP5kC-LK3QMB33cp1o9OMSE3DMw%40mail.gmail.com?utm_medium=email&utm_source=footer>.