Search found 749 matches

by Landeel
Nov 25, 2020 18:30
Forum: Linux
Topic: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5
Replies: 22
Views: 3074

Re: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5

The distributed compiler itself needs 'libtinfo.so.5', so "sudo apt-get install libtinfo5". If you want to prevent this from happening with your compiled programs, copy "libtinfo.a" to "/usr/local/lib/freebasic/linux-x86_64", and it will be statically linked. If you're ...
by Landeel
Oct 30, 2020 19:50
Forum: Tips and Tricks
Topic: quadput V2.0 (from Dr_D)
Replies: 1
Views: 417

Re: quadput V2.0 (from Dr_D)

Hey Joshy and Dr_D, this is pretty good.
A software renderer would come handy in my projects as an alternative to OpenGL.
Also, I could use this for better collision detection.
Mind if I borrow it? ;)
by Landeel
Oct 29, 2020 10:45
Forum: Community Discussion
Topic: Wetspot compiled to javascript
Replies: 23
Views: 4841

Re: Wetspot compiled to javascript

I'm curious. What does Cordova have to do with FB and Emscripten? Looks to me like it's simply another Javascript hybrid app development platform. Cordova can turn HTML/javascript into an Android app. So we could make Android apps using FreeBASIC. Just that. Sure it's not the best path, as it's bet...
by Landeel
Oct 22, 2020 13:56
Forum: Linux
Topic: ScreenInfo returns the wrong refresh rate
Replies: 2
Views: 77

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

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

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

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

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

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

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

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

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

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

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/ ' *************************...

Go to advanced search