NetAnim Installation Error

605 views
Skip to first unread message

vaishali yadav

unread,
May 31, 2021, 2:49:38 AM5/31/21
to ns-3-users

In file included from main.cpp:19:

In file included from ./netanim.h:22:

./common.h:62:10: fatal error: 'QRegExp' file not found

#include <QRegExp>

         ^~~~~~~~~

1 error generated.

make: *** [main.o] Error 1

Please somebody help me with this. I am using mac m1 big sur. Also I dont have file NetAnim. 

Hemant Kumar Singh

unread,
Oct 6, 2021, 8:22:28 AM10/6/21
to ns-3-users
Same issue with same machine, I've tried many things, nothing seems to work.
Please update if you've found a solution by now.

Thanks.

Charles Pandian

unread,
Oct 6, 2021, 10:41:51 AM10/6/21
to ns-3-...@googlegroups.com
The cause of this error may be the version of QT development libraries installed in your machine. Try to upgrade or downgrade them (after knowing about the ns3/NetAninim installation requirements of the version of ns-allinone-3.xx  that you are trying to install)

Charles Pandian,


--
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/9edee3ed-d252-4369-b0ff-63b98c97e60dn%40googlegroups.com.

Charles Pandian

unread,
Oct 6, 2021, 12:51:06 PM10/6/21
to ns-3-...@googlegroups.com
In the following procedure, you may see a chroot jail based installation of ns2.35 and NetAnim.

https://www.projectguideline.com/installing-ns3-35-in-debian-10-chroot-jail-under-debian-11-host-os-or-any-version-of-linux-host/ 
(Procedure for Installing ns3.35 and NetAnim in Debian 10 chroot Jail Under Debian 11 Host OS or any version of Linux Host)


If the cause of the error that you are facing is due to some library or package conflict under your present version of linux host, then you may do a successful installation by creating a  chroot jail of any linux version of your choice under this unique way of Virtualization.


Charles Pandian,


Hemant Kumar Singh

unread,
Oct 6, 2021, 1:03:59 PM10/6/21
to ns-3-users
Thanks Charles.

This worked for me:

$ brew install qt@5
If you need to have qt@5 first in your PATH, run:
 $ echo 'export PATH="/usr/local/opt/qt@5/bin:$PATH"' >> ~/.zshrc

For compilers to find qt@5 you may need to set:
 $ export LDFLAGS="-L/usr/local/opt/qt@5/lib"
 $ export CPPFLAGS="-I/usr/local/opt/qt@5/include"

Inside the netanim directory:
$ make clean
$ qmake NetAnim.pro
$ make

$./NetAnim

Charles Pandian

unread,
Oct 6, 2021, 2:17:48 PM10/6/21
to ns-3-...@googlegroups.com

Thank you for confirming it as a QT version related error.
The things that you shared will be useful for others those who are facing the same issue.

Charles Pandian.

Reply all
Reply to author
Forward
0 new messages