Re: [fpc-pascal] TParamFlags and fpc 3.2.0.

2019-08-01 Thread Sven Barth via fpc-pascal

Am 02.08.2019 um 03:01 schrieb fredvs:

Hello.


  {$if FPC_FULLVERSION >= 030300}
paramlist1 := AlignTParamFlags(paramlist1);
{$endif}

Hum, with fpc 3.3.1. [2019/04/24] there is that error message:

msedesignparser.pas(694,43) Error: Identifier not found "AlignTParamFlags".

Could it be that the full-version used for "AlignTParamFlags" is 030302 ?

  {$if FPC_FULLVERSION >= 030302}
  paramlist1 := AlignTParamFlags(paramlist1);
  {$endif}

?
No, It's > 030300, but your version of trunk is too old, the function 
was only added a few days ago.


Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] USB Human Interface Devices

2019-08-01 Thread James Richters
I understand it better now, but I've been out of town and haven't been able to 
work on it.   I'm not sure what is meant by installing development packages 
though.. I see libusb at https://libusb.info/ I see where to download that.. 
but I don't know about development packages?  As for LibC,   I'm not really 
sure where to find the proper package for that.  I found 
http://gnuwin32.sourceforge.net/packages/libc.htm.bak but I'm not sure that is 
right, and again not sure about development package for that.  I would really 
appreciate links to the exact packages I will need to use for Windows.

James

>Yes, pas-libusb is a Pascal wrapper for the Linux library libusb. That library 
>itself further depends on libc. Thats why you have to install them, and 
>including their respective development packages.

>Was the message of Jean helpful for you?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] TParamFlags and fpc 3.2.0.

2019-08-01 Thread fredvs
Hello.

>  {$if FPC_FULLVERSION >= 030300} 
> paramlist1 := AlignTParamFlags(paramlist1);
> {$endif} 

Hum, with fpc 3.3.1. [2019/04/24] there is that error message:

msedesignparser.pas(694,43) Error: Identifier not found "AlignTParamFlags".

Could it be that the full-version used for "AlignTParamFlags" is 030302 ?

 {$if FPC_FULLVERSION >= 030302} 
 paramlist1 := AlignTParamFlags(paramlist1);
 {$endif} 

?


Fre;D





-
Many thanks ;-)
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] USB Human Interface Devices

2019-08-01 Thread Johann Glaser
Hi!

Am Dienstag, den 30.07.2019, 19:57 -0400 schrieb James Richters:
> Thanks for removing the un-needed units.  I have been trying to
> compile as-is without any modifications.   I was not aware that this
> was dependent on LibC and Lib-USB.  I am not really clear on how to
> install these, maybe I just need to download the correct files and
> have them in the same directory I am trying to compile Pas-LibUSB
> from?
> I quite literally have a stock installation of FPC3.0.4RC1 and that
> is all.. nothing else, no Lazarus, no LibC or LibUSB anything
> development or otherwise.   So it seems the first step will be to
> install the prerequisite packages.  I'll see if I can figure that
> out.

Yes, pas-libusb is a Pascal wrapper for the Linux library libusb. That
library itself further depends on libc. Thats why you have to install
them, and including their respective development packages.

Was the message of Jean helpful for you?

Thanks
  Hansi

> -Original Message-
> From: fpc-pascal  On Behalf
> Of Johann Glaser
> Sent: Tuesday, July 30, 2019 4:54 PM
> To: fpc-pascal@lists.freepascal.org
> Subject: Re: [fpc-pascal] USB Human Interface Devices
>
> Hi James!
>
> Am Dienstag, den 30.07.2019, 13:52 -0400 schrieb James Richters:
> > > > Due to my lack of understanding of Windows, I've not yet taken
> > > > over his changes, because I wanted to wait for confirmation
> > > > from
> > > > other users. So if James had some feedback, I'd appreciate it
> > > > greatly.
> >
> > I'm trying to get this to work on windows,  I'm having a lot of
> > units
> > not found errors when I try to compile anything at all.. I'm not
> > sure
> > what I need here to get the examples to work.Here is a list of
> > units I can't find when I try to compile with FPC 3.0.4RC1 on
> > Windows:
> >
> > ezusb.pas(42,15) Fatal: Can't find unit Errors used by EZUSB I have
> > no
> > idea what Unit Errors is or what it might be for.
>
> Thanks for pointing this out. This is a Unix unit, but it is
> obviously not used in Ezusb. I've removed it now.
>
> > libusb.pas(1350) Warning: Library c.dll not found, Linking may fail
> > !■
> > libusb.pas(1350) Warning: Library usb-1.0 not found, Linking may
> > fail !
> > I'm not really following where c.dll and usb1.0 are supposed to
> > come
> > from
>
> It seems you didn't install the development stuff for libc and lib-
> usb?
> At least in Linux, I always have to install these additionally (e.g.,
> libusb-1.0-0-dev) to the "productive" libraries (e.g., libusb-1.0-0).
>
> > usb.pas(31,22) Fatal: Can't find unit Baseunix used by USB
>
> Same as above for Errors. However, this file is unused.
>
> > mydevice.pas(27,20) Fatal: Can't find unit BaseUnix used by
> > MyDevice I
> > have no idea what BaseUnix does or if I can do something windows
> > compatible instead somehow.
>
> Same as above for Errors.
>
> > Test1Library.pas:
> > ║ (0) Error: Import library not found for c ║ (0) Error: Import
> > library not found for usb-1.0
>
> This seems to be again a problem because of the missing development
> stuff for libc anc libusb.
>
> > To be honest this is quite a bit over my head.  I'm trying to
> > follow
> > https://github.com/hansiglaser/pas-libusb/issues/4 but I'm just
> > lost.
>
> I would recommend, first to just compile the pristine pas-libusb
> without any hints from that Github issue. Only if you get the same
> errors, please try them and let me know.
>
> As stated above, I've now removed all references to the units Errors
> and Baseunix. Please "git pull" to the newest state on Github and
> compile again. If you still face problems, please don't hesitate to
> ask again.
>
> Thanks
>   Hansi
>
>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal