Re: [MSEide-MSEgui-talk] New release?

2023-06-02 Thread Fred van Stappen
Re-hello Vasi.

ideU compiles and works ok.
https://github.com/mse-org/mseide-msegui/assets/3421249/1d68e8bb-1fa0-40e2-9849-52fc534bda16

Of course the file-dialog does not work but if you write the complete path of a 
project, it loads and you can use the ide.

So there is only that readdir_r() method that makes shadow, I hope that some 
light will appear...

Fre;D


De : vasi vasi 
Envoyé : vendredi 2 juin 2023 23:58
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] New release?

Thank you Fred, your effort is greatly appreciated! I am happy with what you 
did already!
Thank you again!

On Fri, Jun 2, 2023 at 11:49 PM Fred van Stappen 
mailto:fi...@hotmail.com>> wrote:
Hello Vasi.

I did spent some white night and black afternoon but I am blocked with one 
method that does not work as expected.

It is function "sys_readdirstream(var stream: dirstreamty; var info: 
fileinfoty): boolean"  in /kernel/linux/msesysintf.pas.
With Linux and FreeBSD, after the function 
"readdir64_r(pdir(d.dir),@dirent,@po1) = 0" the dirent.d_name is correct but 
there is nothing with OpenBSD.

Note that with OpenBSD it is "readdir_r" method that is used from libc and the 
"dirent" record was adapted like in OpenBSD manual.

So, to resume, all is working apart for components that use  
"sys_readdirstream()" method, for example the filedialog component.

I did try also with last fpc 3.3.1 compiled from trunk, without better result.

I have to admit that, sadly, I did not find the solution.

Fre;D

;-(


De : vasi vasi mailto:funl...@gmail.com>>
Envoyé : jeudi 1 juin 2023 11:48
À : General list for MSEide+MSEgui 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : Re: [MSEide-MSEgui-talk] New release?

I will test it in around one hour, and keep you posted.

On Thu, Jun 1, 2023 at 3:40 AM Fred van Stappen 
mailto:fi...@hotmail.com>> wrote:
Re-..._re hello Vasi.

Yep, on OpenBSD, mseide compiles, links and ... run!

Last commit should do the trick.

Here sceenshot ( the last for tonight ):
https://github.com/mse-org/mseide-msegui/assets/3421249/3ff71e23-396a-472a-a34e-083a37284cab

Fre;D

De : vasi vasi mailto:funl...@gmail.com>>
Envoyé : mercredi 31 mai 2023 19:50
À : General list for MSEide+MSEgui 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : Re: [MSEide-MSEgui-talk] New release?

* meant to say /etc as destination for the doas.conf file...

On Wed, May 31, 2023 at 8:48 PM vasi vasi 
mailto:funl...@gmail.com>> wrote:
There is no binary compatibility between FreeBSD and OpenBSD... none of  the 
*BSDs are compatible.
Lazarus gets compiled from sources using the fpc from OpenBSD repos...
To get root access, your user must be member of wheel and control groups. 
Instead of sudo, you use doas.
To activate doas, you have to create a doas.conf in /et with the following 
content (a single line):

permit persist :wheel

I doubt you will solve it, it is too much work. Right now, I am ok with 
Lazarus. Thank you Fred, is not an emergency. OpenBSD as an workstation is 
extremely restrictive and kinda slow compared to even FreeBSD, not talking 
about linux. THank you again but I will advise not to pursue it further.

The most annoying thing for me is that I am unable to run apps compiled in 
clang that uses GLFW library... lots of crashes... raylib and nanovg graphic 
libraries that uses GL are a no-no :(   I had more success in FreeBSD and 
NetBSD overall...


On Wed, May 31, 2023 at 8:30 PM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Hi Fred,
fpc is included in OpenBSD repository...
you look for it with pkg_info -Q fpc
and install it with pkg_add fpc
but you have to install also the other units...
But I think sourceforge has packages for 3.2.2 for OpenBSD?

On Wed, May 31, 2023 at 7:55 PM Fred van Stappen 
mailto:fi...@hotmail.com>> wrote:
Re-re hello Vasi.
Do you know from where to download a fpc OpenBSD release?
I only found fpc install release for FreeBSD (or maybe the release of fpc 
FreeBSD works for OpenBSD) ?

Thanks.



De : vasi vasi mailto:funl...@gmail.com>>
Envoyé : mercredi 31 mai 2023 10:36
À : General list for MSEide+MSEgui 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : Re: [MSEide-MSEgui-talk] New release?

Ok, I tried mseide first, it compiles msegui ok but fails at linking...
It says there are undefined references to "__error" and "iconv" in 
msecwstring.pas, mselibc.pas and msesysintf1.pas

Probably OpenBSD not a valid target?

On Wed, May 31, 2023 at 10:42 AM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Actually, I will try to figure it from your compilation command of uide from 
your repository, I'll keep you posted...

On Wed, May 31, 2023 at 10:23 AM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Thank you Fred, my problem with mseide-msegui is as follows:
I run OpenBSD 7.3 on one of my laptops (where is fpc 3.2.2 but no Lazarus) and 
I would like to have a makefile or a 

Re: [MSEide-MSEgui-talk] New release?

2023-06-02 Thread Fred van Stappen
Hello Vasi.

Thanks for the encouragement!
All the GUI part is working perfectly, even with BGRABitmap.

But there is that Readdir_r() and his dirent-structure-record that gives 
problems.
All other methods using libc like openfile(), work it is just that Readdir_r().
Sadly I cannot take inspiration from fpc or Lazarus  because they dont use it.

Fre;D


De : vasi vasi 
Envoyé : vendredi 2 juin 2023 23:58
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] New release?

Thank you Fred, your effort is greatly appreciated! I am happy with what you 
did already!
Thank you again!

On Fri, Jun 2, 2023 at 11:49 PM Fred van Stappen 
mailto:fi...@hotmail.com>> wrote:
Hello Vasi.

I did spent some white night and black afternoon but I am blocked with one 
method that does not work as expected.

It is function "sys_readdirstream(var stream: dirstreamty; var info: 
fileinfoty): boolean"  in /kernel/linux/msesysintf.pas.
With Linux and FreeBSD, after the function 
"readdir64_r(pdir(d.dir),@dirent,@po1) = 0" the dirent.d_name is correct but 
there is nothing with OpenBSD.

