Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Thrift Wiki" for change 
notification.

The "ThriftInstallationWin32" page has been changed by TimWilson-Brown.
The comment on this change is: added pthreads env variable to MinGW 
instructions - untested.
http://wiki.apache.org/thrift/ThriftInstallationWin32?action=diff&rev1=17&rev2=18

--------------------------------------------------

  TODO - diagnose issue further
  
  == Installation steps(No Cygwin dependency) ==
- To compile the Thrift generator without the cygwin.dll dependency you need to 
install  MinGW (www.mingw.org). In addition you need to add the following entry 
to your windows PATH variable.
+ To compile the Thrift generator & runtime libraries (untested) without the 
cygwin.dll dependency you need to install  MinGW (www.mingw.org). In addition 
you need to add the following entry to your windows PATH variable.
  
  {{{
         C:\MINGW\BIN
@@ -110, +110 @@

  {{{
   export PATH=$PATH:"/cygdrive/c/program files/java/jre1.6.0_05/bin"
  }}}
- Run configure
+ Run configure - using CXXFLAGS to work around an issue with an old pthreads 
define (untested on MinGW - works on Cygwin):
  
  {{{
+  export CXXFLAGS="-D PTHREAD_MUTEX_RECURSIVE_NP=PTHREAD_MUTEX_RECURSIVE"
   ./configure
  }}}
- Run make
+ ''Optional:'' To make the compiler only, change to the compiler  directory 
before running make:
  
  {{{
     cd compiler/cpp
+ }}}
+ Run make:
+ 
+ {{{
     mingw32-make.exe
  }}}
  === Possible issues with MinGW install ===
- See also Possible issues with Cygwin install.
+ See also Possible issues with Cygwin install, including the discussion about 
PTHREAD_MUTEX_RECURSIVE_NP.
  
  ==== yywrap is not found ====
  Make sure you add -lfl in your cxxflags in Makefile, also try adding 
-Lc:/cygwin/libs

Reply via email to