Hi Johannes, Sorry to bother you again. According to your instruction, I have built fenics 1.4.0 successfully with fenics.Cygwin.yaml script on Windows.
When I compiled my project with fenics 1.4.0 I generated, there are some errors. One of errors is "cc1plus.exe: out of memory allocating 135922 bytes" -- I feel it is a compiler problem. I used the compiler minGW to build my project because some other dependent libraries were built with minGW (like the library qt4.8.6). I have some question about that. Is it possible to use minGW to build a project with different type libraries? (some libraries was created by Cygwin, some libraries was created by minGW) If I want to build fenics 1.4.0 with minGW on Windows, which yaml script can be used? Thank you so much. Looking forward to your response. Best, Xiaohui -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Johannes Ring Sent: Tuesday, October 07, 2014 10:25 AM To: Yu, Xiaohui Cc: Jan Blechta; [email protected] Subject: Re: [FEniCS-support] Is it possible to build fenics 1.4-0 on Windows? <html> Hi Xiaohui, On Tue, Oct 7, 2014 at 4:46 PM, Yu, Xiaohui <[email protected]> wrote: > Do you have the fenics( >= 1.1.0 ) binary version for window? If you have, > could you please send me one copy? We only have the old 1.0.0 binary for Windows. > If not, do you have the instruction document about how to build fenics on > Cygwin? You can use HashDist [1] to build FEniCS on Windows with Cygwin. This is currently not documented on the FEniCS web page, but I can describe the process here. First download HashDist and Hashstack, and add the 'hit' tool to PATH: git clone https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_hashdist_hashdist.git&d=AAIBaQ&c=QmPtDiFixEjkMvDKaP3E2Vb9C2z4M0PdarxyAHQ2iDQ&r=CIsWy8V3N8i-dhc6JpGqK4aq6sPs5tcQ3nPBPdDA0c0&m=UyRgvhbKXslp2y1YGiNYULqAyKMtSXSu95rMgD-hIEE&s=7LXGILCM3rCrvX0UtuCI8wdNKJ4gXlISdtu4eaBgSkw&e= git clone https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_hashdist_hashstack.git&d=AAIBaQ&c=QmPtDiFixEjkMvDKaP3E2Vb9C2z4M0PdarxyAHQ2iDQ&r=CIsWy8V3N8i-dhc6JpGqK4aq6sPs5tcQ3nPBPdDA0c0&m=UyRgvhbKXslp2y1YGiNYULqAyKMtSXSu95rMgD-hIEE&s=w5oQa4k_00wOQBhVrDblzzdovbKGj3zsCsJAqcNcoU0&e= export PATH=$PWD/hashdist/bin:$PATH Then you need to create a profile with the packages you want to build. There is a pull request [2] with some example profiles for building FEniCS. A good starting point for you will be the fenics.Cygwin.yaml profile [3]. Place this file in the hashstack folder and modify it for your needs. By default, you will get a fairly recent development version of FEniCS. If you want to build 1.4.0, take a look at [4] and modify fenics.Cygwin.yaml accordingly. Note that it is assumed that some Cygwin binary packages are installed before building FEniCS with HashDist. This is currently not documented, but from the top of my head, this includes python, cmake, blas, lapack, openmpi, swig and pkg-config. When the profile looks okay, start building by running the following command in the hashstack directory: hit build fenics.Cygwin.yaml Let us know how it works for you. [1] https://urldefense.proofpoint.com/v2/url?u=https-3A__hashdist.github.io_&d=AAIBaQ&c=QmPtDiFixEjkMvDKaP3E2Vb9C2z4M0PdarxyAHQ2iDQ&r=CIsWy8V3N8i-dhc6JpGqK4aq6sPs5tcQ3nPBPdDA0c0&m=UyRgvhbKXslp2y1YGiNYULqAyKMtSXSu95rMgD-hIEE&s=-ObCJRHqtCsK8KYhXKzRBL-E21EkKtQ8RLyNmggU8tA&e= [2] https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_hashdist_hashstack_pull_466&d=AAIBaQ&c=QmPtDiFixEjkMvDKaP3E2Vb9C2z4M0PdarxyAHQ2iDQ&r=CIsWy8V3N8i-dhc6JpGqK4aq6sPs5tcQ3nPBPdDA0c0&m=UyRgvhbKXslp2y1YGiNYULqAyKMtSXSu95rMgD-hIEE&s=r3ot18f_6tXgHcA3RERLQ52JvoDyzHC04_jCpbiL__Q&e= [3] https://urldefense.proofpoint.com/v2/url?u=https-3A__raw.githubusercontent.com_hashdist_hashstack_johannr_fenics-2Dexamples_examples_fenics.Cygwin.yaml&d=AAIBaQ&c=QmPtDiFixEjkMvDKaP3E2Vb9C2z4M0PdarxyAHQ2iDQ&r=CIsWy8V3N8i-dhc6JpGqK4aq6sPs5tcQ3nPBPdDA0c0&m=UyRgvhbKXslp2y1YGiNYULqAyKMtSXSu95rMgD-hIEE&s=0cequ_uKOPq10KaGVfsTSnp7_vJietZ7MqfEOPAO7ks&e= [4] https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_hashdist_hashstack_blob_johannr_fenics-2Dexamples_examples_fenics-2D1.4.0.rhel6.yaml&d=AAIBaQ&c=QmPtDiFixEjkMvDKaP3E2Vb9C2z4M0PdarxyAHQ2iDQ&r=CIsWy8V3N8i-dhc6JpGqK4aq6sPs5tcQ3nPBPdDA0c0&m=UyRgvhbKXslp2y1YGiNYULqAyKMtSXSu95rMgD-hIEE&s=B4wIS-fkMqmVqzzpJ8zP_NEmG3psrQujUxPD4byFyKE&e= Johannes Houston Methodist. Leading Medicine. Ranked by U.S.News & World Report as one of America's "Best Hospitals" in 11 specialties. Named to FORTUNEĀ® Magazine's "100 Best Companies to Work ForĀ®" list nine years in a row. Designated as a Magnet hospital for excellence in nursing. Visit us at houstonmethodist.org. Follow us at twitter.com/MethodistHosp and www.facebook.com/HoustonMethodist. ***CONFIDENTIALITY NOTICE*** This e-mail is the property of Houston Methodist Hospital and/or its relevant affiliates and may contain restricted and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender and delete all copies of the message. Thank you. _______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
