Re: [Oorexx-devel] How to build external functions using cmake

2019-02-17 Thread Jason Martin

I meant to write /usr/bin not /usr


The end user should NEVER install anything in /usr

And for FreeBSD not even in /usr/local





___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] How to build external functions using cmake

2019-02-17 Thread Enrico Sorichetti via Oorexx-devel
Just change the CMakeLists to  suit Your standards

The repository is not meant to provide a ready to run solution for all the 
environments

Just the basis to get started with cmake 

And to answer Your point

> For me Line 44 - could be /usr/lib /usr/lib/32 /usr/lib/64 /usr/lib/amd64

So what ? 

for debian it could be

/usr/libx32
/usr/lib32
/usr/lib/x86_64-linux-gnu

For Fedora
/usr/lib64

For FreeBSD
/usr/lib
/usr/lib32


You have just to consider … 
 where did You install / where do You want to install open object rexx ?
And how You determined / You will determine  the  proper  directory 

IMO it is a moot point, the general consensus is …

The end user should NEVER install anything in /usr 

And for FreeBSD not even in /usr/local 





___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] How to build external functions using cmake

2019-02-17 Thread Jason Martin

For me Line 44 - could be /usr/lib /usr/lib/32 /usr/lib/64 /usr/lib/amd64

Bins can be 64 bit but installed in /usr with 32 bit ones or 64 bit in 
/usr/bin/amd64


or 32 bit in /usr/bin/i86 : Messes with getting right linker flags

Not related but:

I also have old SunPro cc and newer gcc
cmake will find old 32 bit cc but then find 64 bit gcc without command 
line args


    42    if( OOREXX_INSTALL_PREFIX )
    43        set( rexx_INCLUDE_DIRS "${OOREXX_INSTALL_PREFIX}/include" )
    44        set( rexx_LIBDIR "${OOREXX_INSTALL_PREFIX}/lib" )
    45        set( rexx_LIBRARIES "rexx" "rexxapi" )
    46    else( )
    47        include( pkgConfig )
    48        pkg_config( ${REQUIRES_LIBRARIES} )
    49    endif()
    50




___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] How to build external functions using cmake - follow on

2019-02-17 Thread Enrico Sorichetti via Oorexx-devel
Tested and working also on OpenBSD

The flow is like the one I posted for FreeBSD.

Cheers

E




___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] How to build external functions using cmake

2019-02-17 Thread Enrico Sorichetti via Oorexx-devel
Tested and working on …

Fedora 29

Debian 9

FreeBSD 

OpenBSD will take a bit longer because I have to rebuild the virtual machine 

The sequence of commands issued

On Fedora and Debian 
  136  git clone http://3...@bitbucket.org/3481/rxSnippets
  137  mkdir rxSnippets.bin
  138  cd  rxSnippets.bin
  139  cmake ../rxSnippets -DOOREXX_INSTALL_PREFIX=$HOME/ooRexx 
  140  make
  142  export LD_LIBRARY_PATH=`pwd`
  143  ./rxNative.rex
  144  ./rxClassic.rex
  145  exit



On FreeBSD 
 486  git clone http://3...@bitbucket.org/3481/rxSnippets
 487  mkdir rxSnippets.bin
 488  cd rxSnippets.bin
 489  cmake ../rxSnippets
 490  gmake
 492  export LD_LIBRARY_PATH=`pwd`
 493  ./rxNative.rex
 494  ./rxClassic.rex
 495  exit


No need to specify the OOREXX_INSTALL_PREFIX
My build of ooRexx is infrastructure aware and uses pkg-config 
To add the proper flags for the compiler and the linker

Cheers

E 

PS

Here is how the result of the tests might look
I sprinkled around a few printf

[vagrant@freebsd rxSnippets.bin]$./rxNative.rex
rxNativeVersion at line 35' '1.0.0' 

1.0.0
rxNativeWorker at line 48'
  Argc 0 

rxNativeWorker at line 48'
  Argc 1 
  Argv 1  'A'

rxNativeWorker at line 48'
  Argc 2 
  Argv 1  'A'
  Argv 2  'B'

