Thank you. Picked up some good tips I look forward to trying...as soon as the online package manager will connect!
@iwokssama4772
3 жыл бұрын
I have been using Lazarus for years, and I didn't know about FPCUDeluxe. Moreover, I am rediscovering Lazarus. Thank you. 😊
@WerIstWieJesus
4 жыл бұрын
Best tutorial for installation of Lazarus ever seen!
@eagle-eye1776
4 жыл бұрын
Excellent video! You really know your stuff.. I can't tell you how many hours I spent banging my head against the keyboard trying to get the cross-compilers installed (and never could). Didn't even know fpcupdeluxe existed. Thank you, thank you, thank you!!
@ChapmanWorldOnTube
4 жыл бұрын
Thank you very much for the encouraging words. I do have to pass a little of the credit though, Don is a real hero for creating and maintaining fpcupdeluxe. I'm just happy to show off his work.
@eagle-eye1776
4 жыл бұрын
Agreed, and I fully intend to let Don know how much his yeoman's work is appreciated. I also have to say that your presentation of the subject is nothing short of professional.
@duralikiraz
4 жыл бұрын
Very good "Lazarus fpc" guide video! Thank you..
@winstonpotgieternextkast1685
4 жыл бұрын
thank you so much, very valuable information
@hpeterh
3 жыл бұрын
Thank you very much. You explain important stuff first and this enabled me to install trunk without errors. "startlazarus.exe" sets, so far I know, environment variables and it is needed if there are more than one lazarus or freepascal version installed. Also worth to mention: In the freepascal forum there is a thread about fpcupdeluxe, this is very populated and the developer himself answers and announces news. But for beginners it is better to follow your video to get started quickly.
@jorgenlarsen7666
4 жыл бұрын
Dear Chapmann. I am very grateful this is fantastic. Having used Pascal since Turbo 3 and also the Delphi versions - this is fun for ARM Raspberry I assume
@ChapmanWorldOnTube
4 жыл бұрын
I'm planning a follow up to include ARM deployment for which I'll be using an nVidia Jetson Nano rather than a Pi, but I expect it'll work the same way.
@aikibasketdo
7 ай бұрын
Good job! To compile with qt5 on Debian stable I had to install libqt5pas1 and dev version 3.0 from debian testing repository.
@tjeanneret
4 жыл бұрын
Great value. Notice that currently (septembre 2020) fpcupdeluxe does not work so well on a Mac... But it is still usable.
@lancemarchetti8673
2 жыл бұрын
Wow...great stuff here!
@Pakawallygator
3 жыл бұрын
What a great video. So much useful information. Thank you!!
@thierrybo6304
3 жыл бұрын
Fpcupdeluxe statement that you MUST use the generated shortcut is there because the primary usage of this installer is to install multiple lazarus/fpc versions in different directories (the upper left box that you also MUST change for each fpc/Lazarus version you want to install). EACH installation use its own configuration folder and it is set in the shortcut (--pcp or Primary Config Path). With a default installer this parameter is not set and the default will be used (~/.lazarus on Linux, %userprofile%\appdata\ om Windows). This is why you MUST use the generated shortcut to not mess your Lazarus installation. For example on my system I always use Lazarus default installer for the stable release. I use fpupdeluxe for the 'fixes' lazarus branch, the 'development' lazarus branch, older lazarus or fpc versions...
@anthonynorton666
3 жыл бұрын
I just installed Lazuras IDE Suite from the choices offered by Mint's Software Manager. There are a dozen packages labeled with Lasuras on the same page of the latter associated with various programming needs and activities. My question is do I have enough as a beginner with whats offered in the IDE suite or do I have some more installing to do? Update, it seems a lot these packages have been installed with version numbers mixed when I went back to the Software Manager. I am assuming the IDE did the shopping.
@drkolm
4 жыл бұрын
Очень хорошо. Познавательно.
@gavincraddock5772
3 жыл бұрын
Thanks very much! Watching this to decide if Pascal / Lazarus would be suitable for teaching 14-18 year old students in a UK high school. We currently use Python and VB, but I remember good things about Turbo Pascal as a teaching language.
@ChapmanWorldOnTube
3 жыл бұрын
Great to hear it. Pascal is a great language to learn on. I started out learning in 8-bit basic back in the 80's and switched to turbo Pascal for school in the early 90's. FYI, Embarcadero offers a solid free edition of Delphi now (much better than the earlier starter editions), license conditions permitting. They also have a student edition. It's worth investigating those too
@rbmarkert
4 жыл бұрын
Building and installing using fpcupdeluxe on Windows generates the following errors. The files referenced (C:Lazarusconfig_lazarusidemake.cfg) is really C:\Lazarus\config_lazarus\idemake.cfg and it does exist. If I manually run the command that errored (from a command prompt), that command completes fine, but that's as far as I can get. Lazarus is installed and useable. I notice that Lazarus does not appear in the Windows installed apps list and no desktop shortcut was created, but everything else looks good. BTW, kudos on the video. Much appreciated. C:/Lazarus/fpc/bin/x86_64-win64/fpc.exe -gl -vbqewnhi -Sci -dlclwin32 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuinclude/win -Fuframes -Fu. -FuC:/Lazarus/fpcsrc/rtl -FuC:/Lazarus/fpcsrc/packages/paszlib -FuC:/Lazarus/fpcsrc/packages/fcl-process -FuC:/Lazarus/fpcsrc/packages/hash -FuC:/Lazarus/fpcsrc/packages/libtar -FuC:/Lazarus/fpcsrc/packages/fpmkunit -FuC:/Lazarus/fpcsrc/packages/regexpr -Fiinclude -Fiinclude/win64 -Fi../images -FE.. -FU../units/x86_64-win64/win32 -WG "@C:\Lazarus\config_lazarus\idemake.cfg" -dx86_64 @C:\Lazarus\config_lazarus\idemake.cfg lazarus.pp Fatal: (11009) Unable to open file C:Lazarusconfig_lazarusidemake.cfg -dx86_64 Fatal: (1018) Compilation aborted Error: c:\Lazarus\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode make.exe[2]: *** [idepkg] Error 2 C:\Lazarus\fpc\bin\x86_64-win64\make.exe[1]: *** [idepkg] Error 2 Error: (lazarus) Build IDE: stopped with exit code 2 Error: (lazarus) Building IDE: Building IDE failed. C:\Lazarus\fpcbootstrap\make.exe: *** [useride] Error 2 fpcupdeluxe: ERROR: UniversalInstaller (ConfigModule: suggestedpackages): Failure trying to rebuild Lazarus. Details: ERROR: Fpcupdeluxe fatal error !Fatal: (11009) Unable to open file C:Lazarusconfig_lazarusidemake.cfg -dx86_64 Fatal: (1018) Compilation aborted Error: c:\Lazarus\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode make.exe[2]: *** [idepkg] Error 2 C:\Lazarus\fpc\bin\x86_64-win64\make.exe[1]: *** [idepkg] Error 2 Error: (lazarus) Build IDE: stopped with exit code 2 Error: (lazarus) Building IDE: Building IDE failed. C:\Lazarus\fpcbootstrap\make.exe: *** [useride] Error 2 fpcupdeluxe: ERROR: UniversalInstaller (ConfigModule: suggestedpackages): Failure trying to rebuild Lazarus. Details: ERROR: Fpcupdeluxe fatal error !
@ChapmanWorldOnTube
4 жыл бұрын
It may be worth raising this as an issue on the fpcupdeluxe GitHub page, since I am really just showing the tool off, and know only the surface of how it works. There is an option in fpcupdeluxe settings to use only the cross-binutils from GitHub which might help in your case (if you can't find it, I'll look when back at a PC), and I would try again after a day or so before raising an issue to be sure it's not been fixed already... I am not sure what Error 2 is. As a side note, Lazarus is a true win32 app rather than a universal runtime, and it does not create registry entries. This is why it doesn't appear as a 'real' modern windows app - but the nice part of that is you can uninstall it by simply deleting the Lazarus directory and icon.
@MikeFelkerVideos
3 жыл бұрын
Fantastic tutorial. I used to use Borland Delphi, so this is really amazing stuff. How would I create a Mac OS cross compiler? I did not see a Mac OS option? Is it Darwin? I will watch all of your tutorials. Please make more!! Question: Do you know of any way to encrypt the source code upon compiling in Lazarus? We need to protect our intellectual property due to patents pending - and we need to protect the code as much as possible so that decompiling/disassembling does not work. Thank you.
@ChapmanWorldOnTube
3 жыл бұрын
I believe cross compiling to osx is possible with FPC, but more complicated by apple policies regarding side loading and such. Honestly my only experience with FPC and mac, is installing Lazarus on device and building there, which involves using homebrew and meddling with application signing, but is the path of least resistance.
@MikeFelkerVideos
3 жыл бұрын
@@ChapmanWorldOnTube So Delphi would be better for Mac/IOS/Android development? What about my other question - encrypting the source before compiling? Any way to alter the compiler to allow for encrypting the source code?
@ChapmanWorldOnTube
3 жыл бұрын
@@MikeFelkerVideos Well, Delphi would be the better option if you want to write your software on a windows machine, and deploy it to OSX. Since Delphi can't run on OSX, Lazarus is your only (modern pascal) option if you want to write your code on a MAC for deployment and testing on MAC. They each have their strengths in this regard. The FMX (Delphi) is actually an excellent UI framework but if you are unfamiliar, it has quite a learning curve. Delphi does have better debugging integration, but debugging from windows to MAC goes through the PAServer, and is a little clunky in places. The LCL (Lazarus cross platform VCL framework) is a perfectly usable UI framework, but a little less polished than FMX. While the Lazarus debugger is a little trickier to work with, it's sufficient and available to run directly on the target which has performance benefits as well as accuracy. In both cases, access to the OSX native UI controls may be a concern if you want to put your app into the app-store, and both compilers can access those native controls, Lazarus having the edge because it's LCL will already wrap the native UI controls, and it's able to compile 'objective-pascal' mode which makes it compatible with some of the remaining objective-c based APIs. I'd have a challenging time deciding which to use for OSX development, and would probably lean more towards Delphi if I wanted to get it done in a hurry (prototyping), and Lazarus if I wanted more thorough OS-level integration. Regarding encrypting your sources: I may be misunderstanding the question because your source code is your own, generally stored safely away on your own hard-disks and servers where the customer does not have access to it. So I'm assuming you're concerned about reverse engineering, to source code from the binary executable. This concern is a far greater issue in the world of Java or C# development, because each of those environments target a virtual machine, generating JVM Bytecode, or MSIL instructions respectively. Byte-code is almost trivial to reverse engineer back to source code, and usually carries information specifically to make it possible. For example, most byte-code formats include variable and function names, and hints at specific line numbers where code execution-flow is controlled. Delphi and Lazarus on the other hand, target native CPU level binary, "True Native" code. While it is certainly not impossible to reverse engineer native binaries, it is FAR FAR more difficult to do. The main reason is that, when compiled in 'release' mode, lots of the original source information such as variable/procedure names are simply not included in the resulting executable at all - they are stripped away, along with lots of information about the program control flow. Raw native binaries of this type can be "disassembled" back to assembler code, and to some degree that assembler could be translated back to a high level language such as C/C++ or Pascal, but you simply could not get back a complete translation of the original source. Additionally, I believe there may be binary 'obfuscation' tools which might further increase the difficulty of disassembling native binaries, but they would certainly impact the final executable performance, and would not stop the most avid reverse engineer. It's simply not possible to entirely prevent reverse engineering without control over the environments in which the binary will ultimately be used - but you should have far less concern about it with a Delphi or Lazarus built application that many other development tools. (Excluding Lazarus when targeting JVM/Java byte-code directly, obviously). If you're still concerned about loss of IP, the only way I know of to truly protect it, is to not release it, perhaps waiting for the patents to be granted so that you'd have legal recourse if you discovered that reverse engineering had taken place.
@gepwxaqdfsidsesg1548
3 жыл бұрын
If you are into freepascal then have a look at ultibo core. It's very cool.
@gecsus
3 жыл бұрын
I have an AMD Ryzen 3900X CPU with 32GB RAM on an Asrock X570 Taichi MoBo running Windows 10. I get the following error. fpcupdeluxe: Start of compile error summary. fpcupdeluxe: ERROR: FPCNativeInstaller (BuildModuleCustom: FPC): Error running F:\Lazerous\fpcbootstrap\make.exe for FPC failed with exit code 2 . Details: fpcupdeluxe: Done !! I have shut down and run the installer a couple of times, but I get the same error each time. Suggestions?
@ChapmanWorldOnTube
3 жыл бұрын
If you've not already, make sure you have a subversion client installed (recommend TortoiseSVN) - I've had issues when svn is not installed, which don't indicate SVN in the error message. Failing that, raise this as an issue on the GitHub site. The author is very responsive to issues raised.
@gecsus
3 жыл бұрын
@@ChapmanWorldOnTube I don't know anything about the subversion client. Actually don't know what it is. How would I install a subversion client? I used the recommended installation as your video indicates. I'm new to compilers and programming interfaces. They didn't have these when I was programming in the '80s. Well, I guess QBX was one, but it was super simple. Thanks for the response though.
@ChapmanWorldOnTube
3 жыл бұрын
@@gecsus Subversion is a source-code control system - It allows the multiple developers that created freepascal and lazarus to collaborate on code by maintaining different revisions of it on a central server. FPCUpDeluxe uses subversion to download the source code before building it. You don't really need to learn how to use subversion (though it is a great tool), but the FPCUp installer requires access to it. Subversion it's self is open source, and so there are several 'vendors' that release binary packages for it. You only really need the command-line tools, so one option is to download and install from Collab www.collab.net/downloads/subversion - but if you have any desire to use subversion yourself, for windows I recommend TortoiseSVN: tortoisesvn.net/downloads.html because it integrates with the windows explorer. The installer for each will place the subversion executable 'svn.exe' on your system path, so the next time you start FPCUp it'll know where to find it. From there, everything should proceed as in the video.
@gecsus
3 жыл бұрын
@@ChapmanWorldOnTube I did a complete uninstall, scanned and repaired my Windows System with Tweeking.com's Windows Repair Kit and doing a disk repair to assure there were no disk errors or corrupt files. Then I did a reinstall and everything went through smooth as butter with no errors. Thanks for getting back to me.
@haroldmcbroom7807
3 жыл бұрын
I just download the latest version of Freepascal, and Lazarus, do I need to configure the FP Ide settings before installing Lazarus? My processor is an AMD 6300, and my OS is windows 7 64-Bit ? This is the Freepascal I downloaded "fpc-3.2.0.i386-win32.exe", and this is the Lazarus version I downloaded, "lazarus-2.0.10-fpc-3.2.0-win64.exe" I just want to draw a 3d box on the screen and move it around using W,A,S,D. I won't be distributing it anywhere past my own computer, so I don't need cross-platform capability, it's only for personal interest.
@ChapmanWorldOnTube
3 жыл бұрын
The fpIDE and Lazarus are entirely independent of each other, so you can chose between them. I would still recommend using the Lazarus IDE for your work, but you could manage without it and use fpIDE if you wanted the 'dos' experience.
@haroldmcbroom7807
3 жыл бұрын
@@ChapmanWorldOnTube I started out with MS-DOS, back in the 90's, learning on 386's, and 486's. I'm almost 50 now, and my eyes are not so good, so I need a good IDE I can enlarge the font size. Thanks you so much for the information, it's helpful :)
@assemblyrtsdev
4 жыл бұрын
The latest stable release v1.6.8b didn't work for me. Tried 1.6.4h instead, also failed to install :/
@ChapmanWorldOnTube
4 жыл бұрын
Did you note the error message?
@Phaze101
4 жыл бұрын
First of all thanks for this video. You solved me a big issue. Is there a chance that you show how to built cross compilation for Amiga 68K, MorphOS and AROS. If you can please put me in the right direction of this sine the FPCupDelux does not support the built of these.
@ChapmanWorldOnTube
4 жыл бұрын
It's high up on the maybe list. I'm currently restoring an A2000 for classic 68k in order to test it. I don't yet have an AROS setup. I believe the Amiga support in FPC is something of a novelty rather than an officially supported target.
@wai-kitlo80
4 жыл бұрын
excellent video. Thank you! Do you have a suggestion for an alternative debugger to the default debugger? Or a way to debug class properties properly.
@ChapmanWorldOnTube
4 жыл бұрын
I've always used the default gdb, so I've not looked into other options. I will look into it though, I believe the IDE supports options like valgrind which could be interesting. Can you explain more about the issue you have debugging properties? Generally you can break into getters / setters fine. I have noticed that the inspector doesn't evaluate properties well, but watches work.
@wai-kitlo80
4 жыл бұрын
@@ChapmanWorldOnTube Watches also doesn't work for properties. At least with my config of Lazarus. Are there any settings that need to be set? I could go into the setters/getters but is less convenient if I can see a property in watches
@ChapmanWorldOnTube
4 жыл бұрын
@@wai-kitlo80 I'm really not sure, but I will make a note to try it. I am about to head out on the road for around three days to close out a vacation, but will make a note to explore these debug options as soon as I get back home.
@ChapmanWorldOnTube
4 жыл бұрын
@@wai-kitlo80 I just took at quick look at the Lazarus forums, and it appears that inspecting properties may be a limitation of the GDB debugger as you first suggested. You can debug the underlying storage value if you know what that is - for example, You can't inspect/watch Button1.Caption, but you can inspect/watch Button1.fCaption. I still do not know if this limitation persists with the experimental LLDB debugger, and so that's what I'll look into when I get home.
@cindyaddbelle2141
4 жыл бұрын
I made a program pascal using freepascallazarus, i can writeln on the screen but i dont know how to writeln to printer, please help me. Thanks.
@ChapmanWorldOnTube
4 жыл бұрын
Hi. Well, using a printer is unfortunately not so simple as using a writeln. There was a time that printing could be done this way, but we would be going back around 30 years to a time when printers were simple TTY devices attached to a serial/parallel port. Back then, you could simply open a port as a file, then simply writeln text to the file. Modern printers however, depend on being sent image data (even for text documents), and are typically attached via a network requiring drivers to operate. This page on Lazarus / FPC printing explains how to print by rendering to a canvas object. I haven't tried this myself as yet, but it should help to move you in the right direction... wiki.freepascal.org/Using_the_printer
@cindyaddbelle2141
4 жыл бұрын
I have tried but cant solved my problem or might be i'm stupid, i got head ache now. Someone told me, uses printer and writeln(Lst, 'See This On The Paper') but ???? The printer doing nothing. I just got a very simple program. Writeln('Show This On The Paper'); How to make the printer work and give the writing? I use Usb Printer 'Canon TR4570s'.
@ChapmanWorldOnTube
4 жыл бұрын
@@cindyaddbelle2141 Which OS are you on?
@cindyaddbelle2141
4 жыл бұрын
Windows 10 but
@ChapmanWorldOnTube
4 жыл бұрын
Then I think this is the problem. The technique that you are using is trying to assign a file to the printer, but this only works for Unix (see doc link below). Unix and derivatives maintain some very old functionality, but this is no longer the way printing is done for windows... www.freepascal.org/docs-html/rtl/printer/assignlst.html Part of the reason is that in general, windows will no longer allow the programmer to get direct access to hardware, but instead, it provides api's to access drivers. This frees windows programs from hardware compatibility concerns. Unix systems have a different approach using kernel modules instead of drivers, which is likely why this still works for nix.
@AbdoInfo
4 жыл бұрын
how to instal android compiler withe fpcuptool and manully
@ChapmanWorldOnTube
4 жыл бұрын
www.google.com/url?sa=t&source=web&rct=j&url=www.freepascal.org/~michael/articles/android1/android1.pdf&ved=2ahUKEwj1pr2E7dnnAhWTlp4KHY4mBtIQFjABegQIBBAB&usg=AOvVaw0p8S2jQ5rcmyMkxIkCXp8Q Install the jvm / Android combo in cross compilers.
@AbdoInfo
4 жыл бұрын
@@ChapmanWorldOnTube englich is not my first languige i dont use documontation well i berffer videos please
@AbdoInfo
4 жыл бұрын
can you show us how to install android compiler in video i am not good at reading documontation and ther is no video explaint he will be good video subject for youtube....... thnx
@ChapmanWorldOnTube
4 жыл бұрын
I already have this subject already on my list of videos to make, but have not yet gotten to it. I'll give it more priority, but working hard on some other fun content at the moment.
@AbdoInfo
4 жыл бұрын
@@ChapmanWorldOnTube please i need it fast as possible the peapole like you must make the road to free information possible .....thnx
@AbdoInfo
4 жыл бұрын
please i need to know how to install android compiler please make video very soon pleas
@ChapmanWorldOnTube
4 жыл бұрын
kzitem.info/news/bejne/2Zd9ypOrjIiDl4I This is not entirely what you've asked for, but I hope it'll get you started :-)
@jonathan16384
4 жыл бұрын
Hi. have you ever played with the idea of developing "bare metal" lazarus apps to run on x86 architecture pcs? I rediscovered an old project recently that was designed to build under a very old version of fpc (2.5.1) github repo: github.com/rezgui/fpos I made a screencast showing building and running in virtualbox: kzitem.info/news/bejne/pIiunYyapKl2poo (note - i've since discovered that you don't need to set the path variable as shown in the video, as the batchfile runs the bundled make.exe from the tools subdir implicity, and since all the tools are there, they are found automatically) anyhow I was hoping you might have some ideas how to: 1) migrate the existing code that's here to be able to compile with the most recent version of fpc 2) be able to build from inside the lazarus ide (not essential, but would be nice) I accept the project itself has a lot of work to be anything like a functional os, but if i'm going to put that kind of effort into tinkering, I'd rather be doing it with a modern version of the compiler.
@ChapmanWorldOnTube
4 жыл бұрын
I have dabbled in this, I wrote my own OS kernel around 10-15 years ago in fpc. Not nearly as complete as fpos, and with a lot of nasm assembler thrown in. I could say quite a lot about this process, but I'll try to be brief in the comments and look to your questions. 1) Migrating the code should not be a challenge because of the great backwards compatibility of the compiler - I'd be better able to address specific issues though. 2) Building it in lazarus I'll say: It may not be impossible but it may be a challenge. An OS kernel usually requires custom linker scripts, may build parts in assembler and such... You could perhaps do these on pre-build/post-build scripts for the project in lazarus... so maybe. Both questions would involve far more than I could put in a comment here, or that I currently have time to do myself. They are probably best targeted at the authors of fpos directly.
@jonathan16384
4 жыл бұрын
@@ChapmanWorldOnTube thanks for the reply. the main issue i had with rebuilding is to do with the rtl changing quite drastically post 2.5.1. it was a few months ago i last tried a rebuild, so i'll try and retrace my steps. build scripts would be fine, i'm mainly wanting to be able to use a recent compiler and up to date rtl. (by rtl i mean the classes, sysutils units etc)
Пікірлер: 71