Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Anyone have OmniNetworking (compiled)?

Anyone have OmniNetworking (compiled)?
Thread Tools
Posting Junkie
Join Date: May 2001
Location: Portland, OR
Status: Offline
Reply With Quote
Jul 11, 2002, 03:19 PM
 
Does anyone have a compiled version they can post? I'm having trouble compiling it (April Dev Tools).

While I'm at it, is it the best way to download files, or would I be better with the OmniWeb framework? (and if I would be, please post a compiled version )
8 Core 2.8 ghz Mac Pro/GF8800/2 23" Cinema Displays, 3.06 ghz Macbook Pro
Once you wanted revolution, now you're the institution, how's it feel to be the man?
     
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status: Offline
Reply With Quote
Jul 11, 2002, 03:33 PM
 
Well, if you're looking for precompiled versions, look inside the Omni apps.

But if you're planning on distributing the frameworks with your application, it's best if you compile them yourself, because then they and your app can be nicely prebound. What problem are you having with getting it to compile?

<small>[ 07-11-2002, 04:34 PM: Message edited by: Rickster ]</small>
Rick Roe
icons.cx | weblog
     
goMac  (op)
Posting Junkie
Join Date: May 2001
Location: Portland, OR
Status: Offline
Reply With Quote
Jul 11, 2002, 04:02 PM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by Rickster:
<strong>Well, if you're looking for precompiled versions, look inside the Omni apps.

But if you're planning on distributing the frameworks with your application, it's best if you compile them yourself, because then they and your app can be nicely prebound. What problem are you having with getting it to compile?</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">OmniBase:

OBUtilities.m:96: illegal expression, found `@'
OBUtilities.m:97: illegal expression, found `@'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
OBUtilities.m:96: invalid identifier `@'
OBUtilities.m:96: `@' undeclared here (not in a function)
OBUtilities.m:96: parse error before character constant
OBUtilities.m:97: invalid identifier `@'
OBUtilities.m:97: `@' undeclared here (not in a function)
OBUtilities.m:97: parse error before character constant

(got someone else to compile omnibase)

OmniNetworking:

/Library/Frameworks/OmniBase.framework/Headers/system.h:144: warning: could not use precompiled header '/System/Library/Frameworks/Carbon.framework/Headers/Carbon.p', because:
/Library/Frameworks/OmniBase.framework/Headers/system.h:144: warning: 'OpenScripting/OpenScripting.h' has different date than in precomp
/Library/Frameworks/OmniBase.framework/Headers/system.h:144: warning: 'OpenScripting/OSA.h' has different date than in precomp
/Library/Frameworks/OmniBase.framework/Headers/system.h:144: warning: 'OpenScripting/OSAComp.h' has different date than in precomp
/Library/Frameworks/OmniBase.framework/Headers/system.h:144: warning: 'OpenScripting/OSAGeneric.h' has different date than in precomp
/Library/Frameworks/OmniBase.framework/Headers/system.h:144: warning: and others...
ONHost.m:195: warning: #warning +hostForAddress: is not yet thread-safe
ONHost.m:511: illegal expression, found `@'
ONHost.m:512: illegal expression, found `@'
ONHost.m:513: illegal expression, found `@'
ONHost.m:514: illegal expression, found `@'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
ONHost.m:511: invalid identifier `@'
ONHost.m:511: `@' undeclared here (not in a function)
ONHost.m:511: parse error before character constant
ONHost.m:512: invalid identifier `@'
ONHost.m:512: `@' undeclared here (not in a function)
ONHost.m:512: parse error before character constant
ONHost.m:513: invalid identifier `@'
ONHost.m:513: `@' undeclared here (not in a function)
ONHost.m:513: parse error before character constant
ONHost.m:514: invalid identifier `@'
ONHost.m:514: `@' undeclared here (not in a function)
ONHost.m:514: parse error before character constant

Its all been quite messy. (you can see it seems omnibacse still has some problems when compiling omninetworking).

So which would be better, OmniNetworking or OmniWeb? I jsut want to download a small 1k file, and thought that a Omni framework might be simpler to use rather then a Cocoa socket.

(goes to take a peak inside OmniWeb package)
8 Core 2.8 ghz Mac Pro/GF8800/2 23" Cinema Displays, 3.06 ghz Macbook Pro
Once you wanted revolution, now you're the institution, how's it feel to be the man?
     
Junior Member
Join Date: Sep 2000
Location: Seattle, WA, USA
Status: Offline
Reply With Quote
Jul 11, 2002, 04:16 PM
 
goMac-

The problem you're seeing is because you're using the April dev tools and they fix a bug that we were working around.

Look in OBUtilities.h for some code that looks similar to the following and replace it with exactly what I'm including here:

#if defined(__GNUC__) && (__GNUC__ &lt; 3) && defined(__APPLE_CC__) && (__APPLE_CC__ &lt; 937)
// The gcc 2.x version of cpp-precomp for Mach has a bug which makes us have to do this
// TJW: Also the 2.95 that comes with the Apr 2002 Dev Tools (version 937) has a fixed cpp-precomp
#define NSSTRINGIFY(name) @ ## '"' ## name ## '"'
#else
#define NSSTRINGIFY(name) @ ## #name
#endif
     
