1. EuSigil Released!

Hello all,

I have made a new wrapper. This is a wrapper for the Sigil library. This is a multimedia library similar to SDL. However it is much more bare-bones. Allowing for the making of small games or prototyping.

You can view it at my Github: https://github.com/gAndy50/EuSigil

NOTE: This library has the 32-bit DLL included in the github. I have not tested 64-bit or other systems besides Windows.

 
 --Simple Window 
without type_check 
 
include std/machine.e 
include EuSigil.ew 
 
slWindow(640,480,"Simple Window - Click 'X' or ESC to close",0) 
 
while not slShouldClose()  do 
  if slGetKey(SL_KEY_ESCAPE) = 1 then 
  	 slClose() 
  end if 
	slRender() 
end while 
 
slClose() 
 

Now if only Github had syntax coloring for Euphoria.

new topic     » topic index » view message » categorize

2. Re: EuSigil Released!

The libsigil.so is 32-bit only? I get a 0 when trying to open it (64-bit Linux)

new topic     » goto parent     » topic index » view message » categorize

3. Re: EuSigil Released!

irv said...

The libsigil.so is 32-bit only? I get a 0 when trying to open it (64-bit Linux)

Oh sorry. Yes you'll need to use the 32-bit DLL or .SO file. It runs fine under my system, Windows 7. I'm not able to test for Linux.

new topic     » goto parent     » topic index » view message » categorize

4. Re: EuSigil Released!

irv said...

The libsigil.so is 32-bit only? I get a 0 when trying to open it (64-bit Linux)

$ file libsigil.so 
libsigil.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=305a1fee175055e87fa2a522a424804b8a6cdde7, not stripped 

No, it's a 64-bit library, but...

$ ldd libsigil.so | grep 'not found' 
        libGLEW.so.1.10 => not found 

Looks like it's built for a really old version of GLEW. On my Ubuntu 16.04 machine I have version 1.13 available, and on Ubuntu 18.04 I have version 2.0.

The good news is, you should be able to build it from source. The bad news is, their directions for building are also a little outdated.

I had to work out some dependencies that weren't listed. But otherwise it seems to work fine.

sudo apt install libfreetype6-dev libglew-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev 
git clone https://gitlab.com/geoff-nagy/sigil.git sigil 
cd sigil/deps/ 
git clone https://github.com/glfw/glfw.git glfw 
mkdir ../build-linux-gcc 
cd ../build-linux-gcc 
cmake .. 
make 

Et voila...

$ ldd libsigil.so | grep GLEW 
        libGLEW.so.1.13 => /usr/lib/x86_64-linux-gnu/libGLEW.so.1.13 (0x00007fa651be8000) 

This was on my old Ubuntu 16.04 machine, so it should work on newer systems as well. Note: I haven't actually tested the library to make sure it works!

-Greg

new topic     » goto parent     » topic index » view message » categorize

5. Re: EuSigil Released!

I knew Sigil was built on top of some OpenGL library. The last release for Sigil, which I did wrap was dated back to 2016. So it is three years old at this point. When I wrapped it and tested it with some demos, it worked fine for me. Of course I can only test for Windows.

new topic     » goto parent     » topic index » view message » categorize

6. Re: EuSigil Released!

Hi

Add these around the includes at the beginning of euSigil.ew

--/* 
include std/machine.e 
include std/dll.e 
include std/math.e 
--*/ 

and similarly around the include std/machine.e in the examples.

Now works with Phix, and the include is dual purpose (will work with both Phix and Eu)

Cheers

Chris

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu