Open HusseinZubaidy opened 1 year ago
Hi Hussein,
I ran into the same problem (with ns3 version 3.38). I guess the issue is that the module was written and tested for ns3 version 3.31 which was based on the waf build system. The recent version of ns3 uses cmake, however the TAS-in-NS3 repo does not include the specific cmake files to integrate it as a cmake module (and thus the ns3/tsn-module.h will not be generated by the build system).
I did create the necessary cmake files and add them next. If you add them to the specific location of your tsn module folder, it should build the module (and create the header that you are looking for).
contrib_tsn_examples_CMakeLists.txt
The name of the files show the location you have to put them, e.g., the contrib_tsn_examples_CMakeLists.txt should be
For me it compiles, but I cannot guarantee whether all features are working as intended.
Regards, Ben
Hi Ben, Thank you for the explanation and for the files. I will add the files as you recommended and give it a try. Best regards, Hussein Sent from my Huawei phone-------- Original message --------From: Ben Schneider @.>Date: Wed, Jun 7, 2023, 16:06To: DenKrysos/Time-Aware-Shaper-TAS-in-ns-3 @.>Cc: HusseinZubaidy @.>, Author @.>Subject: Re: [DenKrysos/Time-Aware-Shaper-TAS-in-ns-3] Missing "ns3/tsn-module.h" (Issue #5)
Hi Hussein,
I ran into the same problem (with ns3 version 3.38). I guess the issue is that the module was written and tested for ns3 version 3.31 which was based on the waf build system. The recent version of ns3 uses cmake, however the TAS-in-NS3 repo does not include the specific cmake files to integrate it as a cmake module (and thus the ns3/tsn-module.h will not be generated by the build system).
I did create the necessary cmake files and add them next. If you add them to the specific location of your tsn module folder, it should build the module (and create the header that you are looking for).
contrib_tsn_examples_CMakeLists.txt
contrib_tsn_CMakeLists.txt
The name of the files show the location you have to put them, e.g., the contrib_tsn_examples_CMakeLists.txt should be
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
line 28 in contrib_tsn_CMakeLists.txt needs to be:
helper/tsn-helper.h (instead of helper/tsn-helper.cc)
regards Ben
Thank you so much for your work. I met the same issue, and I used the above solution. Unfortunately, it doesn't work. In this ens, do you have any other solution to sovle Missing "ns3/tsn-module.h" ? Thank you so much in advance!
Hi Dennis, Thanks for providing the TAS extension to ns-3. I was trying to run your code (tas-test.cc) but I got compiler error "ns3/tsn-module.h" No such file or directory. It seems that the header file doesnt exist. Do you know why it is so. I downloaded and built the package couple of times and the same issue persists. I appreciate your help in this matter. Regards.
Hussein