Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Jonas Maebe


On 06 Apr 2009, at 22:08, Marco van de Voort wrote:


Oops I apparantly looked at outdated docs (on scenergy):

http://www.freepascal.org/docs-html/prog/progsu59.html#x66-640001.1.59


That documentation is not really complete. The supported settings are:
* FIXED, DEFAULT, NORMAL: the default behaviour, and behaves as  
described in the docs.
* 1, 2, 4: the set size depends on both the low and high value of the  
set element type (e.g., a set of 16..23 will be 1 byte in case of  
{$packset 1}), with
a) the lower bound rounded down to a multiple of the packset setting  
expressed in bits
b) the upper bound rounded up to 'a multiple of the packset setting  
(in bits)' minus 1 (e.g., 24 is a multiple of 8 bits in the above  
example -> -1 = 23)
c) if the set size would be 3 bytes after the above calculation, it's  
changed to 4 bytes
d) if the set size would be greater than 4 bytes after the above  
calculation, it's changed to 32 bytes.
* {$packset 8} is also supported, but kind of nonsensical in the  
current implementation (will always be rounded up to 32 byte, since  
the set size will always be > 4).



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread dmitry boyarintsev
> Oops I apparantly looked at outdated docs (on scenergy):
>
> http://www.freepascal.org/docs-html/prog/progsu59.html#x66-640001.1.59

Thanks so much!
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Marco van de Voort
In our previous episode, dmitry boyarintsev said:
> > No, not that I know.
> sets are always 32-bit size?

Oops I apparantly looked at outdated docs (on scenergy):

http://www.freepascal.org/docs-html/prog/progsu59.html#x66-640001.1.59


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread dmitry boyarintsev
> No, not that I know.
sets are always 32-bit size?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Marco van de Voort
In our previous episode, dmitry boyarintsev said:
> > Have a look at $packenum btw if you go that way.
> what's the reason? i guess it's not to be used for streaming operation.

Well, you never know. Shared memory is another possibility btw.

> btw, is there $packsets? (for sets aligment?)

No, not that I know.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread dmitry boyarintsev
> Have a look at $packenum btw if you go that way.
what's the reason? i guess it's not to be used for streaming operation.

btw, is there $packsets? (for sets aligment?)

thanks,
dmitry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said:
> >
> > TGraemeBoolean = (gbNull = -1, gbFalse = 0, gbTrue =1);
> >
> > function dbBool(g: TGrameBoolean): Boolean; inline;
> > function dbAssigned(gTGrameBoolean): Boolean; inline;
> 
> Dope! Now why didn't I think of that. :-)  Thank you very much!

Have a look at $packenum btw if you go that way.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] LTR or RTL info from users locale settings?

2009-04-06 Thread ik
On Mon, Apr 6, 2009 at 9:15 PM, Graeme Geldenhuys
wrote:

> On Mon, Apr 6, 2009 at 7:30 PM, ik  wrote:
> > No, you can not know by the "normal" locale. You must check to see what
> is
> > the type of locale:
> > 1. Hebrew
> > 2. Many forms of Arabic (you have more then 6 if I remember correctly)
> >
> > That's the only way I know to detect if the locale is RightToLeft or
> > LeftToRight.
>
> Thanks. I'll double check what Java does, seeing that that is the only
> other framework I know that supports so many platforms and has the
> direction detection built in.


Java supports all of Unicode's standards, so they also implement Bidi (I
hope one day fpGUI will also support it in a native form)


>
>
>
> > I started working on something for Lazarus but I accidently deleted it
> > before backup,
>
> Git [http://git-scm.com/] is your friend!  ;-)
>
>
> Regards,
>  - Graeme -
>
>
> ___
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Graeme Geldenhuys
On Mon, Apr 6, 2009 at 7:33 PM, dmitry boyarintsev
 wrote:
>
> TGraemeBoolean = (gbNull = -1, gbFalse = 0, gbTrue =1);
>
> function dbBool(g: TGrameBoolean): Boolean; inline;
> function dbAssigned(gTGrameBoolean): Boolean; inline;

Dope! Now why didn't I think of that. :-)  Thank you very much!

Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] LTR or RTL info from users locale settings?

