[ https://issues.apache.org/jira/browse/THRIFT-2571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14503726#comment-14503726 ]
James E. King, III commented on THRIFT-2571: -------------------------------------------- Proceesing with "static only", I was able to build thrift_static and thriftz_static: {noformat}C:\Users\Jim\workspace\thrift-build>dir lib\Debug Volume in drive C is OS Volume Serial Number is A130-1D66 Directory of C:\Users\Jim\workspace\thrift-build\lib\Debug 04/20/2015 05:36 PM <DIR> . 04/20/2015 05:36 PM <DIR> .. 04/20/2015 05:35 PM 6,516,526 libparsed.lib 04/20/2015 05:36 PM 53,386,912 testgencppd.lib 04/20/2015 05:39 PM 28,139,590 thriftmdd.lib 04/20/2015 05:33 PM 729,278 thriftzmdd.lib 4 File(s) 88,772,306 bytes 2 Dir(s) 58,437,337,088 bytes free{noformat} However, then the unit tests link, they cannot find the right file: {noformat}1>LINK : fatal error LNK1104: cannot open file 'thrift.lib' 1> The command exited with code 1104. {noformat} What exactly is the expected currently state of the cmake project for Windows? Has anyone been able to build unit tests with it? > 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)