Note that with OpenBSD it is "readdir_r" method that is used from libc and the 
"dirent" record was adapted like in OpenBSD manual.

So, to resume, all is working apart for components that use  
"sys_readdirstream()" method, for example the filedialog component.

I did try also with last fpc 3.3.1 compiled from trunk, without better result.

I have to admit that, sadly, I did not find the solution.

Fre;D

;-(


De : vasi vasi mailto:funl...@gmail.com>>
Envoyé : jeudi 1 juin 2023 11:48
À : General list for MSEide+MSEgui 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : Re: [MSEide-MSEgui-talk] New release?

I will test it in around one hour, and keep you posted.

On Thu, Jun 1, 2023 at 3:40 AM Fred van Stappen 
mailto:fi...@hotmail.com>> wrote:
Re-..._re hello Vasi.

Yep, on OpenBSD, mseide compiles, links and ... run!

Last commit should do the trick.

Here sceenshot ( the last for tonight ):
https://github.com/mse-org/mseide-msegui/assets/3421249/3ff71e23-396a-472a-a34e-083a37284cab

Fre;D

De : vasi vasi mailto:funl...@gmail.com>>
Envoyé : mercredi 31 mai 2023 19:50
À : General list for MSEide+MSEgui 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : Re: [MSEide-MSEgui-talk] New release?

* meant to say /etc as destination for the doas.conf file...

On Wed, May 31, 2023 at 8:48 PM vasi vasi 
mailto:funl...@gmail.com>> wrote:
There is no binary compatibility between FreeBSD and OpenBSD... none of  the 
*BSDs are compatible.
Lazarus gets compiled from sources using the fpc from OpenBSD repos...
To get root access, your user must be member of wheel and control groups. 
Instead of sudo, you use doas.
To activate doas, you have to create a doas.conf in /et with the following 
content (a single line):

permit persist :wheel

I doubt you will solve it, it is too much work. Right now, I am ok with 
Lazarus. Thank you Fred, is not an emergency. OpenBSD as an workstation is 
extremely restrictive and kinda slow compared to even FreeBSD, not talking 
about linux. THank you again but I will advise not to pursue it further.

The most annoying thing for me is that I am unable to run apps compiled in 
clang that uses GLFW library... lots of crashes... raylib and nanovg graphic 
libraries that uses GL are a no-no :(   I had more success in FreeBSD and 
NetBSD overall...


On Wed, May 31, 2023 at 8:30 PM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Hi Fred,
fpc is included in OpenBSD repository...
you look for it with pkg_info -Q fpc
and install it with pkg_add fpc
but you have to install also the other units...
But I think sourceforge has packages for 3.2.2 for OpenBSD?

On Wed, May 31, 2023 at 7:55 PM Fred van Stappen 
mailto:fi...@hotmail.com>> wrote:
Re-re hello Vasi.
Do you know from where to download a fpc OpenBSD release?
I only found fpc install release for FreeBSD (or maybe the release of fpc 
FreeBSD works for OpenBSD) ?

Thanks.



De : vasi vasi mailto:funl...@gmail.com>>
Envoyé : mercredi 31 mai 2023 10:36
À : General list for MSEide+MSEgui 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : Re: [MSEide-MSEgui-talk] New release?

Ok, I tried mseide first, it compiles msegui ok but fails at linking...
It says there are undefined references to "__error" and "iconv" in 
msecwstring.pas, mselibc.pas and msesysintf1.pas

Probably OpenBSD not a valid target?

On Wed, May 31, 2023 at 10:42 AM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Actually, I will try to figure it from your compilation command of uide from 
your repository, I'll keep you posted...

On Wed, May 31, 2023 at 10:23 AM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Thank you Fred, my problem with mseide-msegui is as follows:
I run OpenBSD 7.3 on one of my laptops (where is fpc 3.2.2 but no Lazarus) and 
I would like to have a makefile or a script that 

Re: [MSEide-MSEgui-talk] New release?

2023-06-02 Thread vasi vasi
Thank you Fred, your effort is greatly appreciated! I am happy with what
you did already!
Thank you again!

On Fri, Jun 2, 2023 at 11:49 PM Fred van Stappen  wrote:

> Hello Vasi.
>
> I did spent some white night and black afternoon but I am blocked with one
> method that does not work as expected.
>
> It is function "sys_readdirstream(var stream: dirstreamty; var info:
> fileinfoty): boolean"  in /kernel/linux/msesysintf.pas.
> With Linux and FreeBSD, after the function
> "readdir64_r(pdir(d.dir),@dirent,@po1) = 0" the dirent.d_name is correct
> but there is nothing with OpenBSD.
>
> Note that with OpenBSD it is "readdir_r" method that is used from libc and
> the "dirent" record was adapted like in OpenBSD manual.
>
> So, to resume, all is working apart for components that use
> "sys_readdirstream()" method, for example the filedialog component.
>
> I did try also with last fpc 3.3.1 compiled from trunk, without better
> result.
>
> I have to admit that, sadly, I did not find the solution.
>
> Fre;D
>
> ;-(
>
> --
> *De :* vasi vasi 
> *Envoyé :* jeudi 1 juin 2023 11:48
> *À :* General list for MSEide+MSEgui <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* Re: [MSEide-MSEgui-talk] New release?
>
> I will test it in around one hour, and keep you posted.
>
> On Thu, Jun 1, 2023 at 3:40 AM Fred van Stappen  wrote:
>
> Re-..._re hello Vasi.
>
> Yep, on OpenBSD, mseide compiles, links and ... run!
>
> Last commit should do the trick.
>
> Here sceenshot ( the last for tonight ):
>
> https://github.com/mse-org/mseide-msegui/assets/3421249/3ff71e23-396a-472a-a34e-083a37284cab
>
> Fre;D
>
> *De :* vasi vasi 
> *Envoyé :* mercredi 31 mai 2023 19:50
> *À :* General list for MSEide+MSEgui <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* Re: [MSEide-MSEgui-talk] New release?
>
> * meant to say /etc as destination for the doas.conf file...
>
> On Wed, May 31, 2023 at 8:48 PM vasi vasi  wrote:
>
> There is no binary compatibility between FreeBSD and OpenBSD... none of
> the *BSDs are compatible.
> Lazarus gets compiled from sources using the fpc from OpenBSD repos...
> To get root access, your user must be member of wheel and control groups.
> Instead of sudo, you use doas.
> To activate doas, you have to create a doas.conf in /et with the following
> content (a single line):
>
> permit persist :wheel
>
> I doubt you will solve it, it is too much work. Right now, I am ok with
> Lazarus. Thank you Fred, is not an emergency. OpenBSD as an workstation is
> extremely restrictive and kinda slow compared to even FreeBSD, not talking
> about linux. THank you again but I will advise not to pursue it further.
>
> The most annoying thing for me is that I am unable to run apps compiled in
> clang that uses GLFW library... lots of crashes... raylib and nanovg
> graphic libraries that uses GL are a no-no :(   I had more success in
> FreeBSD and NetBSD overall...
>
>
> On Wed, May 31, 2023 at 8:30 PM vasi vasi  wrote:
>
> Hi Fred,
> fpc is included in OpenBSD repository...
> you look for it with pkg_info -Q fpc
> and install it with pkg_add fpc
> but you have to install also the other units...
> But I think sourceforge has packages for 3.2.2 for OpenBSD?
>
> On Wed, May 31, 2023 at 7:55 PM Fred van Stappen 
> wrote:
>
> Re-re hello Vasi.
> Do you know from where to download a fpc OpenBSD release?
> I only found fpc install release for FreeBSD (or maybe the release of fpc
> FreeBSD works for OpenBSD) ?
>
> Thanks.
>
>
> --
> *De :* vasi vasi 
> *Envoyé :* mercredi 31 mai 2023 10:36
> *À :* General list for MSEide+MSEgui <
> mseide-msegui-talk@lists.sourceforge.net>
> *Objet :* Re: [MSEide-MSEgui-talk] New release?
>
> Ok, I tried mseide first, it compiles msegui ok but fails at linking...
> It says there are undefined references to "__error" and "iconv" in
> msecwstring.pas, mselibc.pas and msesysintf1.pas
>
> Probably OpenBSD not a valid target?
>
> On Wed, May 31, 2023 at 10:42 AM vasi vasi  wrote:
>
> Actually, I will try to figure it from your compilation command of uide
> from your repository, I'll keep you posted...
>
> On Wed, May 31, 2023 at 10:23 AM vasi vasi  wrote:
>
> Thank you Fred, my problem with mseide-msegui is as follows:
> I run OpenBSD 7.3 on one of my laptops (where is fpc 3.2.2 but no Lazarus)
> and I would like to have a makefile or a script that assures the
> compilation of the msegui units, required to create mseide executable. Once
> done, probably I will be able to compile also your ide...
>
> Of course, I will download your ide for the other operating systems if is
> portable as you say - I can't say no to that!
> Thank you again!
>
> On Tue, May 30, 2023 at 6:23 PM Fred van Stappen 
> wrote:
>
> Thanks Vasi vasi!
>
> By the way there is a new release of ideU:
> https://github.com/fredvs/ideU/releases/
>
> In the assets there are also the "PacPas" releases that include all
> needed: fpc compiler, gdb debugger, source of msegui, fpgui 

Re: [MSEide-MSEgui-talk] New release?

2023-06-02 Thread Fred van Stappen
Hello Vasi.

I did spent some white night and black afternoon but I am blocked with one 
method that does not work as expected.

It is function "sys_readdirstream(var stream: dirstreamty; var info: 
fileinfoty): boolean"  in /kernel/linux/msesysintf.pas.
With Linux and FreeBSD, after the function 
"readdir64_r(pdir(d.dir),@dirent,@po1) = 0" the dirent.d_name is correct but 
there is nothing with OpenBSD.

Note that with OpenBSD it is "readdir_r" method that is used from libc and the 
"dirent" record was adapted like in OpenBSD manual.

So, to resume, all is working apart for components that use  
"sys_readdirstream()" method, for example the filedialog component.

I did try also with last fpc 3.3.1 compiled from trunk, without better result.

I have to admit that, sadly, I did not find the solution.

Fre;D

;-(


De : vasi vasi 
Envoyé : jeudi 1 juin 2023 11:48
À : General list for MSEide+MSEgui 
Objet : Re: [MSEide-MSEgui-talk] New release?

I will test it in around one hour, and keep you posted.

On Thu, Jun 1, 2023 at 3:40 AM Fred van Stappen 
mailto:fi...@hotmail.com>> wrote:
Re-..._re hello Vasi.

Yep, on OpenBSD, mseide compiles, links and ... run!

Last commit should do the trick.

Here sceenshot ( the last for tonight ):
https://github.com/mse-org/mseide-msegui/assets/3421249/3ff71e23-396a-472a-a34e-083a37284cab

Fre;D

De : vasi vasi mailto:funl...@gmail.com>>
Envoyé : mercredi 31 mai 2023 19:50
À : General list for MSEide+MSEgui 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : Re: [MSEide-MSEgui-talk] New release?

* meant to say /etc as destination for the doas.conf file...

On Wed, May 31, 2023 at 8:48 PM vasi vasi 
mailto:funl...@gmail.com>> wrote:
There is no binary compatibility between FreeBSD and OpenBSD... none of  the 
*BSDs are compatible.
Lazarus gets compiled from sources using the fpc from OpenBSD repos...
To get root access, your user must be member of wheel and control groups. 
Instead of sudo, you use doas.
To activate doas, you have to create a doas.conf in /et with the following 
content (a single line):

permit persist :wheel

I doubt you will solve it, it is too much work. Right now, I am ok with 
Lazarus. Thank you Fred, is not an emergency. OpenBSD as an workstation is 
extremely restrictive and kinda slow compared to even FreeBSD, not talking 
about linux. THank you again but I will advise not to pursue it further.

The most annoying thing for me is that I am unable to run apps compiled in 
clang that uses GLFW library... lots of crashes... raylib and nanovg graphic 
libraries that uses GL are a no-no :(   I had more success in FreeBSD and 
NetBSD overall...


On Wed, May 31, 2023 at 8:30 PM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Hi Fred,
fpc is included in OpenBSD repository...
you look for it with pkg_info -Q fpc
and install it with pkg_add fpc
but you have to install also the other units...
But I think sourceforge has packages for 3.2.2 for OpenBSD?

On Wed, May 31, 2023 at 7:55 PM Fred van Stappen 
mailto:fi...@hotmail.com>> wrote:
Re-re hello Vasi.
Do you know from where to download a fpc OpenBSD release?
I only found fpc install release for FreeBSD (or maybe the release of fpc 
FreeBSD works for OpenBSD) ?

Thanks.



De : vasi vasi mailto:funl...@gmail.com>>
Envoyé : mercredi 31 mai 2023 10:36
À : General list for MSEide+MSEgui 
mailto:mseide-msegui-talk@lists.sourceforge.net>>
Objet : Re: [MSEide-MSEgui-talk] New release?

Ok, I tried mseide first, it compiles msegui ok but fails at linking...
It says there are undefined references to "__error" and "iconv" in 
msecwstring.pas, mselibc.pas and msesysintf1.pas

Probably OpenBSD not a valid target?

On Wed, May 31, 2023 at 10:42 AM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Actually, I will try to figure it from your compilation command of uide from 
your repository, I'll keep you posted...

On Wed, May 31, 2023 at 10:23 AM vasi vasi 
mailto:funl...@gmail.com>> wrote:
Thank you Fred, my problem with mseide-msegui is as follows:
I run OpenBSD 7.3 on one of my laptops (where is fpc 3.2.2 but no Lazarus) and 
I would like to have a makefile or a script that assures the compilation of the 
msegui units, required to create mseide executable. Once done, probably I will 
be able to compile also your ide...

Of course, I will download your ide for the other operating systems if is 
portable as you say - I can't say no to that!
Thank you again!

On Tue, May 30, 2023 at 6:23 PM Fred van Stappen 
mailto:fi...@hotmail.com>> wrote:
Thanks Vasi vasi!

By the way there is a new release of ideU: 
https://github.com/fredvs/ideU/releases/

In the assets there are also the "PacPas" releases that include all needed: fpc 
compiler, gdb debugger, source of msegui, fpgui and bgrabitmap.
No need to config anything, just download the release, unzip it and use it.
You may also install it on a usb stick and compile your project using ideU from 
the usb stick,