Thread: [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----- |
From: John G. <jo...@jl...> - 2002-04-29 20:50:12
Attachments:
MyDocument.h
MyDocument.m
|
Hi Serge, Thanks for the speedy reply (I was praying you'd be around to have a=20 look. I've added some comments below to your points: and I've attached my files, it is really simple, just ONE button, I'll also send you by separate email the output from the build of the=20 framework just in case that means anything to you. cheers JOhn On Monday, April 29, 2002, at 08:21 PM, Serge Cohen wrote: > From: Serge Cohen <co...@em...> > Date: Mon Apr 29, 2002 08:21:58 PM Etc/GMT > To: John Guy <jo...@jl...> > Cc: mys...@li... > Subject: Re: I'm struggling getting SMySQL working > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Guy; > > A couple of things : > 1. > If I understand you well, you first use the command proposed in=20 > TO_INSTALL (which is : pbxbuild -target SMySQL -buildstyle Development=20= > install DSTROOT=3D/), and then you move the framework "by hand". > Yes this is what I did. I moved the framework by hand since for some reason the version of the=20= framework in /Library/Frameworks was the really old one from my first=20 install a few weeks ago. > Indeed the commmand line (pbxbuild...), does already install the=20 > framework in /Library/Frameworks/, so you might better not install on=20= > top of that in ~/Library/Frameworks/. > Interesting as I DO NOT have a version in ~/Library/Frameworks I only=20 have a version that I put in /Library/Frameworks > Still This should not be a trouble (having twice the same framework in=20= > this two place is not a problem, I used to have it this way for some=20= > before I realise it by chance). As far as I remember the dynamic = linker=20 > will search ~/Library/Frameworks first. > > > 2. > As far as I can see from your snippet, you ahve a linker warning=20 > (unable to prebind), still you're applicaition should run (prebinding=20= > is only for faster dynamic linking). If the application can not run, = it=20 > must be another problem. > Yep guessed it was a linker problem, however project builder=20 complains it is a Build failed since there is an Undefined symbol=20 (.objc_class_name_SMySQLConnection) > > Can you send me the source of your app (don't forget to remove the=20 > important data for the connection if you have any -password,=20 > login...-), I'll try to compile here. > > Code attached at the end > Read you soon. > > Serge. > > > Le lundi 29 avril 2002, =E0 11:00 , John Guy a =E9crit : > >> Hi there Serge, >> >> I've been a bit quiet since we last spoke as I have been very busy=20 >> dealing with some other issues, however I am now back to trying to = get=20 >> my database working with Cocoa again, for real this time! >> >> I downloaded and built the latest version of the framework=20 >> (SMySQL_0.5.3.tgz) I built it from the command line as detailed in = the=20 >> TO_INSTALL file. >> >> I have then copied the SMySQL.framework from the build folder to the=20= >> /Library/Frameworks folder. >> >> I have a very simple Cocoa app (a single button that when pushed=20 >> attempts to connect to the database on localhost). However when I=20 >> build the project I get an error in the link stage : >> >> BuildPhase DBSetupTest.app >> Completed phase <CopyHeaders> for DBSetupTest.app >> BuildPhase DBSetupTest.app >> Completed phase <CopyResources> for DBSetupTest.app >> CompileC /Users/sty/Cocoa=20 >> = WORK/DBSetupTest/build/intermediates/DBSetupTest.build/Objects/ppc/MyDocum= ent. >> o >> BuildPhase DBSetupTest.app >> Completed phase <DeriveAndCompileSources> for DBSetupTest.app >> MasterObjectFile.Combine /Users/sty/Cocoa=20 >> WORK/DBSetupTest/build/intermediates/DBSetupTest.build/master.o >> StandaloneExecutable /Users/sty/Cocoa=20 >> WORK/DBSetupTest/build/DBSetupTest.app/Contents/MacOS/DBSetupTest >> /usr/bin/ld: warning prebinding disabled because of undefined symbols >> /usr/bin/ld: Undefined symbols: >> .objc_class_name_SMySQLConnection >> >> >> So this is confusing, I ensured that I have no other version of the=20= >> framework installed on my system. >> >> Do you have any suggestions? >> >> I'll carry on digging around but any help would be apprciated. >> >> cheers >> >> JOhn |
From: John G. <jo...@jl...> - 2002-04-30 10:27:17
|
Hi Serge, and mailing list, I'm now ready for public humiliation - ie. I've worked it out and it was=20= a STUPID error on my part. The link error should have raised the alarm bells, but anyway, I FORGOT=20= to add the SMySQL framework to my project!!! Since my source file compiled, I guessed that it had found the framework=20= and therfore knew exactly what to do, but I still had to add it to the=20= project using Project->Add Framework. So now I can get back to finding errors in my code logic. JOhn PS. Serge, I'm not sure if I have Autodoc installed on my system (it=20 isn't in /usr/local/bin) and this may be why the build stopped early and=20= didn't copy the files over? On Monday, April 29, 2002, at 09:48 PM, John Guy wrote: > Hi Serge, > > Thanks for the speedy reply (I was praying you'd be around to have a=20= > look. > > I've added some comments below to your points: > > and I've attached my files, it is really simple, just ONE button, > > I'll also send you by separate email the output from the build of the=20= > framework just in case that means anything to you. > > cheers > > JOhn > > On Monday, April 29, 2002, at 08:21 PM, Serge Cohen wrote: > >> From: Serge Cohen <co...@em...> >> Date: Mon Apr 29, 2002 08:21:58 PM Etc/GMT >> To: John Guy <jo...@jl...> >> Cc: mys...@li... >> Subject: Re: I'm struggling getting SMySQL working >> >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hi Guy; >> >> A couple of things : >> 1. >> If I understand you well, you first use the command proposed in=20 >> TO_INSTALL (which is : pbxbuild -target SMySQL -buildstyle = Development=20 >> install DSTROOT=3D/), and then you move the framework "by hand". >> > > Yes this is what I did. > > I moved the framework by hand since for some reason the version of the=20= > framework in /Library/Frameworks was the really old one from my first=20= > install a few weeks ago. > >> Indeed the commmand line (pbxbuild...), does already install the=20 >> framework in /Library/Frameworks/, so you might better not install on=20= >> top of that in ~/Library/Frameworks/. >> > > Interesting as I DO NOT have a version in ~/Library/Frameworks I only=20= > have a version that I put in /Library/Frameworks > >> Still This should not be a trouble (having twice the same framework = in=20 >> this two place is not a problem, I used to have it this way for some=20= >> before I realise it by chance). As far as I remember the dynamic=20 >> linker will search ~/Library/Frameworks first. >> >> >> 2. >> As far as I can see from your snippet, you ahve a linker warning=20 >> (unable to prebind), still you're applicaition should run (prebinding=20= >> is only for faster dynamic linking). If the application can not run,=20= >> it must be another problem. >> > > Yep guessed it was a linker problem, however project builder=20 > complains it is a Build failed since there is an Undefined symbol=20 > (.objc_class_name_SMySQLConnection) > > >> >> Can you send me the source of your app (don't forget to remove the=20 >> important data for the connection if you have any -password,=20 >> login...-), I'll try to compile here. >> >> > > Code attached at the end > > >> Read you soon. >> >> Serge. >> >> >> Le lundi 29 avril 2002, =E0 11:00 , John Guy a =E9crit : >> >>> Hi there Serge, >>> >>> I've been a bit quiet since we last spoke as I have been very busy=20= >>> dealing with some other issues, however I am now back to trying to=20= >>> get my database working with Cocoa again, for real this time! >>> >>> I downloaded and built the latest version of the framework=20 >>> (SMySQL_0.5.3.tgz) I built it from the command line as detailed in=20= >>> the TO_INSTALL file. >>> >>> I have then copied the SMySQL.framework from the build folder to the=20= >>> /Library/Frameworks folder. >>> >>> I have a very simple Cocoa app (a single button that when pushed=20 >>> attempts to connect to the database on localhost). However when I=20 >>> build the project I get an error in the link stage : >>> >>> BuildPhase DBSetupTest.app >>> Completed phase <CopyHeaders> for DBSetupTest.app >>> BuildPhase DBSetupTest.app >>> Completed phase <CopyResources> for DBSetupTest.app >>> CompileC /Users/sty/Cocoa=20 >>> = WORK/DBSetupTest/build/intermediates/DBSetupTest.build/Objects/ppc/MyDocum= ent. >>> o >>> BuildPhase DBSetupTest.app >>> Completed phase <DeriveAndCompileSources> for DBSetupTest.app >>> MasterObjectFile.Combine /Users/sty/Cocoa=20 >>> WORK/DBSetupTest/build/intermediates/DBSetupTest.build/master.o >>> StandaloneExecutable /Users/sty/Cocoa=20 >>> WORK/DBSetupTest/build/DBSetupTest.app/Contents/MacOS/DBSetupTest >>> /usr/bin/ld: warning prebinding disabled because of undefined = symbols >>> /usr/bin/ld: Undefined symbols: >>> .objc_class_name_SMySQLConnection >>> >>> >>> So this is confusing, I ensured that I have no other version of the=20= >>> framework installed on my system. >>> >>> Do you have any suggestions? >>> >>> I'll carry on digging around but any help would be apprciated. >>> >>> cheers >>> >>> JOhn > > > |
From: Serge C. <co...@em...> - 2002-04-30 11:49:04
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'll check this one soon. Serge. PS: Onec again, thinks for the feed back. > > PS. Serge, I'm not sure if I have Autodoc installed on my system (it > isn't in /usr/local/bin) and this may be why the build stopped early > and didn't copy the files over? > > > > _______________________________________________ > Mysql-cocoa-users mailing list > Mys...@li... > https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users > > - ---------------------------------------------------- Serge Cohen GPG Key ID: 1024D/69B1D346 - ---------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (Darwin) Comment: For info see http://www.gnupg.org iD8DBQE8zoUqMygj1Wmx00YRArMoAKCXetPt66Z1LfwzpurMLreemugAZgCfXhLx SPEVH4TU22Y+EtMyU13Xcvg= =GsbI -----END PGP SIGNATURE----- |