2009-04-06 Thread Graeme Geldenhuys
On Mon, Apr 6, 2009 at 7:30 PM, ik  wrote:
> No, you can not know by the "normal" locale. You must check to see what is
> the type of locale:
> 1. Hebrew
> 2. Many forms of Arabic (you have more then 6 if I remember correctly)
>
> That's the only way I know to detect if the locale is RightToLeft or
> LeftToRight.

Thanks. I'll double check what Java does, seeing that that is the only
other framework I know that supports so many platforms and has the
direction detection built in.


> I started working on something for Lazarus but I accidently deleted it
> before backup,

Git [http://git-scm.com/] is your friend!  ;-)


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread dmitry boyarintsev
> TGraemeBoolean = (gbNull, gbTrue, gbFalse);

imho, gbFalse should come before gbTrue.

how about that?

interface

TGraemeBoolean = (gbNull = -1, gbFalse = 0, gbTrue =1);

function dbBool(g: TGrameBoolean): Boolean; inline;
function dbAssigned(gTGrameBoolean): Boolean; inline;

implementation

function dbBool(g: TGrameBoolean): Boolean; inline;
begin
  Result := g <> gbFalse;
end;

function dbAssigned(gTGrameBoolean): Boolean; inline;
begin
  Result := g <> gbNil;
end;
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] LTR or RTL info from users locale settings?

2009-04-06 Thread ik
No, you can not know by the "normal" locale. You must check to see what is
the type of locale:
1. Hebrew
2. Many forms of Arabic (you have more then 6 if I remember correctly)

That's the only way I know to detect if the locale is RightToLeft or
LeftToRight.
I started working on something for Lazarus but I accidently deleted it
before backup, so you'll have to do your own research (wikipedia and some
ISO language code will help).

Ido


On Mon, Apr 6, 2009 at 8:17 PM, Graeme Geldenhuys
wrote:

> Hi,
>
> Does the RTL have any why to notify me if the users locale is
> LeftToRight or RightToLeft? I'm porting the MiG Layout Manager from
> Java to Free Pascal for use with fpGUI Toolkit and Lazarus LCL, and
> need to somehow find this information.
>
>
> Regards,
>  - Graeme -
>
>
> ___
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread dmitry boyarintsev
oh sorry, by i've missprinted prefixes:
type
 TGraemeBoolean = (gbNil, gbFalse, gbTrue);

// gb prefix stands for Greame Boolean
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Mattias Gaertner
On Mon, 6 Apr 2009 19:21:50 +0200
Graeme Geldenhuys  wrote:

> Hi,
> 
> I need a "new" boolean type in my applications that support three
> values. True, False and Null.  Null value means undefined and has
> various uses and gets handled differently to True or False.  Is this
> possible in Free Pascal?

TGraemeBoolean = (gbNull, gbTrue, gbFalse);

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread dmitry boyarintsev
type
  TGraemeBoolean = (dbNil, dbFalse, dbTrue);
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Can I define a custom "simple" type for my applications?

2009-04-06 Thread Graeme Geldenhuys
Hi,

I need a "new" boolean type in my applications that support three
values. True, False and Null.  Null value means undefined and has
various uses and gets handled differently to True or False.  Is this
possible in Free Pascal?


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] LTR or RTL info from users locale settings?

2009-04-06 Thread Graeme Geldenhuys
Hi,

Does the RTL have any why to notify me if the users locale is
LeftToRight or RightToLeft? I'm porting the MiG Layout Manager from
Java to Free Pascal for use with fpGUI Toolkit and Lazarus LCL, and
need to somehow find this information.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Graeme Geldenhuys
On Mon, Apr 6, 2009 at 4:32 PM, Michael Van Canneyt
 wrote:
>
> Maybe we finally stumbled on Neo.
> There could even be a white rabbit somewhere hidden in the site :-)


:-)  I wonder how Google would index that?


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread Benedikt Schindler

Hi,

i also try to get free pascal running on my freerunner.
i needed many tries to get a running ppcarm for my device.
(In reality i didn't know why it worked in the last run ... but it did, 
and so i don't ask :) )


now i let the freerunner recompile the hole fpcbuild.
But that could take some time. ... you know how fast our devices are :)
i hope that all things will work well after that .

i used these compiler options :  OPT="-dFPC_ARMEL -O- -dFPC_ABI_EABI"  
NOGDB=1


i tell you if it works or not.
it could just be hours from now :)

Have you cross compiled the hole free pascal or just the ppcarm?

you should be able to crosscompile the "hello" programm by using the 
"crossppcarm" compiler on your normal machine.

