[Lazarus] A viable munity of the devkitpro

2015-03-12 Thread year0097ic

 
Wii make new "GNU GCC/G++" for Nintendo, Mr. doesn't ... a Pascal  compiler
  
libctru c headers translation too Free-Pascal,   R&D double dutch

  



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/A-viable-munity-of-the-devkitpro-tp4041137.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Someone help built qt4pas.dll for win64

2015-03-12 Thread zeljko

On 03/11/2015 03:35 PM, zeljko wrote:

On 03/11/2015 12:44 PM, FreeMan wrote:

I attached, all errors outputs. system is win8 x64
can some one help what is wrong or how to do build qt4pas5.dll x64?
Thank you.


Add -fpermissive to gcc so it should compile then. In that case such
errors will become warnings (something like range check on/off in fpc).


QMAKE_CXXFLAGS += -fpermissive should be added to the Qt4Pas.pro

zeljko



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread aradeonas
Its my mail service,I will delete replies but still my problem doesn't
solve.

Thank you for your helps,
Ara

-- 
http://www.fastmail.com - IMAP accessible web-mail


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread Graeme Geldenhuys
FYI: Your previous message was 72 lines of quotes and 2 lines of new
content. That is ± 97% waisted space.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread Graeme Geldenhuys
On 2015-03-12 16:26, Lukasz Sokol wrote:
> Please avoid top-posting unless you have a grave reason for it 
> (like screen reader requirement).

And the old one that NOBODY adheres too Please trim unnecessary
quotes - it takes all of ONE SECOND. It's wasting valuable time for the
reader having to scroll pages and pages just to find a one line reply.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread Lukasz Sokol
Please avoid top-posting unless you have a grave reason for it 
(like screen reader requirement).

On 12/03/15 15:56, aradeonas wrote:
> I'm still don't get how  cast interface in Lazarus.
> 
> Regards,
> Ara
> 

I think (I'm a noob here too)
what Marcos, Michael and Graeme want to say, is

- first declare Interfaces, inheriting from those you want,

(namely IVideoFile, IAudioFile with appropriate get/set methods)

- then make IFile inherit from the above and from IUnknown, not the other way 
round

(hope I got that right /)  )

el es

> On Thu, Mar 12, 2015, at 05:56 AM, aradeonas wrote:
>> I can get what you mean,Can you explain more?
>> For example when I want to store video and audio in one list how can I
>> do that?
>>
>> Regards,
>> Ara
>>
>> On Thu, Mar 12, 2015, at 05:42 AM, Graeme Geldenhuys wrote:
>>> On 2015-03-12 12:35, Michael Van Canneyt wrote:
 Your problem is that you mix an interface with a non-interface approach.
>>>
>>> +1
>>> And my thought from the beginning.
>>>
>>> Regards,
>>>   - Graeme -
>>>
>>> -- 
>>> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
>>> http://fpgui.sourceforge.net/
>>>
>>> --
>>> ___
>>> Lazarus mailing list
>>> Lazarus@lists.lazarus.freepascal.org
>>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>> -- 
>> http://www.fastmail.com - A no graphics, no pop-ups email service
>>
>>
>> --
>> ___
>> Lazarus mailing list
>> Lazarus@lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> 



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread aradeonas
So then how can I add them in a list?In the end I want add video and
audio files in one list together.

Regards,
Ara