goMac  (op)
Posting Junkie
Join Date: May 2001
Location: Portland, OR
Status: Offline
Reply With Quote
Jul 11, 2002, 04:50 PM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by aabernathy:
<strong>goMac-

The problem you're seeing is because you're using the April dev tools and they fix a bug that we were working around.

Look in OBUtilities.h for some code that looks similar to the following and replace it with exactly what I'm including here:

#if defined(__GNUC__) && (__GNUC__ &lt; 3) && defined(__APPLE_CC__) && (__APPLE_CC__ &lt; 937)
// The gcc 2.x version of cpp-precomp for Mach has a bug which makes us have to do this
// TJW: Also the 2.95 that comes with the Apr 2002 Dev Tools (version 937) has a fixed cpp-precomp
#define NSSTRINGIFY(name) @ ## '"' ## name ## '"'
#else
#define NSSTRINGIFY(name) @ ## #name
#endif</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">Worked like a charm for OmniBase. OmniNetworking compiled fine but had 63 warnings. <img border="0" alt="[Hmmm]" title="" src="graemlins/hmmm.gif" />

They were mostly repeats fo this:

/Library/Frameworks/OmniBase.framework/Headers/system.h:144: warning: could not use precompiled header '/System/Library/Frameworks/Carbon.framework/Headers/Carbon.p', because:
/Library/Frameworks/OmniBase.framework/Headers/system.h:144: warning: 'OpenScripting/OpenScripting.h' has different date than in precomp
/Library/Frameworks/OmniBase.framework/Headers/system.h:144: warning: 'OpenScripting/OSA.h' has different date than in precomp
/Library/Frameworks/OmniBase.framework/Headers/system.h:144: warning: 'OpenScripting/OSAComp.h' has different date than in precomp
/Library/Frameworks/OmniBase.framework/Headers/system.h:144: warning: 'OpenScripting/OSAGeneric.h' has different date than in precomp

So, no one has said yet, which is better for downloading a file, OmniNetworking, or OWF?
8 Core 2.8 ghz Mac Pro/GF8800/2 23" Cinema Displays, 3.06 ghz Macbook Pro
Once you wanted revolution, now you're the institution, how's it feel to be the man?
     
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jul 11, 2002, 06:41 PM
 
Try running (from the terminal)
sudo /usr/bin/fixPrecomps

The recent Applescript update installed some new header files that make this necessary - this command will rebuild your operating system precompiled headers.
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
goMac  (op)
Posting Junkie
Join Date: May 2001
Location: Portland, OR
Status: Offline
Reply With Quote
Jul 11, 2002, 07:46 PM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by smeger:
<strong>Try running (from the terminal)
sudo /usr/bin/fixPrecomps

The recent Applescript update installed some new header files that make this necessary - this command will rebuild your operating system precompiled headers.</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">Well THANK YOU APPLE.

So can anyone tell me what is better for this task (OWF or OmniNetworking or just Cocoa)?
8 Core 2.8 ghz Mac Pro/GF8800/2 23" Cinema Displays, 3.06 ghz Macbook Pro
Once you wanted revolution, now you're the institution, how's it feel to be the man?
     
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status: Offline
Reply With Quote
Jul 11, 2002, 08:09 PM
 
If all you want to do is download a file, the Omni frameworks are probably overkill -- NSURL in Foundation can do that. (Unless you want to, say, provide detailed progress information... I'm not sure NSURL provides that much to its delegate.)

Need an example of how to use NSURL to download a file? Look at the OmniSoftwareUpdate stuff in OmniFoundation; it does that to grab the CurrentSoftwareVersions.plist from our web site.
Rick Roe
icons.cx | weblog
     
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jul 11, 2002, 09:58 PM
 
Someone has wrapped "curl" in cocoa-y goodness. You might want to check that out. It's <a href="http://curlhandle.sourceforge.net/" target="_blank">here</a> .
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
goMac  (op)
Posting Junkie
Join Date: May 2001
Location: Portland, OR
Status: Offline
Reply With Quote
Jul 12, 2002, 11:49 AM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by Rickster:
<strong>If all you want to do is download a file, the Omni frameworks are probably overkill -- NSURL in Foundation can do that. (Unless you want to, say, provide detailed progress information... I'm not sure NSURL provides that much to its delegate.)

Need an example of how to use NSURL to download a file? Look at the OmniSoftwareUpdate stuff in OmniFoundation; it does that to grab the CurrentSoftwareVersions.plist from our web site.</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">Thank you! Exactly what I needed to know.

The application is basically a daemon, so I don't need any progress reporting. In the future I may need it, but not right now.

Smeger: I'm using Curl right now, and I hate it. I have all sorts of problems with it.
8 Core 2.8 ghz Mac Pro/GF8800/2 23" Cinema Displays, 3.06 ghz Macbook Pro
Once you wanted revolution, now you're the institution, how's it feel to be the man?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:01 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2