While compiling C++ SDK I am getting the following error
**
ERROR LOGS
**
fatal error: kaa/gen/EndpointGen.hpp: No such file or directory
[ 1%] Building CXX object kaa/CMakeFiles/kaacpp.dir/impl/event/registration/EndpointRegistrationManager.cpp.o
In file included from /home/vidhi/Projects/Kaa/kaaCppApp/kaa/kaa/channel/ITransportConnectionInfo.hpp:25:0,
from /home/vidhi/Projects/Kaa/kaaCppApp/kaa/kaa/KaaDefaults.hpp:28,
from /home/vidhi/Projects/Kaa/kaaCppApp/kaa/kaa/event/registration/EndpointRegistrationManager.hpp:20,
from /home/vidhi/Projects/Kaa/kaaCppApp/kaa/impl/event/registration/EndpointRegistrationManager.cpp:17:
/home/vidhi/Projects/Kaa/kaaCppApp/kaa/kaa/channel/TransportProtocolId.hpp:22:35: fatal error: kaa/gen/EndpointGen.hpp: No such file or directory
#include "kaa/gen/EndpointGen.hpp"
^
compilation terminated.
make[2]: * [kaa/CMakeFiles/kaacpp.dir/impl/event/registration/EndpointRegistrationManager.cpp.o] Error 1
make[1]: * [kaa/CMakeFiles/kaacpp.dir/all] Error 2
make: *** [all] Error 2
Manually I place EndpointGen.hpp file but again while compiling it's giving the same error for different file. Later I found files inside kaa/CMakeFiles/kaacpp.dir/impl/ were missing.
Could anyone please help me to resolve this issue?
This issue was resolved in v2.0.0 by adding compile-client-cpp option to the maven goals when compiling Kaa.
See the reference for this.
Related
I am trying to compile a code that uses openssl libraries. however, if I compile with -m32 flag, I get the following error:
make > make.txt
In file included from /usr/include/openssl/e_os2.h:56:0,
from /usr/include/openssl/bio.h:62,
from /home/dolf/gsoap-linux-2.7.17/stdsoap2.h:665,
from obj/../otamStub.h:13,
from obj/../otamH.h:10,
from obj/../otamC.cpp:13:
/usr/include/openssl/opensslconf.h:13:30: fatal error: opensslconf-i386.h: No such file or directory
#include "opensslconf-i386.h"
^
compilation terminated.
make[1]: *** [obj/otamC.o] Error 1
make: *** [all] Error 2
I have CentOS version 7.9.2009
I have installed openssl-devel, openssl, openssl-libs, openssl-devel-1.0.2k-25.el7_9.x86_64
those packages should installed the header file I am missing.
any clue on how to fix such issue?
thanks,
Dolf
I am trying to create a new project from Windows 10/11 in Omnet++ 5.7 referenced to inet (Right Clicked on First Project - > Properties - > Project References - > Marked Inet) but it fails because it can't find the inet's classes.
I tried to recompile everything (including inet after adding my .cc files), but nothing seems to work.
That's a sample of how I included the files in my .cc classes:
#include "inet/common/INETDefs.h"
#include "inet/common/geometry/common/Coord.h"
#include "inet/common/packet/Packet.h"
This is my error:
23:26:01 **** Incremental Build of configuration release for project project ****
make MODE=release all
cd src && /usr/bin/make
make[1]: Entering directory '/c/Users/cyb/Desktop/omnetpp-5.7/samples/project/src'
gpsr/Gpsr.cc
In file included from gpsr/Gpsr.cc:22:
gpsr/Gpsr.h:23:10: fatal error: 'inet/common/INETDefs.h' file not found
#include "inet/common/INETDefs.h"
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [Makefile:112: ../out/clang-release/src/gpsr/Gpsr.o] Error 1
make[1]: Leaving directory '/c/Users/cyb/Desktop/omnetpp-5.7/samples/project/src'
make: *** [Makefile:2: all] Error 2
"make MODE=release all" terminated with exit code 2. Build might be incomplete.
23:26:04 Build Failed. 3 errors, 0 warnings. (took 2s.194ms)
I've already tried to recreate a new "makemake" file, but still this error occurs.
I also tried the suggestions I found here Omnet++ inet::EtherAppCli not found and here Omnet++ fatal error: 'inet/common/INETDefs.h' file not found . Same error occurs when I create a new project from 0 or even if I use a different version of Omnet++/Inet (I tried omnet 4,5 and 6) or O.S (such as Windows or Linux). Anyone could help me?
I tried to install SFML with the help of this tutorial because I couldn't find a way to install it myself. After I did CTRL + B and Run build & debug I got this error:
⬤ Build & Run: Debug (target: sfml-vscode-boilerplate.exe)
src/PCH.hpp
In file included from src/PCH.hpp:66:0:
src/Utility/FileSystem.hpp:8:36: fatal error: experimental/filesystem: No such file or directory
#include <experimental/filesystem>
^
compilation terminated.
Makefile:313: recipe for target 'bin/Debug/obj/PCH.hpp.gch' failed
mingw32-make[1]: *** [bin/Debug/obj/PCH.hpp.gch] Error 1
Makefile:262: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
✘ Failed!
Review the compile errors above.
I'm using Windows 10, g++ version 6.3.0, SFML version 2.5.1, Visual Studo Code
Okay it was just bad version of GCC and G++
Ive downloaded the SDL2 library using brew install SDL2 but when I am trying to compile melonDS for Mac, I keep banging my head against the wall of the annoying error of
bash-3.2$ make
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/bigman/melonDS/build
[ 1%] Building CXX object CMakeFiles/melonDS.dir/src/libui_sdl/main.cpp.o
/Users/bigman/melonDS/src/libui_sdl/main.cpp:24:10: fatal error:
'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
^~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/melonDS.dir/src/libui_sdl/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/melonDS.dir/all] Error 2
make: *** [all] Error 2
bash-3.2$
I've uninstalled, reinstalled, tried to use compiler flags in the makefile (which did't work because the project uses cmake) but to no avail. Any other reccomendations would be great.
When I try to compile cgreen unit testing framework in cygwin64 I get this error:
[ 34%] Building CXX object tests/CMakeFiles/cgreen_cpp_tests.dir/assertion_tests.cpp.o
/home/Administrator/cgreen/tests/assertion_tests.cpp:1:1: error: ‘assertion_tests’ does not name a type
assertion_tests.c
^~~~~~~~~~~~~~~
make[2]: *** [tests/CMakeFiles/cgreen_cpp_tests.dir/build.make:63: tests/CMakeFiles/cgreen_cpp_tests.dir/assertion_tests.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1615: tests/CMakeFiles/cgreen_cpp_tests.dir/all] Error 2 make: *** [Makefile:161: all] Error 2
I have searched on google with no result.
I am using cygwin64 with cmake 3.6.2 and gcc 7.3.0
Any help will be appreciated!
The assertion_tests.cpp file is a symlink, see github cgreen repo. Sadly, on windows symlink is converted into textfile with the path to the file it should link to. You need to convert the file into actual link, as well all the others links in the cgreen repo, and there are some. Some help on how to do it may be better found on this thread.