NetAnim and Qt problem with mac OS El Capitain

247 views
Skip to first unread message

RBM-IT

unread,
Nov 25, 2015, 4:41:20 AM11/25/15
to ns-3-users
Hello Everyone,

I spend the whole day trying to install NetAnim for ns-3. But I always get errors.
I have ns-3.24 which comes with netanim. I need to install Qt to get the NetAnim interface.
I installed Qt 4.8
I followed the steps to make netanim:
cd netanim
make clean
qmake NetAnim.pro  (For MAC Users: qmake -spec macx-g++ NetAnim.pro)
make
However when i run: ./NetAnim , I got this error:

dyld: Library not loaded: /usr/local/opt/qt/lib/QtGui.framework/Versions/4/QtGui

Reason: Incompatible library version: NetAnim requires version 4.8.0 or later, but QtGui provides version 4.7.0

Trace/BPT trap: 5


Any Suggestions?


Regards,

RBM-IT

unread,
Nov 25, 2015, 5:39:17 AM11/25/15
to ns-3-users
Hello, 

I want to add that although the recommended version for NetAnim is Qt 4.7, this version is not anymore supported by mac OSX EL Capitain.
Thus, I installed Qt 4.8

Also when i tried with Qt5 
the make command and qmake.; doesn't work since "NetAnim uses a QT build tool called qmake. Qt versions from 4.7 to 5.4 are supported. Qt 5 support may not be available on OSX Please read the #Prerequisites before proceeding"

Any help here please?

John Abraham

unread,
Nov 25, 2015, 8:41:50 AM11/25/15
to ns-3-...@googlegroups.com
A lot of things broke with El Capitain. Qt5 is definitely not supported. Qt 4.8 should be. I think I should remove 4.7 from the supported list.Sorry for the inconvenience.

--
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 post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

RBM-IT

unread,
Nov 25, 2015, 8:57:04 AM11/25/15
to ns-3-users
Hi John,

Thanks for the answer.
Qt 4.8 worked for generating the executable file of NetAnim.
However when i execute it i got this error:

dyld: Library not loaded: /usr/local/opt/qt/lib/QtGui.framework/Versions/4/QtGui

  Reason: Incompatible library version: NetAnim requires version 4.8.0 or later, but QtGui provides version 4.7.0


Any solution?

Why I have QtGui 4.7 when i installed Qt4.8


Regards

John Abraham

unread,
Nov 25, 2015, 9:01:13 AM11/25/15
to ns-3-...@googlegroups.com
I think whatever build you did was still on 4.7. I always recommend using QtCreator. open NetAnim.pro on QtCreator. Go to Projects-> ManageKits and set the correct Qt version

Tommaso Pecorella

unread,
Nov 25, 2015, 10:09:44 AM11/25/15
to ns-3-users
I solved everything by *removing* the QT installed by the "old" installers (the ones you can download from the main QT website) and reinstalling everything using MacPorts. Home-brew should work as well.

Cheers,

T.

RBM-IT

unread,
Nov 25, 2015, 10:30:17 AM11/25/15
to ns-3-users
Hello Thomasso,

Could you please guide me in more details.?
Are you on mac OS EL Capitain?
How can i remove all versions?
Which ns-3 version are you using? and which QT version should i install?

Sorry for asking too much :)
Regards,

Tommaso Pecorella

unread,
Nov 25, 2015, 11:41:42 AM11/25/15
to ns-3-users
Hi,


On Wednesday, November 25, 2015 at 4:30:17 PM UTC+1, RBM-IT wrote:
Hello Thomasso,

Could you please guide me in more details.?
Are you on mac OS EL Capitain?

Yes, but not on this computer. On my home Mac I have it, and that's where all is installed. Unfortunately I'll not be able to use it for a couple of days.
 
How can i remove all versions?

No idea, it depends on how you did install them. Usually there's an uninstaller.
 
Which ns-3 version are you using? and which QT version should i install?

The latest (ns-3-dev), but you can use 3.24.1 if you want.
Qt... I'm using MacPorts, there's a package named "qt4-mac @4.8.7_2". I think that you'll have (more or less) the same results with home-brew.
If you want to use MacPorts, just go on their website and follow the instructions, then install the above mentioned package (the procedure is in the macPorts manual).
About Homebrew, I never used it, but a friend of mine said it's equally simple. Just follow the directions in their website.

Hope this helps,

T.

RBM-IT

unread,
Nov 25, 2015, 12:23:51 PM11/25/15
to ns-3-users
Hello Tommaso,

Thank you for your answer again.
I did remove all Qt dependencies with uninstall-qt.py file and even manually .
And i re-install it with Homeberw and relink it.

Finally it worked now :) (Qt version 4.8.7 and netanim bundled with ns-3.24)

I think the problem was about linking Qt or having more than one version on my mac.

Thank you all for your help!
Reply all
Reply to author
Forward
0 new messages