mvnForum Homepage Welcome Guest  | Guest Setting  |  Register  |   Login
  Search  
Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


»

No member browsing this thread
Thread Status: Active
Total posts in this thread: 6
Post new Thread
Author
Previous Thread This topic has been viewed 7102 times and has 5 replies Next Thread
Male ejb
Newbie
Member's Avatar


Joined: Jun 24, 2007
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
corba/orbitcpp bindings make errors

Hello,

I am trying to get the JSP sword web interface running. I am following the directions at this page (http://www.crosswire.org/swordweb/) but I am stumped at the orbitcpp build process. Any help would be much appreciated! BTW opensource + Christianity = a good match! Keep up the good work.

Here is my setup:
$ uname -a
Linux bluebox 2.6.20-gentoo-r8 #1 SMP Thu Jun 7 18:33:43 EST 2007 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux

gnome-base/orbit
Latest version installed: 2.14.7

dev-cpp/orbitcpp
Latest version installed: 1.3.9
(Orbitcpp was masked [marked unstable] in the gentoo's package system so that might be the problem.)

www-servers/tomcat
Latest version installed: 5.5.23-r1

Here is a portion of the error:

zephyr@bluebox ~/sword/bindings/corba/orbitcpp $ make
g++ -I/usr/include/sword -DORBIT2=1 -pthread -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/orbitcpp-2.0 -g -O0 -I. -c swordorb-impl.cpp
In file included from swordorb-cpp-stubs.h:11,
from swordorb-cpp-skels.h:8,
from swordorb-impl.hpp:4,
from swordorb-impl.cpp:1:
swordorb-cpp-common.h:10:39: error: orbitcpp/orb-cpp/orbitcpp.h: No such file or directory
swordorb-cpp-common.h:20: error: '::_orbitcpp' has not been declared
swordorb-cpp-common.h:20: error: expected initializer before '<' token

................... cut ................

swordorb-impl.cpp:337: error: 'CORBA' has not been declared
swordorb-impl.cpp:337: error: expected `)' before 'SystemException'
swordorb-impl.cpp:337: error: expected initializer before 'SystemException'
swordorb-impl.cpp:353: error: 'CORBA' has not been declared
swordorb-impl.cpp:353: error: expected `)' before 'SystemException'
swordorb-impl.cpp:353: error: expected initializer before 'SystemException'
make: *** [swordorb-impl.o] Error 1

Let me know if you need more info.
Thanks again,
ejb
[Jun 24, 2007 7:10:47 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male ejb
Newbie
Member's Avatar


Joined: Jun 24, 2007
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: corba/orbitcpp bindings make errors

I fixed my problem... no thanks to anyone here biggrin !

It was a matter of creating a few symlinks:

$ ls -al /usr/include/ | grep orbit
lrwxrwxrwx 1 root root 16 Jun 28 09:59 orbit -> orbit-2.0/orbit/
drwxr-xr-x 5 root root 136 Jun 25 08:58 orbit-2.0
lrwxrwxrwx 1 root root 20 Jun 28 09:59 orbit-idl -> orbit-2.0/orbit-idl/
lrwxrwxrwx 1 root root 22 Jun 28 09:59 orbitcpp -> orbitcpp-2.0/orbitcpp/
drwxr-xr-x 4 root root 96 Jun 25 09:02 orbitcpp-2.0

This may be a gentoo specific problem but I'm not sure.
One step closer to swordweb!
[Jun 27, 2007 6:55:06 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male dmsmith
Regular



USA
Joined: Aug 25, 2004
Post Count: 79
Status: Offline
Reply to this Post  Reply with Quote 
Re: corba/orbitcpp bindings make errors

I'm glad you fixed your problems. I thought I'd post what I have done. I am no expert and while I may have understood the steps at one point, I don't anymore. However, I still follow them as a cookbook. It probably doesn't answer your question but together with your answer, it may prove useful to someone else.

Build your own Bible Tool:
Setup:
Create the following: (change /home/dmsmith/env to your install location)
/home/dmsmith/env/bin/
/home/dmsmith/env/etc/sword.conf (See below for contents)
/home/dmsmith/env/include/sword/
/home/dmsmith/env/share/sword/locales.d/ (containing all the locales.d files)
/home/dmsmith/env/share/sword/mods.d/ (containing your modules' confs)
/home/dmsmith/env/share/sword/modules/ (containing your modules)

Change usrinst.sh to have a different prefix and sysconfdir

Change makefile for corba to have a different instdir.

Create your website: (I did this in ~dmsmith/public_html)
WEB-INF/swordweb.properties (See below for contents)
WEB-INF/classes/
WEB-INF/lib/struts-tiles.tld
WEB-INF/lib/struts.jar
WEB-INF/lib/struts-html.tld
WEB-INF/lib/greekconverter.jar
WEB-INF/lib/gnu-regexp-1.1.3.jar
WEB-INF/lib/crosswire-i18n.tld
WEB-INF/lib/crosswire.jar
swordweb/ (containing svn co http://www.crosswire.org/svn/swordweb)

Building and installing the sword api and swordweb:
cd sword
svn update
make install
cd bindings/corba/orbitcpp
make clean server install

Bounce the web server to make changes visible:
(replace my.server.org with the name of your server)
http://my.server.org:8080/manager/html/reload?path=/~dmsmith

Access the webserver:
http://my.server.org/~dmsmith/swordweb/webapp/

Files and patches:
etc/sword.conf:
[Install]
DataPath=/usr/share/sword/
AugmentPath=/home/dmsmith/env/share/sword/

WEB-INF/swordweb.properties:
orbexe=/home/dmsmith/env/bin/swordorbserver
defaultBible=NASB
[Jun 28, 2007 8:43:22 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male ejb
Newbie
Member's Avatar


Joined: Jun 24, 2007
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: corba/orbitcpp bindings make errors

Ah, cool. Thanks for the follow up post. So everything is working for you? Have you done any modifications/ customizations to swordweb? I would like to combine swordweb with a sort of wiki/blog environment to allow comments and such.

Thanks for the info!
[Jun 29, 2007 9:37:48 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male dmsmith
Regular



USA
Joined: Aug 25, 2004
Post Count: 79
Status: Offline
Reply to this Post  Reply with Quote 
Re: corba/orbitcpp bindings make errors

I've made not changes. I'm not sure I know how. To me it is a black box.
[Jul 6, 2007 3:16:25 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male lsylvain
Stranger
Member's Avatar

USA
Joined: Jul 14, 2007
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: corba/orbitcpp bindings make errors

I ran into similiar problems as well, but what if I told you you could get away without having to build at all?! :) You can install the Cygwin orbit2 binaries and run with them instead. I was looking into the best way to build swordweb and decided to update cygwin, and to my very pleasant surprise there was orbit2! I just followed the instructions and placed an orbitrc file in the etc directory under the cygwin install directory.

You can get many, many other binaries of current stuff for cygwin and focus your efforts on only building what you are directly interested in. In my case I am also looking at swordweb and considering putting in a translators page.

Once I resolve my sword build issue (I think I have, and I will post to notify if the bug I think I have found is fixed) I will move to swordweb.

So go for cygwin, and touch base if you have problems.
[Jul 14, 2007 11:50:10 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    lsylvain    ljsylvain [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread