-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[example] add minimum thread commissioner example #167
base: main
Are you sure you want to change the base?
Conversation
571de82
to
523346c
Compare
Here are my initial comments: Installing the static libraries appear to work now. And uninstall also works.
I followed the instructions in BUILDING.md and it does not work. It seems the CMakeList.txt is not complete.
I created my own out of tree mini commissioner and I needed the following (I am a cmake novice):
For a command line compile, rather than what is in BUILDING.md, I had to use the following:
Not sure how difficult it is or if you have a suggestion... It would be nice if the ninja install of the libraries would install the associated fmt/fmtlib include files to /usr/local/include so the mini_commissioner can use the installed library. Maybe there is a better way, but right now I have to include ot-commissioner/third_party/fmtlib/repo/include/fmt/ to be able to use the installed library for printing. Maybe this is out of scope. I also noticed as part of this PR you made a change to src/library/commissioner_impl.cpp and how OnJoinerRequest() is called. What is the purpose of that change? |
What platform and CMake version are you using? For whatever failure reason, I updated the CMake file to define the mininum required version, please let me know if this still not working for your platform.
I think this should not be addressed by the commissioner libary. We don't include any third party headers in the commissioner public headers, so there is no necessary to (and should not) install those thrid-party headers. If your project depends on
It is to make the
Sorry I was building shared libraries, I updated the document to to build shared libraries to get rid of the long list third-party libs. |
523346c
to
5672a21
Compare
That change is working. cmake version 3.13.4 - running on the latest Raspbian version. (Compiling on an OTBR). Thank you! |
That's weird, I am using a CMake with lower version but has no errors. Maybe new CMake is more strict about this... |
4f5cfb2
to
a18491e
Compare
a18491e
to
62a3a20
Compare
Codecov Report
@@ Coverage Diff @@
## main #167 +/- ##
=======================================
Coverage 68.90% 68.90%
=======================================
Files 55 55
Lines 4933 4933
=======================================
Hits 3399 3399
Misses 1534 1534 |
f9865d1
to
df55462
Compare
c563d66
to
8fecf35
Compare
This PR adds a minimum Thread Commissioner example that demos how to build a Commissioner Application with the OT Commissioner library.
resolves issue: #165