AW: [Mysql-cocoa-users] Including SMySQL_bundled into preferences pane project
Brought to you by:
sergecohen
|
From: Ruggiero, S. <ste...@ra...> - 2005-02-28 14:13:44
|
Thank you very much for the tip! I tried including the sources into my project, but I could not get it = to compile - I think it is because of the several path dependencies = between the routines that do not match when placed in a "foreign" project. So Serge Cohen - maybe you have some further ideas to solve this = problem? Any help would be great!! Best regards, Stephan -----Urspr=FCngliche Nachricht----- Von: Aaron Jacobs [mailto:aj...@ed...] Gesendet: Freitag, 25. Februar 2005 15:30 An: Stephan Ruggiero Betreff: Re: [Mysql-cocoa-users] Including SMySQL_bundled into preferences pane project What you want to do is download the source distribution for SMySQL and=20 then in your project go to Project -> Add to Project and add everything = in the SMySQL and mysql_bins directories. Then you also have to go to=20 Project -> Add to Project and press Cmd-Shift-G and type in /usr/lib to = go to that directory and add the following files: libssl.0.9.7.dylib libz.1.dylib libcrypto.0.9.7.dylib If you can't make it work that way, you may want to talk to Serge = Cohen. On Feb 25, 2005, at 8:04 AM, Stephan Ruggiero wrote: > Hi Aaron, > > it would be very nice if you could help me out with this - I've been=20 > trying around for the last 2 hours but without any success :-( Seems=20 > like I'm stucked... > > Thank you very much again! > > > Stephan > > > Am 25.02.2005 um 14:59 schrieb Aaron Jacobs: > >> Not step-by-step, no. You can probably just include all the .h and = .m >> files as well as the .a file for the MySQL library that needs to be >> linked in, but I'm not entirely sure. I'm actually going to be = doing >> something similar soon (today if I have time), so let me know if you >> can't figure it out and I'll tell you how I did it. >> >> Aaron >> >> >> On Feb 25, 2005, at 7:07 AM, Stephan Ruggiero wrote: >> >>> ok, I get the problem, thank you very much! >>> >>> Do you perhaps know the steps needed to include the source directly >>> into my project? >>> >>> >>> >>> Am 25.02.2005 um 13:37 schrieb Aaron Jacobs: >>> >>>> It's not the #import that's causing it - that's purely a compile=20 >>>> time >>>> thing. It's the fact that the pref pane is dynamically linked to=20 >>>> the >>>> framework and the dynamic linker can't find the framework when the >>>> pane >>>> >>>> is run. What you could do is include the SMySQL source directly = in >>>> your project rather than building it as a framework. That way it >> will >>>> be compiled right into your code and the linker won't have to = worry >>>> about finding the framework. >>>> >>>> Aaron >>>> >>>> >>>> >>>> On Feb 25, 2005, at 6:34 AM, Stephan Ruggiero wrote: >>>> >>>>> hmmm... >>>>> that's exactly what I wanted to avoid - I pretty much prefer the >>>>> drag'n'drop installations :-) >>>>> maybe there is a special way to spell the #import command to tell >> the >>>> >>>>> system where to look for the framework? >>>>> >>>>> >>>>> Am 25.02.2005 um 13:30 schrieb Aaron Jacobs: >>>>> >>>>>> Stephan, >>>>>> >>>>>> Perhaps if you copy the framework into ~/Library/Frameworks or >>>>>> /Library/Frameworks it will work. This may mean that you have = to >>>>>> create >>>>>> an installer program for your pref pane, though. >>>>>> >>>>>> Aaron Jacobs >>>>>> >>>>>> >>>>>> >>>>>> On Feb 25, 2005, at 3:01 AM, Stephan Ruggiero wrote: >>>>>> >>>>>> >>>>>>> Hello list, >>>>>>> >>>>>>> i want to include the bundled version of SMySQL into a = preference >>>>>>> pane >>>>>>> I am currently developing. I did everything linke D.Winter >>>>>>> explained >>>>>>> in his pdf (thanks a lot) to copy the framework to my target. I >>>>>>> then >>>>>>> included the framework in my main classes ".h" like this: >>>>>>> #import <SMySQL_bundled/SMySQL_bundled.h> >>>>>>> >>>>>>> When starting the SystemPreferences app, my pane plugin ca not = be >>>>>>> loaded, this error is being displayed in the console log: >>>>>>> >>>>>>> ******** >>>>>>> 2005-02-25 09:37:01.317 System Preferences[2027] *** -[NSBundle >>>>>>> load]: >>>>>>> Error loading code >>>>>>> /Library/PreferencePanes/DKON.prefPane/Contents/MacOS/DKON for >>>> bundle >>>>>>> /Library/PreferencePanes/DKON.prefPane, error code 0 (link edit >>>> error >>>>>>> code 0, error number 2 (dyld: /Applications/System >>>>>>> Preferences.app/Contents/MacOS/System Preferences can't open >>>> library: >>>>>>> >> @executable_path/../Frameworks/SMySQL_bundled.framework/Versions/A/ >>>>>>> SMy >>>>>>> SQL_bundled (No such file or directory, errno =3D 2) >>>>>>> ******** >>>>>>> >>>>>>> It seems the SystemPreferences app does not search the SMySQL >>>>>>> framework within my ".prefpane" bundle - it is only looking = into >>>>>>> his >>>>>>> own bundle! >>>>>>> >>>>>>> Can someone assist me with this problem? >>>>>>> >>>>>>> Thank you very much! >>>>>>> >>>>>>> S. Ruggiero >>>>>>> >>>>>>> >>>>> >>> > |