本文介绍了用libwebsockets编译libuv的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行随LWS库安装的 libwebsockets-test-server,但由于 lwsts [31616]:未编译libuv支持而无法运行。

I am trying to run the "libwebsockets-test-server" that is installed with the LWS library, but it will not run because "lwsts[31616]: libuv support not compiled in".

我检查了是否安装了libuv(1.8.0)。我还在cmake中更改了LIBUV的设置,并重新编译了库。

I have checked that libuv is installed (1.8.0). I also changed the setting for LIBUV in cmake and recompiled the library.

LWS_USE_LIBUV = 1

如何使用libuv编译项目?

我在Ubuntu 16.04上,使用arm- linux-gcc。我已经成功编译了程序,将它们加载到嵌入式板卡(TS-7800),并运行了可执行文件,但是还没有使用LWS。我对Linux和交叉编译器比较陌生。

I am on Ubuntu 16.04, cross-compiling using arm-linux-gcc. I have successfully compiled programs, loaded them to the embedded board (TS-7800), and run the executable, but not yet with LWS. I am relatively new to Linux and cross-compilers.

推荐答案

使用'cmake -DLWS_WITH_PLUGINS = 1'配置cmake,更改配置将LWS_USE_LIBUV设置为1并使用make编译libuv。
因为我计划将插件与LWSWS一起使用,所以这是解决该问题的适当方法。

Configuring the cmake using 'cmake -DLWS_WITH_PLUGINS=1', changes the configuration to set LWS_USE_LIBUV equal to 1 and compiles libuv with the make.Since I was planning to use plugins with LWSWS, this was an appropriate fix for the problem.

这篇关于用libwebsockets编译libuv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 11:15