Re: [fpc-pascal] Re: android share library with classes unit

2011-04-13 Thread darekm
> I use this binutils http://www.gnu.org/software/binutils/
> using this command to build crosscompiler
>
> make clean crossinstall CPU_TARGET=arm OS_TARGET=linux
> CROSSBINDIR=/usr/share/fpcsrc/binutils/ OPT="-dFPC_ARMEL -O- -gl"
> CROSSOPT="-dANDROID -CpARMv6 -gl -CfSOFT -O-"

CROSSOPT="-dANDROID -CpARMv6  -dFPC_ARMEL "


I've trace Your debug log.  Bug is on line  where library is loaded.
It seems be corrupted. I always had once more line with absent of dlopen

D/dalvikvm( 1082): Trying to load lib
/data/data/com.herux.hellojni/lib/libhellojni.so 0x44e7ea48

here something with "dlopen", I don't remember exactly.
^^^
I/DEBUG   (   31): *** *** *** *** *** *** *** *** *** *** *** *** *** ***
*** ***


Darek

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


[fpc-pascal] ASM jump parse error

2005-12-17 Thread darekM

Hi
 I've badly submit 4612 bug

Should be:
Title:ASM jump parse error


in Description:

in assembler fastcodemoveunit.pas(214,34)
Error: Unknown identifier "@FWDJUMPTABLE" fastcodemoveunit.pas(256,21)
Error: Local symbols/labels aren't allowed as references F

 in Linux FPC can't compile line:
 jmpdword ptr [EMAIL PROTECTED]
under WIN it pass



sorry.

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


[fpc-pascal] hot pass $LCL_PLATFORM to fpc.cfg from command line

2006-04-20 Thread darekM

Hi
 I want to pass directive from command line to fpc.cfg

 in fpc.cfg I have something like this

-Fu/home/me/project1/units/$LCL_PLATFORM


and I want to compile my program form command line


fpc -dRELEASE myprogram


how setup $LCL_PLATFORM


Darek




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


Re: [fpc-pascal] assigning ansistring with shortstring

2006-05-26 Thread DarekM

L505 napisał(a):

I'm lacking some memory concept here. Below program doesn't work unless 
setlengths
are called first on the shortstrings.

program Project1;

{$mode objfpc}{$H+}

var
  filename: string;
  last3: string[3];
  last4: string[4];
  

this is not short strings
use
last3: shortstring[3];



begin
  filename:= 'test';
  filename:= filename+ 'ing.pas';
  setlength(last3, 3);
  last3[1]:= filename[length(filename)-2];
  last3[2]:= filename[length(filename)-1];
  last3[3]:= filename[length(filename)];
  writeln('debug last3: ' + last3);
  setlength(last4, 4);
  last4[1]:= filename[length(filename)-3];
  last4[2]:= filename[length(filename)-2];
  last4[3]:= filename[length(filename)-1];
  last4[4]:= filename[length(filename)];
  writeln('debug last4: ' + last4);
  readln;
end.


I'd never have thought to use a setlength on a shortstring???




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

  

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


Re: [fpc-pascal] national support

2006-07-26 Thread DarekM

Friš Martin Mgr napisał(a):


I give additional details. I write programs for mathematical 
linguistics. Especially program for frequency dictionary of chosen 
text. I write text to the editor. The text is in Czech. It displays 
correctly in editor window , i.e. with diacritics. Then follows 
transformation into words. In program for frequency diactionary, which 
contains binary search I have usual read and write statements. When I 
send the result to the printer with write it is displayed incorrectly 
on the print output – the diacritics. I am working under Windows |X|P.


What other details should I give for somebody to give me advice.

Martin Fris

-Original Message-
*From:* [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] *On Behalf Of *Friš 
Martin Mgr

*Sent:* Monday, July 10, 2006 2:21 PM
*To:* fpc-pascal@lists.freepascal.org
*Subject:* [fpc-pascal] national support

I am enthusiastic user of Free Pascal. I want ask a question, if there 
in Free Pascal exist the support for national environment. In czech 
there are letters with diacritics. They are not displayed correctly on 
the screen and on the printer. In Windows there is code page 1250 for 
these signs. Is there something in Free pascal?


Martin Fris



Hi
Printing diactrics not depend on FPC only on system and choose code page 
of You.
You can write on printer with the same like on screen. Printer has the 
same canvas. But when You choose font You have to change code page. to 
1250. You can print also in text mode, but then You have to change code 
page manual (its depend on printer). Some times You have to convert text 
form one code page to another (f.e from 8859-2 to 1250 or UTF-8)

Send which method You need, and sample code.


Darek




___
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