Topology_Generator
Topology_Generator copied to clipboard
Issue while installing Topology_Generator
I am getting error while installing the file. Please find attached.
The Topology_Generator depends on Qt4 library, make sure you have the Qt4 version of the library installed.
I have installed the QT4, still, I am facing the same issue
Hi there,
I have tried using command "qmake-qt4" instead of "qmake" and the compile process passed correctly.
Good luck!
Hi there, I have tried using command "qmake-qt4" instead of "qmake" and the compile process passed correctly. Good luck!
Very helpful this command, thank you.
Install qt4-defualt using:
sudo apt install qt4-default
Qmake itself should work after that.
Leaving a comment in case anyone else is running Ubuntu 20.10. Two things: (1) add a value to the TARGET
variable in the ns-3-generator.pro
file and (2) install qt4-default.
Edit the file ns-3-generator.pro
and set the target executable name:
TARGET = ns-3-generator
It looks like the maintainers of the qt4 repository for Ubuntu only support up to 20.04. Make sure you add the focal
version instead of using the default:
sudo add-apt-repository -S 'deb http://ppa.launchpad.net/rock-core/qt4/ubuntu/ focal main'
Update apt cache:
sudo apt update
Install qt4-default
. This will uninstall qt5-default!
sudo apt install qt4-default
Then you can run qmake
.
qmake
The target
in the
Execute the program:
./ns-3-generator
As it is getting more difficult to get qt4, I utilized docker as follows:
Edit the file ns-3-generator.pro and set the target executable name: TARGET = ns-3-generator (as described above -- https://github.com/idaholab/Topology_Generator/issues/3#issuecomment-732438190)
docker run --rm --user root -v (pwd):/src:Z -it accupara/qt4:linux bash
cd /src
qmake
make
exit
./ns-3-generator
Using #7 it is also possible to build it using Qt 5, which is much better available on current systems.