几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-04, 05:14 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】building on mac os

building on mac os x
building on mac os x
has anyone successfully built anything using the dwgdirect libraries on mac os x? i downloaded version 1.0.9 and i'm using the mach-o libraries with gcc 3.3.
i am trying to build odreadex example. i get everything to compile ok, but then i get a whole bunch of linker errors that look like:
ld: dd_macosx_db.a(rxobject.o) section's (__text,__eh_frame) type s_regular does not match previous objects type s_coalesced
we have one client (that i am aware of) using the os/x libraries, but they initially had the same problem that you are describing. we were not able to determine the cause of the problem, but they were able to circumvent the issue by building the libraries from source locally, but that is obviously not an option for members who do not have access to our source code.
input from anyone about what might cause this problem would be appreciated.

any more information on this? we're still unable to build on os/x
quote:
originally posted by david vicknair
any more information on this? we're still unable to build on os/x
bonjour,
i have build odcopyex on mac os x with a makefile but not with xcode.
and i can run it as a command line progran via the terminal.
but the executable is very big, i don't know if the size can be reduced.
i have copied the makefile at the end of this message.
voila
eric pousse
the makefile :
# sample dwgdirect makefile for unix platforms.
# to use this makefile:
# 1. change the plt variable below to match the library name for
# the desired platform.
# 2. change the cc variable below according to the dwgdirect
# build documentation for your platform.
# 3. modify the rdsrc, exsrc and inc variables below (if necessary)
# to correctly reflect the location of your source and header files.
#
# this makefile assumes that the dwgdirect library files will be located
# in the same directory as the makefile.
# the platform name used in the archive names for a specific platform,
# for example, dd_lnxx86_db.a.
plt = macosx
# platform specific compiler command (linux is provided as a sample)
cc = g++ -doda_mac_osx -doda_gcc
# location of odreadex source files.
rdsrc = ../../examples/odcopyex
# location of exservices source files.
svsrc = ../../examples/exservices
# location of dwgdirect header files.
inc = -i../../include -i../../include/gi -i../../include/ge -i../../include/br \
-i../../include/gs -i$(svsrc)
# object files required to build odcopyex
objs = exsystemservices.o exhostappservices.o \
odfilebuf.o odcopyex.o exgirasterimage.o
# dwgdirect librarys required to build odcopyex
libs = dd_$(plt)_db.a dd_$(plt)_gi.a dd_$(plt)_gs.a dd_$(plt)_ft.a \
dd_$(plt)_acis.a dd_$(plt)_ge.a dd_$(plt)_root.a
odcopyex : $(objs)
$(cc) -o odcopyex $(objs) $(libs)
odcopyex.o : $(rdsrc)/odcopyex.cpp
$(cc) -c $(inc) $(rdsrc)/odcopyex.cpp
exsystemservices.o : $(svsrc)/exsystemservices.cpp
$(cc) -c $(inc) $(svsrc)/exsystemservices.cpp
exhostappservices.o : $(svsrc)/exhostappservices.cpp
$(cc) -c $(inc) $(svsrc)/exhostappservices.cpp
odfilebuf.o : $(svsrc)/odfilebuf.cpp
$(cc) -c $(inc) $(svsrc)/odfilebuf.cpp
exgirasterimage.o : $(svsrc)/exgirasterimage.cpp
$(cc) -c $(inc) $(svsrc)/exgirasterimage.cpp
i compiled an xcode project
with macosx versionof dwgdirect libraries.
it is base on the odreadex exemple.
it built and linked correctly.
but when i run it i have a problem in the method
oddbhostappservices::readfile.
i have the impression of a deadlock in the odstringerator=
the stack of called method is this one :
odstringerator=
oddbhostappservices::setfontalt
oddbdatabase::createdefaultrecord
oddbdatabase::initialize
oddbdxfloader::loaddrawing
oddbdxfloader::enddbloading
oddbdatabase::closeinput
oddbdatabase::readfile
oddbhostappservices::readfile
do you have any idea of what can cause this problem?
thanks in advance
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】anybody having trouble with dwgdirect on a mac yang686526 DirectDWG 0 2009-05-04 04:03 PM
【转帖】1.13 linking fails on mac os x 10.4xcode 2.0gcc 3.3 yang686526 DirectDWG 0 2009-05-04 02:49 PM
【转帖】solidworks on mac yang686526 SolidWorks二次开发 0 2009-04-13 02:32 PM
【求助】【转帖】"> 求助!!sos!!关于圆锥圆柱 huangyhg PC-DMIS 0 2009-04-07 02:18 PM


所有的时间均为北京时间。 现在的时间是 06:57 AM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多