Pagina 2 di 2

Re: gtk-sharp per centos6

Inviato: mar 3 gen 2012, 17:05
da ilmich
daniele50 ha scritto:Non devi scusarti, mi stai aiutando e ti ringrazio, arriviamo dove possiamo arrivare...
ok... comunque fammi sapere come va a finire e se hai altri problemi... è tutta esperienza anche per me ;)

Re: gtk-sharp per centos6

Inviato: mar 3 gen 2012, 17:06
da daniele50
Purtroppo rpmbuild -ba gtk-sharp2.spec non va a buon fine:

Codice: Seleziona tutto

Errori di compilazione RPM:
File non trovato: /root/rpmbuild/BUILDROOT/gtk-sharp2-2.12.10-6.el6.x86_64/usr/lib64/gtk-sharp-2.0
ecco invece dove si trova il file:

Codice: Seleziona tutto

#find / -name gtk-sharp-2.0
/root/rpmbuild/BUILDROOT/gtk-sharp2-2.12.10-6.el6.x86_64/usr/lib64/mono/gtk-sharp-2.0
/root/rpmbuild/BUILDROOT/gtk-sharp2-2.12.10-6.el6.x86_64/usr/lib/gtk-sharp-2.0
/usr/local/lib/gtk-sharp-2.0
/usr/local/lib/mono/gtk-sharp-2.0

Re: gtk-sharp per centos6

Inviato: mar 3 gen 2012, 17:20
da ilmich
apri questo percorso

Codice: Seleziona tutto

/root/rpmbuild/BUILDROOT/gtk-sharp2-2.12.10-6.el6.x86_64/
praticamente qui si trova il risultato del make install e vedi se quello che cerca non esiste proprio, oppure sta nella directory lib piuttosto che lib64.
ti dico questo perchè tutto dipende da come è stato installato/compilato mono in quanto le estensioni mono funzionano un po' come quelle python o perl.. si installano all'interno dei percorsi accessibili da ciascun interprete/compilatore.
quindi se per caso hai installato mono configurato per pescare i moduli in /usr/lib in automatico tutte le estensioni(quindi pure questa) vanno a finire li' dentro.

fai un po' di verifiche perchè se è come ipotizzo io.. probabilmente hai pacchetti mono installati per i686 e x86_64 e magari questo ti sta facendo casino.

Re: gtk-sharp per centos6

Inviato: mar 3 gen 2012, 17:29
da daniele50
ecco qua:

Codice: Seleziona tutto

mono-core.x86_64        2.4.3.1-3.el6   @epel                                   
mono-data.x86_64        2.4.3.1-3.el6   @epel                                   
mono-data-sqlite.x86_64 2.4.3.1-3.el6   @epel                                   
mono-devel.x86_64       2.4.3.1-3.el6   @epel                                   
mono-extras.x86_64      2.4.3.1-3.el6   @epel                                   
mono-web.x86_64         2.4.3.1-3.el6   @epel                                   
mono-winforms.x86_64    2.4.3.1-3.el6   @epel
sono tutti x86_64 pescati dal repository epel

Re: gtk-sharp per centos6

Inviato: mar 3 gen 2012, 17:49
da ilmich
mmm... mi sa che allora non applica le patch incluse nel pacchetto (giustamente) che fixano questo tipo di problema.
prova allora con quest'altro srpm http://download.fedora.redhat.com/pub/fedora/linux/releases/16/Everything/source/SRPMS/gtk-sharp2-2.12.11-1.fc16.src.rpm

Re: gtk-sharp per centos6

Inviato: mar 3 gen 2012, 18:03
da daniele50
ALT! Io ho commentato le tre patch perché sto provando con la versione più recente e quindi pernsavo non fossero necessarie.

Codice: Seleziona tutto

Ora ho decommentato le patch e da un altro errore:
-rwxr-xr-x 1000/100      45142 2008-12-03 11:04 gtk-sharp-2.12.10/config.guess
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd gtk-sharp-2.12.10
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (gtk-sharp-2.9.0-monodir.patch):'
Patch #1 (gtk-sharp-2.9.0-monodir.patch):
+ /bin/cat /root/rpmbuild/SOURCES/gtk-sharp-2.9.0-monodir.patch
+ /usr/bin/patch -s -p1 -b --suffix .monodir --fuzz=0
1 out of 1 hunk FAILED -- saving rejects to file parser/gapi2-fixup.in.rej
1 out of 1 hunk FAILED -- saving rejects to file parser/gapi2-parser.in.rej
1 out of 1 hunk FAILED -- saving rejects to file generator/gapi2-codegen.in.rej
errore: Stato d'uscita errato da /var/tmp/rpm-tmp.YvPqnl (%prep)


