Thread Wx, Problem beim compilieren (13 answers)
Opened by tonewheel at 2006-12-30 13:37

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

View full thread Wx, Problem beim compilieren