jordi
New Member
Posts: 5
|
Post by jordi on Mar 8, 2020 20:18:11 GMT
Hi all, I am Jordi and I am trying to implement a PTP simulation for my thesis about 5G. I am running omnet++ 4.6 in Ubuntu 16.04. I have followed all the installation guide, build the libPLN and got the PLN.a and PLN_Examples.a libraries. Then I added the path of the installation folder (where I unzipped the libPLN before building it) and the path the src folder. However, when compiling the PLNlib I get this error in the file "libPLN_TdGen.h" tries to include "libPNL.hpp": In file included from Hardware/HwClock/HwClock/HwClock.cc:34:0: Hardware/HwClock/TdGen/libPLN_TdGen.h:34:22: fatal error: libPLN.hpp: No such file or directory compilation terminated. Makefile:511: recipe for target '../out/gcc-release/src/Hardware/HwClock/HwClock/HwClock.o' failed make[1]: Leaving directory '/home/jordi/OMNET/libPTP-master/src' make[1]: *** [../out/gcc-release/src/Hardware/HwClock/HwClock/HwClock.o] Error 1 make: *** [all] Error 2 Makefile:2: recipe for target 'all' failed I have tried to change the #include specifying the path to the file (/home/.../libPLN.hpp) but it only moves the error to another place and I don't think I should change the code in the libPLN_TdGen but I don't know how to make it work. Please help me Thanks in advance, Jordi
|
|
|
Post by Wolfgang on Mar 8, 2020 20:38:27 GMT
Hello Jordi, the file libPLN_TdGen.h from libPTP tries to include the header libPLN.hpp from libPLN. For this to work you need to have the path to libPLN.hpp configured in the include paths in your project settings of libPTP. The header file libPLN.hpp is located in the directory libPLN/src. Do you have the complete path to this directory configured in your include paths in the OMNeT++ project settings? Just for reference, the necessary steps are described in the Install_Guide in step 3, sub-step "Add the include paths for libPLN". regards, Wolfgang
|
|
jordi
New Member
Posts: 5
|
Post by jordi on Mar 8, 2020 23:11:11 GMT
Hello Wolfgang, Now everything works fine! I was not including the path correctly in the OMNeT++ project features. When closing the project settings, there is a pop-up window asking if you want to rebuild the project to include the changes. I was rejecting that rebuild since I though it was enough with the local clean and the build project but it is necessary. Thank you Best Regards, Jordi
|
|