Topology_Generator icon indicating copy to clipboard operation
Topology_Generator copied to clipboard

Issue while installing Topology_Generator

Open bhavesh197 opened this issue 6 years ago • 8 comments

I am getting error while installing the file. Please find attached. screenshot from 2019-01-19 20-31-56

bhavesh197 avatar Jan 19 '19 15:01 bhavesh197

The Topology_Generator depends on Qt4 library, make sure you have the Qt4 version of the library installed.

jeffmyoung avatar Apr 10 '19 17:04 jeffmyoung

I have installed the QT4, still, I am facing the same issue Screenshot from 2019-06-06 19-05-41

Hoseinkangavarnazari avatar Jun 06 '19 14:06 Hoseinkangavarnazari

Hi there, I have tried using command "qmake-qt4" instead of "qmake" and the compile process passed correctly. Good luck! image

QiangLiu-BJTU avatar Oct 20 '19 20:10 QiangLiu-BJTU

Hi there, I have tried using command "qmake-qt4" instead of "qmake" and the compile process passed correctly. Good luck! image

Very helpful this command, thank you.

loiloip avatar Jan 24 '20 06:01 loiloip

Install qt4-defualt using: sudo apt install qt4-default

Qmake itself should work after that.

wuodland avatar Feb 05 '20 16:02 wuodland

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

bmeares avatar Nov 23 '20 21:11 bmeares

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

shoeper avatar Jan 23 '21 12:01 shoeper

Using #7 it is also possible to build it using Qt 5, which is much better available on current systems.

shoeper avatar Jan 23 '21 20:01 shoeper