On Thu, Mar 12, 2015, at 09:26 AM, Lukasz Sokol wrote:
> Please avoid top-posting unless you have a grave reason for it 
> (like screen reader requirement).
> 
> On 12/03/15 15:56, aradeonas wrote:
> > I'm still don't get how  cast interface in Lazarus.
> > 
> > Regards,
> > Ara
> > 
> 
> I think (I'm a noob here too)
> what Marcos, Michael and Graeme want to say, is
> 
> - first declare Interfaces, inheriting from those you want,
> 
> (namely IVideoFile, IAudioFile with appropriate get/set methods)
> 
> - then make IFile inherit from the above and from IUnknown, not the other
> way round
> 
> (hope I got that right /)  )
> 
> el es
> 
> > On Thu, Mar 12, 2015, at 05:56 AM, aradeonas wrote:
> >> I can get what you mean,Can you explain more?
> >> For example when I want to store video and audio in one list how can I
> >> do that?
> >>
> >> Regards,
> >> Ara
> >>
> >> On Thu, Mar 12, 2015, at 05:42 AM, Graeme Geldenhuys wrote:
> >>> On 2015-03-12 12:35, Michael Van Canneyt wrote:
>  Your problem is that you mix an interface with a non-interface approach.
> >>>
> >>> +1
> >>> And my thought from the beginning.
> >>>
> >>> Regards,
> >>>   - Graeme -
> >>>
> >>> -- 
> >>> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> >>> http://fpgui.sourceforge.net/
> >>>
> >>> --
> >>> ___
> >>> Lazarus mailing list
> >>> Lazarus@lists.lazarus.freepascal.org
> >>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> >>
> >> -- 
> >> http://www.fastmail.com - A no graphics, no pop-ups email service
> >>
> >>
> >> --
> >> ___
> >> Lazarus mailing list
> >> Lazarus@lists.lazarus.freepascal.org
> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> > 
> 
> 
> 
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-- 
http://www.fastmail.com - Accessible with your email software
  or over the web


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread aradeonas
I'm still don't get how  cast interface in Lazarus.

Regards,
Ara

On Thu, Mar 12, 2015, at 05:56 AM, aradeonas wrote:
> I can get what you mean,Can you explain more?
> For example when I want to store video and audio in one list how can I
> do that?
> 
> Regards,
> Ara
> 
> On Thu, Mar 12, 2015, at 05:42 AM, Graeme Geldenhuys wrote:
> > On 2015-03-12 12:35, Michael Van Canneyt wrote:
> > > Your problem is that you mix an interface with a non-interface approach.
> > 
> > +1
> > And my thought from the beginning.
> > 
> > Regards,
> >   - Graeme -
> > 
> > -- 
> > fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> > http://fpgui.sourceforge.net/
> > 
> > --
> > ___
> > Lazarus mailing list
> > Lazarus@lists.lazarus.freepascal.org
> > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> 
> -- 
> http://www.fastmail.com - A no graphics, no pop-ups email service
> 
> 
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-- 
http://www.fastmail.com - The way an email service should be


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to get Lazarus on Odroid U3 with Ubuntu 14.04 to work ?

2015-03-12 Thread Corpsman
Well i tried with fbset -depth 24

same result see below :

odroid@odroid:~/development/lazarus$ fbset 

mode "1280x1024"
geometry 1280 1024 1280 3072 24
timings 0 0 0 0 0 0 0
accel true
rgba 8/16,8/8,8/0,0/0
endmode

and in Lazarus when showing the "about" screen

(lazarus:10115): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a 
drawable with depth 32

(lazarus:10115): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a 
drawable with depth 32

(lazarus:10115): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a 
drawable with depth 32

(lazarus:10115): GLib-CRITICAL **: Source ID 1592 was not found when attempting 
to remove it

