From mark.chung at sri.com Mon Apr 17 08:58:15 2006 From: mark.chung at sri.com (Mark Chung) Date: Mon Apr 17 08:58:18 2006 Subject: [missing-sync-palmos-dev-talk] Bridge Library Questions In-Reply-To: <22B1B8EA-7091-4789-B545-BDA1EC5B8BE5@markspace.com> References: <897F9139-DE07-4D97-A37A-6AEE9210DF08@inspiration.com> <7E9BD7F7-FC12-4C50-A18D-B079B9529F7B@markspace.com> <649901EF-E2CD-4A72-8912-2647F2CEAFC2@inspiration.com> <22B1B8EA-7091-4789-B545-BDA1EC5B8BE5@markspace.com> Message-ID: <4443BB17.3010507@sri.com> I tried building the sample conduit with the updated bridge library in XCode 2.2.1, and got an error (below). Missing Sync is not installed. I got a similar error building my conduit with the new library, though when I reverted back to the old library, it built successfully. I'm interested in trying the new library because I just got a bug report from a user who is running 10.3.9. Building target ?SampleConduit? of project ?SampleConduit? ? (1 error) cd /Users/mchung/Desktop/SampleCode.1/SampleConduit /usr/bin/g++-4.0 -o /Users/mchung/Desktop/SampleCode.1/SampleConduit/build/Development/SampleConduit.plugin/Contents/MacOS/SampleConduit -L/Users/mchung/Desktop/SampleCode.1/SampleConduit/build/Development -L/Users/mchung/Desktop/SampleCode.1/SampleConduit -F/Users/mchung/Desktop/SampleCode.1/SampleConduit/build/Development -filelist /Users/mchung/Desktop/SampleCode.1/SampleConduit/build/SampleConduit.build/Development/SampleConduit.build/Objects-normal/ppc/SampleConduit.LinkFileList -framework Carbon -lMissingSyncBridge -arch ppc -bundle -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.3.9.sdk /usr/bin/ld: Undefined symbols: loadBridge() unloadBridge() collect2: ld returned 1 exit status /usr/bin/ld: Undefined symbols: loadBridge() unloadBridge() collect2: ld returned 1 exit status Build failed (1 error) Scott Gruby wrote: > Also, you'll want to download the sample code again as we fixed some > issues with the bridge library running with HotSync Manager on 10.3.9. From sgruby at markspace.com Mon Apr 17 09:23:47 2006 From: sgruby at markspace.com (Scott Gruby) Date: Mon Apr 17 09:23:50 2006 Subject: [missing-sync-palmos-dev-talk] Bridge Library Questions In-Reply-To: <4443BB17.3010507@sri.com> References: <897F9139-DE07-4D97-A37A-6AEE9210DF08@inspiration.com> <7E9BD7F7-FC12-4C50-A18D-B079B9529F7B@markspace.com> <649901EF-E2CD-4A72-8912-2647F2CEAFC2@inspiration.com> <22B1B8EA-7091-4789-B545-BDA1EC5B8BE5@markspace.com> <4443BB17.3010507@sri.com> Message-ID: <23CE8BBE-EE7B-469F-B9C4-AC0D64E6FF2B@markspace.com> On Apr 17, 2006, at 8:58 AM, Mark Chung wrote: > I tried building the sample conduit with the updated bridge library > in XCode 2.2.1, and got an error (below). Missing Sync is not > installed. I got a similar error building my conduit with the new > library, though when I reverted back to the old library, it built > successfully. I'm interested in trying the new library because I > just got a bug report from a user who is running 10.3.9. > > Building target ?SampleConduit? of project ?SampleConduit? ? (1 error) > cd /Users/mchung/Desktop/SampleCode.1/SampleConduit > /usr/bin/g++-4.0 -o /Users/mchung/Desktop/SampleCode.1/ > SampleConduit/build/Development/SampleConduit.plugin/Contents/MacOS/ > SampleConduit -L/Users/mchung/Desktop/SampleCode.1/SampleConduit/ > build/Development -L/Users/mchung/Desktop/SampleCode.1/ > SampleConduit -F/Users/mchung/Desktop/SampleCode.1/SampleConduit/ > build/Development -filelist /Users/mchung/Desktop/SampleCode.1/ > SampleConduit/build/SampleConduit.build/Development/ > SampleConduit.build/Objects-normal/ppc/SampleConduit.LinkFileList - > framework Carbon -lMissingSyncBridge -arch ppc -bundle -mmacosx- > version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.3.9.sdk > /usr/bin/ld: Undefined symbols: > loadBridge() > unloadBridge() > collect2: ld returned 1 exit status > /usr/bin/ld: Undefined symbols: > loadBridge() > unloadBridge() > collect2: ld returned 1 exit status > Build failed (1 error) > The bridge.h header file needs extern C wrappers for the functions. I've updated the sample code with the new header file; hopefully there aren't other things that I missed. The new bridge.h file is: #include #include "SYNCMGR.H" #include "UserMgr.h" #ifdef __cplusplus extern "C" { #endif bool loadBridge(void); void unloadBridge(void); #ifdef __cplusplus } #endif // Since our conduit gets unloaded, the normal CFSTR is referencing an object that can go away #ifdef CFSTR #undef CFSTR #define CFSTR(x) ::CFStringCreateWithCString( kCFAllocatorDefault, x, ::GetApplicationTextEncoding() ) #endif -- Scott Gruby Lead Engineer Mark/Space, Inc. Please visit for assistance with Mark/Space products. From chodges at gmail.com Tue Apr 25 04:57:58 2006 From: chodges at gmail.com (Chris Hodges) Date: Tue Apr 25 04:58:02 2006 Subject: [missing-sync-palmos-dev-talk] Using the MissingSync Bridge with the Palm Foundation Classes (PFC) - Is It Possible? Message-ID: I've been reviewing the documentation and the sample conduit and I have a very basic question: Is it possible for me to use the PFC classes when building my conduit with the Bridge library? I'm using XCode 2.2 and am targeting OSX 10.3 and higher on PPC. Basically what I'm thinking of doing is something like this: pGeneric = new CPTPConduitSync(rProps, GENERIC_FLAG_APPINFO_SUPPORTED ); if (pGeneric){ retval = pGeneric->Perform(); delete pGeneric; } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.markspace.com/pipermail/missing-sync-palmos-dev-talk/attachments/20060425/5cb41341/attachment.html From chodges at gmail.com Tue Apr 25 05:00:26 2006 From: chodges at gmail.com (Chris Hodges) Date: Tue Apr 25 05:00:30 2006 Subject: [missing-sync-palmos-dev-talk] Using the MissingSync Bridge with the Palm Foundation Classes (PFC) - Is It Possible? Message-ID: I've been reviewing the documentation and the sample conduit and it would appear that I can use the PFC classes with the Bridge library. My development environment is XCode 2.2 and my target platform is OSX 10.3 and higher on PPC. I've already got a conduit built on the Windows platform using PFC and it would really speed up my dev. time if I could use the classes I created. Thanks for your help, Chris Hodges -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.markspace.com/pipermail/missing-sync-palmos-dev-talk/attachments/20060425/19cf7b35/attachment.html From sgruby at markspace.com Wed Apr 26 07:19:49 2006 From: sgruby at markspace.com (Scott Gruby) Date: Wed Apr 26 07:19:54 2006 Subject: [missing-sync-palmos-dev-talk] Using the MissingSync Bridge with the Palm Foundation Classes (PFC) - Is It Possible? In-Reply-To: References: Message-ID: <5F28FE3E-5B1F-4E31-BEE5-E36EAC03111C@markspace.com> On Apr 25, 2006, at 4:57 AM, Chris Hodges wrote: > I've been reviewing the documentation and the sample conduit and I > have a > very basic question: Is it possible for me to use the PFC classes > when > building my conduit with the Bridge library? I'm using XCode 2.2 > and am > targeting OSX 10.3 and higher on PPC. > > Basically what I'm thinking of doing is something like this: > > pGeneric = new CPTPConduitSync(rProps, > GENERIC_FLAG_APPINFO_SUPPORTED ); > if (pGeneric){ > retval = pGeneric->Perform(); > delete pGeneric; > } In theory, it should work, but we haven't tried it. I believe the PFC classes on the Mac are dependent on PowerPlant classes, so you'd need to start with the PowerPlant sample code we provide. -- Scott Gruby Lead Engineer Mark/Space, Inc. Please visit for assistance with Mark/Space products.