[ 
https://issues.apache.org/jira/browse/THRIFT-2571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14500714#comment-14500714
 ] 

James E. King, III commented on THRIFT-2571:
--------------------------------------------

I used cmake to generate a build environment on Windows and see that the C++ 
library is disabled:
{noformat}C:\Users\Jim\workspace\thrift-build>"c:\Program Files 
(x86)\CMake\bin"\c
-- Parsed Thrift package version: 1.0.0-dev
-- Parsed Thrift version: 1.0.0 (1.0.0)
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Building with unittests
-- Found FLEX: C:/cygwin64/bin/flex.exe (found version "2.5.39")
-- Found BISON: c:/cygwin64/bin/bison.exe (found version "3.0.4")
-- ----------------------------------------------------------
-- Thrift version:                       1.0.0 (1.0.0)
-- Thrift package version:               1.0.0-dev
-- Build configuration Summary
--   Build Thrift compiler:              ON
--   Build with unit tests:              ON
--   Build examples:                     ON
--   Build Thrfit libraries:             ON
--  Language libraries:
--   Build C++ library:                  OFF
--   Build C (GLib) library:             OFF
--   Build Java library:                 OFF
--  Library features:
--   Build shared libraries:             ON
--   Build static libraries:             ON
--   Build with ZLIB support:            OFF
--   Build with libevent support:        OFF
--   Build with Qt4 support:             OFF
--   Build with Qt5 support:             OFF
--   Build with OpenSSL support:         OFF
--   Build with Boost thread support:    OFF
--   Build with C++ std::thread support: OFF
-- ----------------------------------------------------------
-- Configuring done
-- Generating done
-- Build files have been written to: 
C:/Users/Jim/workspace/thrift-build{noformat}

> Simplify cross compilation using CMake
> --------------------------------------
>
>                 Key: THRIFT-2571
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2571
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (General)
>    Affects Versions: 1.0
>            Reporter: Pascal Bach
>            Assignee: Henrique Mendonça
>            Priority: Minor
>             Fix For: 0.9.2
>
>
> Using CMake would simplify cross compilation.
> The for example the same build script can be used to build:
> - Native for Linux using GCC
> - Native for Windows using Visual Studio
> - Cross compile for ARM on Linux
> - Cross compile for Windows form Linux using mingw32
> It also makes it easy to generate project files for Eclipse or Visual Studio.
> h2. Some examples:
> {code:title=Create an eclipse project|borderStyle=solid}
> mkdir build_ec && cd build_ec
> cmake -G "Eclipse CDT4 - Unix Makefiles" ../compiler/cpp
> make
> {code} 
> Now open the folder build_ec using eclipse.
> {code:title=Create a Visual Studio project (Windows only)|borderStyle=solid}
> mkdir build_vs && cd build_vs
> cmake -G "Visual Studio 12" ../compiler/cpp
> {code} 
> Now open the folder build_vs using Visual Studio.
> {code:title=Cross compile using mingw32|borderStyle=solid}
> mkdir build_mingw32 && cd build_mingw32
> cmake -DCMAKE_TOOLCHAIN_FILE=../contrib/mingw32-toolchain.cmake 
> ../compiler/cpp
> make
> {code} 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to