[vagrant@freebsd rxSnippets.bin]$./rxClassic.rex
rxClassicVersion at line 84' '1.0.0' 

1.0.0
rxClassicWorker at line 103'
  Argc 0 

rxClassicWorker at line 103'
  Argc 1 
  Argv 0  'A'

rxClassicWorker at line 103'
  Argc 2 
  Argv 0  'A'
  Argv 1  'B'





> On 17 Feb 2019, at 19:27, Rony G. Flatscher  wrote:
> 
> On 17.02.2019 19:09, Enrico Sorichetti via Oorexx-devel wrote:
>> 
>> See here 
>> 
>> git clone http://3...@bitbucket.org/3481/rxSnippets 
>> Cloned it, skimming over 
>> it, it is electrifying!!
> 
>> Have a good time 
> Will take a few days, but will definitely have a good time! 
> :)
> (This should help me to create - and perhaps understand a little bit more of 
> - CMakeLists.txt for BSF4ooRexx.cc and also for the "dbusoorexx" (ooRexx 
> external function library for Linux' DBus communication infrastructure), 
> foregoing the Makefiles.)
> 
>> 
>> Tested only on Darwin 
>> 
>> Working on the other platforms 
>> 
>> I will keep You posted
> Please do so! Having a minimal CMakeLists.txt for producing external Rexx 
> function libraries for the major platforms is really a great boon!
> ---rony
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] How to build external functions using cmake

2019-02-17 Thread Rony G. Flatscher
On 17.02.2019 19:09, Enrico Sorichetti via Oorexx-devel wrote:
>
> See here 
>
> git clone http://3...@bitbucket.org/3481/rxSnippets

Cloned it, skimming over it, it is electrifying!!

> Have a good time

Will take a few days, but will definitely have a good time!
:)

(This should help me to create - and perhaps understand a little bit more of - 
CMakeLists.txt for
BSF4ooRexx.cc and also for the "dbusoorexx" (ooRexx external function library 
for Linux' DBus
communication infrastructure), foregoing the Makefiles.)

>
> Tested only on Darwin 
>
> Working on the other platforms 
>
> I will keep You posted

Please do so! Having a minimal CMakeLists.txt for producing external Rexx 
function libraries for the
major platforms is really a great boon!

---rony
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


[Oorexx-devel] How to build external functions using cmake

2019-02-17 Thread Enrico Sorichetti via Oorexx-devel

See here 

git clone http://3...@bitbucket.org/3481/rxSnippets


Have a good time 

Tested only on Darwin 

Working on the other platforms 

I will keep You posted

cheers

E ___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] OpenIndiana-Been out of the loop awhile

2019-02-17 Thread Enrico Sorichetti via Oorexx-devel
Ok also on Darwin

ooTest Framework - Automated Test of the ooRexx Interpreter

Interpreter:REXX-ooRexx_5.0.0(MT)_64-bit 6.05 17 Feb 2019
OS Name:DARWIN
SysVersion: Darwin 17.7.0

Tests ran:  22621
Assertions: 377370
Failures:   0
Errors: 0

File search:00:00:01.195900
Suite construction: 00:00:01.026495
Test execution: 00:02:57.076728
Total time: 00:02:59.645276


E

> On 17 Feb 2019, at 16:39, Jason Martin  wrote:
> 
> r11772 SysFileXXX.testGroup is good here
> 
> 
> 
> 
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] OpenIndiana-Been out of the loop awhile

2019-02-17 Thread Jason Martin

r11772 SysFileXXX.testGroup is good here




___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] "libao: a cross platform audio library", how about creating an external Rexx function library ?

2019-02-17 Thread Rony G. Flatscher
On 17.02.2019 14:03, Rick McGuire wrote:
>
> On Sun, Feb 17, 2019 at 8:00 AM Enrico Sorichetti via Oorexx-devel
>  > wrote:
>
> Already working on a simple external function skeleton,
>
> Which does nothing but … Print the arguments passed
>
> Will not take long to polish it and post it somewhere
>
> Does not use the native approach ,
>
> I was not able to find into the docs how to determine the number of 
> arguments passed
>
> From the samples looks like that the native mode functions only support a 
> fixed number of
> arguments
>
> But I would like if somebody pointed me on hoe to do it the native day
>
>
> You can also ask for all of the arguments to be passed to you in an array. 
> When used that way, no
> maximum is enforced. See the current unix rexxutil functions SysGetMessage 
> and SysGetMessageX to
> see how this works.

