<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with libuv]]></title><description><![CDATA[A list of topics that have been tagged with libuv]]></description><link>http://community.onion.io/tags/libuv</link><generator>RSS for Node</generator><lastBuildDate>Sat, 17 Oct 2026 12:30:14 GMT</lastBuildDate><atom:link href="http://community.onion.io/tags/libuv.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 May 2016 15:01:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Cross compile external libraries (using libuv)]]></title><description><![CDATA[@Kit-Bishop After installing/configuring the SDK I now have the following problem:
(put it here for future reference)
vagrant@ubuntu-xenial64-server:~/openwrt/custom/luv$ WITH_LUA_ENGINE=Lua LUA_BUILD_TYPE=System WITH_SHARED_LIBUV=ON BUILD_MODULE=OFF BUILD_SHARED_LIBS=ON STAGING_DIR=/home/vagrant/openwrt/sdk/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/staging_dir make
cmake -H. -Bbuild -DBUILD_MODULE=OFF -DBUILD_SHARED_LIBS=ON -DWITH_SHARED_LIBUV=ON -DWITH_LUA_ENGINE=Lua -DLUA_BUILD_TYPE=System -DCMAKE_TOOLCHAIN_FILE=~/openwrt/openwrt.cmake  -DWITH_AMALG=OFF
System is unknown to cmake, create:
Platform/AR71xx to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please send that file to cmake@www.cmake.org.
-- Could NOT find LIBUV (missing:  LIBUV_LIBRARIES LIBUV_INCLUDE_DIR)
-- Could NOT find Lua (missing:  LUA_LIBRARIES LUA_INCLUDE_DIR)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBUV_LIBRARIES
    linked by target "luv" in directory /home/vagrant/openwrt/custom/luv

-- Configuring incomplete, errors occurred!
See also "/home/vagrant/openwrt/custom/luv/build/CMakeFiles/CMakeOutput.log".
See also "/home/vagrant/openwrt/custom/luv/build/CMakeFiles/CMakeError.log".
Makefile:37: recipe for target 'build/Makefile' failed
make: *** [build/Makefile] Error 1

I am sure it is just setting those missing variables, but I have no clue where to find them from.
I changed the cmake file into:
# this one is important
SET(CMAKE_SYSTEM_NAME AR7xxx)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)

# specify the cross compiler
SET(CMAKE_C_COMPILER   /home/vagrant/openwrt/sdk/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc)
SET(CMAKE_CXX_COMPILER /home/vagrant/openwrt/sdk/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-g++)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH  /home/vagrant/openwrt/sdk/OpenWrt-SDK-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/target/linux/ar71xx)

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

]]></description><link>http://community.onion.io/topic/768/cross-compile-external-libraries-using-libuv</link><guid isPermaLink="true">http://community.onion.io/topic/768/cross-compile-external-libraries-using-libuv</guid><dc:creator><![CDATA[Joost Oostdijk]]></dc:creator><pubDate>Fri, 13 May 2016 15:01:06 GMT</pubDate></item></channel></rss>