Search found 1020 matches

by Roland Chastain
Mar 28, 2025 16:59
Forum: Sources, Examples, Tips and Tricks
Topic: axle model
Replies: 18
Views: 4388

Re: axle model

Thank you BasicCoder2!
by Roland Chastain
Mar 28, 2025 16:57
Forum: Sources, Examples, Tips and Tricks
Topic: Shapes in FreeBasic
Replies: 2
Views: 1425

Re: Shapes in FreeBasic

Not sure that a horse is a shape, but here you are. Sub DrawHorse(xPos As Integer,yPos As Integer,Size As Single) ' https://www.freebasic-portal.de/code-beispiele/grafik-und-fonts/fb-pferd-in-freebasic-zeichen-8.html Type TPoint x as single y as single End Type Dim POINTS1(1 to 419) as const TPoint ...
by Roland Chastain
Mar 28, 2025 3:47
Forum: Sources, Examples, Tips and Tricks
Topic: axle model
Replies: 18
Views: 4388

Re: axle model

I like this vector stuff. Thank you for sharing.

By the way, we could put functions (with 32 and 64-bit assembler) in a separate BI file.
by Roland Chastain
Mar 26, 2025 23:56
Forum: Sources, Examples, Tips and Tricks
Topic: axle model
Replies: 18
Views: 4388

Re: axle model

@Roland: Important here, this isn't really a "real" physical model; at best, it would win 4th place :) in the "it looks as if" competition. Maybe (if you say so), but it's a nice little program IMHO. I am glad that it work under Linux now. ...Jul 08, 2012 10:59. It's been a long...
by Roland Chastain
Mar 26, 2025 4:52
Forum: Sources, Examples, Tips and Tricks
Topic: axle model
Replies: 18
Views: 4388

Re: axle model

Found. timer_this as double'single 'time managment timer_last as double'single Now the program works correctly under Linux. @Roland: mind that timestepping is not so simple as just sleeping in the loop, it requires the simulation to take it into account ie you integrate it based on the timestep. Tha...
by Roland Chastain
Mar 25, 2025 16:36
Forum: Sources, Examples, Tips and Tricks
Topic: axle model
Replies: 18
Views: 4388

Re: axle model

@paul doe

Thank you for your answer.

I tried to change the sleep parameter:

Code: Select all

do
  'sleep 1
  sleep 50, 1
But the result is still the same: the truck vanishes as soon as I press the w key.
by Roland Chastain
Mar 25, 2025 15:23
Forum: Sources, Examples, Tips and Tricks
Topic: axle model
Replies: 18
Views: 4388

Re: axle model

RetardedAndProud wrote: Mar 25, 2025 13:05 Not 100% sure if I recall, but I think there may be differences between MULTIKEY on Linux and Windows.
I checked: Multikey works correctly. The problem is elsewhere.
by Roland Chastain
Mar 25, 2025 12:47
Forum: Sources, Examples, Tips and Tricks
Topic: axle model
Replies: 18
Views: 4388

Re: axle model

The GetVector function does not need different code as it utilizes 32bit floating point instructions (Single precision floats) on either architecture. I see, thank you. On Linux, I can compile your code, but the program doesn't seem to work well: when I press w , the truck disappears. I will invest...
by Roland Chastain
Mar 25, 2025 11:07
Forum: Sources, Examples, Tips and Tricks
Topic: axle model
Replies: 18
Views: 4388

Re: axle model

@RetardedAndProud Thank you very much for your code! Tested it under Windows (32 and 64-bit), and it seems to work perfectly. I used the pure FB version of GetVector, because I was under the impression that you forgot to provide a 64-bit assembler version for that function. Will test under Linux whe...
by Roland Chastain
Mar 25, 2025 6:41
Forum: Sources, Examples, Tips and Tricks
Topic: axle model
Replies: 18
Views: 4388

Re: axle model

When I compile and run the example under Linux 64-bit, I get a segmentation error. I use FBC 1.10.1. Would someone know how to fix it? [EDIT] Got more information with -exx option. Aborting due to runtime error 12 ("segmentation violation" signal) in axle.bas::GETARCUS() Maybe the assemble...
by Roland Chastain
Feb 16, 2025 16:11
Forum: Linux
Topic: Compiler built from source and not installed cannot find BI files
Replies: 4
Views: 2345

Re: Compiler built from source and not installed cannot find BI files

srvaldez wrote: Feb 16, 2025 15:32 I remember that I tried to do that on the Mac years ago, I wound up creating symlinks of the needed files/directories but that solution is dirty
I went back to my first solution (use the -i option), and it works well.
by Roland Chastain
Feb 16, 2025 5:32
Forum: Linux
Topic: Compiler built from source and not installed cannot find BI files
Replies: 4
Views: 2345

Re: Compiler built from source and not installed cannot find BI files

@adeyblue

Thank you for the command example.

So I built the compiler with:

make ENABLE_STANDALONE=1

Now, when I try to use it I get this error:

error 91: Executable not found: "/home/roland/Documents/sources/freebasic/1_10_1/bin/linux-x86_64/gcc"
by Roland Chastain
Feb 15, 2025 7:59
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 192
Views: 90192

Re: Audio library for FreeBasic - Features

SMC wrote: Feb 15, 2025 3:20I can't play midi's or use play, however, without getting a coredump and segfault error.
Same for me on Linux Mageia.
by Roland Chastain
Feb 15, 2025 7:34
Forum: Linux
Topic: Compiler built from source and not installed cannot find BI files
Replies: 4
Views: 2345

Compiler built from source and not installed cannot find BI files

Hello everybody. I could compile the compiler from source. I extracted the content of FreeBASIC-1.10.1-source.tar.gz and simply launched the make command. But when I tried to compile an SDL2 example, the compiler complains that it cannot find BI file: hello.bas(4) error 23: File not found, "SDL...
by Roland Chastain
May 18, 2024 8:17
Forum: Sources, Examples, Tips and Tricks
Topic: Cairo animated spiral
Replies: 15
Views: 5270

Re: Cairo animated spiral

hhr wrote: May 09, 2024 17:46 Compiling this takes a very long time. I don't know why this is the case.
Interesting method for drawing points. Thanks for sharing.