signetlabdei / lorawan

An ns-3 module for simulation of LoRaWAN networks
GNU General Public License v2.0
190 stars 132 forks source link

./waf build error #25

Closed brunoqt closed 6 years ago

brunoqt commented 6 years ago

Expected Behavior

lorawan modules should get configured

Actual Behavior

Build failed -> task in 'ns3-lorawan' failed with exit status 1 (run with -v to display more information) -> task in 'ns3-lorawan' failed with exit status 1 (run with -v to display more information) -> task in 'ns3-lorawan' failed with exit status 1 (run with -v to display more information) -> task in 'ns3-lorawan' failed with exit status 1 (run with -v to display more information)

Steps to Reproduce the Problem

1.install ns-3, and clone this repository inside the src directory 2../waf configure --enable-tests --enable-examples 3../waf build

Specifications

DvdMgr commented 6 years ago

Hi! Is the module folder named exactly "lorawan"?

On Tue, Sep 18, 2018 at 9:35 PM brunoqt notifications@github.com wrote:

Expected Behavior

lorawan modules should get configured Actual Behavior

Build failed -> task in 'ns3-lorawan' failed with exit status 1 (run with -v to display more information) -> task in 'ns3-lorawan' failed with exit status 1 (run with -v to display more information) -> task in 'ns3-lorawan' failed with exit status 1 (run with -v to display more information) -> task in 'ns3-lorawan' failed with exit status 1 (run with -v to display more information) Steps to Reproduce the Problem

1.install ns-3, and clone this repository inside the src directory 2../waf configure --enable-tests --enable-examples 3../waf build Specifications

  • ns-3 version:3.28
  • lorawan module version:
  • Platform: Ubuntu 16.04
  • Compiler:2.7.12 Python

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/signetlabdei/lorawan/issues/25, or mute the thread https://github.com/notifications/unsubscribe-auth/ACckCdZwUpp5qdxM_q3q06-x9zO3Q-Hdks5ucUsAgaJpZM4Wumex .

brunoqt commented 6 years ago

Yes. I've uploaded photos about the errors found. 1 2 3

DvdMgr commented 6 years ago

Ok, which branch are you on? If you are not already on develop, try that one!

brunoqt commented 6 years ago

I did not understand

afarhad commented 6 years ago

Try to find the develop branch as shown in the picture below. [cid:6ad4c90d-12f6-43b5-b7f8-6f9917117940]


