[Mysql-cocoa-users] Re: I'm struggling getting SMySQL working
Brought to you by:
sergecohen
From: Serge C. <co...@em...> - 2002-04-29 20:20:10
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Guy;=0D =0D A couple of things :=0D 1.=0D If I understand you well, you first use the command proposed in =0D TO_INSTALL (which is : pbxbuild -target SMySQL -buildstyle Development =0D= install DSTROOT=3D/), and then you move the framework "by hand".=0D =0D Indeed the commmand line (pbxbuild...), does already install the =0D framework in /Library/Frameworks/, so you might better not install on =0D= top of that in ~/Library/Frameworks/.=0D =0D Still This should not be a trouble (having twice the same framework in =0D= this two place is not a problem, I used to have it this way for some =0D before I realise it by chance). As far as I remember the dynamic linker =0D= will search ~/Library/Frameworks first.=0D =0D =0D 2.=0D As far as I can see from your snippet, you ahve a linker warning (unable = =0D to prebind), still you're applicaition should run (prebinding is only =0D= for faster dynamic linking). If the application can not run, it must be =0D= another problem.=0D =0D =0D Can you send me the source of your app (don't forget to remove the =0D important data for the connection if you have any -password, login...-), = =0D I'll try to compile here.=0D =0D =0D Read you soon.=0D =0D Serge.=0D =0D =0D Le lundi 29 avril 2002, =C3=A0 11:00 , John Guy a =C3=A9crit :=0D =0D > Hi there Serge,=0D >=0D > I've been a bit quiet since we last spoke as I have been very busy =0D > dealing with some other issues, however I am now back to trying to get = =0D > my database working with Cocoa again, for real this time!=0D >=0D > I downloaded and built the latest version of the framework =0D > (SMySQL_0.5.3.tgz) I built it from the command line as detailed in the = =0D > TO_INSTALL file.=0D >=0D > I have then copied the SMySQL.framework from the build folder to the =0D= > /Library/Frameworks folder.=0D >=0D > I have a very simple Cocoa app (a single button that when pushed =0D > attempts to connect to the database on localhost). However when I = build =0D > the project I get an error in the link stage :=0D >=0D > BuildPhase DBSetupTest.app=0D > Completed phase <CopyHeaders> for DBSetupTest.app=0D > BuildPhase DBSetupTest.app=0D > Completed phase <CopyResources> for DBSetupTest.app=0D > CompileC /Users/sty/Cocoa =0D > = WORK/DBSetupTest/build/intermediates/DBSetupTest.build/Objects/ppc/MyDocum= ent.=0D > o=0D > BuildPhase DBSetupTest.app=0D > Completed phase <DeriveAndCompileSources> for DBSetupTest.app=0D > MasterObjectFile.Combine /Users/sty/Cocoa =0D > WORK/DBSetupTest/build/intermediates/DBSetupTest.build/master.o=0D > StandaloneExecutable /Users/sty/Cocoa =0D > WORK/DBSetupTest/build/DBSetupTest.app/Contents/MacOS/DBSetupTest=0D > /usr/bin/ld: warning prebinding disabled because of undefined symbols=0D= > /usr/bin/ld: Undefined symbols:=0D > .objc_class_name_SMySQLConnection=0D >=0D >=0D > So this is confusing, I ensured that I have no other version of the =0D= > framework installed on my system.=0D >=0D > Do you have any suggestions?=0D >=0D > I'll carry on digging around but any help would be apprciated.=0D >=0D > cheers=0D >=0D > JOhn=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 iD8DBQE8zattMygj1Wmx00YRAo2eAJwP2Y7tB4U5ywD+gV1/Oh1CCnlvLQCgl40z TXjeYEA1ElbUCxK7Rf6Y8Io=3D =3D2+JA -----END PGP SIGNATURE----- |