Class Veins::VeinsInetManager not found - c++

I've installed veins_inet project with omnet++ 5.0 and sumo 0.28. When I try to run the .ini on veins_example file this error appears:
Error in the module(omnetp::cModule) Scenario during network setup: Class Veins::VeinsInetManager not found
How do I solve this problem?

Is this the whole error message?
This kind of error can happen when the project is not properly created. To check that, verify if there is a folder named "Includes" in your project (you can see it in eclipse). If no, create a new project in Eclipse New | Project | OMNeT++, and paste your files there.

Related

How to properly delete projects in PlatformIO?

I use PlatformIO with Visual Studio Code on Windows 10.
Now whenever I:
create a Project with a name X
close Visual Studio Code
delete the Project folder X
open Visual Studio Code
create a new Project with the same name X
I get an empty project with a main.cpp file as expected, but the IDE shows an error for the line:
#include <Arduino.h>
The Error says: "Include Error recognised. Update your includePath." (Translated)
However, if I try to build, it compiles just fine. Even uploading and running works.
This include error appears not only with Arduino.h but with all includes, even if the file is in the exact same location. And it appears in other files than just main.cpp as well.
Can you tell me why this happens? How can I reuse the project names of deleted projects? Or If I should not delete projects like this (delete the project folder), how else would I delete a project?
I tried this with multiple project names and different boards, always with the same result.
Things I tried so far:
I found a Folder .cache in the PIO directory. But unfortunately renaming it (after step 3) did not help: after restarting PIO it recreated the folder as expected but the error message is still here.
In the same location there is a file homestate.json that among other things contains the path to recently opened projects. I removed those entries without luck.
I am just starting out with VSCoode and PlatformIO so i can't tell you why all of what you are seeing is happening is happening.
I use VSCode v1.63.0 on Windows 10.
If you want to delete the old project name, reuse it or not, you can bring up the Command Palette under the View menu (Shift-Control-P for me) and search for Workspace: Remove Folder from Workspace...., it will only be listed if you have projects in the workspace. A list of projects will be displayed, selected which one to delete and click on it. There will not be a confirmation prompt.

Error while building WSO2 Microgateway project on Windows 10

I’ve been trying to explore WSO2 Microgateway and set up a Microgateway project. Building the project in Windows 10 with the command “micro-gw build project-name” is giving this error: “Could not find or load main class org.wso2.apimgt.gateway.cli.cmd.Main”.
I’ve downloaded the Toolkit and Runtime from https://wso2.com/api-management/api-microgateway/. I've set the Path environment variable to the /bin directory of the Toolkit and Runtime extracted folders, but still the “micro-gw build project-name” command is giving error “Could not find or load main class org.wso2.apimgt.gateway.cli.cmd.Main”. I’ve also cloned the source code from Github (https://github.com/wso2/product-microgateway/) which has the Main.java class and tried setting environment variables to its path.
I also tried setting the environment variables to the path where Toolkit batch file is present. I also followed the steps mentioned here, https://github.com/wso2/product-microgateway/#running-the-microgateway.
I'm assuming the Toolkit batch file (micro-gw) would execute the Main.java class coming up in the error.
These steps did not resolve the error. I'm new to Java based product, and I'm sure I'm missing something here.
Problem is with the init command not the build command. Init command is suppose to setup the TOOLKIT after the first use. It should extract the platform.zip file and copy all of the required resources to relevant places for you.
I hope you get the Project ___ successfully initialized message after running the init command. Just check $TOOLKIT_HOME/logs/ directory to see if there are any information on the log file.
If the log file also doesn't help, as a workaround, copy all the .jar files inside $TOOLKIT_HOME/lib/gateway/platform and $TOOLKIT_HOME/lib/gateway/cli to $TOOLKIT_HOME/lib/platform/bre/lib and try again, that should work.
Also please report this issue at https://github.com/wso2/product-microgateway/issues

New to LibVLC - Trying out libVLC on VS2010

I downloaded vlc-2.2.4-win32.7z and extracted the files. I created an empty project in VS2010 and create a cpp file using the code I found on https://wiki.videolan.org/LibVLC_Tutorial/
On VS2010 project property, I added the include file folder and added Linker library folder and libvlc.lib, libvlccore.lib, vlc.lib, vlccore.lib to additional dependencies.
I got this build error --> D:\VLC\vlc-2.2.4\sdk\lib\vlccore.lib : fatal error LNK1107: invalid or corrupt file: cannot read at 0x16.
I have re-downloaded the file and still having the same error. Is there anything that I had done wrong .
Thanks,
Alex
For some reasons, the later versions do not work. I downloaded 2.1.3 and it worked.

CUDA error MSB3191

I tried to do the two new steps manually in my older project (CUDA Link Error (Lib to Dll)) to get my CUDA kernel running (just added the structure to the Lib part of the project). The steps are:
1: Project's 'Build Customization' to use CUDA 7.0(.targets, .props)
2: TestKernel.cu I've changed it's type to CUDA C/C++ in the Class Property Page.
Now I'm getting the following error message from CUDA 7.0.targets:
Error 1 error MSB3191: Unable to create directory
"SourceLib.dir\Debug\C:\Users\Matthieu\Desktop\Project\src\SourceLib\Helpers\".
The given path's format is not supported. C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA
7.0.targets 412 9 SourceLib
I've searched for a solution but I can't find any. Everyone is talking about this part "SourceLib.dir\Debug\C:\Users.......", which obviously looks wrong, but I can't find the setting in Visual Studio or CMake. Where can I adjust this?
It's similar to this question (CUDA 6.5: error MSB3191 Unable to create directory and LNK2001 Unresolved External symbol), but I can't fix it by copying the .cu file.
If I don't set the .targets file it won't build. I'll get the older error. Any help?
And alternative for getting the setup running using Cmake is also welcome :)
Thx!
The issue was that the CMake file was filling "SourceLib.dir\Debug" into the Intermediate Directory property (Project Properties -> General). Deleting it resolved the issue with the CUDA 7.0 target

Team City - File not found error - compilation error

My team city build is failing with error
" [Csc] CSC error CS2001: Source file
'Services\Entities\ModelNames.cs' could not be found
Thing is this .cs file is deleted from source contrl (TFS) and local machines when checked in. There is no piece of code using this class anywhere in the project. But I still keep getting this error. What can I try?
Make sure your TeamCity checkout or script checkout is correct. It seems like your building using old project file. Maybe the sub directories are checked out and not the root directory as well ?