Maybe also interesting: , which 
is meant at allowing
C++ programmers to jump start creating external function libraries, which 
implement routines or
methods in native code.

---

It is a talk (the pdf-file) at an International Rexx Symposium (cf.
) where I tried to give a 
conceptual overview how
to create external Rexx function routines and external Rexx method routines. 
The zip archive
contains the files (sources, binaries in 32- and 64-bit) and Makefiles for 
Windows, Apple, Linux. As
you can see by looking at the Makefiles that a CMake solution (from someone in 
the know) would have
been even better for the project.

The native C++ API is documented in chapter 8 in "rexxpg.pdf" ("ooRexx 
Programming Guide").

---rony


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] "libao: a cross platform audio library", how about creating an external Rexx function library ?

2019-02-17 Thread Enrico Sorichetti via Oorexx-devel
Already working on a simple external function skeleton,

Which does nothing but … Print the arguments passed

Will not take long to polish it and post it somewhere

Does not use the native approach ,

I was not able to find into the docs how to determine the number of arguments 
passed

From the samples looks like that the native mode functions only support a fixed 
number of arguments

But I would like if somebody pointed me on hoe to do it the native day


E


> On 17 Feb 2019, at 13:53, Rony G. Flatscher  wrote:
> 
> If possible with a CMakeLists.txt, such that such a library also can serve as 
> a role model for a) how to create external function library and b) how to use 
> CMake to make it simple to compile, link and create installers for the 
> different platforms?
> 
> 

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] "libao: a cross platform audio library", how about creating an external Rexx function library ?

2019-02-17 Thread Rick McGuire
It would have to be done as a separate project and not distributed with
ooRexx because of the GNU license.

Rick

On Sun, Feb 17, 2019 at 7:55 AM Rony G. Flatscher 
wrote:

> While researching a little bit about audio on Linux (after reading about
> the "portable beep problem") et.al. I stumbled over an interesting
> cross-platform library named "libao" which seems to have arrived a stable
> state.
>
> Here various links for gaining a quick overview:
>
>- Homepage & overview: 
>
>- Documentation:  
>- API overview: 
>
>
>- Linux-from-scratch (how to install):
>
>
>- Infos about Ubuntu: 
>
>
> At first sight it seems that the API is small and straight-forward.
>
> So the idea: how about creating an external Rexx function library for
> libao and compile it for the major operating system platforms Windows,
> MacOS and Linux? If possible with a CMakeLists.txt, such that such a
> library also can serve as a role model for a) how to create external
> function library and b) how to use CMake to make it simple to compile, link
> and create installers for the different platforms?
>
> Anyone who would find such an external Rexx function library
> useful/interesting and would try to create it?
>
> ---rony
>
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


[Oorexx-devel] "libao: a cross platform audio library", how about creating an external Rexx function library ?

2019-02-17 Thread Rony G. Flatscher
While researching a little bit about audio on Linux (after reading about the 
"portable beep
problem") et.al. I stumbled over an interesting cross-platform library named 
"libao" which seems to
have arrived a stable state.

Here various links for gaining a quick overview:

  * Homepage & overview: 
  * Documentation: 
  * API overview: 

  * Linux-from-scratch (how to install):

  * Infos about Ubuntu: 

At first sight it seems that the API is small and straight-forward.

So the idea: how about creating an external Rexx function library for libao and 
compile it for the
major operating system platforms Windows, MacOS and Linux? If possible with a 
CMakeLists.txt, such
that such a library also can serve as a role model for a) how to create 
external function library
and b) how to use CMake to make it simple to compile, link and create 
installers for the different
platforms?

Anyone who would find such an external Rexx function library useful/interesting 
and would try to
create it?

---rony


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel