|
Allegro/Fbend+Linux |
hazul
Member #4,338
February 2004
|
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...
Also, I made an allegro test program:
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,
* * * * * |
Kitty Cat
Member #2,815
October 2002
|
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. -- |
hazul
Member #4,338
February 2004
|
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.
* * * * * |
X-G
Member #856
December 2000
|
Quote: bash-2.05b# ./fix.sh chmod a+x fix.sh ? -- |
hazul
Member #4,338
February 2004
|
bash-2.05b# chmod a+x fix.sh bash-2.05b# ./fix.sh : bad interpreter: No such file or directory
* * * * * |
X-G
Member #856
December 2000
|
bash ./fix.sh ? -- |
hazul
Member #4,338
February 2004
|
bash-2.05b# bash ./fix.sh -- X-G, this is SSH on a forum
* * * * * |
X-G
Member #856
December 2000
|
Do "which bash", then edit fix.sh and make sure that the first line looks like: #!/path/to/your/bash -- |
hazul
Member #4,338
February 2004
|
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#
* * * * * |
|