Post by robreido on Mar 14, 2023 10:31:35 GMT
N.B. - running on Windows 11 with OMNeT++ 4.6.
I am attempting to build LibPTP with support for LibPLN, and have experienced a failure. I previously experienced issues attempting to do this, so I begun by deleting LibPLN and fftw from my disk, uninstalling CMake and removing all references to LibPLN and fftw from libPTP's project settings in OMNeT++. I then successfully cleaned and rebuilt libPTP.
I then followed the install guide listed here for LibPLN and experienced no issues. CMake is installed in C:\Program Files\CMake, boost is in C:\boost, fftw is in D:\fftw-3.3.5-dll32. My libPTP directory is D:\omnetpp-4.6\ptp-sim\libPTP-master, and my libPLN directory is D:\omnetpp-4.6\ptp-sim\libPLN-master.
I then added the required references to libPLN in libPTP's project settings in OMNeT++, leaving my project settings looking like this:
ibb.co/xL5W0WL
ibb.co/JKSJT95
I then (successfully) cleaned libPTP and attempted to build it. This resulted in a failure with this message:
Given that libPLN is appropriately referenced in my libPTP project settings, I can't see what would be causing this. Any help would be greatly appreciated.
I am attempting to build LibPTP with support for LibPLN, and have experienced a failure. I previously experienced issues attempting to do this, so I begun by deleting LibPLN and fftw from my disk, uninstalling CMake and removing all references to LibPLN and fftw from libPTP's project settings in OMNeT++. I then successfully cleaned and rebuilt libPTP.
I then followed the install guide listed here for LibPLN and experienced no issues. CMake is installed in C:\Program Files\CMake, boost is in C:\boost, fftw is in D:\fftw-3.3.5-dll32. My libPTP directory is D:\omnetpp-4.6\ptp-sim\libPTP-master, and my libPLN directory is D:\omnetpp-4.6\ptp-sim\libPLN-master.
I then added the required references to libPLN in libPTP's project settings in OMNeT++, leaving my project settings looking like this:
ibb.co/xL5W0WL
ibb.co/JKSJT95
I then (successfully) cleaned libPTP and attempted to build it. This resulted in a failure with this message:
Creating shared library: ../out/gcc-debug/src/liblibPTP-master.dll
.tmplib17708(libPLN_TdGen.o): In function `ZN13cLibPLN_TdGen17AllocateResourcesEv':
D:\omnetpp-4.6\ptp-sim\libPTP-master\src/Hardware/HwClock/TdGen/libPLN_TdGen.cc:80: undefined reference to `LibPLN_Examples::cAvgOsc20MHz::cAvgOsc20MHz(unsigned int, bool)'
D:\omnetpp-4.6\ptp-sim\libPTP-master\src/Hardware/HwClock/TdGen/libPLN_TdGen.cc:83: undefined reference to `LibPLN_Examples::cWatchQuartz_20MHz::cWatchQuartz_20MHz(unsigned int, bool)'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [../out/gcc-debug/src/liblibPTP-master.dll] Error 1
Makefile:505: recipe for target '../out/gcc-debug/src/liblibPTP-master.dll' failed
make[1]: Leaving directory '/d/omnetpp-4.6/ptp-sim/libPTP-master/src'
make: *** [all] Error 2
Makefile:2: recipe for target 'all' failed
Given that libPLN is appropriately referenced in my libPTP project settings, I can't see what would be causing this. Any help would be greatly appreciated.