From: brunoqt notifications@github.com Sent: 19 September 2018 16:38 To: signetlabdei/lorawan Cc: Subscribed Subject: Re: [signetlabdei/lorawan] ./waf build error (#25)

I did not understand

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/signetlabdei/lorawan/issues/25#issuecomment-422768262, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AlKXjFIeyZNVH4LWhXcBtl0_MLWmRIo5ks5ucizMgaJpZM4Wumex.

brunoqt commented 6 years ago

I did not receive the image.

afarhad commented 6 years ago

Can you now?


From: brunoqt notifications@github.com Sent: 19 September 2018 16:52 To: signetlabdei/lorawan Cc: afarhad; Comment Subject: Re: [signetlabdei/lorawan] ./waf build error (#25)

I did not receive the image.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/signetlabdei/lorawan/issues/25#issuecomment-422772479, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AlKXjOSxVTRFxP-qIGdu17-UochFNX7qks5uci_jgaJpZM4Wumex.

brunoqt commented 6 years ago

yes

brunoqt commented 6 years ago

I did not receive the image.

DvdMgr commented 6 years ago

To use the develop branch, you can use the following command, given from inside the lorawan folder: git fetch && git checkout develop Then, you can try building again

brunoqt commented 6 years ago

Okay, I'll try and give you a return.

brunoqt commented 6 years ago

It worked! Thanks!

saifmassoud commented 4 years ago

hello everyone I ask for your help, I get many error when I build my project (using lorawan module) (using ns3.29 and ubuntu 18.04 LTS), the building error are linked below :)

seifeddine@seifeddine-Veriton-M480G:~/bake/source/ns-3.29$ sudo ./waf --run scratch/lorasimulation [sudo] password for seifeddine: Waf: Entering directory `/home/seifeddine/bake/source/ns-3.29/build' [2793/2878] Compiling scratch/complete-lorawan-network-example.cc [2794/2878] Compiling scratch/iotsimulation.cc [2795/2878] Compiling scratch/simple-lorawan-network-example.cc [2796/2878] Compiling scratch/lorasimulation.cc ../scratch/simple-lorawan-network-example.cc: In function ‘int main(int, char**)’: ../scratch/simple-lorawan-network-example.cc:66:7: error: ‘LoraChannel’ was not declared in this scope Ptr channel = CreateObject (loss, delay); ^~~ ../scratch/simple-lorawan-network-example.cc:66:7: note: suggested alternative: In file included from ./ns3/lora-phy.h:30:0, from ./ns3/end-device-lora-phy.h:32, from ../scratch/simple-lorawan-network-example.cc:7: ./ns3/lora-channel.h:73:7: note: ‘ns3::lorawan::LoraChannel’ class LoraChannel : public Channel ^~~ ../scratch/simple-lorawan-network-example.cc:66:18: error: template argument 1 is invalid Ptr channel = CreateObject (loss, delay); ^ ../scratch/simple-lorawan-network-example.cc:66:68: error: no matching function for call to ‘CreateObject(ns3::Ptr&, ns3::Ptr&)’ Ptr channel = CreateObject (loss, delay); ^ In file included from ./ns3/end-device-lora-phy.h:26:0, from ../scratch/simple-lorawan-network-example.cc:7: ./ns3/object.h:528:8: note: candidate: template ns3::Ptr ns3::CreateObject() Ptr CreateObject (void) ^~~~ ./ns3/object.h:528:8: note: template argument deduction/substitution failed: ./ns3/object.h:540:8: note: candidate: template<class T, class T1> ns3::Ptr ns3::CreateObject(T1) Ptr CreateObject (T1 a1) ^~~~ ./ns3/object.h:540:8: note: template argument deduction/substitution failed: ./ns3/object.h:555:8: note: candidate: template<class T, class T1, class T2> ns3::Ptr ns3::CreateObject(T1, T2) Ptr CreateObject (T1 a1, T2 a2) ^~~~ ./ns3/object.h:555:8: note: template argument deduction/substitution failed: ./ns3/object.h:572:8: note: candidate: template<class T, class T1, class T2, class T3> ns3::Ptr ns3::CreateObject(T1, T2, T3) Ptr CreateObject (T1 a1, T2 a2, T3 a3) ^~~~ ./ns3/object.h:572:8: note: template argument deduction/substitution failed: ./ns3/object.h:591:8: note: candidate: template<class T, class T1, class T2, class T3, class T4> ns3::Ptr ns3::CreateObject(T1, T2, T3, T4) Ptr CreateObject (T1 a1, T2 a2, T3 a3, T4 a4) ^~~~ ./ns3/object.h:591:8: note: template argument deduction/substitution failed: ./ns3/object.h:612:8: note: candidate: template<class T, class T1, class T2, class T3, class T4, class T5> ns3::Ptr ns3::CreateObject(T1, T2, T3, T4, T5) Ptr CreateObject (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) ^~~~ ./ns3/object.h:612:8: note: template argument deduction/substitution failed: ./ns3/object.h:635:8: note: candidate: template<class T, class T1, class T2, class T3, class T4, class T5, class T6> ns3::Ptr ns3::CreateObject(T1, T2, T3, T4, T5, T6) Ptr CreateObject (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6) ^~~~ ./ns3/object.h:635:8: note: template argument deduction/substitution failed: ./ns3/object.h:660:8: note: candidate: template<class T, class T1, class T2, class T3, class T4, class T5, class T6, class T7> ns3::Ptr ns3::CreateObject(T1, T2, T3, T4, T5, T6, T7) Ptr CreateObject (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7) ^~~~ ./ns3/obj

DvdMgr commented 4 years ago

Hi, it looks like this error is because of some error in your own lorasimulation.cc script - there's nothing we can do about it!

saifmassoud commented 4 years ago

hello everyone I ask for your help, I get many error when I build my project (using lorawan module) (using ns3-dev and ubuntu 18.04 LTS), the building error are linked below :) 1 2 3

DvdMgr commented 4 years ago

Again, the problem stems from a script in your scratch folder. ./waf --run complete-network-example works fine on my machine!

saifmassoud commented 4 years ago

Again, the problem stems from a script in your scratch folder. ./waf --run complete-network-example works fine on my machine!

Thanks @DvdMgr for your reply, could you tel me which version of ns-3 with which lorawan module can I use? if you have a full tutorial for installing, could you send it to me?

DvdMgr commented 4 years ago

The module is compatible with ns-3.30 - for installation, you can follow the instructions in the readme!

On Fri, Nov 22, 2019 at 4:27 PM saifmassoud notifications@github.com wrote:

Again, the problem stems from a script in your scratch folder. ./waf --run complete-network-example works fine on my machine!

Thanks @DvdMgr https://github.com/DvdMgr for your reply, could you tel me which version of ns-3 with which lorawan module can I use? if you have a full tutorial for installing, could you send it to me?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/signetlabdei/lorawan/issues/25?email_source=notifications&email_token=AATSICMFDDJYOAA5PCEKYN3QU725NA5CNFSM4FV2M6Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE57BVA#issuecomment-557576404, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATSICMZTDE2RTNJCOFCDRTQU725NANCNFSM4FV2M6YQ .

saifmassoud commented 4 years ago

Thanks @DvdMgr i'll verfiy, I hope that work :p