Re: [Mysql-cocoa-users] dyld failing
Brought to you by:
sergecohen
From: Serge C. <co...@em...> - 2002-05-21 15:22:28
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Laurent=0D =0D Indeed it looks from the printout you gave from the trouble that there =0D= might be two problem:=0D =0D 1. You want to have the SMySQL target installed, that is in a place =0D where it can be found by the dynamic linker. For that you have to follow = =0D the instruction in the TO_INSTALL file in the SMySQL directory.=0D =0D 2. Once the previous point is done, yo should have a version of the =0D framework installed in ~/Library/Frameworks/. You want to make sure that = =0D the SMySQL_test application is linked with this framework (and not the =0D= one in the SMySQL/build/ directory), and that the path is absolute.=0D =0D 3. Then you can check which version (and path) are used for the =0D framework and application:=0D > cd ~/Library/Frameworks/SMySQL.framework=0D > otool -L SMySQL=0D This should give the result: (with some obvious substitution)=0D SMySQL:=0D =0D /Users/..../Library/Frameworks/SMySQL.framework/Versions/A/SMySQL =0D (compatibility version 1.0.0, current version 0.7.0)=0D /usr/local/lib/mysql/libmysqlclient.dylib (compatibility = version =0D 0.0.0, current version 0.0.0)=0D =0D /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation =0D= (compatibility version 300.0.0, current version 425.0.0)=0D /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, = current =0D version 55.0.0)=0D =0D 4. Idem in the build/ dir of SMySQL_test:=0D > cd ~/......./SMySQL_test/build=0D > otool -L SMySQL_test=0D SMySQL_test:=0D =0D /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation =0D= (compatibility version 300.0.0, current version 425.0.0)=0D =0D /Users/...../Library/Frameworks/SMySQL.framework/Versions/A/SMySQL =0D (compatibility version 1.0.0, current version 0.7.0)=0D /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, = current =0D version 55.0.0)=0D =0D Path (in application and framework) referencing the library (framework =0D= indeed) should be the same.=0D =0D =0D Hope that helps.=0D =0D Serge.=0D =0D Le vendredi 17 mai 2002, =C3=A0 05:25 PM, Laurent Domenech-Cabaud a = =C3=A9crit :=0D =0D > Hello,=0D >=0D > I'm having trouble running the sample character-mode client =0D > (SMySQL_test) on my machine.=0D >=0D > I have compiled the framework (SMySQL target) and the SMySQL_test =0D > builds fine, except I'm getting this error at runtime. Obviously, it =0D= > doesn't find the framework when trying to dynamically load it?=0D >=0D > dyld: /Users/laurent/Documents/Dvt/SMySQL_test/build/SMySQL_test can't = =0D > open library: =0D > @executable_path/../Frameworks/SMySQL.framework/Versions/A/SMySQL (No = =0D > such file or directory, errno =3D 2)=0D >=0D > Any idea where the dyld is done and if the path it tries to load it =0D= > from can be altered?=0D >=0D > Thanks in advance,=0D > Laurent=0D >=0D >=0D > _______________________________________________________________=0D >=0D > Have big pipes? SourceForge.net is looking for download mirrors. We =0D= > supply=0D > the hardware. You get the recognition. Email Us: =0D > ban...@so...=0D > _______________________________________________=0D > Mysql-cocoa-users mailing list=0D > Mys...@li...=0D > https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users=0D >=0D >=0D - ----------------------------------------------------=0D Serge Cohen=0D =0D GPG Key ID: 1024D/69B1D346=0D - ----------------------------------------------------=0D -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (Darwin) Comment: For info see http://www.gnupg.org iD8DBQE86ma6Mygj1Wmx00YRAmruAKCh5nJHNe6pAUn/aSQTavCd35VdXwCfZt0V VDgtgzvK8IfU5wKyNZf7hmg=3D =3Dd9eN -----END PGP SIGNATURE----- |