![]() |
【转帖】odcopyex makefile
odcopyex makefile
odcopyex makefile i'd like to compile the example odcopyex on linux. i see that only the example odreadex comes with a makefile. does anyone have a makefile for odcopyex? if not, i guess i'll try to write one using the odreadex as a guide, but i'll probably need some help from this forum. thanks, mark bonjour mark, i have modified the makefile of odreadex to compile odcopyex on linux like this : # 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 = lnxx86 # platform specific compiler command (linux is provided as a sample) cc = g++ -wno-deprecated # location of odreadex source files. rdsrc = ../../examples/odcopyex # location of exservices source files. svsrc = ../../extensions/exservices # location of dwgdirect header files. inc = -i../../include -i$(svsrc) # object files required to build odreadex objs = exsystemservices.o exhostappservices.o exundocontroller.o \ odfilebuf.o odcopyex.o exgirasterimage.o # dwgdirect librarys required to build odreadex libs = dd_$(plt)_modelergeometry.a dd_$(plt)_acisrenderer.a \ dd_$(plt)_br.a dd_$(plt)_acisbuilder.a dd_$(plt)_db.a dd_$(plt)_gs.a \ dd_$(plt)_spatialindex.a dd_$(plt)_gi.a gs_winbitmap.a \ dd_$(plt)_ge.a dd_$(plt)_root.a dd_$(plt)_ft.a dd_$(plt)_alloc.a dd_$(plt)_recomputedimblock.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 exundocontroller.o : $(svsrc)/exundocontroller.cpp $(cc) -c $(inc) $(svsrc)/exundocontroller.cpp odfilebuf.o : $(svsrc)/odfilebuf.cpp $(cc) -c $(inc) $(svsrc)/odfilebuf.cpp exgirasterimage.o : $(svsrc)/exgirasterimage.cpp $(cc) -c $(inc) $(svsrc)/exgirasterimage.cpp you must put the librarys in the odcopyex directory. voil? eric p. merci eric, that worked and was very helpful. what about oddwfexportex? have you had any luck with that one? i tried something similar to the odcopyex and odreadex but couldn't get it working. thanks again, mark i don't have tried to compile it. eric p. |
所有的时间均为北京时间。 现在的时间是 12:20 PM. |