I've installed gentoo instead of my old red hat, and I've installed allegro. I'm now trying to install FBlend, but here's what happens...
1 | bash-2.05b$ sh ./fix.sh unix |
2 | Configuring FBlend for gcc... |
3 | Done! Now run make to start the compilation. |
4 | bash-2.05b$ make |
5 | echo Testing for MMX assembler support... |
6 | Testing for MMX assembler support... |
7 | make mmxtest --quiet |
8 | Testing for SSE assembler support... |
9 | make ssetest --quiet |
10 | gcc -c src/cadd.c -o obj/unix/release/cadd.o -O2 -ffast-math -fomit-frame-pointer -Iinclude |
11 | gcc -c src/ctrans.c -o obj/unix/release/ctrans.o -O2 -ffast-math -fomit-frame-pointer -Iinclude |
12 | gcc -c src/radd.c -o obj/unix/release/radd.o -O2 -ffast-math -fomit-frame-pointer -Iinclude |
13 | gcc -c src/rtrans.c -o obj/unix/release/rtrans.o -O2 -ffast-math -fomit-frame-pointer -Iinclude |
14 | gcc -c src/2xstretch.c -o obj/unix/release/2xstretch.o -O2 -ffast-math -fomit-frame-pointer -Iinclude |
15 | gcc src/asmdef.c -o obj/unix/asmdef -I. -I./include |
16 | obj/unix/asmdef obj/unix/asmdef.inc |
17 | writing structure offsets into obj/unix/asmdef.inc... |
18 | gcc -x assembler-with-cpp -c src/x86/cadd16.s -o obj/unix/release/x86/cadd16.o -I. -Isrc -Iinclude |
19 | gcc -x assembler-with-cpp -c src/x86/cadd15.s -o obj/unix/release/x86/cadd15.o -I. -Isrc -Iinclude |
20 | gcc -x assembler-with-cpp -c src/x86/cadd32.s -o obj/unix/release/x86/cadd32.o -I. -Isrc -Iinclude |
21 | gcc -x assembler-with-cpp -c src/x86/trans16.s -o obj/unix/release/x86/trans16.o -I. -Isrc -Iinclude |
22 | In file included from src/x86/trans16.s:15: |
23 | src/x86/trans.inc:128:7: warning: no newline at end of file |
24 | gcc -x assembler-with-cpp -c src/x86/trans15.s -o obj/unix/release/x86/trans15.o -I. -Isrc -Iinclude |
25 | In file included from src/x86/trans15.s:15: |
26 | src/x86/trans.inc:128:7: warning: no newline at end of file |
27 | gcc -x assembler-with-cpp -c src/x86/trans32.s -o obj/unix/release/x86/trans32.o -I. -Isrc -Iinclude |
28 | gcc -x assembler-with-cpp -c src/x86/radd16.s -o obj/unix/release/x86/radd16.o -I. -Isrc -Iinclude |
29 | gcc -x assembler-with-cpp -c src/x86/radd15.s -o obj/unix/release/x86/radd15.o -I. -Isrc -Iinclude |
30 | gcc -x assembler-with-cpp -c src/x86/radd32.s -o obj/unix/release/x86/radd32.o -I. -Isrc -Iinclude |
31 | gcc -x assembler-with-cpp -c src/x86/rtrans16.s -o obj/unix/release/x86/rtrans16.o -I. -Isrc -Iinclude |
32 | gcc -x assembler-with-cpp -c src/x86/rtrans15.s -o obj/unix/release/x86/rtrans15.o -I. -Isrc -Iinclude |
33 | gcc -x assembler-with-cpp -c src/x86/rtrans32.s -o obj/unix/release/x86/rtrans32.o -I. -Isrc -Iinclude |
34 | gcc -x assembler-with-cpp -c src/x86/2xstretch.s -o obj/unix/release/x86/2xstretch.o -I. -Isrc -Iinclude |
35 | src/x86/2xstretch.s: Assembler messages: |
36 | src/x86/2xstretch.s:177: Error: junk `(%esi)movq ' after expression |
37 | src/x86/2xstretch.s:177: Error: suffix or operands invalid for `prefetcht0' |
38 | make: *** [obj/unix/release/x86/2xstretch.o] Error 1 |
39 | bash-2.05b$ |
Also, I made an allegro test program:
1 | #include <allegro.h> |
2 | |
3 | int main() |
4 | { |
5 | allegro_init(); |
6 | install_keyboard(); |
7 | install_mouse(); |
8 | set_color_depth(16); |
9 | set_gfx_mode(GFX_AUTODETECT_WINDOWED,320,240,0,0); |
10 | |
11 | do { |
12 | textprintf(screen,font,mouse_x,mouse_y,makecol(255,0,0),"Hazul owns"); |
13 | } while (!key[KEY_ESC]); |
14 | |
15 | |
16 | }END_OF_MAIN(); |
The error I get:
bash-2.05b# ./test Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Allegro application is running on VT 8
Any ideas? Thanks,
Hazul
Don't run programs as root.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
This means the Allegro app couldn't "connect" to the X server, which usually happens because you're running as root, and X isn't set up to allow root access to the X server.
If you must run as root (DGA, whatever), do this before su'ing to root: 'xhost +localhost'. That'll tell X to allow access for root.
As for FBlend, I believe you need to get the latest version. 0.5, I think.
When trying to install the newest fblend, I get:
bash-2.05b# ./fix.sh bash: ./fix.sh: Permission denied bash-2.05b# sh ./fix.sh : command not found '/fix.sh: line 3: syntax error near unexpected token `{ '/fix.sh: line 3: `help () { bash-2.05b#
I've tried as root too, same thing.
bash-2.05b# ./fix.sh
bash: ./fix.sh: Permission denied
chmod a+x fix.sh
?
bash-2.05b# chmod a+x fix.sh bash-2.05b# ./fix.sh : bad interpreter: No such file or directory
bash ./fix.sh
?
bash-2.05b# bash ./fix.sh
: command not found
'/fix.sh: line 3: syntax error near unexpected token `{
'/fix.sh: line 3: `help () {
bash-2.05b#
-- X-G, this is SSH on a forum
If it's of any help, I really think my gentoo user group settings are fucked up. Is there a way of checking this?
Do "which bash", then edit fix.sh and make sure that the first line looks like:
#!/path/to/your/bash
Aha, getting somewhere.
bash-2.05b# bash ./fix.sh unix Configuring FBlend for gcc... Done! Now run make to start the compilation. bash-2.05b# make gcc -c src/cadd.c -o obj/unix/release/cadd.o -O2 -ffast-math -fomit-frame-pointer -I. -Isrc -Iinclude gcc -c src/mem_test.c -o obj/unix/release/mem_test.o -O2 -ffast-math -fomit-frame-pointer -I. -Isrc -Iinclude gcc -c src/csub.c -o obj/unix/release/csub.o -O2 -ffast-math -fomit-frame-pointer -I. -Isrc -Iinclude gcc -c src/ctrans.c -o obj/unix/release/ctrans.o -O2 -ffast-math -fomit-frame-pointer -I. -Isrc -Iinclude gcc -c src/radd.c -o obj/unix/release/radd.o -O2 -ffast-math -fomit-frame-pointer -I. -Isrc -Iinclude gcc -c src/rtrans.c -o obj/unix/release/rtrans.o -O2 -ffast-math -fomit-frame-pointer -I. -Isrc -Iinclude gcc -c src/2xstretch.c -o obj/unix/release/2xstretch.o -O2 -ffast-math -fomit-frame-pointer -I. -Isrc -Iinclude gcc -c src/fade.c -o obj/unix/release/fade.o -O2 -ffast-math -fomit-frame-pointer -I. -Isrc -Iinclude make: *** No rule to make target `/asmdef.c', needed by `obj/unix/asmdef.exe'. Stop. bash-2.05b#