Adding cryptopp library in NS3 version 3.38

73 views
Skip to first unread message

Dhanupriyan

unread,
Mar 12, 2024, 12:21:32 PM3/12/24
to ns-3-...@googlegroups.com
Hello,
I have been trying to add cryptopp library in ns3 3.38. 
I read about this in various articles and they are making changes in the wscript, but In this version wscript is not available and to add the library i found out i have to make changes in the "CMakeLists.txt" available in the current directory of the source file.
But it is not working. 
Am I making changes wrongly? Could anyone explain this ?

I have attached the CMakeLists.txt , 
The crypto++ is installed in the standard location, so at line 51 I have added the crypto++ , right next to the default libraries.
Your help is much appreciated, Thank you.

--
With Regards
Dhanupriyan P.

CMakeLists.txt

akkal maroua

unread,
Mar 13, 2024, 6:46:34 AM3/13/24
to ns-3-...@googlegroups.com
I am having the same problem, please if you find any solution please let me know.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/CAPXEHe374Pjfu%2BNf12HuWha8moxc64QHkuoq7GPjgHhOJ5U0Bw%40mail.gmail.com.

Gabriel Ferreira

unread,
Mar 13, 2024, 10:04:17 AM3/13/24
to ns-3-users
If crypto++ is in the search path, it should work. If it doesn't, then try adding the directory that contains it to the search path.

This is done with 

link_directories(path/to/where/crypto++/can/be/found)

before creating the target. Since you are working with scratches, put that in the first line so it applies for all scratches.
Reply all
Reply to author
Forward
0 new messages