Lib Screen (Sprite) (PB 6.10)

Advanced game related topics
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: Lib Screen (Sprite) (PB 6.10)

Post 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
User avatar
pf shadoko
Enthusiast
Enthusiast
Posts: 385
Joined: Thu Jul 09, 2015 9:07 am

Re: Lib Screen (Sprite) (PB 6.10)

Post by pf shadoko »

@ AZJIO
i know nothing about linux
concerning import, I took it from a pjay code
pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

Re: Lib Screen (Sprite) (PB 6.10)

Post 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.
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 188
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Lib Screen (Sprite) (PB 6.10)

Post 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.
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: Lib Screen (Sprite) (PB 6.10)

Post 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
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 188
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Lib Screen (Sprite) (PB 6.10)

Post 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.
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
infratec
Always Here
Always Here
Posts: 7575
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Lib Screen (Sprite) (PB 6.10)

Post by infratec »

Since there is a search path in linux, ist'n it enough to use

Code: Select all

ImportC "libGL.so"
:?:
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 188
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Lib Screen (Sprite) (PB 6.10)

Post 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
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
ricardo_sdl
Enthusiast
Enthusiast
Posts: 141
Joined: Sat Sep 21, 2019 4:24 pm

Re: Lib Screen (Sprite) (PB 6.10)

Post 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!
You can check my games at:
https://ricardo-sdl.itch.io/
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Lib Screen (Sprite) (PB 6.10)

Post by Fred »

Looks very interesting, good work !
benubi
Enthusiast
Enthusiast
Posts: 215
Joined: Tue Mar 29, 2005 4:01 pm

Re: Lib Screen (Sprite) (PB 6.10)

Post 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.
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: Lib Screen (Sprite) (PB 6.10)

Post by AZJIO »

in linux, texture file names are in a different case
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Lib Screen (Sprite) (PB 6.10)

Post 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.
bye,
Daniel
benubi
Enthusiast
Enthusiast
Posts: 215
Joined: Tue Mar 29, 2005 4:01 pm

Re: Lib Screen (Sprite) (PB 6.10)

Post 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
User avatar
pf shadoko
Enthusiast
Enthusiast
Posts: 385
Joined: Thu Jul 09, 2015 9:07 am

Re: Lib Screen (Sprite) (PB 6.10)

Post by pf shadoko »

@benubi

can you try again, I made the corrections
Post Reply