[bt-devel] Current status of static build

Joachim Ansorg bt-devel@crosswire.org
Mon, 18 Jun 2001 16:29:46 +0200


If you install in /usr your solution of renaming the binary is better, 
because otherwise the script and the real binary would be in the same 
directory.

The script should now looks like this (depending on installation path):
export BT_PATH=/usr/
export KDEDIRS=$BT_PATH
$BT_PATH/bin/bibletime.real

Use a fitting name for the binary, I have no idea as usual :)

Joachim


> On Monday 18 June 2001 01:28 am, you wrote:
> > This should be fixed now.
> > Is it possible for you to create the wrapper script around the statically
> > linked BibleTime automatically or include it in the RPM?
> > The script should look like:
> >
> > export BT_PATH=/usr/bibletime/ # install location of the BibleTime
> > directory export KDEDIRS=$BT_PATH
> > $BT_PATH/bin/bibletime
>
> Yes I already made a scripts that renames bibletime to bibletme and then
> makes a shell script called bibletime that will launch bibletme. I was
> wondering about the syntax of such a script mine is much more simple I will
> impliment yours.
>
> Right now bibletime is in simply /usr. This is normal at least for mandrake
> and redhat. Under user /bin holder the binary, /libs holds libraries, etc.
>
> > I'm not sure howto pass all commandline-options of the script to the
> > BibleTime executable. Do you know how?
>
> Yes the spec file creates a shell script in the name of bibletime that
> passes all this info to the enviroment and then exicutes the actual binary
> of bibletime.
>
> > Joachim
> >
> > > The build with just sword as static compiled fine but with kde as
> > > static I get this error. Any ideas?
> > >
> > > main.cpp: In function `int main (int, char **)':
> > > main.cpp:132: warning: comparison between signed and unsigned integer
> > > expressions
> > > main.cpp:133: no matching function for call to
> > > `KStandardDirs::addResourceType (QString &, QString)'
> > > /usr/include/kstddirs.h:158: candidates are: bool
> > > KStandardDirs::addResourceType (const char *, const QString &)
> > > make[3]: *** [main.o] Error 1
> > > make[3]: *** Waiting for unfinished jobs....
> > > bibletime.cpp: In method `void BibleTime::saveProperties (KConfig *)':
> > > bibletime.cpp:274: warning: unused parameter `KConfig *myConfig'
> > > bibletime.cpp: In method `void BibleTime::readProperties (KConfig *)':
> > > bibletime.cpp:279: warning: unused parameter `KConfig *myConfig'
> > > make[3]: *** Waiting for unfinished jobs....
> > > make[3]: Leaving directory
> > > `/usr/src/RPM/BUILD/bibletime-1.0.beta/bibletime' make[2]: ***
> > > [all-recursive] Error 1
> > > make[2]: Leaving directory
> > > `/usr/src/RPM/BUILD/bibletime-1.0.beta/bibletime' make[1]: ***
> > > [all-recursive] Error 1
> > > make[1]: Leaving directory `/usr/src/RPM/BUILD/bibletime-1.0.beta'
> > > make: *** [all-recursive-am] Error 2
> > > Bad exit status from /var/tmp/rpm-tmp.3862 (%prep)