241
General Discussions / Re: sbhttpd fault
« on: April 30, 2014, 10:02:41 PM »Quote
Where do libSDL.so and libSDL_gfx.so go?
On my system, /usr/lib.
gfx.so goes in the SB modules directory and gfx.inc goes in the SB include directory.
Forum Registration Disabled - Send a request to support@scriptbasic.org to join the forum.
User Guide
Developers Guide
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Where do libSDL.so and libSDL_gfx.so go?
I wonder if gd needs supporting libraries to work?
admin@ip-10-188-36-190:~/sb22/source/extensions/gfx$ make -B
gcc -w -fPIC -static -m64 -c -I/usr/include/SDL -o ../../bin/mod/obj/gfx/s_interface.o interface.c
interface.c: In function ‘gfx_SDL_framerateDelay’:
interface.c:2240:15: error: void value not ignored as it ought to be
make: *** [../../bin/mod/obj/gfx/s_interface.o] Error 1
admin@ip-10-188-36-190:~/sb22/source/extensions/gfx$

' Lorenz Curtian
IMPORT gfx.inc
scrn = gfx::Window(600, 800, "ScriptBasic GFX - Lorenz Curtian")
ts = gfx::Time()
FOR t = 0 TO 7000 STEP 0.006
x = SIN(0.99 * t) - 0.7 * COS(3.01 * t)
y = COS(1.01 * t) + 0.1 * SIN(15.03 * t)
x = x * 200 + 400
y = y * 200 + 300
gfx::pixelRGBA scrn, FIX(y), FIX(x), 250, 250, 250, 255
NEXT
te = gfx::Time()
gfx::stringColor scrn, 20, 20, "Time: " & FORMAT("%.4f",(te-ts)/1000) & " Seconds." & CHR(0), 0xffffffff
gfx::Update
WHILE gfx::KeyName(1) <> "+escape"
WEND
gfx::Close