Schrift
[thread]5585[/thread]

Wx, Problem beim compilieren



<< |< 1 2 >| >> 14 Einträge, 2 Seiten
tonewheel
 2006-12-30 13:37
#48168 #48168
User since
2006-10-01
182 Artikel
BenutzerIn
[default_avatar]
Hallo,

ich bin neu hier und komme direkt mit einem Problem an (sorry dafür). Ich habe in den letzten Jahren mit VB und C#.Net programmiert (das ist jetzt glücklicherweise abgeschlossen) und mich vor einigen Jahren sogar mal mit Perl beschäftigt, aber davon ist fast alles vergessen. Nun möchte ich wieder einsteigen und habe mir als widget-set Wx ausgesucht.
Kurz zur Umgebung;

Debian Etch, Kernel 2.6.18-3-k7
libwxbase2.6-0, libwxgtk2.6-0, g++ 4.1.1-13

Da Debian kein fertiges Paket wxPerl bietet, habe ich die Quellen von CPAN geholt. Ab 'make test' gibts Probleme. Um den Traffic gering zu halten, poste ich nur ein paar entscheidende Stellen:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Running make test
make[1]: Entering directory `/root/.cpan/build/Wx-0.67/ext'
make[2]: Entering directory `/root/.cpan/build/Wx-0.67/ext/richtext'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Leaving directory `/root/.cpan/build/Wx-0.67/ext/richtext'

...

make[1]: Leaving directory `/root/.cpan/build/Wx-0.67/ext'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01_load.............Error: Unable to initialize gtk, is DISPLAY set properly?
Use of uninitialized value in concatenation (.) or string at /root/.cpan/build/Wx-0.67/blib/lib/Wx.pm line 179.
Use of uninitialized value in concatenation (.) or string at /root/.cpan/build/Wx-0.67/blib/lib/Wx.pm line 180.
t/01_load.............NOK 4
# Failed test 'Wx::Html was loaded'
# in t/01_load.t at line 20.
# Looks like you failed 1 test of 4.
t/01_load.............dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 4
Failed 1/4 tests, 75.00% okay
t/02_inheritance......Error: Unable to initialize gtk, is DISPLAY set properly?

...

(06_loadxpm.t:9265): Gdk-CRITICAL **: gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed
(06_loadxpm.t:9265): Gdk-CRITICAL **: gdk_colormap_get_visual: assertion `GDK_IS_COLORMAP (colormap)' failed
(06_loadxpm.t:9265): Gdk-CRITICAL **: gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed

...

t/06_loadxpm..........FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
t/07_overload.........Error: Unable to initialize gtk, is DISPLAY set properly?
Use of uninitialized value in concatenation (.) or string at /root/.cpan/build/Wx-0.67/blib/lib/Wx.pm line 179.
Use of uninitialized value in concatenation (.) or string at /root/.cpan/build/Wx-0.67/blib/lib/Wx.pm line 180.
Use of uninitialized value in subroutine entry at /root/.cpan/build/Wx-0.67/blib/lib/Wx.pm line 83.
t/07_overload.........dubious
Test returned status 0 (wstat 11, 0xb)
DIED. FAILED tests 1-110
Failed 110/110 tests, 0.00% okay
t/08_ovl_func.........Error: Unable to initialize gtk, is DISPLAY set properly?
Use of uninitialized value in concatenation (.) or string at /root/.cpan/build/Wx-0.67/blib/lib/Wx.pm line 179.
Use of uninitialized value in concatenation (.) or string at /root/.cpan/build/Wx-0.67/blib/lib/Wx.pm line 180.
Bareword "Wx::wxVERSION" not allowed while "strict subs" in use at t/08_ovl_func.t line 261.
Bareword "Wx::wxVERSION" not allowed while "strict subs" in use at t/08_ovl_func.t line 293.
Bareword "Wx::wxVERSION" not allowed while "strict subs" in use at t/08_ovl_func.t line 293.
Bareword "Wx::wxVERSION" not allowed while "strict subs" in use at t/08_ovl_func.t line 312.
Bareword "Wx::wxVERSION" not allowed while "strict subs" in use at t/08_ovl_func.t line 323.
Bareword "Wx::wxVERSION" not allowed while "strict subs" in use at t/08_ovl_func.t line 838.
Bareword "Wx::wxVERSION" not allowed while "strict subs" in use at t/08_ovl_func.t line 852.
Bareword "Wx::wxVERSION" not allowed while "strict subs" in use at t/08_ovl_func.t line 965.
Execution of t/08_ovl_func.t aborted due to compilation errors.
# Looks like your test died before it could output anything.
t/08_ovl_func.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-172
Failed 172/172 tests, 0.00% okay
t/09_create_delete....Error: Unable to initialize gtk, is DISPLAY set properly?

...

t/16_stream...........Error: Unable to initialize gtk, is DISPLAY set properly?
Use of uninitialized value in concatenation (.) or string at /root/.cpan/build/Wx-0.67/blib/lib/Wx.pm line 179.
Use of uninitialized value in concatenation (.) or string at /root/.cpan/build/Wx-0.67/blib/lib/Wx.pm line 180.
t/16_stream...........ok
t/zz_distrib..........skipped
all skipped: YAML 0.35 required for testing META.yml
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/01_load.t 1 256 4 1 25.00% 4
t/02_inheritance.t 255 65280 ?? ?? % ??
t/03_event.t 0 11 17 34 200.00% 1-17
t/04_userdata.t 255 65280 45 90 200.00% 1-45
t/05_timer.t 0 11 2 4 200.00% 1-2
t/06_loadxpm.t 2 2 100.00% 1-2
t/07_overload.t 0 11 110 220 200.00% 1-110
t/08_ovl_func.t 255 65280 172 344 200.00% 1-172
t/09_create_delete.t 0 11 8 16 200.00% 1-8
t/10_oor.t 0 11 58 116 200.00% 1-58
t/11_twostage.t 0 11 2 4 200.00% 1-2
t/13_nbksizer.t 0 11 3 6 200.00% 1-3
t/14_eh_die.t 0 11 6 12 200.00% 1-6
t/15_threads.t 22 5632 ?? ?? % ??
2 tests skipped.
Failed 14/17 test scripts, 17.65% okay. 426/435 subtests failed, 2.07% okay.
make: *** [test_dynamic] Fehler 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force