(And don't forget to use "-dFPC_ARMEL -O- -dFPC_ABI_EABI".)

Beni

ik schrieb:


On Mon, Apr 6, 2009 at 4:26 PM, Jonas Maebe > wrote:



On 06 Apr 2009, at 15:15, ik wrote:

I tried to create an Hello World program in OpenMoko (after
creating arm
fpc). When I try to compile it, ld gives the following error
message:

/usr/bin/ld: ERROR: Source object
/usr/lib/fpc/2.3.1/units/arm-linux/rtl/system.o has EABI
version 0, but
target hello has EABI version 4


See http://bugs.freepascal.org/view.php?id=13454 for some flags
you have to use, and a patch that you can try. And note that
ARMEL/EABI is very much untested.


I can see that, now I have segfult ... Is there a way to do a real 
cross compile, that is to be in a normal environment and just make the 
result set to ARM EABI ?


And any of you wish, I can give ssh access to my Moko (when it is 
booted to the microsd) to test FPC on ARM EABI better, or help me 
understand how to test it myself, and might even fix/add things.


 





Jonas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org

http://lists.freepascal.org/mailman/listinfo/fpc-pascal



Thanks,
Ido


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Doug Chamberlin

Graeme Geldenhuys wrote:

On Mon, Apr 6, 2009 at 4:54 PM, Oliver Leitner  wrote:

Oh man, finally a design that is impressing me=)


:-)  I must say, that is a very unique web page - I haven't see such a
design yet.


Yeah, I think I'll copy it before he gets it patented! :0 heh, heh!
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Michael Van Canneyt


On Mon, 6 Apr 2009, Graeme Geldenhuys wrote:

> On Mon, Apr 6, 2009 at 4:54 PM, Oliver Leitner  wrote:
> > Oh man, finally a design that is impressing me=)
> 
> 
> :-)  I must say, that is a very unique web page - I haven't see such a
> design yet.

Maybe we finally stumbled on Neo. 
There could even be a white rabbit somewhere hidden in the site :-)

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Graeme Geldenhuys
On Mon, Apr 6, 2009 at 4:54 PM, Oliver Leitner  wrote:
> Oh man, finally a design that is impressing me=)


:-)  I must say, that is a very unique web page - I haven't see such a
design yet.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Oliver Leitner
Oh man, finally a design that is impressing me=)

On Mon, Apr 6, 2009 at 4:52 PM, Doug Chamberlin
 wrote:
> Graeme Geldenhuys wrote:
>>
>> http://www.jwz.org/
>
> What a great idea! Made my day!
> ___
> fpc-pascal maillist  -  fpc-pas...@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



-- 
Oliver Leitner
http://www.neverslair-blog.net
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Doug Chamberlin

Graeme Geldenhuys wrote:

http://www.jwz.org/


What a great idea! Made my day!
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] A real programmers website

2009-04-06 Thread Graeme Geldenhuys
I was Google'ing for information on the "mbox" mail format and came
across this website. Website links are embedding in what you see...
:-)

http://www.jwz.org/


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Typed Constants vs. Variables

2009-04-06 Thread Richard Ward

Jonas wrote:

b) conversely, initialized variables are initialized every time their  
scope is activated (or whatever the proper term for that is: once in  
case they are declared in a program/unit scope, and every time a  
function/procedure is entered if they are declared locally in a routine)


---

Thanks for this explicit clarification.   This was the bit of  
information which was not getting through to me before.


Francisco,

In FPC, there are two types of constants:   ordinary and typed.

"Ordinary" constants are what you were thinking of while "typed"  
constants act a bit differently as Jonas and lele wrote.   My  
confusion was that typed constants and initialized variables seemed to  
me to behave exactly the same - that is, acted like variables - until  
I learned the subtle difference in (b) above.   Although I can  
appreciate why the term "typed constant" was selected for such a  
language feature, it was confusing to me since I tend to think of  
constants as being "constant" and one has to be careful in realizing  
the difference lest things don't work the way as one might expect.  -  
ROW

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread ik
On Mon, Apr 6, 2009 at 4:26 PM, Jonas Maebe wrote:

