Post by jordi on Mar 15, 2020 20:09:15 GMT
Hi all,
I am trying to add the PLN.a and PLN_Examples libraries. I already included the path in Paths & Symbols -> Library paths /home/.../lib/static/ . However OMNeT++ doesn't detect the them:
make[1]: Entering directory '/home/jordi/OMNET/PTP_Simulations-master/src'
Creating executable: ../out/gcc-debug/src/PTP_Simulations
/usr/bin/ld: cannot find -lPLN
/usr/bin/ld: cannot find -lPLN_Examples
collect2: error: ld returned 1 exit status
make[1]: *** [../out/gcc-debug/src/PTP_Simulations] Error 1
Makefile:90: recipe for target '../out/gcc-debug/src/PTP_Simulations' failed
make: *** [all] Error 2
make[1]: Leaving directory '/home/jordi/OMNET/PTP_Simulations-master/src'
Makefile:2: recipe for target 'all' failed
Creating executable: ../out/gcc-debug/src/PTP_Simulations
/usr/bin/ld: cannot find -lPLN
/usr/bin/ld: cannot find -lPLN_Examples
collect2: error: ld returned 1 exit status
make[1]: *** [../out/gcc-debug/src/PTP_Simulations] Error 1
Makefile:90: recipe for target '../out/gcc-debug/src/PTP_Simulations' failed
make: *** [all] Error 2
make[1]: Leaving directory '/home/jordi/OMNET/PTP_Simulations-master/src'
Makefile:2: recipe for target 'all' failed
If I mark in the project setting -> src:makemake the target type as Static libraries it builds the PTP_Simulation projects without errors but when I try to execute a simulation it throws the following error:
<!> Warning: opp_run: Cannot check library ../../../../libPTP-master/src/libPTP: ../../../../libPTP-master/src//liblibPTP.so: undefined symbol: _ZN15LibPLN_Examples12cAvgOsc20MHzC1Ejb
Simulation terminated with exit code: 139
Working directory: /home/jordi/OMNET/PTP_Simulations-master/simulations/Testbenches/ClockSchedule
Command line: opp_run -r 0 -n ../../../src:../..:../../../../libPTP-master/simulations:../../../../libPTP-master/src:../../../../inet/examples:../../../../inet/src:../../../../OMNeT_Utils-master/src --tkenv-image-path=../../../../libPTP-master/images -l ../../../../libPTP-master/src/libPTP -l ../../../../inet/src/inet -l ../../../../OMNeT_Utils-master/src/OMNeT_Utils omnetpp.ini
Environment variables:
PATH=/home/jordi/OMNET/omnetpp-4.6/bin::/home/jordi/OMNET/omnetpp-4.6/bin:/home/jordi/OMNET/omnetpp-4.6/bin:/home/jordi/bin:/home/jordi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
LD_LIBRARY_PATH=/home/jordi/OMNET/omnetpp-4.6/lib::/home/jordi/OMNET/libPTP-master/src:/home/jordi/OMNET/inet/src:/home/jordi/OMNET/OMNeT_Utils-master/src:/home/jordi/OMNET/omnetpp-4.6/lib:/home/jordi/OMNET/omnetpp-4.6/lib:
OMNETPP_IMAGE_PATH=/home/jordi/OMNET/omnetpp-4.6/images
Simulation terminated with exit code: 139
Working directory: /home/jordi/OMNET/PTP_Simulations-master/simulations/Testbenches/ClockSchedule
Command line: opp_run -r 0 -n ../../../src:../..:../../../../libPTP-master/simulations:../../../../libPTP-master/src:../../../../inet/examples:../../../../inet/src:../../../../OMNeT_Utils-master/src --tkenv-image-path=../../../../libPTP-master/images -l ../../../../libPTP-master/src/libPTP -l ../../../../inet/src/inet -l ../../../../OMNeT_Utils-master/src/OMNeT_Utils omnetpp.ini
Environment variables:
PATH=/home/jordi/OMNET/omnetpp-4.6/bin::/home/jordi/OMNET/omnetpp-4.6/bin:/home/jordi/OMNET/omnetpp-4.6/bin:/home/jordi/bin:/home/jordi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
LD_LIBRARY_PATH=/home/jordi/OMNET/omnetpp-4.6/lib::/home/jordi/OMNET/libPTP-master/src:/home/jordi/OMNET/inet/src:/home/jordi/OMNET/OMNeT_Utils-master/src:/home/jordi/OMNET/omnetpp-4.6/lib:/home/jordi/OMNET/omnetpp-4.6/lib:
OMNETPP_IMAGE_PATH=/home/jordi/OMNET/omnetpp-4.6/images