(lazarus:10115): GLib-CRITICAL **: Source ID 1591 was not found when attempting 
to remove it
LAZARUS END - cleaning up ...
[TMainIDE.Destroy] A 
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
[TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE
[TMainIDE.Destroy] END




-Ursprüngliche Nachricht-
Gesendet: Thursday, 12 March 2015 um 10:05:52 Uhr
Von: "Marc Weustink" 
An: "Lazarus mailing list" 
Betreff: Re: [Lazarus] How to get Lazarus on Odroid U3 with Ubuntu 14.04 to 
work ?
Corpsman wrote:
 > Hello Mailinglist,
>
> Is there someone who got lazarus (doesn't matter which version) to work
> under Ubuntu 14.04 on a Odroid U3 ?
>
> I tried this in several ways, unfortunatunelly without success. The core
> problem seems to be in the GTK2 api (i don't need especially gtk2 but qt
> did not work as well).
>
> i try :
> Installing a fresh 14.04 Image, using the lazarus fpc from the packet
> manager -> all icons in the ide are broken (invisible) if the ide is
> started from a console it writes something like "try to write 24-bit on
> a 32-bit canvas..)

This is the key to the problem.
Using different fpc version, different Lazarus versions, different 
Ubuntu version won't help.

When drawing images on gtk, lazarus has to use the same pixeldepth as 
your X server. gtk won't do any conversion, except for 32 bit. Usually 
drawing 24 bit images on 32 bit X is also OK.
In your case not. The only thing you can do is reducing the pixeldepth 
of your X server.

Marc


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread aradeonas
I can get what you mean,Can you explain more?
For example when I want to store video and audio in one list how can I
do that?

Regards,
Ara

On Thu, Mar 12, 2015, at 05:42 AM, Graeme Geldenhuys wrote:
> On 2015-03-12 12:35, Michael Van Canneyt wrote:
> > Your problem is that you mix an interface with a non-interface approach.
> 
> +1
> And my thought from the beginning.
> 
> Regards,
>   - Graeme -
> 
> -- 
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://fpgui.sourceforge.net/
> 
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-- 
http://www.fastmail.com - A no graphics, no pop-ups email service


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread Graeme Geldenhuys
On 2015-03-12 12:35, Michael Van Canneyt wrote:
> Your problem is that you mix an interface with a non-interface approach.

+1
And my thought from the beginning.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread Marcos Douglas
On Thu, Mar 12, 2015 at 9:28 AM, aradeonas  wrote:
> Here an example for you:
>
> type
>
>
> { IFile }
>
> IFile = interface
> function GetName: string;
> procedure SetName(AValue: string);
> property Name: string read GetName write SetName;
> end;
>
> TFileList=specialize TFPGList;
>
>
> { TVideoFile }
>
> TVideoFile = class(TInterfacedPersistent, IFile)
> private
> FName: string;
> FWidth: integer;
> function GetName: string;
> procedure SetName(AValue: string);
> public
> property Name: string read GetName write SetName;
> property Width: integer read FWidth write FWidth;
> end;
> { TAudioFile }
>
> TAudioFile = class(TInterfacedPersistent, IFile)
> private
> FName: string;
> FArtist: string;
> function GetName: string;
> procedure SetName(AValue: string);
> public
> property Name: string read GetName write SetName;
> property Artist: string read FArtist write FArtist;
> end;
>
> var
> Form1: TForm1;
>
> implementation
>
> {$R *.lfm}
>
> { TAudioFile }
>
> function TAudioFile.GetName: string;
> begin
> Result:=FName;
> end;
>
> procedure TAudioFile.SetName(AValue: string);
> begin
> FName:=AValue;
> end;
>
> { TVideoFile }
>
> function TVideoFile.GetName: string;
> begin
> Result:=FName;
> end;
>
> procedure TVideoFile.SetName(AValue: string);
> begin
> FName:=AValue;
> end;
>
>
> { TForm1 }
>
> procedure TForm1.FormCreate(Sender: TObject);
> var
> V1,V2:TVideoFile;
> A1,A2:TAudioFile;
> Fl:TFileList;
> begin
> Fl:=TFileList.Create;
> V1:=TVideoFile.Create;
> V1.Name:='V';
> V1.Width:=100;
> A1:=TAudioFile.Create;
> A1.Name:='A';
> A1.Artist:='Art';
> FL.Add(V1);
> FL.Add(A1);
> V2:=TVideoFile(FL.Items[0]);
> A2:=TAudioFile(Fl.Items[1]);
> ShowMessage(V2.Name);
> ShowMessage(A2.Name);
> end;
>
>
> What you think?

For do that, you do not need interface... but if you still continues
using IFile for others reasons, the better use when we work using
interfaces, is using variables that have the type of these interfaces.

Regards,
Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread Michael Van Canneyt



On Thu, 12 Mar 2015, aradeonas wrote:


Here an example for you:
 
type
 
  { IFile }
 
IFile = interface
function GetName: string;
procedure SetName(AValue: string);
property Name: string read GetName write SetName;
end;
 
TFileList=specialize TFPGList;
 
 
{ TVideoFile }
 
TVideoFile = class(TInterfacedPersistent, IFile)
private
FName: string;
FWidth: integer;
function GetName: string;
procedure SetName(AValue: string);
public
property Name: string read GetName write SetName;
property Width: integer read FWidth write FWidth;
end;


You should make IVideofile with GetIWidth and so on.


{ TAudioFile }
 
TAudioFile = class(TInterfacedPersistent, IFile)
private
FName: string;
FArtist: string;
function GetName: string;
procedure SetName(AValue: string);
public
property Name: string read GetName write SetName;
property Artist: string read FArtist write FArtist;
end;


Here you should make IAudioFile with GetArtist and so on.


 
var
Form1: TForm1;
 
implementation
 
{$R *.lfm}
 
{ TAudioFile }
 
function TAudioFile.GetName: string;
begin
Result:=FName;
end;
 
procedure TAudioFile.SetName(AValue: string);
begin
FName:=AValue;
end;
 
{ TVideoFile }
 
function TVideoFile.GetName: string;
begin
Result:=FName;
end;
 
procedure TVideoFile.SetName(AValue: string);
begin
FName:=AValue;
end;
 
 
{ TForm1 }
 
procedure TForm1.FormCreate(Sender: TObject);
var
V1,V2:TVideoFile;
A1,A2:TAudioFile;
Fl:TFileList;
begin
Fl:=TFileList.Create;
V1:=TVideoFile.Create;
V1.Name:='V';
V1.Width:=100;
A1:=TAudioFile.Create;
A1.Name:='A';
A1.Artist:='Art';
FL.Add(V1);
FL.Add(A1);
V2:=TVideoFile(FL.Items[0]);
A2:=TAudioFile(Fl.Items[1]);
ShowMessage(V2.Name);
ShowMessage(A2.Name);
end;

 
What you think?


If you use interfaces all the way as suggested above, you can get one interface, 
and then query for the others as well with the IUnknown interface. then there is no need to access the objects.


Your problem is that you mix an interface with a non-interface approach.

Michael.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread aradeonas

Here an example for you:

type

> { IFile }
>
> IFile = interface function GetName: string; procedure SetName(AValue:
> string); property Name: string read GetName write SetName; end;
>
> TFileList=specialize TFPGList;
>
>
> { TVideoFile }
>
> TVideoFile = class(TInterfacedPersistent, IFile) private FName:
> string; FWidth: integer; function GetName: string; procedure
> SetName(AValue: string); public property Name: string read GetName
> write SetName; property Width: integer read FWidth write FWidth; end;
> { TAudioFile }
>
> TAudioFile = class(TInterfacedPersistent, IFile) private FName:
> string; FArtist: string; function GetName: string; procedure
> SetName(AValue: string); public property Name: string read
> GetName write SetName; property Artist: string read FArtist write
> FArtist; end;
>
> var Form1: TForm1;
>
> implementation
>
> {$R *.lfm}
>
> { TAudioFile }
>
> function TAudioFile.GetName: string; begin Result:=FName; end;
>
> procedure TAudioFile.SetName(AValue: string); begin
> FName:=AValue; end;
>
> { TVideoFile }
>
> function TVideoFile.GetName: string; begin Result:=FName; end;
>
> procedure TVideoFile.SetName(AValue: string); begin
> FName:=AValue; end;
>
>
> { TForm1 }
>
> procedure TForm1.FormCreate(Sender: TObject); var V1,V2:TVideoFile;
> A1,A2:TAudioFile; Fl:TFileList; begin Fl:=TFileList.Create;
> V1:=TVideoFile.Create; V1.Name:='V'; V1.Width:=100;
> A1:=TAudioFile.Create;
> A1.Name:='A';
> A1.Artist:='Art'; FL.Add(V1); FL.Add(A1); V2:=TVideoFile(FL.Items[0]);
> A2:=TAudioFile(Fl.Items[1]); ShowMessage(V2.Name);
>ShowMessage(A2.Name); end;

What you think?

Ara

On Thu, Mar 12, 2015, at 05:26 AM, Marcos Douglas wrote:
> On Thu, Mar 12, 2015 at 8:39 AM, aradeonas
>  wrote:
> >
> > For example I have interface for filetypes that have type,size,name
> > but have class for video,audio and picture and I want to add them in
> > the list and then get them and get name and size and other
> > propertice considering type. Regards, Ara
>
> So work using objects directly. Why do you want to use interfaces if
> you will use casting for a concrete class?
>
> Marcos Douglas
>
> --
> ___
> Lazarus mailing list Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


-- 
http://www.fastmail.com - A no graphics, no pop-ups email service

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread Marcos Douglas
On Thu, Mar 12, 2015 at 8:39 AM, aradeonas  wrote:
>
> For example I have interface for filetypes that have type,size,name but
> have class for video,audio and picture and I want to add them in the
> list and then get them and get name and size and other propertice
> considering type.
> Regards,
> Ara

So work using objects directly.
Why do you want to use interfaces if you will use casting for a concrete class?

Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread aradeonas
For example I have interface for filetypes that have type,size,name but
have class for video,audio and picture and I want to add them in the
list and then get them and get name and size and other propertice
considering type.
Regards,
Ara

On Thu, Mar 12, 2015, at 04:34 AM, Graeme Geldenhuys wrote:
> On 2015-03-12 11:12, aradeonas wrote:
> > Does Lazarus support TObject(IInterface) ? or I should make GetObject
> > function like the above answer?
> 
> Just curious as to why you would need or want to do this?  After all,
> how did you get the interface reference in the first place... Some
> object had to be queried to get it.
> 
> Regards,
>   - Graeme -
> 
> -- 
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://fpgui.sourceforge.net/
> 
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-- 
http://www.fastmail.com - Accessible with your email software
  or over the web


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread Graeme Geldenhuys
On 2015-03-12 11:12, aradeonas wrote:
> Does Lazarus support TObject(IInterface) ? or I should make GetObject
> function like the above answer?

Just curious as to why you would need or want to do this?  After all,
how did you get the interface reference in the first place... Some
object had to be queried to get it.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] How to cast a Interface to a Object in Lazaeus

