Skip to content
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

FS#3541 - uhttpd build error #8567

Closed
openwrt-bot opened this issue Dec 28, 2020 · 1 comment
Closed

FS#3541 - uhttpd build error #8567

openwrt-bot opened this issue Dec 28, 2020 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

primelyw:

Supply the following if possible:

  • Device problem occurs on
  • Software versions of OpenWrt/LEDE release, packages, etc.
  • Steps to reproduce

Tool target: uhttpd(latest version) downloaded from https://git.openwrt.org/project/uhttpd.git.

  1. Device problem occurs on: Ubuntu Desktiop environment;
  2. Software versions of OpenWrt/LEDE release, packages, etc.: uhttpd(latests);
  3. Steps to reproduce:

On my desktop terminal, I downloaded source code of uhttpd from https://git.openwrt.org/project/uhttpd.git.
Build with following commands

git clone https://git.openwrt.org/project/uhttpd.git
mkdir build
cd build
cmake ..
cmake --build .

But falied with this.

In file included from uhttpd/lua.c:27: uhttpd/uhttpd.h:37:10: fatal error: libubox/ustream-ssl.h: No such file or directory 37 | #include | ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/uhttpd_lua.dir/build.make:63: CMakeFiles/uhttpd_lua.dir/lua.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:80: CMakeFiles/uhttpd_lua.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

Then I downloaded libubox from https://git.openwrt.org/project/libubox.git; I didn't find "ustream-ssl.h" in the souce code directory. After installing it on my ubuntu, "/usr/local/include/libubox" doesn't have "ustream-ssl.h".

How can I build uhttpd ?

Expecting your reply, thanks!

@openwrt-bot
Copy link
Author

jow-:

Building uhttpd on non-OpenWrt systems is not supported. In your case you need to install the [[https://git.openwrt.org/?p=project/ustream-ssl.git;a=summary|ustream-ssl]] project as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant