Search found 741 matches

by Landeel
Jun 29, 2020 13:50
Forum: Linux
Topic: Linux freebasic portability issue
Replies: 8
Views: 463

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: 8659

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: 96

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: 96

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: 463

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: 463

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: 230

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: 2297

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: 127

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: 1168

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.
by Landeel
May 25, 2020 16:22
Forum: Linux
Topic: how to configure kate ide to compile and run freebasic?
Replies: 1
Views: 149

Re: how to configure kate ide to compile and run freebasic?

I tried using kate with fb many years ago and found it pretty cumbersome.
May I suggest using geany?
The keyword list is a little outdated, but it works out of the box.
by Landeel
May 23, 2020 0:29
Forum: Community Discussion
Topic: GW-BASIC is open source now
Replies: 22
Views: 1168

Re: GW-BASIC is open source now

badidea wrote:Initial commit: 38 years ago :-)

XD

badidea wrote:That Microsoft guy seems mostly busy with converting Windows to Linux.

Yeah, but the whole DirectX 12 for Linux thing looks like a trap to me.

It would be pretty cool if they released the QB 4.5 or QBX 7.1 source code.
by Landeel
May 17, 2020 11:32
Forum: Linux
Topic: Library Path Problem
Replies: 13
Views: 1004

Re: Library Path Problem

Here's my list when I installed on Lubuntu 20.04:
gcc, libtinfo5, libffi-dev, libc6-dev, libncurses-dev, libx11-dev, libxext-dev, libxpm-dev, libxrandr-dev, libxrender-dev, libglvnd-dev, zlib1g, libzip-dev
by Landeel
May 17, 2020 2:20
Forum: Community Discussion
Topic: Why did you choose FreeBASIC?
Replies: 37
Views: 2185

Re: Why did you choose FreeBASIC?

systemctl wrote:Why did you choose FreeBASIC?

I wanted to develop games using GPU rendering (OpenGL) and a familiar programming language.

Go to advanced search