From: Alastair D. <ala...@si...> - 2005-07-12 10:13:56
|
About a month ago, Michael Kirkham and Daniel Steffen discussed the same = (or a similar) problem, and concluded that "install-embedded" (specifying = the INSTALL_ROOT) was preferable to "embedded" as a target. This indeed = works for me, with one particular small exception. The "Headers" folder is no longer included in the embedded Tcl.Framework folder, as I believe it used to be. Of course, it is straight-forward = to copy it into place when it is required, but I thought it worth = mentioning because it caused our build to fail in a very mysterious way - the Tcl headers of a different version were evidently picked up from a system = folder when we compiled our application. Thanks again and best wishes, Alastair -----Original Message----- From: Alastair Davies Sent: 11 July 2005 16:22 Subject: Embedded build of Tk 8.4.11 I am using the embedded build of Tk 8.4.11, and have a problem. The Tcl.framework folder is not included within the Wish application bundle, = but is instead a link to the folder in the Tcl build. Specifically, build/tk/Wish.app/Contents/Frameworks/Tcl.framework -> build/tcl/Deployment/../Tcl.framework (where the build directory is the same). Now if I copy the Wish application bundle to another computer, it is no longer the case that everything required is taken along too. (I'm sure = it used to be. Now the result seems to be dependent on what system Tcl is installed.) On the computer on which the build is performed, of course, = the Wish application continues to run perfectly. I am using MacOS X 10.2.8 and building with the commands make -C tcl8.4.11/macosx embedded make -C tk8.4.11/macosx embedded I'd be grateful for any pointers. In particular, can I simply replace = the link with the actual folder, and expect the Wish application to run = using its own frameworks on an arbitrary computer? Thanks and kind regards, Alastair -----Original Message----- From: Michael Kirkham Sent: 03 June 2005 09:06 Subject: core-8-4-branch build failure On Fri, 3 Jun 2005, Daniel A. Steffen wrote: > I added this error intentionally to ensure you don't build=20 > install-embedded without giving an INSTALL_ROOT override,=20 > otherwise, the postprocessing steps for the embedded build=20 > are not guaranteed to work (and may be unsafe to execute in=20 > the root dir of your disk...) > > the following works for me > make -C tcl/macosx > make -C tk/macosx > make -C tcl/macosx install-embedded INSTAL_ROOT=3D`pwd`/embedded/ > make -C tk/macosx install-embedded INSTALL_ROOT=3D`pwd`/embedded/ > (which is what the README tells you to do as well) > > what are you doing differently ? Normally I just do: make -C tcl/macosx embedded make -C tk/macosx embedded (that's what I did when I saw the error). Then I normally copy the frameworks out of build/tk/Wish Shell.app into = my=20 app and update the internal linker paths with install_name_tool and = otool.=20 Never had to do anything with INSTALL_ROOT. I didn't (and don't) do=20 install-embedded, just embedded, and didn't do that copy/update step=20 because I was just testing the build and not building my app at the = time. -- Michael Kirkham www.muonics.com |