Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception while buidling oversim in MacOS Monterey #3

Open
vgiotsas opened this issue Aug 17, 2022 · 3 comments
Open

Exception while buidling oversim in MacOS Monterey #3

vgiotsas opened this issue Aug 17, 2022 · 3 comments

Comments

@vgiotsas
Copy link

While executing make I get the following error:

oversim % make
cd src && make
make[1]: Entering directory '/Users/vgiotsas/Downloads/omnetpp-6.0/oversim/src'
MSGC: applications/almtest/ALMTestTracedMessage.msg
applications/almtest/ALMTestTracedMessage.msg:28: Error: Type declarations are not needed with imports, try invoking the message compiler in legacy (4.x) mode using the --msg4 option
applications/almtest/ALMTestTracedMessage.msg:33: Error: unknown type 'OverlayKey' for field 'groupId' in 'ALMTestTracedMessage'
opp_msgtool: error in 1 file(s)
make[1]: *** [Makefile:379: applications/almtest/ALMTestTracedMessage_m.h] Error 1
make[1]: Leaving directory '/Users/vgiotsas/Downloads/omnetpp-6.0/oversim/src'
make: *** [Makefile:11: all] Error 2

My system is MacOS Monterey 12.2.1 with GNU Make 4.2.1 Built for x86_64-apple-darwin17.7.0

@avarga
Copy link
Member

avarga commented Aug 17, 2022

The problem is not macOS, but that OverSim-20190424 only works with OMNeT++ 5.x (the Releases page says "OMNeT++ 5.4.1 or later"). There were many changes in OMNeT++ 6.0 affecting compatibility.

@vgiotsas
Copy link
Author

Thanks @avarga

I've downloaded Oment 5.6 and Inet-3.6.5 which solved the previous issue, but unfortunately now I get a different error:

% make
cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make
applications/UDPAppBase.cc
applications/almtest/ALMTest.cc
In file included from applications/almtest/ALMTest.cc:26:
In file included from ./applications/almtest/ALMTest.h:29:
In file included from ./common/BaseApp.h:36:
In file included from ./common/NodeVector.h:31:
In file included from ./common/Comparator.h:30:
In file included from ./common/ProxNodeHandle.h:30:
In file included from ./common/NodeHandle.h:34:
In file included from ./common/TransportAddress.h:30:
./common/oversim_mapset.h:32:10: fatal error: 'tr1/unordered_map' file not found
#include <tr1/unordered_map>
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [../out/clang-release/src/applications/almtest/ALMTest.o] Error 1
make: *** [all] Error 2

@vgiotsas vgiotsas reopened this Aug 18, 2022
@avarga
Copy link
Member

avarga commented Aug 19, 2022

Have you tried leaving out the tr1/ part? I.e. just change #include <tr1/unordered_map> to #include <unordered_map>. Looks like the code was written before std::unordered_map became official part of the C++ standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants