I am going to check the information about the Mac frameworks.However, it seams better to link Gecode statically to my software. How can I do this?
Thanks, Mauricio 2008/10/20 Guido Tack <[EMAIL PROTECTED]> > Mauricio Toro wrote: > >> I am trying to distribute some software developed for Mac OS X Leopard >> Intel >> using Gecode. I have a problem. I compile my software using a Gecode 2.2.2 >> installed using make, make install, etc and it works great. When I try to >> load >> my software in another Mac OS X Leopard Intel computer using Gecode 2.2.2 >> installed using the .dmg package, Gecode cannot be loaded and therefore >> my software cannot be opened. >> > > I guess it's Gecode 2.2.0, or you're a time traveler ;-) > > I am compiling my software this way: >> g++ -o examples/philosopherspd2.pd_darwin examples/philosopherspd2.cpp >> -I/Applications/Pd-extended.app/Contents/Resources/src/ >> -I/usr/local/include/flext/ -DFLEXT_SYS=2 -lflext-pd_s -undefined >> dynamic_lookup -bundle -I. -lgecodesearch -lgecodecpltset -lgecodeset >> -lgecodeint -lgecodeminimodel -lgecodeserialization -lgecodekernel >> -lgecodesupport -ffast-math -O3 >> >> How can I compile it in order to make it work with the framework >> installed by the .dmg package? >> >> Should I do it like this? >> g++ -o examples/philosopherspd2.pd_darwin examples/philosopherspd2.cpp >> -I/Applications/Pd-extended.app/Contents/Resources/src/ >> -I/usr/local/include/flext/ -DFLEXT_SYS=2 -lflext-pd_s -undefined >> dynamic_lookup -bundle -I. -L /Library/Frameworks/gecode.framework/gecode >> -ffast-math -O3 >> > > It should suffice to specify -framework gecode as an option when linking, > and you shouldn't need any -I option for the gecode headers. Please consult > Apple's documentation on frameworks, or consider linking gecode statically > into your software (so that you don't have to rely on it being installed). > > Cheers, > Guido > > -- Mauricio Toro Bermudez Estudiante de Ingeniería de Sistemas Pontificia Universidad Javeriana, Colombia Stagiare à l'Ircam 1, place Igor-Stravinsky 75004 Paris, France de 2008 à 2009
_______________________________________________ Gecode users mailing list [EMAIL PROTECTED] https://www.gecode.org/mailman/listinfo/gecode-users