Errori di compilazione RPM:
    Stato d'uscita errato da /var/tmp/rpm-tmp.YvPqnl (%prep)

Re: gtk-sharp per centos6

Inviato: mar 3 gen 2012, 23:36
da ilmich
hai fatto bene.. se non fosse che le patch correggono i makefile del sorgente in modo che le directory seguano effettivamente cio' che viene indicato dando il ./configure
le stranezze che avrai sicuramente notato (alcune cose in /usr/lib e altre in /usr/lib64) indicano che il sorgente ufficiale di gtk-sharp viene distribuito, per certi versi male anche se in distribuzioni tipo arch non è necessario patchare niente visto che tutti i percorsi che contengono le librerie non hanno il suffisso 64 (tipo /usr/lib64 /lib64 e via dicendo) come invece accade in centos e slackware(ovviamente mi riferisco alle installazioni a 64bit)

prova ad usare l'srpm che ti ho segnalato nell'ultimo mio post.. contiene il sorgente aggiornato + patch corretta

Re: gtk-sharp per centos6

Inviato: mer 4 gen 2012, 8:56
da daniele50
Ho provato con quel src.rpm, ecco il risultato:

Codice: Seleziona tutto

./DemoImages.cs(173,42): warning CS0618: `Gtk.Image.FromPixbuf' is obsolete: `Use the Pixbuf property instead'
./DemoPrinting.cs(79,39): error CS0029: Cannot implicitly convert type `Cairo.Context' to `Cairo.Context'
./DemoPrinting.cs(104,43): error CS1502: The best overloaded method match for `Pango.CairoHelper.ShowLayout(Cairo.Context, Pango.Layout)' has some invalid arguments
/root/rpmbuild/BUILD/gtk-sharp-2.12.11/pango/pango-sharp.dll (Location of the symbol related to previous error)
./DemoPrinting.cs(104,43): error CS1503: Argument `#1' cannot convert `Cairo.Context' expression to type `Cairo.Context'
./DemoPrinting.cs(104,43): (equally named types possibly from different assemblies in previous error)
/usr/lib64/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll (Location of the symbol related to previous error)
/usr/lib64/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll (Location of the symbol related to previous error)
./DemoPrinting.cs(111,43): error CS1502: The best overloaded method match for `Pango.CairoHelper.ShowLayout(Cairo.Context, Pango.Layout)' has some invalid arguments
/root/rpmbuild/BUILD/gtk-sharp-2.12.11/pango/pango-sharp.dll (Location of the symbol related to previous error)
./DemoPrinting.cs(111,43): error CS1503: Argument `#1' cannot convert `Cairo.Context' expression to type `Cairo.Context'
./DemoPrinting.cs(111,43): (equally named types possibly from different assemblies in previous error)
/usr/lib64/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll (Location of the symbol related to previous error)
/usr/lib64/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll (Location of the symbol related to previous error)
./DemoPrinting.cs(125,51): error CS1502: The best overloaded method match for `Pango.CairoHelper.ShowLayout(Cairo.Context, Pango.Layout)' has some invalid arguments
/root/rpmbuild/BUILD/gtk-sharp-2.12.11/pango/pango-sharp.dll (Location of the symbol related to previous error)
./DemoPrinting.cs(125,51): error CS1503: Argument `#1' cannot convert `Cairo.Context' expression to type `Cairo.Context'
./DemoPrinting.cs(125,51): (equally named types possibly from different assemblies in previous error)
/usr/lib64/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll (Location of the symbol related to previous error)
/usr/lib64/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll (Location of the symbol related to previous error)
Compilation failed: 7 error(s), 1 warnings
make[3]: *** [GtkDemo.exe] Error 1
make[3]: Leaving directory `/root/rpmbuild/BUILD/gtk-sharp-2.12.11/sample/GtkDemo'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/gtk-sharp-2.12.11/sample'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/gtk-sharp-2.12.11'
make: *** [all] Error 2
errore: Stato d'uscita errato da /var/tmp/rpm-tmp.eSodLe (%build)


Errori di compilazione RPM:
    Stato d'uscita errato da /var/tmp/rpm-tmp.eSodLe (%build)