Error when Building inet framework 3.5 and error when building SIMULTE

256 views
Skip to first unread message

bade...@student.concordia.ab.ca

unread,
Nov 6, 2017, 11:05:51 PM11/6/17
to OMNeT++ Users
Hello,

Please I need help using omnet++ 5.1 version. I get error when I try to build up inet framework 3.5 and I also get error when I tried to build up simulte. I'm trying to use the simulte on omnet++ to create a rogue base station attack for my research, I'll appreciate it if I can get any help on here. I've attached screenshots of the errors to this discussion.

Regards,
Babajide

Below is the source code for the inet framework build up

#ifndef __INET_INETDEFS_H
#define __INET_INETDEFS_H

// precompiled headers must be included first
#include "inet/common/precompiled.h"

// important WITH_* macros defined by OMNET
#include "inet/opp_defines.h"

// feature defines generated based on the actual feature enablement
#include "inet/features.h"

//
// General definitions.
//

#include "inet/common/Compat.h"

using namespace omnetpp;

#if OMNETPP_VERSION < 0x0501 || OMNETPP_BUILDNUM < 1010
#  error At least OMNeT++/OMNEST version 5.1 required
#endif // if OMNETPP_VERSION < 0x0501

#define INET_VERSION  0x0305
#define INET_PATCH_LEVEL 0x00

#if defined(INET_EXPORT)
#  define INET_API    OPP_DLLEXPORT
#elif defined(INET_IMPORT)
#  define INET_API    OPP_DLLIMPORT
#else // if defined(INET_EXPORT)
#  define INET_API
#endif // if defined(INET_EXPORT)

#include "inet/common/InitStages.h"

// main namespace of INET framework
namespace inet {

typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;

// used at several places as
#define SPEED_OF_LIGHT    299792458.0

//
// Macro to protect expressions like gate("out")->getToGate()->getToGate()
// from crashing if something in between returns nullptr.
// The above expression should be changed to
//    CHK(CHK(gate("out"))->getToGate())->getToGate()
// which is uglier but doesn't crash, just stops with a nice
// error message if something goes wrong.
//
template<class T>
T *__checknull(T *p, const char *expr, const char *file, int line)
{
    if (!p)
        throw cRuntimeError("Expression %s returned nullptr at %s:%d", expr, file, line);
    return p;
}

#define RNGCONTEXT  (cSimulation::getActiveSimulation()->getContext())->

#define FINGERPRINT_ADD_EXTRA_DATA(x)  { if (cFingerprintCalculator *fpc = getSimulation()->getFingerprintCalculator()) fpc->addExtraData(x); }
#define FINGERPRINT_ADD_EXTRA_DATA2(x,y)  { if (cFingerprintCalculator *fpc = getSimulation()->getFingerprintCalculator()) fpc->addExtraData(x, y); }

#define CHK(x)     __checknull((x), #x, __FILE__, __LINE__)

#define PK(msg)    check_and_cast<cPacket *>(msg)    /*XXX temp def*/

inline void printElapsedTime(const char *name, long startTime)
{
    EV_DEBUG << "Time spent in " << name << ": " << ((double)(clock() - startTime) / CLOCKS_PER_SEC) << "s" << endl;
}

#define TIME(CODE)    { long startTime = clock(); CODE; printElapsedTime( #CODE, startTime); }

} // namespace inet

#endif // ifndef __INET_INETDEFS_H



Below is  the source code for simulte

// Generated file, do not edit! Created by nedtool 5.2 from apps/vod/VoDPacket.msg.
//

#if defined(__clang__)
#  pragma clang diagnostic ignored "-Wreserved-id-macro"
#endif
#ifndef __VODPACKET_M_H
#define __VODPACKET_M_H

#include <omnetpp.h>

// nedtool version check
#define MSGC_VERSION 0x0502
#if (MSGC_VERSION!=OMNETPP_VERSION)
#    error Version mismatch! Probably this file was generated by an earlier version of nedtool: 'make clean' should help.
#endif



/**
 * Class generated from <tt>apps/vod/VoDPacket.msg:13</tt> by nedtool.
 * <pre>
 * //
 * // Packet used by the video-on-demand application (~VoDUDPServer, ~VoDUDPClient)
 * //
 * packet VoDPacket
 * {
 *     int frameSeqNum;
 *     int frameLength;
 *     // temporal scalability layer
 *     int tid;
 *     // SNR scalability layer
 *     int qid;
 * }
 * </pre>
 */
class VoDPacket : public ::omnetpp::cPacket
{
  protected:
    int frameSeqNum;
    int frameLength;
    int tid;
    int qid;

  private:
    void copy(const VoDPacket& other);

  protected:
    // protected and unimplemented operator==(), to prevent accidental usage
    bool operator==(const VoDPacket&);

  public:
    VoDPacket(const char *name=nullptr, short kind=0);
    VoDPacket(const VoDPacket& other);
    virtual ~VoDPacket();
    VoDPacket& operator=(const VoDPacket& other);
    virtual VoDPacket *dup() const override {return new VoDPacket(*this);}
    virtual void parsimPack(omnetpp::cCommBuffer *b) const override;
    virtual void parsimUnpack(omnetpp::cCommBuffer *b) override;

    // field getter/setter methods
    virtual int getFrameSeqNum() const;
    virtual void setFrameSeqNum(int frameSeqNum);
    virtual int getFrameLength() const;
    virtual void setFrameLength(int frameLength);
    virtual int getTid() const;
    virtual void setTid(int tid);
    virtual int getQid() const;
    virtual void setQid(int qid);
};

inline void doParsimPacking(omnetpp::cCommBuffer *b, const VoDPacket& obj) {obj.parsimPack(b);}
inline void doParsimUnpacking(omnetpp::cCommBuffer *b, VoDPacket& obj) {obj.parsimUnpack(b);}


#endif // ifndef __VODPACKET_M_H
inet.PNG
simulte.PNG

Khalid Mohammadani

unread,
Dec 8, 2019, 7:00:19 PM12/8/19
to OMNeT++ Users
Hello, Babajide
Did you solve this problem. i have same problem. i am trying to install it in omnet++5.1 with inet 4.1.
Reply all
Reply to author
Forward
0 new messages