[AG-TECH] AccessGrid 2.0 in Slackware 9.0

Christoph Willing chris at vislab.usyd.edu.au
Thu Aug 7 19:42:55 CDT 2003


On Fri, 2003-08-08 at 04:26, Stephen Bosch wrote:
> I'm attempting to install the AccessGrid packages in Slackware 9.0.
> 
> First -- I'd like to point out the folly of providing the source 
> packages in RPM format only. That doesn't count as "source" -- that's a 
> source RPM. Sources should be in generic tar.gz packages.
> 
Absolutely!
Add my vote to those wanting generic rather than RPM releases.


Nevertheless, Slackware _does_ understand rpms. Therefore, installing
the AG2 Bundle of rpms (interestingly, bundled as a tar.gz) will work.
Slackware actually has a /usr/src/rpm tree built in (although normally
empty).


To install rpm binary release of AG2 on Slack 9, do the following:

A. as well as the bundle, also download the wxPythonGTK rpm from the
link on AG2 download page and install it with
    rpm -i --nodeps wxPythonGTK-py2.2-2.4.0.7-1.i386.rpm

B. download (from somewhere) openssl096b-0.9.6b-6.i386.rpm. This is
needed for an old libssl.so.2 which is needed at runtime by AG2. Google
for openssl096b-0.9.6b-6.i386.rpm to find a download site near you.
Install it with
    rpm -i --nodeps openssl096b-0.9.6b-6.i386.rpm

C. unpack the AG2 bundle and cd into the AccessGrid-2.0-1 directory.
Before running the install.sh script, edit its Install() function so
that where rpm -Fvh and rpm -Uvh are used, add the --nodeps option
before the $package_rpm variable i.e. change
	rpm -Fvh $package_rpm
to
	rpm -Fvh --nodeps $package_rpm
and
	rpm -Uvh $package_rpm
to
	rpm -Uvh --nodeps $package_rpm

Now run the install.sh script and you're done!

I currently have a Slack 9 (with AG2 installation as above) running as a
-personalNode with 2 cameras in the TVS Lobby right now. Its been
running all last night as a test.

	

> Nevertheless, I have installed rpm in order to access the sources. I 
> have been attempting to build Slackware packages from the tar.gz files 
> extracted from the source RPMs, but things are not building; attempts to 
>   rebuild the rpms using rpmbuild are also failing (some of the files 
> are "installed but not packaged" - I had a vague notion of converting 
> rpms to slackware packages but after this problem decided it would be a 
> better idea to just build from raw sources).
> 
> I'm perfectly happy building directly from source but the sources have 
> to build -- building vic fails with the following error:
> 
> rm -f video/grabber-qcam.o; c++ -o video/grabber-qcam.o -c -O2 -g -W -Wall
> -Wno-implicit-int -Wno-return-type -DQCAMDEV -DLinux -DUSE_SHM -fsigned-char
> -DED_YBITS=4 -DSIGRET=void -DNLAYER=8 -I. -Icodec/tmndec -Icodec/tmn-x
> -Icodec/h263 -Irtp -Irender -Inet -Ivideo -Icodec -I../common
> -I../tk-8.0/generic -I../tcl-8.0/generic   -Icodec/jpeg -Icodec/p64 -I.
> video/grabber-qcam.cpp
> video/grabber-qcam.cpp:66: qcam.h: No such file or directory
> video/grabber-qcam.cpp:69: qcam-os.h: No such file or directory
> make: *** [video/grabber-qcam.o] Error 1
> 
> Obviously a missing header. What is the header from?
> 

I think you'll find that you have some devices /dev/qcam0, /dev/qcam1
and /dev/qcam2. The vic configure script looks for such a device. Either
delete reference to qcam in the configure script or delete all the
/dev/qcam* devices (actually I just renamed them while compiling vic).
At this point, everything will compile with gcc2.

However, the next gotcha is that Slackware 9 (and other 9 distributions)
uses gcc3, which is more discriminating about the code it compiles than
gcc2 was. In particular gcc3 won't like some function casts at lines
456, 458 & 459 of main.cpp.

The quick solution is to use one of the gcc2 compilers. I have a Slack
8.1 machine with gcc 2.95.3 for exactly this kind of thing.

The better solution is for someone to update the signal handling code.

I think you'll find compiler issues with rat as well - I've been able to
make it compile with gcc3.2.2 but when I run it, no ui comes up. Under
gcc2 it compiles & runs fine.


chris


-- 
Chris Willing                      Telephone   (61-2) 9351 3914
VisLab, A28                        Facsimile   (61-2) 9351 7726
University of Sydney
NSW 2006 Australia                http://www.vislab.usyd.edu.au





More information about the ag-tech mailing list