I am having a problem linking static libraries on for 32bit windows. I've
got everything setup and working on Ubuntu 12.04 and have built one project
which targets i386-linux, i386-win32, and x86_64-win64.
I'm using mingw-w64 on Ubuntu to create static lirbaries for openssl and
the ssl crypto
Hey guys, I've been getting back into using FPC+Lazarus again (along with
Android development). In that endeavor I've started a simple/clean/unit
tested open source library to solve a few common tasks in a cross platform
manner. If anyone feels like it, you can get the library sources code,
along
Thanks for reminding me to added the licensing terms. I am thinking
everything is LGPL (free for whatever use). Anyone can copy the code an do
whatever they want with it. I'll be maintaining Codebot.Cross on github,
but don't have much experience with open source team development. If anyone
want
How can I stretch draw an area of a gdk pixbuf to a cairo surface with a
user defined opacity?
I am trying to write a cross platform interface for working with bitmaps
and want to add alpha blending to my cairo stretch draw method. What I have
right now works just fine, but I am unable to think
Here is an updated url to a properly encoded video (it's not my fault,
youtube can't handle ogv file)
http://www.youtube.com/watch?v=iuorYlmbmvI
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
Can someone help me please?
I am having a problems getting Lazarus working with fpc 2.7.1
compiler. The platform I am using is Windows 7 64bit, and I am
building the 32bit versions of fpc and lazarus. I am having two
different problems, 1) with the most current binary lazarus downloaded
from the
Thanks. I should have checked the bug tracker first.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
I am using Linux Gtk2 here ...
Is there a problem with SendMessage? I am using LCLIntf.SendMessage to
synchronize a method invocation which touches the ui from a background
thread. The problem is when my message is handled, the message handler
isn't in the correct thread context. That is
My request is a bit long and includes videos, images, and code. As
such I've located it here:
http://www.codebot.org/cross/?doc=9589
The basic gist of my request is to advance some features in Free
Pascal by asking the FPC community leaders to take interest. Also,
much thanks to Sven Barth and
Sven, thank you for that information. I did some googling on free
pascal and delphi global operator overloading and only found
references describing operator overloading like I am already doing.
Could you provide me with an example of a global operator doing either
an implicit or explicit
Okay, I looked into global operators a bit more and I think what you
are referring to is objpas mode operator functions. If this is the
case, then there is a problem because I don't believe objpas mode
supports explicit conversions.
For clarity, I believe the correct intended use of explicit
Hello, I just joined this mailing list to mention an issue I found in
Lazarus.
General description of the problem: Using new language features make working
with Lazarus quite difficult.
The following wiki link outlines some of the new language features to the
FPC bringing in compatibility with
2011/8/26 Juha Manninen juha.mannine...@gmail.com
2011/8/26 Anthony Walter sys...@gmail.com
General description of the problem: Using new language features make
working with Lazarus quite difficult.
I am happy to tell you that generics support in Lazarus IDE has improved
just recently
Since Juha Manninen mention in the bug tracker that he assigned this issue
to himself and thaat it might not be gotten to in a while ... a quick
question:
If I were to attempt to fix this issue myself, what is the fastest way to
test my fixes to codetools short of rebuilding the entire IDE i.e.
2011/8/26 Juha Manninen juha.mannine...@gmail.com
About fixing the bug yourself: good luck, honestly.
Codetools is BIG and learning it may take some time. Don't get frustrated.
It is possible that Anton provides a patch for this issue or that Mattias
(the author of codetools) fixes it.
Your
Okay I created a possible fix for this problem, though I'm not entirely sure
if it's correct. This is my first contribution to any open source projects,
so please take review changes with a bit of trepidation. You make want to
also link to the issue with this code:
Jump to So here are some of the problems I've found with fpc generics if
you don't want to read the backstory.
I haven't been active in the FPC for a while, but last week I was asking
some questions about the upcoming Delphi FireMonkey project which is
supposed to allow broader development with
The focus of my library is to make interactive demo writing easy. Generics,
when implemented correctly, make writing code easier and more productive,
given that you know what a generic is and how to use them.
Besides, when writing a (simple) game you'll likely be limited by hardware
and not
It would seem that the Lazarus IDE integrated documentation editor fails to
work with units which use dotted names. For example:
unit MyCompany.Utilities.Text;
Can someone verify this for me? I am preparing some OSS pascal packages (a
cross platforming gaming library) which use the above pattern
I tested on on another computer with a different OS (Windows 7) and
replicated the problem. I filled out 3 bug reports for issue
numbers 0024269, 0024270, and 0024271. One issue is related to a copy and
paste problem with the integrated Lazarus documentation editor window.
--
Normally I don't reply to a technical discussion when a question about a
possible bug is posed back with (channels inner nerd) Why would you ever
want to do that?... followed up attempts to chastise. But I'll give you
some honest answers.
In short words: aesthetic reasons and to please people
Something neat just happened while using Free Pascal/Lazarus and I thought
I'd share and maybe get some feedback.
I am/was testing the Pascal interface to SDL 2.0 on Ubuntu. I had built a
shared object library of SDL 2.0 from mercurial daily snapshots and put the
binary of libSDL2.so in my
Marco,
Regarding you question about code insight, here are two arbitrary nice
features of how code insight can be used with dotted namespaces I captured
from Visual Studio (other IDEs and other languages do similar things):
When adding using (uses in pascal) referecing a unit/assemble/namespace
Follow up.
I think I found another bug with fpdoc. I believe it parser fails and
documentation generation stops if it encounters a generic type declaration
like this:
{ THardwareCollectionT represents a collection of connectable devices
such as joysticks }
THardwareCollectionT =
In case anyone is interested, I tested the free cmd line tool (doc-o-matic
express) for help generation which handles both of these problems (dotted
namespaces and delphi style generics). It even has a lot of extra features.
Check out the impressive results from a test on one unit:
Thanks Marco.
Were you going to tackle the dotted unit name and Delphi style generic
declaration problems in the bug tracker? I've been testing documentation
generation tools and editing together a nice style with a tree view feature
(I'm working on adding an index feature).
Here is an example
The benefit of online docs ...
Anyone can access them without installing a thing (assuming people have a
web browser, which everyone does). This allows people to peruse/browse
before they try, which is what most people do, read the web and google
search stuff.
Since online docs are online, they
I was testing fpcup on a fresh install of Windows and everything seemed to
build okay, but when I opened lazarus for the first time and tried to set
paths, I got the following message with the FPC Sources tab:
Warning: Found version ..3, expect 2.6.3.
I checked initialsetupdlg.pas and the
Mattias, I filed a which I am pretty sure this bug is in your wheelhouse. I
think it's being causes by codetools and some newer language enhancements.
I took a look at fixing the problem myself and couldn't make any progress.
here is a summary of what's going on.
This bug curiously in not present
I saw you created a fix in revision 41199 and after some testing I
reopened. I would seem the fix prevents codetools from working with
anything in a package.
Create a new application and you cannot ctrl + left click TForm.
Double click a form and you get TDefaultComponentEditor error
--
I've been working on this project for more than a month and against my
better judgement I'm posting a link. I thought maybe this long holiday
weekend some people somewhere might look at it and give me some feedback
(watch the video):
http://www.baregame.org/
Hint: It's a class library written
Marco,
I've updated the installation topic to include a direct link to the source
code. The resources topic has download links to other files (installer, sdl
2.0 binaries).
Here is a link to a direct download of the source:
http://www.baregame.org/download/?file=bare.7z
Compilation requires
The dots in the name spaces are a small part of it. I use a lot of generics
and record types which require features Sven Barth has added.
IBitmap = interface(ICloneableIBitmap)
TObjectListTItem: TObject = class(TIndexedListTItem)
TPointF = record public class function Create(X, Y: Float):
Also I should note, the installer doesn't mess with your existing
FPC/Lazarus settings. It uses private FPC and Lazarus configurations bases
on your chosen installation path.
Translation, you can run the installer and choose the FPC and Lazarus
options (you'll get a very recent prebuilt FPC and
Fixed.
I also added a git repository at https://github.com/sysrpl/Bare.Game which
includes the doc files (under source/docs). The docs contain everything on
the website. I am new to open source collaboration, and I was planning on
allowing others to edit these files, but am unsure how to
Ah okay, then I guess as it is right now anyone could send me changes with
a pull request. Thanks.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Upvote this
http://www.reddit.com/r/programming/comments/1gvqdc/lazarus_ide_has_a_new_website/
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Looking at the new Lazarus website I found a link to the Lazarus bounty
page. My question is, where are the solutions to the bounty problems? I
thought they'd be shared with everyone. If there we don't require bounties
solutions to be shared then we probably should get rid of the page, after
all
Problem: Free Pascal is not properly initializing and finalizing an
interface type resulting in code being invoked for a garbage pointer. The
error is highlighted at the end.
Previously I filed a bug report on this issue and received feedback that
the bug could not be reproduced, but it's hitting
Thanks for the feedback Sean.
What's happening is I have a laptop with removable hard drive. I had done
development for a few weeks on a drive with a 64-bit Linux OS installed
using a 64-bit build of FPC. Now that I have completed my milestones I am
preparing to publish updates, but before doing
If anyone is confused as to what is happening with TVec(n)Prop here are
some examples from my tests.
Camera has TVec3Props called Direction (Heading, Pitch, Roll) and Position
(X, Y Z) which allows a Storyboard to hold a direct reference to those
Camera properties allowing for animation of the
waldo-kitty: Yes, I've deleted everything in my /lib/i386-linux folder save
for my static libraries libSDL2.a (from RC3 sources) and libtess.a (from
mesa glu tessellation sources), which I've compiled myself from C sources
using gcc/ming-w64 for 32/64 Linux and Windows.
--
The actual backing storage IDependencyProperty is handled by a class (an
object). Records types are used to manage references back to a shared copy
of the property (perhaps a Storyboard has a copy of the Alpha value of a
color component being animated), or to hold an unlinked (no backing
http://bugs.freepascal.org/view.php?id=24449
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
http://cache.codebot.org/snapshops/managederror.jpg
I put a few lines to test what's going on before the error occurs and a
screenshot is provided above. WriteLn is writing out a random integer
value. I don't see any code in the assembler window to initialize the
result. In that screenshot the
Problem: Certain object files cannot be placed in an archive file (a static
library) and referenced with {$linklib myarchive} is a pascal unit. I don't
know why and would like some advice.
I am attempting to link a static library (an archive of object files) built
on Linux using mingw-w64 for
I want to a design form with controls on it but without a caption area,
much like to window:
http://codebot.org/snapshops/no-caption.jpg
How is this possible with the LCL?
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
BorderStyle := bsNone
And that removes the border. See the original linked screenshot.
http://codebot.org/snapshops/no-caption.jpg
On Sat, Oct 5, 2013 at 12:09 AM, leledumbo leledumbo_c...@yahoo.co.idwrote:
BorderStyle := bsNone
--
View this message in context:
This patch allows custom form modules to paint themselves.
Can someone test and apply patch to TCustomForm.PaintWindow in
customform.inc.
Changed from: if FDesigner nil then FDesigner.PaintGrid; else Paint;
Changed to: Paint; if FDesigner nil then FDesigner.PaintGrid;
The above change allows
I've tested going back to September revision 25577 both class and record
helpers are broken. They work in simple stand alone units, but when you
bring in the LCL and other units they fail to compile.
I create a new windows form project and added a few line of code. There
error message is:
Report filed here:
http://bugs.freepascal.org/view.php?id=25211
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
I have been trying Ubuntu 13.10 this weekend and I'm hoping someone can
advice on a Lazarus issue I'm experiencing.
This version of Ubuntu come with gdb 7.6.1.
When using Lazarus and debugging the compiled program frequently locks up.
Launching Lazarus with sudo or gksudo (in a launcher) fixes
The problem was introduced with revision 25766. You can fix the problem
simply getting an earlier revision in a new folder and copy the older
revision cairo units over the trunk copies. Assuming you are one directory
above your fpc folder ...
svn co -r 25764
Could someone look at screenshots of two problems I'm having on a new OS X
system? I'm trying to configure it for trunk fpc and near trunk lazarus
development.
What's going on
--
I installed Xcode with command line tools and used macports to install gdb.
I installed fpc
TCarbonButton.SetFocus Error: SetKeyboardFocus failed with result -30585
...in it and the main window for 'hello' displays but is completely
disabled.
On Tue, Oct 29, 2013 at 9:56 PM, Anthony Walter sys...@gmail.com wrote:
Could someone look at screenshots of two problems I'm having on a new OS X
system? I'm
and not the form designer.
4) Launching a lazarus created program from the command line will cause it
to hang. Instead you need to type 'open -a your program'.
On Tue, Oct 29, 2013 at 10:04 PM, Anthony Walter sys...@gmail.com wrote:
I'd also like to add another note.
When I attempt to run
the same debugger
message.
On Wed, Oct 30, 2013 at 5:29 AM, Martin laza...@mfriebe.de wrote:
On 30/10/2013 09:28, Martin wrote:
On 30/10/2013 01:56, Anthony Walter wrote:
Problem 2
--
http://cache.codebot.org/development/lazarus-run-error.png
When I try to run a program
When I click the more button in the debugger error message box I see this:
The GDB command:
-environment-cd
\/Users/macuser/Development/Projects/hello/hello.app/Contents/MacOS/\
returned the error:
,msg=\/Users/macuser/Development/Projects/hello/hello.app/Contents/MacOS/\:
No such file or
Okay, I set both path and exe encoding to none and am now getting a
different informational message when I click the more button:
The GDB command:
-exec-run
returned the error:
,msg=Unable to find Mach task port for process-id 6363: (os/kern) failure
(0x5).\n (please check gdb is codesigned -
There seems to be some lag between our messages.
Anyhow, I create a cert, reboot, and code signed ggdb using the steps
provided here and here:
http://stackoverflow.com/questions/11504377/gdb-fails-with-unable-to-find-mach-task-port-for-process-id-error
sudo codesign -s ggdb_sodesign
To add to my last message, although the programs are frozen, I am able to
set breakpoints in my code. For example:
procedure TForm1.FormCreate(Sender: TObject);
var
I: Integer;
begin
I := Random(100);
Caption := IntToStr(I); // breakpoint here
end;
And the debugger stops on the breakpoint
I have yet more details regarding frozen applications...
When the IDE options | debugging is set to none the program can be run from
the IDE without locking up.
When the IDE options | debugging is set to gdb the program fails t run
(even if project debugging options are turned off) unless the
Dmitry,
I am not too familiar with Mac development. yes I can use the open command
to run my apps just fine.
The problem is when I've created an app using fpc/lcl/lazarus and I try to
run it by typing ./myprogram in a terminal my application form appears,
but controls and entire window is
Interesting. Indeed running a program when in the path
'myprogram.app/Contents/MacOS' the windows is enabled and can be interacted
with. However, when I set the Working Directory
'myprogram.app/Contents/MacOS' in Lazarus | Run Parameters, the myprogram
window is still disabled.
See the screenshot
Martin,
Okay. When I do that, just like when I set the working directory, the
window in the program I am debugging is disabled. I cannot raise the window
to the foreground by clicking on it. I cannot resize the window. I cannot
click the controls. It does not show in the dock.
This was something
Dmitry,
Thanks. I've read those threads before. I actually have gdb installed
through macports and I signed it.
Martin,
Good information. I ran lazarus with the command line options to log gdb
and this is the result:
http://cache.codebot.org/stackoverflow/lazarus-worker-debug.txt
Taking you
I am please to announce the launch of a new initiative to promote Free
Pascal and Lazarus. The hub of this initiative is http://www.getlazarus.org
The get Lazarus initiative aims to an reintroduce Lazarus to the software
development world. To aide in this endeavor we've created our own special
It looks like your
/home/luca/Development/FreePascal/fpc/bin/fpc.cfg
Is being interpreted incorrectly and the wrong ppcx64 is being used. This
line in setup.sh is correctly setting the config path.
PPC_CONFIG_PATH=$BASE/fpc/bin
But this line isn't generating the correct fpc.cfg values.
In an effort to be as open as possible, I've written up a Making it
Yourself guide for to help anyone make test versions of Free Pascal 3.0
and Lazarus 1.4. The guide is available for those who want to use the most
current versions of Free Pascal and Lazarus, but would prefer to obtain
copies from
Michael, from my script:
# Note we use our bucket instead of sourceforge or svn for the following
# reason:
# It would be unethical to leach other peoples bandwidth and data
# transfer charges. As such, we rehost the same fpc stable binary, fpc
# test sources, and lazarus test sources from
Graeme: Preview is meant to switch between your edits, and the original
copy. Preview only works if you press Save while editing. If you edit
content, then press Preview, you're changes are lost.
--
___
Lazarus mailing list
Though the Bare.Game engine version 2 isn't ready yet, I've gone back to
the github version and updated it to work with the latest fixes 3_0 branch
of Free Pascal. I've also created new example project for it located in
Bare.Game/examples/draw. Install instructions and other information is on
IMPORTANT
I messed up the OSX terminal commands in my last message. They should be:
curl http://cache.codebot.org/lazarus/install.fpc-3.0.darwin.sh -o
install.sh
sh install.sh
Here is an OSX install instructions bookmark:
https://github.com/sysrpl/Codebot.Setup#osx
--
This is a status update
I've created a universal OSX install script. It will check for required
tools, such as xcode, and install all requirements for you.
This OSX version of FPC 3.0 and Lazarus 1.4 test includes cross compile
support for OSX 32/64, Linux 32/64, and Windows 32/64 bit. With it
Kostas,
I agree, I'd also like to a docked form designer but that is likely
something a long way off.
In the meantime, I'm not sure if you are aware, but a great new feature was
added to Lazarus for docked mode recently and I urge you to try it out.
This feature brings the form designer to the
I not aware of any embedded form designer that has existed for Lazarus. If
anyone on the mailing lists know something about that, I'd love to learn
something.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
I'd like to do some fixin' on CodeTools. Who is most familiar with it? I've
worked with it a little in the past, and submitted at least one patch to it
before, but I recall it was kinda unbearable.
I keep finding things that don't work with it including, record helper
insight, inner types not
Okay. when you have time, and if you feel up to it, send me an email when a
good time to meet on irc (or other live chat system of your preference)
would be. I'm mostly interested in adding support to CodeTools for class
helpers and inner types which I believe are currently not implemented. Just
Oh, and here is an extra bit of information I neglected to mention. When I
use FPC 3.0.1 to compile against the trunk version of Lazarus, there are no
errors.
The point is, I think we should have a fixes version of Lazarus which can
build with the new fixes 3.0 version of FPC.
--
There was a recent announcement on the free pascal mailing list that a new
3.0 branch of the FPC was committed to svn.
I decided to checkout a copy of the branch and using it with the latest
official release of Lazarus, which I believe is 1.2.
The problem is I get errors when I make all on
Juha,
Okay great. It looks like the 1.4 branch you mentioned was created by
mattias a few hours ago in revision 47333.
I'll be building installers to test Lazarus 1.4 and FPC 3.0 momentarily.
Installers will be for OSX, Linux, and Windows.
--
___
Have you considered xpath? It's a core feature of all xml engines (msxml,
libxml2, whatever else).
Syntax overview:
http://msdn.microsoft.com/en-us/library/ms256086(v=vs.110).aspx
In my wrapper would look like this:
Person := Document.FindNode('//Person[@Index = 0001]');
Other examples
//
I've been building FPC 3.0 and Lazarus 1.4 from svn sources. Here are some
problems.
First, all Linux builds seem to be working correctly.
On Windows though I encountered a few problems.
1) In lcl\interfaces\win32\win32callbacks.inc lines 1547 and 1571, the
following cannot compile:
I saw a really great feature in Lazarus which was removed recently. I'm not
sure when or why, but am wondering if anyone knows what happened.
Here is a description of the feature:
When Lazarus running with the AnchorDockingDgn package installed, if you
clicked on a component in the palette,
In Lazarus you select Project - Project Options - Compiler Options, then
select from Win32 Debug, Win32 Release, Win64, Linux32, Linux64, or Android.
That's all you need to do for Windows 32/64 builds.
For the other targets, you'll need to download the platform specific
libraries to complete a
This is a status update with new builds
Version 3.0.1.2
On Windows...
To install download and run the installer program
http://download.codebot.org/lazarus/setup.exe
- notes
a) Added full cross compiler support for all i386/x86_64 Windows and Linux
targets. This means you can now cross build
Jy, I believe you replied to me and not the mailing list, so I'll repeat
your message:
Hello Sir,
I have uninstalled everything from previous setup and deleted completely
the directory C:\Development,
I downloaded your last setup as stated in your message 2 hours ago, and I
have not added
I've created a FPC 3.0 and Lazarus 1.4 test installer for Windows. It will
not interfer with any other installations you already may have and is
available for download here:
http://cache.codebot.org/lazarus/setup.exe
I will be creating Debian/Ubuntu and OSX install scripts in a day or two.
I've
I forgot to add that I've built in cross compiler support for x86_64-win64,
i386-linux, x86_64-linux, and arm-android, and the Lazarus environment has
preconfigured builds modes for those targets.
--
___
Lazarus mailing list
Hello all, in our continuing effort to re-energize the Lazarus community,
and reach out to new prospective users, I will be creating a series of
Lazarus case study videos. This first one is posted online here:
http://www.getlazarus.org/videos/reports/
The aim of this initiative is to draw
As a reminder, if you could please use the wiki to make corrections rather
than posting additions or corrections here, my life would be much easier.
And thank you for the feedback.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
Bare Game, a multiple platform class framework around SDL 2.0, is preparing
to release a major new version. To get developers familiar with the project
we've updated github with a few minor fixes before the next release. We've
also created a new walk through with video and code of the old version.
Dmitry: wrong
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
While cleaning up and organizing hard drives and my backups, I was reminded
of this stand alone tool I wrote:
http://cache.getlazarus.org/images/showcase/windows.type.libraries.jpg
It's a program which finds typelibs on your system and converts them to
pascal source code. Does Lazarus need this
Video and example code here:
http://www.getlazarus.org/forums/viewtopic.php?f=18t=37
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
If anyone is interested, I wrote a quick demonstration of one virtual grid
control and the advanced surface rendering interface which are part of
Cross Codebot, a cross platform LGPL Lazarus toolkit.
Here is a video capture of the demonstration running on Ubuntu:
Sure, I'll send you a git account.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
A reminder: Cross Codebot requires FPC fixes_3_0 branch or higher, and the
discussion forum is here:
http://www.getlazarus.org/forums/viewforum.php?f=18
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
Here is a brief overview of some of custom rendering which can be done with
Cross Codebot graphics interfaces. A few videos are embedded in the page
below:
http://www.getlazarus.org/forums/viewtopic.php?f=18t=35p=150#p150
Here is a listing of the interfaces and their methods:
Yeah, that repository is going away. Eventually I'll move this new version
to git hub, after a bit more internal testing. In the meanwhile I'm hosting
a private git server and if anyone wants to test they can send me a request
with their preferred username/password and I'll respond with the git
1 - 100 of 400 matches
Mail list logo