>
> On 06 Apr 2009, at 15:15, ik wrote:
>
>  I tried to create an Hello World program in OpenMoko (after creating arm
>> fpc). When I try to compile it, ld gives the following error message:
>>
>> /usr/bin/ld: ERROR: Source object
>> /usr/lib/fpc/2.3.1/units/arm-linux/rtl/system.o has EABI version 0, but
>> target hello has EABI version 4
>>
>
> See http://bugs.freepascal.org/view.php?id=13454 for some flags you have
> to use, and a patch that you can try. And note that ARMEL/EABI is very much
> untested.


I can see that, now I have segfult ... Is there a way to do a real cross
compile, that is to be in a normal environment and just make the result set
to ARM EABI ?

And any of you wish, I can give ssh access to my Moko (when it is booted to
the microsd) to test FPC on ARM EABI better, or help me understand how to
test it myself, and might even fix/add things.



>
>
>
> Jonas
>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>


Thanks,
Ido
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread Jonas Maebe


On 06 Apr 2009, at 15:15, ik wrote:

I tried to create an Hello World program in OpenMoko (after creating  
arm

fpc). When I try to compile it, ld gives the following error message:

/usr/bin/ld: ERROR: Source object
/usr/lib/fpc/2.3.1/units/arm-linux/rtl/system.o has EABI version 0,  
but

target hello has EABI version 4


See http://bugs.freepascal.org/view.php?id=13454 for some flags you  
have to use, and a patch that you can try. And note that ARMEL/EABI is  
very much untested.



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread ik
No, doing it now

Thanks

Ido

On Mon, Apr 6, 2009 at 4:26 PM, Henry Vermaak wrote:

> 2009/4/6 ik :
> > Hello,
> >
> > I tried to create an Hello World program in OpenMoko (after creating arm
> > fpc). When I try to compile it, ld gives the following error message:
> >
> > /usr/bin/ld: ERROR: Source object
> > /usr/lib/fpc/2.3.1/units/arm-linux/rtl/system.o has EABI version 0, but
> > target hello has EABI version 4
> >
> > I compile it as follows:
> > /usr/lib/fpc/2.3.1/ppcarm -O- hello.pp
> >
> > Should I define another flag as well ?
>
> have you built the compiler and rtl with -dFPC_ARMEL?
>
> henry
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread Henry Vermaak
2009/4/6 ik :
> Hello,
>
> I tried to create an Hello World program in OpenMoko (after creating arm
> fpc). When I try to compile it, ld gives the following error message:
>
> /usr/bin/ld: ERROR: Source object
> /usr/lib/fpc/2.3.1/units/arm-linux/rtl/system.o has EABI version 0, but
> target hello has EABI version 4
>
> I compile it as follows:
> /usr/lib/fpc/2.3.1/ppcarm -O- hello.pp
>
> Should I define another flag as well ?

have you built the compiler and rtl with -dFPC_ARMEL?

henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] EABI problems with FPC

2009-04-06 Thread ik
Hello,

I tried to create an Hello World program in OpenMoko (after creating arm
fpc). When I try to compile it, ld gives the following error message:

/usr/bin/ld: ERROR: Source object
/usr/lib/fpc/2.3.1/units/arm-linux/rtl/system.o has EABI version 0, but
target hello has EABI version 4

I compile it as follows:
/usr/lib/fpc/2.3.1/ppcarm -O- hello.pp

Should I define another flag as well ?

Thanks,
Ido
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread Vincent Snijders

ik schreef:

Hello,

I'm trying to create a cross compile to arm-linux.
I made the following execution:

fpcmake -Tarm-linux -v


Why do you regenerate the makefile? Makefiles from svn support all targets the 
compiler can handle.



When I try to use make (even without any parameters) it returns me the
following error message:
Makefile:186: *** The Makefile doesn't support target x86_64-linux, please
run fpcmake first.  Stop.



You removed support for the host target in the makefile.


My machine is x86_64 (Arch Linux).
What am I missing or doing wrong here ?



Vincent
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Generating code form xmi files

2009-04-06 Thread Johann Glaser
Hi!

Am Sonntag, den 05.04.2009, 21:47 -0700 schrieb leledumbo:
> Err... how to use this codegen thing? Do I need to run it over Dia generated
> diagrams or what? Sorry, I don't understand Python.

Replace the installed codegen.py file by the one at the mentioned URL
below. Then delete codegen.pyc (its "compiled"). You can run
"py_compilefiles codegen.py" to create a new compiled version.

If you restart Dia with the new file, in the File->Export menu you get
an additional export type "Pascal".

