查看单个帖子
旧 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自动化论坛(仅游客可见)