Hi all
My purpose is to compile ns-3 project with first.cc example as main.cpp working with QtCreator
I use this guides:
As I realized, I can compile and work with ns3 project without Waf at all (Right? (1) )
I've builded ns3 this way: ./build.py --enable-examples --enable-tests
So, I created in QtCreator "New Project" and included all from ns-3-allinone/ns-3.22/src/<some_directory>/ model or helper /*
Also copy-pasted sample of first.cc into main.cpp
Then, I added next lines to .PRO file:
QMAKE_CXXFLAGS += -std=c++11
INCLUDEPATH += ../../ns-3-allinone/ns-3.22/build
DEFINES += NS3_LOG_ENABLE
DEFINES += NS3_ASSERT_ENABLE
Afterwards, I faced with some problems of GTK-2 including:
.../model-node-creator.h:21: error: gtk/gtk.h: No such file or directory #include <gtk/gtk.h>
I managed it this way:
addition to .PRO file
CONFIG += link_pkgconfig
PKGCONFIG = gtk+-2.0
Unfortunately, I cant find solution of my next compilation problem:
.../ns-3-allinone/ns-3.22/src/core/model/int64x64-cairo.cc:68: error: 'int64x64_t' has not been declared
int64x64_t::Mul (const int64x64_t & o)
Note: I can build .../ns-3.22/src/core/model/int64x64.cc without errors
Have you any ideas how to fix it?
Regards,
Ivan