Re: [fpc-pascal] http://www.freepascal.org/future.var

2013-06-04 Thread Reinier Olislagers
On 4-6-2013 20:05, Florian Klaempfl wrote: > Am 29.05.2013 06:25, schrieb Reinier Olislagers: >> On 28-5-2013 19:16, Sven Barth wrote: >>> On 28.05.2013 17:41, Reinier Olislagers wrote: Going by the discussions on this mailing list I'm having trouble believing LLVM backend support would b

Re: [fpc-pascal] Placing binary data (resources) in object files?

2013-06-04 Thread Anthony Walter
Yes, it will be. I am working on releasing the next version of my open source game library which. It includes many new features including static linking (no external dependencies, lib sdl2 rc1, lib tesselation, lib openssl on windows, full opengles support, android support is getting closer) which

Re: [fpc-pascal] Placing binary data (resources) in object files?

2013-06-04 Thread luiz americo pereira camara
2013/6/4 Anthony Walter : > I came with a nice solution to all this and thought I'd share... > > I wrote a tool named makeres. Is it open source? Luiz ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listin

Re: [fpc-pascal] Placing binary data (resources) in object files?

2013-06-04 Thread Anthony Walter
I came with a nice solution to all this and thought I'd share... I wrote a tool named makeres. In Lazarus edit the default project configuration adding Compilation | Execute Before | makeres $(CompPath). Then when ever you build/run a project the following happens: * Two directories are created i

Re: [fpc-pascal] http://www.freepascal.org/future.var

2013-06-04 Thread Florian Klaempfl
Am 29.05.2013 06:25, schrieb Reinier Olislagers: On 28-5-2013 19:16, Sven Barth wrote: On 28.05.2013 17:41, Reinier Olislagers wrote: Going by the discussions on this mailing list I'm having trouble believing LLVM backend support would be in the plans. Should this line perhaps be removed. Whe

Re: [fpc-pascal] how to generate Free Pascal program for Open source router OpenWrt?

2013-06-04 Thread Dennis Poon
I did some search and it seems the CPU Atheros used by Netgear is MIPS. I will try to learn how to cross compile into MIPS. If it does not work on the virtual box, I will try to run it directly in the router via ssh. (the virtual box virtual machine image was provided by the OpenWrt web site. Th

Re: [fpc-pascal] how to generate Free Pascal program for Open source router OpenWrt?

2013-06-04 Thread microcode
On Tue, Jun 04, 2013 at 03:09:07PM +, Mark Morgan Lloyd wrote: > Dennis wrote: > >I wrote a free pascal program in ubuntu Linux and wanted to deploy > >it to run in a netgear router through open router firmware > >OpenWrt. > >To test it, I copied the program into a OpenWrt virtualbox virtual >

Re: [fpc-pascal] how to generate Free Pascal program for Open source router OpenWrt?

2013-06-04 Thread Mark Morgan Lloyd
Dennis wrote: I wrote a free pascal program in ubuntu Linux and wanted to deploy it to run in a netgear router through open router firmware OpenWrt. To test it, I copied the program into a OpenWrt virtualbox virtual machine but when I ran it, it said: [ 1891.890545] MyprogramName[1573] general p

[fpc-pascal] how to generate Free Pascal program for Open source router OpenWrt?

2013-06-04 Thread Dennis
I wrote a free pascal program in ubuntu Linux and wanted to deploy it to run in a netgear router through open router firmware OpenWrt. To test it, I copied the program into a OpenWrt virtualbox virtual machine but when I ran it, it said: [ 1891.890545] MyprogramName[1573] general protection ip:bf

Re: [fpc-pascal] Placing binary data (resources) in object files?

2013-06-04 Thread Rainer Stratmann
On Tuesday 04 June 2013 12:16:24 you wrote: > On Monday 03 June 2013 23:49:07 you wrote: > > Jonas, > > > > It's not happening. I have a 700kb image base64 encoded in a file called > > orangesky.res. I never use "procedure TestResource;" and yet the exe is > > 700kb larger. The only way to get r

Re: [fpc-pascal] Placing binary data (resources) in object files?

2013-06-04 Thread Rainer Stratmann
On Monday 03 June 2013 23:49:07 you wrote: > Jonas, > > It's not happening. I have a 700kb image base64 encoded in a file called > orangesky.res. I never use "procedure TestResource;" and yet the exe is > 700kb larger. The only way to get rid of that extra 700k is to delete the > procedure. The s

[fpc-pascal] Re: How to use fpcres?

2013-06-04 Thread Reinier Olislagers
On 3-6-2013 17:27, Graeme Geldenhuys wrote: > Why doesn't FPC have it's own RC (resource) compiler? eg: I can't use > *.rc files in my open source projects like fpGUI because only Windows > releases includes a RC compiler - everybody else will get an error out > of the box. http://bugs.freepascal.

Re: [fpc-pascal] Placing binary data (resources) in object files?

2013-06-04 Thread Graeme Geldenhuys
On 2013-06-03 17:32, Ewald wrote: >> Well, you can obviously use tool bin2obj created with/for FPC and >> > distributed with FPC releases - see fpcsrc/utils/bin2obj.pp. > Seriously? I should really start looking at included tools... I've got > this feeling that it will save me some time. That's h

Re: [fpc-pascal] How to use fpcres?

2013-06-04 Thread Graeme Geldenhuys
On 2013-06-03 16:11, silvioprog wrote: > > This is my RC content (tablebuilder.rc): > > SCRIPT_POSTGRESQL RCDATA "..\..\script\sql\postgresql.sql" > > But when I try to compile it: A very common mistake I have seen 100's of times... fpcres is NOT a resource compiler. FPC really should have the

Re: [fpc-pascal] How to use fpcres?

2013-06-04 Thread Graeme Geldenhuys
On 2013-06-03 16:15, Giulio Bernardi wrote: > You need windres for that. Fpcres compiles a .res file into an object file. Why doesn't FPC have it's own RC (resource) compiler? eg: I can't use *.rc files in my open source projects like fpGUI because only Windows releases includes a RC compiler - ev