Hi all,
I dont have a question this time as you can understand from the subject. I will explain how I managed to run
obgm's libcoap implementation in DCE 1.9.
Almost 8 months ago, I needed to use libcoap in ns-3 so I tried to run it in DCE 1.8 but I couldnt run it. I had posted
a question about the problem in this group, but I was not able to run it successfully.
For another reason, I needed to use it again so decided to give another try.
You can find my system specs and the steps below that I followed to run libcoap in DCE 1.9. Please note that this is tested only on Ubuntu 14.04. Also, I am assuming you are already installed all required external libraries
1) First of all, download the DCE and build it as described in the manual.
2) Download the libcoap, navigate to that folder in the terminal and follow those steps
a) ./autogen.sh
b) ./configure --enable-examples CFLAGS="-fPIC -pie -rdynamic -U_FORTIFY_SOURCE"
c) make
d) make check
e) sudo make install
f) sudo make installcheck
Item b configures the installation so that the runnable files are created as shared objects not traditional executables. In the end of these commands, you will have two shared server and client objects in your /usr/local/bin folder.
3) Add those lines into the end of bashrc file under your home directory and restart your terminal. Please be aware of that this is a hidden file
a) export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
b) export DCE_PATH=$DCE_PATH:/usr/local/bin
Item b points where to look to find the shared objects we will use in our ns3 script.
4) Create a folder named, for example, coap in dce/source/ns-3-dce/myscripts folder and copy the files that I attached.
5) Navigate to dce/source/ns-3-dce in the terminal and run this command
a) ./waf --run dce-coap
This worked in my setup. I hope I didnt skip any step.
If you experience any problems please do not hesitate to ask.
Regards,
Samet Tonyali