找回密码
 注册
Simdroid-非首页
查看: 192|回复: 2

[其他] Build Calculix2.6.1 in Mingw64

[复制链接]
发表于 2013-10-19 08:42:11 | 显示全部楼层 |阅读模式 来自 日本
本帖最后由 hillyuan 于 2013-10-19 08:44 编辑

*原文和相关软件下载连接请见http://hillyuan.blogspot.jp/2013 ... 261-in-mingw64.html

There is detailed description here http://mechanicalhacks.wordpress ... on-64-bit-windows/. But it doesnot works well, at least for ccx2.6.1. Here are some complemetation

1. Build  ARPACK.
     Modify ARmake.inc at follows
1) home="your current ARPACK home";
2) PLAT=anything you like. It would be appended in your library name.
3) Change the DIRS as
      DIRS = (UTILdir) (SRCdir)
4) Make sure file second.f, which would in standard LAPACK library, in folder UTIL is not in your compile list.
5) RANLIB  = touch

2. Build spooles
    Following modifictions
1) Modify line 9 of SPOOLES.2.2/Tree/src/MakeGlobalLib from drawTree.c to draw.c
2) Modify line 204 of SPOOLES.2.2/MT/src/QRfactorMT.c from
   tids[myid]=0;
to memset(&tids[myid], 0, sizeof(pthread_t) );
3) Modify Make.inc
  THREAD_LIBS= -lpthread
4) Modify makefile
  uncomment
  #  cd MT               ; make lib
in make lib option

3. Build Calculix
1) Add #include "pthread.h" into file CalculiX.h
2) Modify Makefile as follows
  ・ Indicate where library of spooles, ARAPCK, BLAS and Lapack in in include in your LIBS, just like

DIR=../../../../solver/SPOOLES.2.2
BLASDIR = ../../../../solver/lapack-3.4.2
LIBDIR=/c/mingw64/x86_64-w64-mingw32/lib

LIBS = \
    $(DIR)/MT/src/spoolesMT.a \
       $(DIR)/spooles.a \
       ../../../../solver/ARPACK/libarpack_WIN64.a \
    $(BLASDIR)/liblapack.a $(BLASDIR)/librefblas.a \
       $(LIBDIR)/libpthread.a \
       $(LIBDIR)/libm.a

Then just make it. That's all!
发表于 2016-7-29 07:21:34 | 显示全部楼层 来自 湖北
Simdroid开发平台
正想试试这个,谢谢
回复 不支持

使用道具 举报

发表于 2016-7-29 17:54:30 | 显示全部楼层 来自 上海
本帖最后由 simgeek 于 2016-7-29 18:22 编辑

github上有人做了一键编译 Calculix, Linux上亲测可用。

https://github.com/robhuls/calculix_build

回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-4-28 08:01 , Processed in 0.026644 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表