-
Notifications
You must be signed in to change notification settings - Fork 479
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
system/argtable3: Update to the latest version(v3.1.5.1c1bb23) #559
Conversation
I tried this PR but the following error happened. ./argtable3/src/getopt_long.c:149:10: fatal error: err.h: No such file or directory Even though I added a dummy err.h to nuttx/include/, the following error happened. ./iperf_main.c:30:10: fatal error: argtable3.h: No such file or directory Does this PR work with your environment? |
e9411e5
to
8d47909
Compare
I built with sim:nsh, err.h may found from Ubuntu. For argtable3.h, I forgot to update the search path:
Please try again. |
@masayuki2009 BTW, since I add this in Makefile:
err.h shouldn't be included in arg_getopt_long.c:
Could you check why the err.h get included? |
Hi @xiaoxiang781216 , I tried this PR but Still compile errors: incubator-nuttx-apps/system/argtable3/argtable3/src/getopt.h:92:20: error: #include nested too deeply |
It looks like getopt_long.c uses function 'warnx', if remove "#include <err. h>", it will report warnings argtable3/src/getopt_long.c:243:17: warning: implicit declaration of function ‘warnx’ [-Wimplicit-function-declaration] |
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
8d47909
to
64df2af
Compare
@cwespressif I found the reason why my local machine can pass the build, but the mainline can't. My local machine use the latest mainline of argtable3, which has more patches than 3.1.5.1c1bb23. One particular patch is important on NuttX:
I have updated PR to apply this patch, it should work now, please try again, thanks. |
BTW, I am aksing the maintainer when to release the new package: |
I confirmed that this PR works with esp32-devkitc:wapi |
I've published Argtable3 v3.2.0. Please help to check if this release can be successfully integrated into this project. Thanks. |
Thanks @tomghuang I just created a PR for the new release here: #565. Let's whether it can pass the build. |
Summary
And remove the patch process since it doesn't need anymore.
Impact
update to the latest version
Testing