[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cross compilation with openssl > 1.0.2
[Thread Prev] | [Thread Next]
- Subject: Re: Cross compilation with openssl > 1.0.2
- From: Andrey Strunin <acrapmonster@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 19 May 2021 12:18:23 +0300
- To: libssh@xxxxxxxxxx
Thank you for the response, I am using my own cmake toolchain file that sets compiler and sysroot. It worked great when it was openssl 1.0.2 in sysroot. Here is the content of my toolchain.cmake file: #CMAKE Toolchain file for PowerPC # this one is important SET(CMAKE_SYSTEM_NAME Linux) #this one not so much SET(CMAKE_SYSTEM_VERSION 1) # specify the cross compiler SET(CMAKE_C_COMPILER /localhome/new_sdk/gnss_tcc-glibc_cgl/x86-linux2/ppc_e500v2-target-linux-gnu-gcc) SET(CMAKE_CXX_COMPILER /localhome/new_sdk/gnss_tcc-glibc_cgl/x86-linux2/ppc_e500v2-target-linux-gnu-g++) # where is the target environment SET(CMAKE_FIND_ROOT_PATH /localhome/new_sdk/gnss_tcc-glibc_cgl/sysroot) # Local plaform dependent toolchain outputs SET(CMAKE_LOCAL_BASE_ROOT_PATH /localhome/new_sdk/gnss_tcc-glibc_cgl/sysroot) # 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) Here is the output with openssl related errors: https://pastebin.com/raw/NrMXi5M8 I should have clarified the version of libssh I am using. It's the latest 0.9.5. However, I have the same build issue (maybe with slightly different errors, but still related to openssl) with older versions (such as 0.8.9). Thanks, Andrey
Re: Cross compilation with openssl > 1.0.2 | Anderson Sasaki <ansasaki@xxxxxxxxxx> |
Cross compilation with openssl > 1.0.2 | Andrey Strunin <acrapmonster@xxxxxxxxx> |
Re: Cross compilation with openssl > 1.0.2 | Jakub Jelen <jjelen@xxxxxxxxxx> |