help-gift
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-GIFT] Compile failure with gcc-4.1.2


From: Gabor ROCZEI
Subject: Re: [help-GIFT] Compile failure with gcc-4.1.2
Date: Sun, 20 May 2007 12:29:49 +0200
User-agent: Thunderbird 1.5.0.10 (Windows/20070221)


CAccessor::getRandomAccessorElements(std::list<CAccessorElement,
std::allocator<CAccessorElement> >&, size_t) const
make[3]: *** [CAFPerl.lo] Error 1
make[3]: Leaving directory `/root/gift/libGIFTAcPerl/cc'
Any idea to resolve this would be greatly appreciated.
Try this patch:
http://www.mail-archive.com/address@hidden/msg00230/gcc-4.1-patches.
tar.gz
This is a short summary (I wrote it for the knowarcs people), use it:


   GIFT manual


     Install guide

Download these packages:

Prerequisites install

1. http://www.mirrorservice.org/sites/alpha.gnu.org/gnu/gift/gift-prerequisites-0.11.tar.gz At first you should install the gift-prerequisites!!! If you are the root then run the install-as-root.sh script else run this: install-in-home.sh

GIFT install

2.

ftp://ftp.gnu.org/gnu/gift/gift-0.1.14.tar.gz

a)

./configure

b)

make

Comment: compile error

...
-O2 -DEF_PROTECT_BELOW=1 -DEF_PROTECT_FREE -DEF_PROTECT_ALIGNMENT=8 -DEF_FILL=42 -D IGNORE_UNKNOWN_URLS -MT CAccessorFactoryContainer.lo -MD -MP
-MF .deps/CAccessorFactoryContainer.Tpo -c CAccessorFactoryContainer.cc
-fPIC -DPIC -o .libs/CAccessorFactoryContainer.o ../../libMRML/include/CAttributeList.h:82: error: extra qualification 'CAttributeList::' on member 'toXML'
make[3]: *** [CAccessorFactoryContainer.lo] Error 1
...

If your gcc version is 4.1 and you got this error message then you must use this patch:

http://www.mail-archive.com/address@hidden/msg00230/gcc-4.1-patches.tar.gz

c)

make install

[szerkesztés <https://www.knowarc.eu/wiki/index.php?title=GIFT_quick_trial_test_and_brief_usage_manual&action=edit&section=3>]


     Userguide

You need some pictures to testing, for example in this directory:

~/pictures

Run these commands:

mkdir ~/gift_test
gift-add-collection.pl --gift-home ~/gift_test --image-directory ~/pictures/

--gift-home <---- this directory will store the images information

Running the server:

gift  12789 ~/gift_test


We should choose a client, for example: Charmer

download the client: http://viper.unige.ch/research/projects/GIFT/Charmer-0.2b.tgz

(Sun Java JDK install!!!!!!)

(go to the Charmer's directory)

make perl write-applet-frame.pl
appletviewer Charmer.html

You should setup these parameters:

server name: host_name_where_the_gift_server_is_run
port: 12789

Click random, and choose which picture are relevant, non-relevant or ignored.

Click query

After the query the GIFT server choose the relevant picture from the picture database.

Gabor




reply via email to

[Prev in Thread] Current Thread [Next in Thread]