[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling libssh for vxwork
[Thread Prev] | [Thread Next]
- Subject: Re: Compiling libssh for vxwork
- From: "Zvi Vered" <veredz72@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 6 May 2015 00:11:05 +0300
- To: <libssh@xxxxxxxxxx>
Hi Andreas, I'm aware this is a cmake file. It will be great if someone can help. I used the following toolchain file; ************************************* INCLUDE(CMakeForceCompiler) SET(CMAKE_SYSTEM_NAME Generic) SET(CMAKE_CROSSCOMPILING TRUE) SET(CMAKE_FORCE_C_COMPILER chc12 MetrowerksHicross) #SET(CMAKE_C_COMPILER D:/WorkBench_3_3_2/diab/5.9.1.0/WIN32/bin/dcc) SET(CMAKE_C_FLAGS -g) SET(CMAKE_AR D:/WorkBench_3_3_2/diab/5.9.1.0/WIN32/bin/dar) SET(CMAKE_COMPILER_IS_GNUCC FALSE) SET(CMAKE_C_COMPILER_ID 0) # 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) **************************************** Then I ran: cmake ../libssh-0.6.4 -DCMAKE_TOOLCHAIN_FILE=toolchain.txt And got:D:\zvi_vered\library\libssh\libssh\build>cmake ../libssh-0.6.4 -DCMAKE_TOOLCHAIN_FILE=toolchain.txt
-- Building for: Visual Studio 9 2008 -- The C compiler identification is MSVC 15.0.30729.1 -- Check for working C compiler using: Visual Studio 9 2008 -- Check for working C compiler using: Visual Studio 9 2008 -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - doneCMake Error at C:/cmake-3.2.2-win32-x86/share/cmake-3.2/Modules/FindPackageHandl
Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR ZLIB_LIBRARY) Call Stack (most recent call first): C:/cmake-3.2.2-win32-x86/share/cmake-3.2/Modules/FindPackageHandleStandardArgs cmake/Modules/FindZLIB.cmake:112 (find_package_handle_standard_args) CMakeLists.txt:44 (find_package) It seems CMake ignores my toolchain file. Why does it insist "Building for Visual Studio 9 2008" ? I also tried entering a full path of toolchain.txt When I entered an invalid path I got the same output. Best regards, Zvika-----Original Message----- From: Andreas Schneider
Sent: Monday, May 04, 2015 05:54 PM To: libssh@xxxxxxxxxx Subject: Re: Compiling libssh for vxwork On Sunday 03 May 2015 00:38:59 Zvi Vered wrote:
Hello, I’m interested in compiling libssh0.6.4 to run under vxWorks. How can I specify the compilation options (e.g –g –ID:/Workench2-5/vxworks6.3/target/h) ?
I think you should learn how to use cmake ... http://www.cmake.org/Wiki/CMake_Cross_Compiling#The_toolchain_file -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.org asn@xxxxxxxxxxxxxx
Re: Compiling libssh for vxwork | Andreas Schneider <asn@xxxxxxxxxxxxxx> |
Compiling libssh for vxwork | "Zvi Vered" <veredz72@xxxxxxxxx> |
Re: Compiling libssh for vxwork | Andreas Schneider <asn@xxxxxxxxxxxxxx> |