Danke vorab schonmal für die Hilfe!

Viele Grüße
Wolfgang
nepos
 2006-12-30 15:48
#48169 #48169
User since
2005-08-17
1420 Artikel
BenutzerIn
[Homepage] [default_avatar]
Hast du überhaupt ein X am Laufen zu dem Zeitpunkt? Die Tests beschweren sich nämlich über die nicht vorhandene DISPLAY-Umgebungsvariable.
MisterL
 2006-12-30 16:02
#48170 #48170
User since
2006-07-05
334 Artikel
BenutzerIn
[default_avatar]
...http://faq.perl-community.de/bin....inModul
wurde schon befolgt ?
(krieg' das mit dem blauen Wiki nicht hin)
“Perl is the only language that looks the same before and after RSA encryption.”
renee
 2006-12-30 16:26
#48171 #48171
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
@MisterL: Die Syntax ist
Code: (dl )
1
2
3
[wiki=Bereich.Seite]Beschreibung[/wiki]
In diesem Fall also
[wiki=Wissensbasis.ModuleWieInstalliereIchEinModul]So installiert man ein Modul[/wiki]


Das ergibt dann Wiki:So installiert man ein Modul\n\n

<!--EDIT|renee|1167488800-->
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
tonewheel
 2006-12-30 16:52
#48172 #48172
User since
2006-10-01
182 Artikel
BenutzerIn
[default_avatar]
@nepos
Danke für den Hinweis! Hier läuft natürlich X, aber ich war als User eingeloggt und hatte make in einer root-shell (--login) laufen lassen, daher auch DISPLAY in der shell nicht gesetzt. Dass während des compilierens graphische Tests durchgeführt werden, ist/war mir allerdings neu. Nochmals besten Dank!

@MisterL
Klar, ich lese hier schon eine Weile mit. Jedoch für mein Problem keine Hinweise gefunden.

Viele Grüße
Wolfgang
MisterL
 2006-12-30 17:21
#48173 #48173
User since
2006-07-05
334 Artikel
BenutzerIn
[default_avatar]
[quote=renee,30.12.2006, 15:26][/quote]
Quote
wiki=Wissensbasis.ModuleWieInstalliereIchEinModul]So installiert man ein Modul[/wiki]

Ach so X-(
"Wissensbasis.Module" muss drin bleiben
Danke :)

[offtopic]In der aktuellen IX 1/2007 gibt es übrigens einen 4-seitigen Artikel zu Catalyst mit Codebeispielen. Also die Installation desselben ging hier mit Suse Linux 9.3 wie geschmiert :) Wenn man kein Debian Etch hat....[/offtopic]
“Perl is the only language that looks the same before and after RSA encryption.”
renee
 2006-12-30 17:49
#48174 #48174
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
@tonewheel: Also läuft es jetzt?
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
tonewheel
 2006-12-30 18:18
#48175 #48175
User since
2006-10-01
182 Artikel
BenutzerIn
[default_avatar]
Hallo renee

Quote
@tonewheel: Also läuft es jetzt?


Oh, sorry, hatte ich ja garnicht dazu geschrieben, dachte es wäre klar gewesen. Ja, es läuft, hatte das gleich anschließend probiert, der compile lief dann einwandfrei durch, ein kleines Testprogramm (aus dem Wiki, danke Herbert!) hat das schon bestätigt.

Nochmals vielen Dank!

PS: Wird man Wx irgendwann auch mit Perl6 (bzw. momentan Pugs) benutzen können?

Viele Grüße
Wolfgang
nepos
 2006-12-31 00:42
#48176 #48176
User since
2005-08-17
1420 Artikel
BenutzerIn
[Homepage] [default_avatar]
Ach ja, falls du es nicht weisst, du kannst auch aus ner Root-Shell ganz einfach auf dein Display zugreifen:
Code: (dl )
$ xauth merge ~user/.Xauthority

Damit kann dann root auf deinen X-Server zugreifen und du kannst Programme als Root starten, die X benoetigen.
lichtkind
 2006-12-31 01:19
#48177 #48177
User since
2004-03-22
5680 Artikel
ModeratorIn + EditorIn
[Homepage]
user image
>PS: Wird man Wx irgendwann auch mit Perl6 (bzw. momentan Pugs) benutzen können?

Ich hoffe doch, aber man müsste komplett neues binding schreiben was ich mir auch wünschen würde weil selbst win-wxperl zu sehr cygwin gebunden ist und eher mässig für kleine anwendungen skaliert, aber da pugs ja auch perl5 als target hat und daher auch perl5 module verwenden kann dürfte antwort schon jetzt ja lauten können. kommt halt drauf an was du damit vorhast.

gesegnetes neues jahr
herbert\n\n

<!--EDIT|lichtkind|1167572362-->
Wiki:Tutorien in der Wiki, mein zeug:
kephra, baumhaus, garten, gezwitscher

Es beginnt immer mit einer Entscheidung.
<< |< 1 2 >| >> 14 Einträge, 2 Seiten



View all threads created 2006-12-30 13:37.