2015-03-12 Thread aradeonas

Take a look at here:
http://stackoverflow.com/questions/4138211/how-to-cast-a-interface-to-a-object-in-delphi

Does Lazarus support TObject(IInterface) ? or I should make GetObject
function like the above answer?

Regards, Ara

-- 
http://www.fastmail.com - Access your email from home and the web

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] error building revision: 48284

2015-03-12 Thread Andrea Mauri
I used 1.4 fixes, I got this error at revision: 48284 (make clean all) 
but it is solved at revision: 48291


Il 12/03/2015 11:40, Mattias Gaertner ha scritto:

On Thu, 12 Mar 2015 10:11:49 +0100
Andrea Mauri  wrote:


I just updated lazarus (At revision: 48284).
When I try to build lazarus I got this error:
initialsetupdlgs.pas(980,13) Error: identifier idents no member
"SetBuildTargetIDE"


"Trunk" builds here. Do you mean "fixes"?
Did you try to build clean?

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] error building revision: 48284

2015-03-12 Thread Mattias Gaertner
On Thu, 12 Mar 2015 10:11:49 +0100
Andrea Mauri  wrote:

> I just updated lazarus (At revision: 48284).
> When I try to build lazarus I got this error:
> initialsetupdlgs.pas(980,13) Error: identifier idents no member 
> "SetBuildTargetIDE"

