r/freepascal • u/Lauris34 • Dec 02 '19
r/freepascal • u/lproven • Oct 12 '20
Any pointers for installing Lazarus on macOS?
I am trying to upgrade an old copy of Lazarus from about 3Y ago, when I last played around with FreePascal on my previous Mac. Now I'm on a Retina iMac with Mojave (10.14).
I am attempting to follow the instructions here: https://wiki.freepascal.org/Installing_Lazarus_on_macOS#Step_3:_FPC.2C_FPC_Source
I have:
Installed Xcode. It works.
Installed the Xcode command-line tools. It said it worked.
Downloaded and installed the FreePascal 3.2.0 package. It worked.
Downloaded the latest Lazarus package and installed it. The process completed without error.
Compiled a test Pascal program. It worked.
But the instructions say to install the FPC sources, and I don't know where to find them. All I see here – https://sourceforge.net/projects/lazarus/files/ – is an RPM and my Mac won't know what to do with an RPM.
I found some old source in ~/.lazarus. There was a file called compilertest.pas. I tried that. Error. I looked; it's empty.
So I edited it and inserted:
begin
writeln('Hello, world!');
end.Saved it, ran `fpc compilertest.pas` and it worked.
But I don't know where to find the FPC sources or what to do with them.
r/freepascal • u/RagingBass2020 • Apr 12 '24
Cross Compilation on Mac M1 to DOS (32-bit)
I was looking for information on how I could compile from my Mac M1 to a DOS program, to use in FreeDOS, and I can't find any information.
I found this link:
https://wiki.lazarus.freepascal.org/Cross_compiling
But I don't see a way to target DOS. From what I read in the FPC home page, it should be possible to target DOS. What do I need to do?
r/freepascal • u/eugeneloza • Mar 15 '23
Castle Game Engine 5th Open Meeting (“Spring 2023”) on Discord this Saturday (March 18)
self.castleenginer/freepascal • u/eugeneloza • Jun 26 '22
Not Quake - a real-time multiplayer game using Pascal + RNL in Castle Game Engine
r/freepascal • u/Dazzling-Fishing593 • Sep 15 '25
Need help trying to cross-compile from Windows to macOS
I have been using Delphi since it was Turbo Pascal. I would love to switch over to Lazarus + Free Pascal Compiler. I would switch immediately if someone could show me how to cross-compile a simple "Hello World" program that runs on both a Windows machine and a macOS machine.
I do all of my development on a Windows machine. With Delphi I can target the macOS , push a button and watch the single code base run on the macOS computer.
I've tried to accomplish the same thing with L+FPC but I have not been able to make this work. I even reached out to the editor of Blaise Pascal magazine asking if he knew how to make this work. I reached out to the creator of FPCUP Deluxe and created a step by step video on how to cross-compile on a Windows machine using FPC Deluxe. Video Link: https://downloads.blaisepascal.eu/Alfred2.mp4
Has anyone in been successful in cross-compiling macOS output binaries a from a Windows machine?
FPCUP Deluxe git: https://github.com/LongDirtyAnimAlf/fpcupdeluxe
r/freepascal • u/Sensitive_Product826 • Jan 26 '26
[ANN] NDXSQLite - Professional SQLite Library for Free Pascal/Lazarus
I'm excited to share NDXSQLite, a modern SQLite wrapper I've been working on for Free Pascal and Lazarus.
Features
Native SQLite3 API - Direct bindings, no SQLDB dependency
Thread-safe - Connection pooling with statistics
SQLCipher support - Transparent AES-256 database encryption
Schema migrations - Version-controlled database evolution
TDataSet compatible - Works with Lazarus DB-aware controls
Cross-platform - Linux, Windows, macOS (including Apple Silicon)
What's included
30+ classes covering all SQLite features
149 console examples + 10 GUI examples
Full documentation (API reference, architecture, security guide)
Comprehensive test suite
Quick example
uses ndxsqliteconnection, ndxsqliteconnectionoptions;
var
Conn: TNDXSQLiteConnection;
begin
Conn := TNDXSQLiteConnection.Create('myapp.db');
try
Conn.ExecuteNonQuery('CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT)');
Conn.ExecuteNonQuery('INSERT INTO users (name) VALUES (?)', ['Alice']);
WriteLn('Count: ', Conn.ExecuteScalar('SELECT COUNT(*) FROM users'));
finally
end;
end.
GitHub: https://github.com/NDXDeveloper/NDXSQLite
License: MIT
Feedback and contributions welcome!
r/freepascal • u/Paslaz • May 06 '25
The Lazarus IDE 4.0 is now available
Lazarus 4.0 is released, built with Free-Pascal 3.2.2
Download there: https://www.lazarus-ide.org/
r/freepascal • u/GroundbreakingIron16 • Jul 26 '25
First look at the HeidiSQL source code
I grabbed the code from GitHub, built it with Lazarus 4.2, fixed a few issues, and took a deep dive into how it all works. If you're into Free Pascal, Lazarus, or just love exploring open-source projects, check it out:
📺 https://youtu.be/WV-vubcDnt8
r/freepascal • u/EntertainmentNo1267 • Jun 28 '26
My game tools and developement. Cutout Animator.
I'm fiddling and starting a game, old school. Most of the tools are too complicated or too simple for what I want to do. So I'v started to make the olls I want. Here is one thet I think that could be useful. Pixel oriented, traditional GUI.
r/freepascal • u/GroundbreakingIron16 • Jun 29 '25
Shrinking Pascal Code: From 1MB to 39KB with Lazarus Compiler Settings
Tuning your compiler can make your apps faster and greener In this one, I take a simple Pascal primes program from 1MB down to 39KB using Lazarus IDE and Free Pascal. Less bloat. Less energy. Smarter code. -- silver pascal coder
r/freepascal • u/aotan083 • 24d ago
[Lazarus] CX Components: A set of UI components (Explorer views, Monaco Editor, Tabbed Browser, etc.) for Windows
Hello everyone.
I made this post to let you know that there are Lazarus fans in Japan as well.
I'm a big fan of Lazarus and Free Pascal, but because information and components are limited in my area, I decided to create my own UI component collection, "CX Components."
This component collection is designed to allow you to easily implement the following functions simply by dragging and dropping them directly into your form:
Explorer-like tree view and list view
Not just display, but you can also copy, move, delete, and rename files, and of course, it supports drag and drop.
You can incorporate the functionality of Windows Explorer directly into your own app. And you don't have to write any code at all.
A tabbed web browser using WebView2
I created this because I wanted to create a tabbed browser for myself.
With this, you can also create your own original browser.
An advanced editor using Monaco Editor and SynEdit (Markdown preview, syntax highlighting, etc.)
I wanted Monaco Editor for Lazarus, so I created it.
It also includes a minimap and preview. Simply paste the code, and it will automatically save, search, and replace. You can also separate and merge tabs by dragging and dropping them.
And best of all, it works without writing a single code!
Sidebar, tab control, Firefox-style bookmark management
I wanted to create a modern app, so I made this.
Currently, it's only available for Windows and is released as open source under the MIT license. For the repository and details, please see here:
GitHub: https://github.com/aotan083/CXComponents
We welcome your opinions and feedback!
r/freepascal • u/aotan083 • 24d ago
[Lazarus] CX Components: A set of UI components (Explorer views, Monaco Editor, Tabbed Browser, etc.) for Windows
r/freepascal • u/Sensitive_Product826 • Feb 16 '26
Yes, Fallout 1… in Object Pascal 😄
r/freepascal • u/GroundbreakingIron16 • Aug 09 '25
First look inside the Double Command source code
r/freepascal • u/GroundbreakingIron16 • Aug 23 '25
Code with Me | Database App Part 2!
In this episode, we expand our Free Pascal + Lazarus database app:
🔹 Row coloring (red = unregistered)
🔹 Edit form to update details before saving
Catch up with the series here 👉 https://youtu.be/wsHlotczSIc
r/freepascal • u/nickshardware • Apr 07 '26
RectroNick's Vector Font Editor v1.2 by RetroNick2020
r/freepascal • u/fsckit • Sep 29 '25
Lazarus and Mac OS 10.14
I'm trying to get Lazarus to work on my Mac(specs at bottom of post). I've followed this set of instructions, tested the compiler with a hello-world program, its ok.
I've installed from binary, and the IDE runs, but it refuses to build anything. These are the messages I get. The project is just the initial blank form. Adding a button and code for the button to show a hello world message box produces the same error.
Compile Project, Target: /Users/leon/tmp/project1: Exit code 1, Errors: 4
Error: linker: Undefined symbols for architecture x86_64:
Error: linker: "_OBJC_CLASS_$_NSMenuToolbarItem", referenced from:
Error: ld: symbol(s) not found for architecture x86_64 An error occurred while linking Error: Error while linking
It looks like the linker is broken. Has anyone any ideas?
My Mac, in case this matters: Mac Mini 2012 MacOS Mojave 10.14.6 16GB RAM ~500GB SSD with about 80GB free Lazarus 4.2, FreePascal 3.2.2
r/freepascal • u/GroundbreakingIron16 • Jul 06 '25
Lazarus Build Modes & Assertions — Smarter, Safer, Greener Pascal Projects
Hi Everyone, I've uploaded a video on build configurations and assertions in Free Pascal and Lazarus. So, if you've ever had issues with Debug/Release settings, forgotten conditional defines, or wondered how assertions help you, then this video might save you some headaches ...
(Green Coding Ep. 3)
r/freepascal • u/glowiak2 • Aug 21 '25
How to make two units import each other?
Good morning.
A year, maybe two years ago I was trying out Pascal, and found it very performant.
However I moved on from it due to one problem.
You can't have two units import each other.
In C(,++) (and Objective-C!) you just include header files, and you can include header files as much as you want, since for the most part header files don't include other header files, instead relying on forward declarations.
That way I can have the file "game.cpp" include "mainmenu.h", and "mainmenu.cpp" include "game.h".
In Pascal there are units, and while there is some (optional) split between definition and implementation, but I haven't really seen any way to make them import each other like you can do in C-like languages.
Is there any way to do that?
And if not, how do you guys work with that?
Thanks in advance.
r/freepascal • u/GroundbreakingIron16 • Jun 30 '26
Digging Into Free Pascal: My Journey Beyond the IDE
New video... I'm going on a treasure hunt (of sorts) through Free Pascal and exploring what really happens under the hood when you step outside the IDE.
If anyone else is working IDE‑free or doing CLI‑based Pascal development, I’d love to hear your workflow.
r/freepascal • u/Sensitive_Product826 • Jan 31 '26
DCPcrypt v2.0.5 — Cryptographic Component Library for Free Pascal/Lazarus (MIT, pure Pascal, cross-platform)
Hey everyone,
I'm releasing DCPcrypt v2.0.5, a cryptographic component library for Lazarus and Free Pascal. It's a maintained continuation of David Barton's original Delphi library, fully ported to LCL with new features and a complete test suite.
◈ What's inside
20 cipher algorithms — Rijndael (AES), Blowfish, Twofish, Serpent, DES, 3DES, RC4, RC5, RC6, MARS, IDEA, Cast128, Cast256, Misty1, Ice, TEA, Gost...
10 hash algorithms — SHA-1, SHA-256, SHA-384, SHA-512, MD5, RipeMD-128, RipeMD-160, Tiger, Haval, MD4
6 block cipher modes — ECB, CBC, CFB8bit, CFBblock, OFB, CTR
Stream encryption with salt + IV + progress callbacks
Base64 encoding/decoding
Pure Pascal — no external C libraries, no DLLs
Cross-platform — Linux, Windows, macOS
◈ Design philosophy
All ciphers descend from TDCP_cipher and all hashes from TDCP_hash. You can swap any algorithm for another with minimal code changes. InitStr takes a passphrase and any hash class for key derivation, so switching from Rijndael+SHA256 to Twofish+SHA512 is a one-line change.
◈ What's new in v2.0.5
GUI examples ported from VCL to LCL (string encryption, threaded file encryption with progress bar)
Console demo programs
282 automated functional tests covering all algorithms
Makefile for command-line builds
Docker-based CI pipeline (no SourceForge dependency)
Full English documentation (API reference, contributing guide)
SPDX license headers on all source files
Detailed comments on all 31 source units
◈ Links
Release: https://github.com/NDXDeveloper/dcpcrypt-lazarus/releases/tag/v2.0.5
Docs: https://github.com/NDXDeveloper/dcpcrypt-lazarus/tree/main/docs
MIT licensed. Works with FPC 3.2.0+ and Lazarus 2.0+.
Feedback, issues, and contributions are welcome!
r/freepascal • u/livrem • Feb 14 '23
FPC on Termux (Android)
I tried to install FPC in Termux, but it seems like the install script is confused by the non-standard paths. I tried both fpc-3.2.2.arm-linux-on-aarch64.tar and fpc-3.2.2.aarch64-linux.tar since I have no idea what the difference is, but the results were the same. I can run fpc, but when I try to compile anything it can not find the system unit. Installation errors are all about not finding fpcmkcfg (even if it looks like the path is correct, to the fpc bin subdirectory; but that binary is not there). It fails to create a ~/.fpc.cfg so I guess that is why fpc can not find out where units are installed?
