netanim-3.109 Build Error @ MAC OS (macOS Ventura 13.3.1)

250 views
Skip to first unread message

Anil Kumar Maguluri

unread,
Apr 24, 2023, 6:32:56 AM4/24/23
to ns-3-users
HI,
I am trying to build netanim-3.109 using the below commands:
"make clean
qmake -spec macx-g++ NetAnim.pro
make"
and observing the below build errors:

matorscene.o animatorscene.cpp
In file included from animatorscene.cpp:22:
In file included from ./animatorscene.h:28:
./animpacket.h:237:10: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
    if ( (type == "3") & (code == "3"))
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                       &&
./animpacket.h:237:10: note: cast one or both operands to int to silence this warning
In file included from animatorscene.cpp:25:
In file included from ./animpropertybrowser.h:24:
In file included from qtpropertybrowser/src/QtIntPropertyManager:1:
qtpropertybrowser/src/qtpropertymanager.h:187:5: error: unknown type name 'QRegExp'
    QRegExp regExp(const QtProperty *property) const;
    ^
qtpropertybrowser/src/qtpropertymanager.h:193:48: error: unknown type name 'QRegExp'
    void setRegExp(QtProperty *property, const QRegExp &regExp);
                                               ^
qtpropertybrowser/src/qtpropertymanager.h:199:52: error: unknown type name 'QRegExp'
    void regExpChanged(QtProperty *property, const QRegExp &regExp);
                                                   ^
1 warning and 3 errors generated.
make: *** [animatorscene.o] Error 1
anilmaguluri@Bhanus-MacBook-Pro netanim-3.109 %


Can you please let me know how to fix the above issue.

Thanks and Regards,
Anil Kumar Maguluri

Tommaso Pecorella

unread,
Apr 24, 2023, 7:15:13 AM4/24/23
to ns-3-users
Try changing "&" with "&&" - looks like an (harmless) bug.

About the errors, it might be due to the use of QT6 instead of QT5, or a mixed installation where both QT6 and QT5 are present.
Try installing QT5 and removing QT6 (we didn't fully test everything with QT6).


T.

Anil Kumar Maguluri

unread,
May 16, 2023, 3:58:31 PM5/16/23
to ns-3-users
Sorry for delayed response.
I have cleaned up the QT libraries and installed which make me to build the netamin.

Thanks for your support.
Reply all
Reply to author
Forward
0 new messages