Search found 746 matches

by Landeel
Oct 22, 2020 13:56
Forum: Linux
Topic: ScreenInfo returns the wrong refresh rate
Replies: 2
Views: 57

Re: ScreenInfo returns the wrong refresh rate

user@landeel-ht3000:~$ xrandr Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384 DVI-I-0 disconnected primary (normal left inverted right x axis y axis) DVI-I-1 disconnected (normal left inverted right x axis y axis) HDMI-0 disconnected (normal left inverted right x axis y axis) HD...
by Landeel
Oct 22, 2020 12:50
Forum: Linux
Topic: ScreenInfo returns the wrong refresh rate
Replies: 2
Views: 57

ScreenInfo returns the wrong refresh rate

It will always return 50 on Linux.
I have reported the issue here: https://github.com/freebasic/fbc/issues/257
by Landeel
Oct 21, 2020 19:25
Forum: Linux
Topic: SETENVIRON
Replies: 16
Views: 458

Re: SETENVIRON

fxm wrote:

Code: Select all

dim as string MYCOUNT="123"
SETENVIRON("COUNT=" & MYCOUNT)
print ENVIRON("COUNT") 'will return a NULL


Fails too!
by Landeel
Oct 21, 2020 19:05
Forum: Linux
Topic: SETENVIRON
Replies: 16
Views: 458

Re: SETENVIRON

This works:

Code: Select all

dim as string MYCOUNT="COUNT=123"
SETENVIRON(MYCOUNT)
print ENVIRON("COUNT")


This fails:

Code: Select all

dim as string MYCOUNT="123"
SETENVIRON("COUNT=" + MYCOUNT)
print ENVIRON("COUNT") 'will return a NULL


Looks like a bug to me.
by Landeel
Jun 29, 2020 13:50
Forum: Linux
Topic: Linux freebasic portability issue
Replies: 8
Views: 869

Re: Linux freebasic portability issue

Hey TeeEmCee! About ncurses, the problem is libtinfo, right? I had problems with it after I upgraded to Ubuntu 20.04. But copying 'libtinfo.a' to '/usr/local/lib/freebasic/linux-x86_64/' solved it for me. I don't know the internals, but this causes libtinfo to link statically. The reason I'm using D...
by Landeel
Jun 25, 2020 18:33
Forum: Projects
Topic: Iceroyds!
Replies: 48
Views: 9484

Re: Iceroyds!

by Landeel
Jun 24, 2020 16:54
Forum: General
Topic: warning: ... may be used uninitialized in this function [-Wmaybe-uninitialized]
Replies: 2
Views: 194

Re: warning: ... may be used uninitialized in this function [-Wmaybe-uninitialized]

cat /etc/issue Ubuntu 20.04 LTS \n \l uname -r 5.7.0-5.1-liquorix-amd64 gcc --version gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A...
by Landeel
Jun 24, 2020 14:38
Forum: General
Topic: warning: ... may be used uninitialized in this function [-Wmaybe-uninitialized]
Replies: 2
Views: 194

warning: ... may be used uninitialized in this function [-Wmaybe-uninitialized]

When I compile my code with -O 2 or higher, I get a lot of this warnings: warning: ‘SOMEVAR$SOMENUMBER’ may be used uninitialized in this function [-Wmaybe-uninitialized] I've tried to isolate a simple code that throws this warnings, but I couldn't. I have many nested subs and macros. Does anyone kn...
by Landeel
Jun 23, 2020 16:58
Forum: Linux
Topic: Linux freebasic portability issue
Replies: 8
Views: 869

Re: Linux freebasic portability issue

Depending on what you're doing with those libs, you could use clever DYLIBLOAD/DYLIBSYMBOL instead of dynamic linking.
I'm doing that with SDL in my games.
by Landeel
Jun 23, 2020 14:27
Forum: Linux
Topic: Linux freebasic portability issue
Replies: 8
Views: 869

Re: Linux freebasic portability issue

Linux executables won't automatically load libraries from the same directory, as PE .exe does. Distribute the needed libraries with your application, I recommend putting them in a sub-directory. Instead of running the program directly, use a runner script to set 'LD_LIBRARY_PATH' and then run the pr...
by Landeel
Jun 21, 2020 15:10
Forum: Projects
Topic: fbvlc - FreeBASIC video player using libvlc
Replies: 0
Views: 656

fbvlc - FreeBASIC video player using libvlc

I needed video playback in my WIP game, so this is how I did it. Special thanks to the VLC authors and D.J Peters who helped figure out the callbacks. Download source code with libraries, plugins and sample video files here: https://sourceforge.net/projects/freebasic-vlc/ ' *************************...
by Landeel
Jun 17, 2020 13:49
Forum: Game Dev
Topic: Ways in which I can embed a video player into GFX window?
Replies: 13
Views: 2578

Re: Ways in which I can embed a video player into GFX window?

You have to render the video frames via libVLC in a pixelbuffer from FBGFX screen or FB image. the key are: libvlc_video_set_callbacks Joshy Here are this code works for images and the screen (if image=0) #include once "vlc/vlc.bi" function lockCB cdecl (byval image as any ptr, byval pPla...
by Landeel
Jun 01, 2020 21:26
Forum: Linux
Topic: fbc: problems with shared libraries (libtinfo5) Ubuntu 19.10
Replies: 2
Views: 277

Re: fbc: problems with shared libraries (libtinfo5) Ubuntu 19.10

It's supposed to work. Please open a terminal and do: sudo apt-get install libtinfo5 Paste the output of this command here. [EDIT] Forgot to mention, if you're using 32-bit fbc in a 64-bit system, you must do: sudo apt-get install libtinfo5:i386 But I recommend installing 64-bit fbc instead.
by Landeel
May 28, 2020 17:13
Forum: Community Discussion
Topic: GW-BASIC is open source now
Replies: 22
Views: 1766

Re: GW-BASIC is open source now

https://github.com/TheGameCreators/Dark-Basic-Pro
DarkBASIC Pro is open source too. It was awesome.
I left it at the time because it was Windows/DirectX only and I wanted to move to Linux/OpenGL.
That's why I changed to FB.

Go to advanced search