"Trunk" builds here. Do you mean "fixes"?
Did you try to build clean?

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] error building revision: 48284

2015-03-12 Thread Andrea Mauri

fixed in revision: 48291

Il 12/03/2015 10:11, Andrea Mauri ha scritto:

I just updated lazarus (At revision: 48284).
When I try to build lazarus I got this error:
initialsetupdlgs.pas(980,13) Error: identifier idents no member
"SetBuildTargetIDE"

Andrea Mauri


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] error building revision: 48284

2015-03-12 Thread Andrea Mauri

I just updated lazarus (At revision: 48284).
When I try to build lazarus I got this error:
initialsetupdlgs.pas(980,13) Error: identifier idents no member 
"SetBuildTargetIDE"


Andrea Mauri

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to get Lazarus on Odroid U3 with Ubuntu 14.04 to work ?

2015-03-12 Thread Marc Weustink

Corpsman wrote:
> Hello Mailinglist,


Is there someone who got lazarus (doesn't matter which version) to work
under Ubuntu 14.04 on a Odroid U3 ?

I tried this in several ways, unfortunatunelly without success. The core
problem seems to be in the GTK2 api (i don't need especially gtk2 but qt
did not work as well).

i try :
Installing a fresh 14.04 Image, using the lazarus fpc from the packet
manager -> all icons in the ide are broken (invisible) if the ide is
started from a console it writes something like "try to write 24-bit on
a 32-bit canvas..)


