NetAnim installation on RedHat failed

64 views
Skip to first unread message

nmailoa

unread,
Jul 24, 2014, 12:41:34 PM7/24/14
to ns-3-...@googlegroups.com
I believe I have all the prerequisites:
> rpm -qa | grep qt
qt4-4.2.1-1.el5_7.1
qt4-devel-4.2.1-1.el5_7.1
qt4-devel-4.2.1-1.el5_7.1
qt-3.3.6-26.el5
qt4-4.2.1-1.el5_7.1
But when running make it results in a bunch of file missing errors and warnings:
> sudo /usr/lib/qt4/bin/qmake NetAnim.pro
> sudo make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT  -DNS3_LOG_ENABLE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include -Iqtpropertybrowser/src -I. -I. -o main.o main.cpp
In file included from netanim.h:22,
                 from main.cpp:19:
common.h:21:35: error: QParallelAnimationGroup: No such file or directory
common.h:22:30: error: QPropertyAnimation: No such file or directory
common.h:26:35: error: QtCore/QXmlStreamReader: No such file or directory
common.h:34:32: error: QGraphicsProxyWidget: No such file or directory
In file included from /usr/lib/qt4/include/QtCore/qstring.h:27,
                 from /usr/lib/qt4/include/QtCore/qobject.h:30,
                 from /usr/lib/qt4/include/QtGui/qwidget.h:28,
                 from /usr/lib/qt4/include/QtGui/QWidget:1,
                 from common.h:6,
                 from netanim.h:22,
                 from main.cpp:19:
/usr/lib/qt4/include/QtCore/qchar.h:39: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qchar.h:40: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qchar.h:220: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qchar.h:221: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qchar.h:222: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qchar.h:270: warning: type qualifiers ignored on function return type
In file included from /usr/lib/qt4/include/QtCore/qatomic_arch.h:40,
                 from /usr/lib/qt4/include/QtCore/qatomic.h:30,
                 from /usr/lib/qt4/include/QtCore/qbytearray.h:28,
                 from /usr/lib/qt4/include/QtCore/qstring.h:28,
                 from /usr/lib/qt4/include/QtCore/qobject.h:30,
                 from /usr/lib/qt4/include/QtGui/qwidget.h:28,
                 from /usr/lib/qt4/include/QtGui/QWidget:1,
                 from common.h:6,
                 from netanim.h:22,
                 from main.cpp:19:
/usr/lib/qt4/include/QtCore/qatomic_i386.h: In function \u2018int q_atomic_test_and_set_ptr(volatile void*, void*, void*)\u2019:
/usr/lib/qt4/include/QtCore/qatomic_i386.h:58: error: cast from \u2018void*\u2019 to \u2018int\u2019 loses precision
/usr/lib/qt4/include/QtCore/qatomic_i386.h:59: error: cast from \u2018void*\u2019 to \u2018int\u2019 loses precision
/usr/lib/qt4/include/QtCore/qatomic_i386.h: In function \u2018void* q_atomic_set_ptr(volatile void*, void*)\u2019:
/usr/lib/qt4/include/QtCore/qatomic_i386.h:98: error: cast from \u2018void*\u2019 to \u2018int\u2019 loses precision
In file included from /usr/lib/qt4/include/QtCore/qstring.h:28,
                 from /usr/lib/qt4/include/QtCore/qobject.h:30,
                 from /usr/lib/qt4/include/QtGui/qwidget.h:28,
                 from /usr/lib/qt4/include/QtGui/QWidget:1,
                 from common.h:6,
                 from netanim.h:22,
                 from main.cpp:19:
/usr/lib/qt4/include/QtCore/qbytearray.h: At global scope:
/usr/lib/qt4/include/QtCore/qbytearray.h:131: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qbytearray.h:132: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qbytearray.h:134: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qbytearray.h:328: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qbytearray.h:330: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qbytearray.h:332: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qbytearray.h:373: warning: type qualifiers ignored on function return type
In file included from /usr/lib/qt4/include/QtCore/qobject.h:30,
                 from /usr/lib/qt4/include/QtGui/qwidget.h:28,
                 from /usr/lib/qt4/include/QtGui/QWidget:1,
                 from common.h:6,
                 from netanim.h:22,
                 from main.cpp:19:
/usr/lib/qt4/include/QtCore/qstring.h:715: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qstring.h:716: warning: type qualifiers ignored on function return type
/usr/lib/qt4/include/QtCore/qstring.h:721: warning: type qualifiers ignored on function return type
In file included from /usr/lib/qt4/include/QtGui/qbrush.h:32,
                 from /usr/lib/qt4/include/QtGui/qpalette.h:29,
                 from /usr/lib/qt4/include/QtGui/qwidget.h:30,
                 from /usr/lib/qt4/include/QtGui/QWidget:1,
                 from common.h:6,
                 from netanim.h:22,
                 from main.cpp:19:
/usr/lib/qt4/include/QtGui/qimage.h: In member function \u2018bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const\u2019:
/usr/lib/qt4/include/QtGui/qimage.h:56: warning: suggest parentheses around \u2018&&\u2019 within \u2018||\u2019
make: *** [main.o] Error 1
 
Could it be that I need to somehow give make the path to qt4-devel? Any help is much appreciated. Thanks

John Abraham

unread,
Jul 24, 2014, 12:47:18 PM7/24/14
to ns-3-...@googlegroups.com
hi,
do you have qt > 4.8.


--
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.

John Abraham

unread,
Jul 24, 2014, 12:49:01 PM7/24/14
to ns-3-...@googlegroups.com
qt >= 4.8 i mean

nmailoa

unread,
Jul 24, 2014, 12:55:14 PM7/24/14
to ns-3-...@googlegroups.com
Is this a requirement? I don't think there is any official release for RedHat and rpm does not suggest any update. Manually installing it can be hell-ish

John Abraham

unread,
Jul 24, 2014, 12:58:14 PM7/24/14
to ns-3-...@googlegroups.com
yes only 4.7 , 4.8 and possibly 4.9 are supported.
it is missing core libraries

common.h:21:35: error: QParallelAnimationGroup: No such file or directory
common.h:22:30: error: QPropertyAnimation: No such file or directory
common.h:26:35: error: QtCore/QXmlStreamReader: No such file or directory
common.h:34:32: error: QGraphicsProxyWidget: No such file or directory

nmailoa

unread,
Jul 24, 2014, 1:05:00 PM7/24/14
to ns-3-...@googlegroups.com
Ahh I see. Thanks a lot!

nmailoa

unread,
Jul 24, 2014, 1:36:52 PM7/24/14
to ns-3-...@googlegroups.com
So I got qt 4.7 installed but I'm still running into an error:
...
/usr/lib/qt4/bin/moc -DNS3_LOG_ENABLE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include -Iqtpropertybrowser/src -I. qtpropertybrowser/src/qtvariantproperty.h -o moc_qtvariantproperty.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DNS3_LOG_ENABLE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include -Iqtpropertybrowser/src -I. -o qtvariantproperty.o qtpropertybrowser/src/qtvariantproperty.cpp
/usr/lib/qt4/include/QtCore/qatomic_i386.h: Assembler messages:
/usr/lib/qt4/include/QtCore/qatomic_i386.h:177: Error: Incorrect register `%rbx' used with `l' suffix
make: *** [qtvariantproperty.o] Error 1

John Abraham

unread,
Jul 24, 2014, 1:41:29 PM7/24/14
to ns-3-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages