Re: [Mysql-cocoa-users] I've worked it out
Brought to you by:
sergecohen
|
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 > > > |