encountering an error in omnetpp project building - c++

I am working on omnet++ project called mfogsim. I download it from github https://github.com/rtqayyum/mFogSim , in the site they recommend to use omnet ++ 4.6 along with INET 3.6.4
when I do so on windows the project worked correctly, but, for some reason, I need it to work on ubuntu. when i tried to build the project on ubuntu the following error always appeared
when I open the the NEDFunctions.cc it seems that it defined properly as illustrated in the following image . can any one help me please

Related

MetalKit's drawInMTKView function not called if app is built using cmake/make?

I ran into a strange issue testing Metal cpp. The following project is almost the same as Apple's official Metal Cpp example project.
https://github.com/shi-yan/testmetal
The apple official example contains an Xcode project, whereas my modified version tries to use cmake.
My cmake project builds and runs, but the window is empty. I debugged it, the root cause is that the drawInMTKView function never gets called.
If I generate an Xcode project using cmake, then build and run my code in Xcode, the resulting app can render to its window just fine.
However, if I run the same app binary through the terminal, it will show an empty window again.
Any idea what might cause this? Thanks.
Thanks to an Apple engineer, the issue is resolved.
My CMakeLists.txt doesn't load MetalKit. XCode can load MetalKit automatically, hence there was no issue running it via xcode.
Adding MetalKit to my CMakeList.txt solved the issue.

Microbit Platformio development - 'PlatformIOLibBuilder' object has no attribute 'get_inc_dirs'

I am currently trying to play around with developing on a BBC microbit on c++ through the Platformio IDE on Atom.
I have got the software working with other boards (various NUCLEO boards that I own), and the code itself for the mircobit is the simple "Hello World" scroller that compiles fine on the mbed online compiler.
When compiling on platformio I get:
Attribute Error: 'PlatformIOLibBuilder' object has no attribute 'get_inc_dirs'
I have tried installing the microbit University of Lancaster libraries, and platformio says they are installed but it doesn't appear in the lib folder of the project I am using.
When it comes to developing I am very much a newbie in terms of setting up environments and IDEs, and I keep searching everywhere for answers on this but its hard to filter out what I need to do to fix this issue. While the microbit is a supported board, there is no guide as to how to get started with it, and every other board just seems to work fine with all the default installations.
UPDATE: The solution below works also for Ubuntu and windows though LED displays come out a bit garbled when you try and scroll text. However, serial communication shows that the actual microbit is doing what it should.
The errors in the display may be down to the fact that the microbit libraries are v2.0.0-rc4 whereas the most up to date version of the University of Lancaster Libraries appear to be v2.0.0-rc10.
Edit:
I am using Linux Mint and the platformio plugin in Atom. I had the reported error. First of all I used the command line tool to update platoformio:
~/.platformio/penv/bin/pio update
To remove the get_dirs error and enable my code to compile:
In
~/.platformio/lib/nrf51-sdk/platformio_extra.py
change line:
pio_lib_builder.env.Prepend(CPPPATH=pio_lib_builder.get_inc_dirs())
to:
pio_lib_builder.env.Prepend(CPPPATH=pio_lib_builder.get_include_dirs())
I got this idea from:
https://github.com/palfrey/nrf51-sdk/pull/1/files
To get my compiled code to load I run atom as sudo:
sudo atom

Bad Image error when trying to run cygwin on windows 10

I recently installed cygwin together with clion on my laptop. It worked fine for a few hours, suddenly the IDE could not build the project, and then when I tried to run cygwin terminal, I got the message:
Bad image :C:\cygwin64\bin\cygwin1,dll is either not designed to run
on Windows or it contains an error...
I tried to look it up and I realized it is something to do with a bad update which was installed automatically. I didn't find any information about cygwin in this context and i don't know how to find the update that caused this.
in anyone here familiar with the problem?

Issue setting up xcode 7 on El Capitan osx 10.11 and python

got a new mac, wanting to setup python and xcode, I am facing two issues.
python directory is showing up as "/Library/Frameworks/Python.framework/Versions/2.7/bin/python" which I think should be "usr/bin/python"...is this correct? if so how do I change it back?
I have followed this tutorial https://www.youtube.com/watch?v=ysik6P5MIVs to setup xcode but when I go to run my simple code, I get a error "There is an problem launching using posix_spawn (error code: 8)." but it also says "build successful". I think this issue is somehow related to #1.
How to setup my computer?
You have to use "/usr/bin/pythonw"
It works!

Cocosmotion cloned from github repository does not work

I cloned cocosmotion repository from github, but I can't get it to work. I am almost totally new to mac os, xcode and iOS development, so there can be things that I am missing right now).
I have XCode 4.5 installed, downloaded cocos2d and installed it's template so that now I can create cocos2d projects from templates. Also I bought RubyMotion and RubyMine with it;s support, but demo project from github does not compile with the following error:
/Users/DarkDeny/.rvm/rubies/ruby-1.9.3-p327/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/DarkDeny/.rvm/gems/ruby-1.9.3-p327/bin/rake simulator
Build ./build/iPhoneSimulator-6.0-Development
Build vendor/cocos2d-iphone
ERROR! Building vendor project vendor/cocos2d-iphone' failed to create at least one.a' library.
Process finished with exit code 1
I tried to compare cocos2d which I downloaded by myself from it's site, found that resources are missing, after adding them to cocos2d folder structure. I got XCode compiling cocos2d within cocosmotion-master folder to compile successfully, but rubymotion project still reports the same error from above.
What am I missing? What could be the root cause of the problem?
It is better to start from scratch and use cocoapods with RubyMotion. This will definitely work as I was able to check. cocosmotion repo from github is deprecated since there is a pod of cocos2d from its' creators.