Bye
  Hansi


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread ik
http://ik.homelinux.org/


On Mon, Apr 6, 2009 at 11:25 AM, Jonas Maebe wrote:

>
> On 06 Apr 2009, at 10:16, ik wrote:
>
>  Followed the instructions. Now if I try to do the following:
>> make MAKEFILETARGETS=arm-linux all
>>
>> It still gives me the following error:
>> Makefile:197: *** The Makefile doesn't support target x86_64-linux, please
>> run fpcmake first.  Stop.
>>
>> Without MAKEFILETARGETS it does works.
>>
>
> That's probably because this MAKEFILETARGETS tells the makefile to
> regenerate all makefiles only for arm-linux.
>
>  So how can I cross compile fpc to arm in Linux (I have the linker etc..
>> for
>> arm) ?
>>
>
> make CPU_TARGET=arm OS_TARGET=linux all



Now I understand, at first when I did it like that I saw x86_64, now I
reread the output better.


>
>
> See 
> http://www.stack.nl/~marcov/buildfaq.pdffor
>  more information.
>
>
>
> Jonas
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>


Thanks,

Ido
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread Jonas Maebe


On 06 Apr 2009, at 10:16, ik wrote:


Followed the instructions. Now if I try to do the following:
make MAKEFILETARGETS=arm-linux all

It still gives me the following error:
Makefile:197: *** The Makefile doesn't support target x86_64-linux,  
please

run fpcmake first.  Stop.

Without MAKEFILETARGETS it does works.


That's probably because this MAKEFILETARGETS tells the makefile to  
regenerate all makefiles only for arm-linux.


So how can I cross compile fpc to arm in Linux (I have the linker  
etc.. for

arm) ?


make CPU_TARGET=arm OS_TARGET=linux all

See http://www.stack.nl/~marcov/buildfaq.pdf for more information.


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread ik
On Mon, Apr 6, 2009 at 11:07 AM, Jonas Maebe wrote:

>
> On 06 Apr 2009, at 10:00, ik wrote:
>
>  I'm trying to create a cross compile to arm-linux.
>> I made the following execution:
>>
>> fpcmake -Tarm-linux -v
>>
>
> Use this instead:
>  fpcmake -Tall
>
> Why are you regenerating the makefiles anyway? They already should contain
> support for all supported platforms.


Followed the instructions. Now if I try to do the following:
make MAKEFILETARGETS=arm-linux all

It still gives me the following error:
Makefile:197: *** The Makefile doesn't support target x86_64-linux, please
run fpcmake first.  Stop.

Without MAKEFILETARGETS it does works.

So how can I cross compile fpc to arm in Linux (I have the linker etc.. for
arm) ?



>
>
>
> Jonas
>

Ido
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread Jonas Maebe


On 06 Apr 2009, at 10:00, ik wrote:


I'm trying to create a cross compile to arm-linux.
I made the following execution:

fpcmake -Tarm-linux -v


Use this instead:
  fpcmake -Tall

Why are you regenerating the makefiles anyway? They already should  
contain support for all supported platforms.



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread ik
Hello,

I'm trying to create a cross compile to arm-linux.
I made the following execution:

fpcmake -Tarm-linux -v
FPCMake Version 2.0.0 [2009/02/20]
Processing Makefile.fpc
 Targets: "arm-linux"
 Globals:
FPCDIR = "."
PACKAGESDIR = "$(FPCDIR)/packages $(FPCDIR)/packages/base
$(FPCDIR)/packages/extra $(FPCDIR)/packages"
UNITSDIR = "$(FPCDIR)/units/$(FULLTARGET)"
BASEDIR = "/_/programming/fpc/fpc"
 Required packages for linux-arm:
 Required dirs for arm-linux: compiler rtl utils packages ide installer
   Subdir: compiler/Makefile.fpc
   Subdir: rtl/Makefile.fpc
   Subdir: utils/Makefile.fpc
   Subdir: packages/Makefile.fpc
   Subdir: ide/Makefile.fpc
   Subdir: installer/Makefile.fpc
 arm-linux requires:
 Writing Makefile

When I try to use make (even without any parameters) it returns me the
following error message:
Makefile:186: *** The Makefile doesn't support target x86_64-linux, please
run fpcmake first.  Stop.

My machine is x86_64 (Arch Linux).
What am I missing or doing wrong here ?

Thanks,
Ido
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal