Page 2 of 5

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Mon May 06, 2024 11:31 pm
by AZJIO
Linux Arch/Fedora:
libGL.so file missing

Code: Select all

ImportC "/lib64/libGL.so"
I tried changing S_init(), the error remained the same

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Tue May 07, 2024 8:09 am
by pf shadoko
@ AZJIO
i know nothing about linux
concerning import, I took it from a pjay code

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Tue May 07, 2024 8:21 am
by pjay
pf shadoko wrote: Tue May 07, 2024 8:09 am concerning import, I took it from a pjay code
Don't you blame me :lol:

I haven't used Linux for any PB development so far (although it's on my radar), so I know very little about the correct way to setup the GL environment - if you've seen it in my code then it has come from somewhere else.

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Tue May 07, 2024 3:12 pm
by moulder61
@ AZJIO

Re: libGL.so file missing

I found the path in Void and Arch to be "/usr/lib/libGL.so".

Can't speak for Fedora as it's not a Linux I use.

The image path separators need changing from "\" to "/" as well.

Moulder.

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Tue May 07, 2024 4:23 pm
by AZJIO
moulder61 wrote: Tue May 07, 2024 3:12 pm I found the path in Void and Arch to be "/usr/lib/libGL.so".
I have lib64 as a link

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Tue May 07, 2024 5:43 pm
by moulder61
AZJIO wrote: Tue May 07, 2024 4:23 pm
moulder61 wrote: Tue May 07, 2024 3:12 pm I found the path in Void and Arch to be "/usr/lib/libGL.so".
I have lib64 as a link
In my Arch install, it finds libGL.so in both /usr/lib and /usr/lib64. I don't have an issue with it not being found.
I take it the lib that the links point to does exist somewhere? I followed the trail to something called libGL.so.1.7.0.

In the terminal mine only shows up in the /usr/lib/ folder.
$ whereis libGL.so.1.7.0
libGL.so.1.7.0: /usr/lib/libGL.so.1.7.0

I'm using a tweaked version of Archbang which is pretty minimal so I kind of expect things not to work. :)
It seems a bit flaky. Sometimes I get invalid memory access errors, sometimes gtk_widget errors.
Removing #PB_Window_ScreenCentered from line 730 seems to help for some reason?
Other than that it works OK except the text on the screen is upside down!

Moulder.

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Tue May 07, 2024 7:54 pm
by infratec
Since there is a search path in linux, ist'n it enough to use

Code: Select all

ImportC "libGL.so"
:?:

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Tue May 07, 2024 8:09 pm
by moulder61
infratec wrote: Tue May 07, 2024 7:54 pm Since there is a search path in linux, ist'n it enough to use

Code: Select all

ImportC "libGL.so"
:?:
Not on my Archbang install.

/usr/bin/ld: cannot find libGL.so: No such file or directory
collect2: error: ld returned 1 exit status

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Tue May 07, 2024 8:32 pm
by ricardo_sdl
It allows us to use opengl shaders (GLSL)? I'm interested, now I have to find some time to look into it.

Thank you!

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Wed May 08, 2024 8:41 am
by Fred
Looks very interesting, good work !

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Thu May 09, 2024 3:19 pm
by benubi
It is all dark for me; in the first frame(s) there's something to see for a very short time but it resembles artifacts from the displayed colors.

Here's what it says for me

Code: Select all

error shader 1
0(1) : error C0206: invalid token "compatibility" in version line
0(9) : warning C7533: global variable gl_Normal is deprecated after version 120
0(10) : warning C7533: global variable gl_Vertex is deprecated after version 120
0(11) : warning C7533: global variable gl_Color is deprecated after version 120
0(12) : warning C7533: global variable gl_MultiTexCoord0 is deprecated after version 120

error shader 4
0(1) : error C0206: invalid token "compatibility" in version line
0(10) : warning C7533: global variable gl_FragColor is deprecated after version 120

error shader 6
0(1) : error C0206: invalid token "compatibility" in version line
0(17) : warning C7533: global variable gl_FragColor is deprecated after version 120

error shader 8
0(1) : error C0206: invalid token "compatibility" in version line
0(15) : warning C7533: global variable gl_FragColor is deprecated after version 120

==> error shader 10,12,14,16,18,20 exactly like shader 8
I also had trouble with some other openGL examples on Windows 10 but I forgot about it.

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Thu May 09, 2024 3:57 pm
by AZJIO
in linux, texture file names are in a different case

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Thu May 09, 2024 3:59 pm
by DarkDragon
benubi wrote: Thu May 09, 2024 3:19 pm It is all dark for me; in the first frame(s) there's something to see for a very short time but it resembles artifacts from the displayed colors.

Here's what it says for me

Code: Select all

error shader 1
0(1) : error C0206: invalid token "compatibility" in version line
0(9) : warning C7533: global variable gl_Normal is deprecated after version 120
0(10) : warning C7533: global variable gl_Vertex is deprecated after version 120
0(11) : warning C7533: global variable gl_Color is deprecated after version 120
0(12) : warning C7533: global variable gl_MultiTexCoord0 is deprecated after version 120

error shader 4
0(1) : error C0206: invalid token "compatibility" in version line
0(10) : warning C7533: global variable gl_FragColor is deprecated after version 120

error shader 6
0(1) : error C0206: invalid token "compatibility" in version line
0(17) : warning C7533: global variable gl_FragColor is deprecated after version 120

error shader 8
0(1) : error C0206: invalid token "compatibility" in version line
0(15) : warning C7533: global variable gl_FragColor is deprecated after version 120

==> error shader 10,12,14,16,18,20 exactly like shader 8
I also had trouble with some other openGL examples on Windows 10 but I forgot about it.
Remove the word compatibility from the shaders. In GLSL 1.30 it only supported the version number, no profile.

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Fri May 17, 2024 5:33 pm
by benubi
Well, I'm very sorry but the change didn't make it work - even tho there's one or two error messages less :cry:

(I have no clue what the profile etc. means I am totally "new" to OpenGL)

Code: Select all

error shader 1
0(4) : error C5060: out can't be used with non-varying vpos
0(5) : error C5060: out can't be used with non-varying vcolor
0(6) : error C5060: out can't be used with non-varying vuv
0(7) : error C5060: out can't be used with non-varying tan

error shader 4
0(12) : warning C7533: global variable gl_FragColor is deprecated after version 120

Re: Lib Screen (Sprite) (PB 6.10)

Posted: Fri May 17, 2024 5:48 pm
by pf shadoko
@benubi

can you try again, I made the corrections