This is the key to the problem.
Using different fpc version, different Lazarus versions, different 
Ubuntu version won't help.


When drawing images on gtk, lazarus has to use the same pixeldepth as 
your X server. gtk won't do any conversion, except for 32 bit. Usually 
drawing 24 bit images on 32 bit X is also OK.
In your case not. The only thing you can do is reducing the pixeldepth 
of your X server.


Marc


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] How to get Lazarus on Odroid U3 with Ubuntu 14.04 to work ?

2015-03-12 Thread Corpsman
Hello Mailinglist,

Is there someone who got lazarus (doesn't matter which version) to work
under Ubuntu 14.04 on a Odroid U3 ?

I tried this in several ways, unfortunatunelly without success. The core
problem seems to be in the GTK2 api (i don't need especially gtk2 but qt
did not work as well).

i try :
Installing a fresh 14.04 Image, using the lazarus fpc from the packet
manager -> all icons in the ide are broken (invisible) if the ide is
started from a console it writes something like "try to write 24-bit on
a 32-bit canvas..)

i try :
Update from 13.04 (with working fpc 2.6.2 and lazarus from trunk), after
update to 14.04 same behavier as above.

i try :
fpcup (and did what the warning tells), the fpc installation runs
through, the compilation of the ide runs the first time, the second run
(to install anchordicking, fails). Using the binary from the first run
has the same behavior as in the following buglist ticket.

a lot of research got me

- A Buglist ticket : http://bugs.freepascal.org/view.php?id=26726
  |-> unfortunatunelly it seems that no one of the core developer has a
odriod so that they can fix it

- the fpcup skript (that did not work) from
http://wiki.freepascal.org/Odroid

- also i tried different forums, but no one could help me

[german] http://www.lazarusforum.de/viewtopic.php?f=3&t=8537 [^]

[german] http://www.lazarusforum.de/viewtopic.php?f=5&t=8456 [^]

[english] http://forum.odroid.com/viewtopic.php?f=77&t=10840 [^]

- the download link of the Ubuntu 14.04 1 / 2 images for odroid

http://odroid.com/dokuwiki/doku.php?id=en:u3_ubuntu_release_note_20150224


At the moment i run 13.10 on my Odroid U3, with Lazarus trunk and fpc
from the packet center. But 13.10 gets more and more in trouble. I use
the Odroid as my Desktop PC so there is a big need to move to the LTS
version.

it would be very nice if someone could help me.

Uwe Schächterle


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus