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 > Learning C++ and CORBA on MacOSX

Learning C++ and CORBA on MacOSX
Thread Tools
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
Nov 22, 2002, 06:39 PM
 
I'm trying to teach myself about the CORBA standard (work related) and would like to get some hands experience via C++ . Can any of you suggest the path of least resistance? Of course, I would like to do everything on MacOSX. I have the Developer Tools installed so I know I have C++ the issue is getting a suitable ORB and some tutorials. Any feedback will appreciated.

Thanks!
     
Forum Regular
Join Date: Feb 2000
Status: Offline
Reply With Quote
Nov 26, 2002, 06:41 PM
 
Originally posted by DaGuy:
I'm trying to teach myself about the CORBA standard (work related) and would like to get some hands experience via C++ . Can any of you suggest the path of least resistance? Of course, I would like to do everything on MacOSX. I have the Developer Tools installed so I know I have C++ the issue is getting a suitable ORB and some tutorials. Any feedback will appreciated.

Thanks!
well, you'd be better off on the strictly *NIX/X side where there is:
ORBit

The GNOME project makes use of it in various ways, as does KDE, I believe. So source from those projects would probably be your best bets for examples, as I really can't think of any other OSS that makes use of CORBA. The GIMP might use it, but I'm not sure...

It's pretty uncommon. The only other place I heard of it used was by a local *NIX proprietary network stack niche developer. And I'm not even certain where they would get such a great use out of CORBA there...
     
DaGuy  (op)
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
Nov 29, 2002, 03:12 PM
 
Thanks for tip. Actually, I got pass this hurdle. I came accross omniORB4 at

http:/ omniorb.sourceforge.net

and so far it works really great. Below are the steps that I took to build and configure on MacOSX 10.2.2. Bear in mind, that I am not making claims on "how correct" these are but they did work for me:

SETUP INSTRUCTIONS FOR OmniORB 4.0.0 on MacOS X 10.2.2 (Jaguar with Developer Tools Installed)

1. DOWNLOAD omniORB-4.0.0.tar INTO A DIRECTORY OF CHOICE. I CHOSE /usr/local/corba

2. FROM THE COMMAND LINE

$cd /usr/local/corba
$tar -xvf omni*
$ cd /usr/local/corba/omniORB-4.0.0
$ mkdir build
$ cd build
$ ../configure --disable-static --enable-thread-tracing --with-openssl=/usr
$ make

3. USE THE PROVIDED SAMPLE CONFIGURATION FILE AS A STARTING POINT

$cd /usr/local/corba/omniORB-4.0.0
$cp sample.cfg omniORB.cfg

4. ADD THE FOLLOWING TO YOUR ENVIRONMENT (I'M USING THE TCSH SHELL)

setenv OMNINAMES_LOGDIR /usr/local/corba/omniORB-4.0.0/build/logs
setenv DYLD_LIBRARY_PATH /usr/local/corba/omniORB-4.0.0/build/lib
setenv DYLD_BIND_AT_LAUNCH 1
setenv OMNIORB_CONFIG /usr/local/corba/omniORB-4.0.0/omniORB.cfg
set path = ($path /usr/local/corba/omniORB-4.0.0/build/bin)

5. BUILD AND RUN THE ECHO EXAMPLE

$cd /usr/local/corba/omniORB-4.0.0/build/src/examples/echo
$ make
$ ./eg1

6. ENJOY!
     
   
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 06:23 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