Re: [rabbitmq-c-users] rabbitmq app on openwrt

146 views
Skip to first unread message

Alan Antonuk

unread,
Jul 19, 2020, 3:07:04 PM7/19/20
to Xarion Comoretto, rabbitmq-c-users
Specifying -DBUILD_EXAMPLES=ON when running cmake on the rabbitmq-c sources will cause the examples to be built.

-Alan

On Sun, Jul 19, 2020 at 11:32 AM Xarion Comoretto <xar...@gmail.com> wrote:
Hello!

I have managed to compile librabbitmq in my build environment for mips_24k, openWRT.

Could anyone help direct me how to compile the examples /rabbitmq-c/examples

Thanks!

Xarion

--
You received this message because you are subscribed to the Google Groups "rabbitmq-c-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-c-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rabbitmq-c-users/7cb52323-07dc-4427-a245-be668bb96f9fo%40googlegroups.com.

Xarion Comoretto

unread,
Jul 19, 2020, 3:35:52 PM7/19/20
to rabbitmq-c-users
Hi Alan

it seems i managed to build for my host environment but not the target environment. 
I have created at toolchain file that I supply as an argument to the compile, but its failing to resolve the openssl directory

xarion@xndb:~/rabbitmq-c/build$ cmake -DCMAKE_TOOLCHAIN_FILE=./ToolChain.cmake ..

giving the error

-- The C compiler identification is GNU 8.4.0
-- Check for working C compiler: /home/xarion/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/bin/mips-openwrt-linux-gcc
-- Check for working C compiler: /home/xarion/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/bin/mips-openwrt-linux-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_BUILD_TYPE not specified. Creating Release build
-- Found C inline keyword: inline
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for socket
-- Looking for socket - found
-- Looking for poll
-- Looking for poll - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for posix_spawnp in rt
-- Looking for posix_spawnp in rt - found
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (Required is
  at least version "0.9.8")
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.5/Modules/FindOpenSSL.cmake:370 (find_package_handle_standard_args)
  CMakeLists.txt:122 (find_package)


my ToolChain.cmake file:
set(CMAKE_SYSTEM_NAME Linux)


set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_C_COMPILER "/home/xarion/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/bin/mips-openwrt-linux-gcc")
set(CMAKE_CXX_COMPILER "/home/xarion/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/bin/mips-openwrt-linux-g++")
SET(CMAKE_FIND_ROOT_PATH "/home/xarion/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl")
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(OPENSSL_ROOT_DIR    "/home/xarion/openwrt/build_dir/target-mips_24kc_musl/openssl-1.1.1g/")
SET(OPENSSL_INCLUDE_DIR "/home/xarion/openwrt/build_dir/target-mips_24kc_musl/openssl-1.1.1g/include/openssl")
SET(OPENSSL_LIBRARIES   "/home/xarion/openwrt/build_dir/target-mips_24kc_musl/openssl-1.1.1g/libssl.a;/home/xarion/openwrt/build_dir/target-mips_24kc_musl/openssl-1.1.1g/libcrypto.a")
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)


so its complaining about OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) but these are set in the file 

any recommendations what I can try?

Xarion



On Sunday, 19 July 2020 21:07:04 UTC+2, Alan Antonuk wrote:
Specifying -DBUILD_EXAMPLES=ON when running cmake on the rabbitmq-c sources will cause the examples to be built.

-Alan

On Sun, Jul 19, 2020 at 11:32 AM Xarion Comoretto <xar...@gmail.com> wrote:
Hello!

I have managed to compile librabbitmq in my build environment for mips_24k, openWRT.

Could anyone help direct me how to compile the examples /rabbitmq-c/examples

Thanks!

Xarion

--
You received this message because you are subscribed to the Google Groups "rabbitmq-c-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages