Re: [Oorexx-devel] ooRexx -> Android / Resuming the porting

2022-02-15 Thread Erich Steinböck
>
> Would someone be so kind and tell me how to deactivate this test?
>

Hi Thomas,
this may be a CMake issue (CURSES_INCLUDE_PATH is internal to FindCurses).
To remove the test try replacing the include(FindCurses) line in
CMakeLists.txt with these two lines
SET (CURSES_HAVE_NCURSES_H FALSE)
SET (CURSES_HAVE_NCURSES_NCURSES_H FALSE)
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] ooRexx -> Android / Resuming the porting

2022-02-15 Thread Thomas Kahr
Thank you P.O.,

I will have a closer look and post updates as soon as there is anything 
interesting to share.

Thomas Kahr

Am 15.02.2022 um 16:16 schrieb P.O. Jonsson 
mailto:oor...@jonases.se>>:

Hi Thomas,

I think one would need to amend CMakeLists.txt at this point to consider also 
Android.

I will have a look later unless someone else beats me to it.

There is another possibility using jenkins, an emulator plugin

https://plugins.jenkins.io/android-emulator/

https://www.vogella.com/tutorials/JenkinsAndroid/article.html

I am not sure how to use it, but will have a look, please do the same.

P.O. Jonsson
oor...@jonases.se



Am 15.02.2022 um 10:29 schrieb Thomas Kahr 
mailto:tho...@vaime.at>>:

Hi,

Turns out that nurses is working just fine. I was able to build ooRexx thanks 
to your hints P.O.

Although that is only half the truth. The problem is actually using the Android 
toolchain. So when I want to compile ooRexx for Android. The check is also 
carried out here. Already on Ubuntu there was one or the other problem at this 
point. Some functionalities failed in this test. I even imagine that the 
problem with NCurses also existed here. However, the build process was not 
aborted. Is this new, that the build process is aborted if NCurses is not 
found, or has it always been like this?

In any case, it is understandable that this problem occurs. The Android 
toolchain uses the Bionic library which provides these functionalities (Posix 
functions, NCurses, etc.).

This means that the test which CMake performs fails. However, the functionality 
is available in the Bionic library. CMake just does not recognise it. Therefore 
I would have to deactivate or bypass this test.

Would someone be so kind and tell me how to deactivate this test?

Thank you and best regards Thomas

Translated with www.DeepL.com/Translator (free 
version)

Am 13.02.2022 um 23:03 schrieb P.O. Jonsson 
mailto:oor...@jonases.se>>:

hi,

make sure to uninstall the ncurses from Homebrew first, it should work out of 
the box once you have the tools from Xcode, CMake and Subversion (to get the 
source).

@Mark: let me know if I am forgetting something.

Hälsningar/Regards/Grüsse,
P.O. Jonsson
oor...@jonases.se



Am 13.02.2022 um 22:59 schrieb Thomas Kahr 
mailto:tho...@vaime.at>>:

Hi P.O.,

Thanks for your tips. Yes, I installed the developer command line tools like 
you said. Maybe I will try to reinstall.
I will have a look at your tips and keep you updated.

Thank you!

Best regards
Thomas


On 13.02.2022, at 16:03, P.O. Jonsson 
mailto:oor...@jonases.se>> wrote:

Hi Thomas, nice to have you back!

We are already building for M1 Mac since some time so it should be possible to 
sort you out.

In the normal case ncurses is taken from the Xcode command line tools that you 
install with Xcode-select install, did you do that? This is how it should look 
like on a M1 Mac with Monterey when CMake runs:

-- Looking for wsyncup in 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libcurses.tbd
-- Looking for wsyncup in 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libcurses.tbd
 - found
-- Looking for cbreak in 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
-- Looking for cbreak in 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
 - found
-- Looking for nodelay in 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
-- Looking for nodelay in 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
 - found
-- Found Curses: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
-- CURSES_HAVE_NCURSES_H is 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/ncurses.h
-- CURSES_HAVE_NCURSES_NCURSES_H is CURSES_HAVE_NCURSES_NCURSES_H-NOTFOUND
-- CPACK_PACKAGE_FILE_NAME ooRexx-5.0.0-12353.macOS.arm64.x86_64
-- Configuring done
-- Generating done
-- Build files have been written to: 
/Users/jenkins/workspace/ooRexx-macOS1201-build2

The 12.1 should be 12.2 if you have uppgraded lately

If you have installed another version of ncurses (using HomeBrew or Ports for 
instance) you need to symlink them into the right place, the installation gives 
you a hint for that but the one from Apple works just fine.

Let us know how you progress and if you need any further help

Am 13.02.2022 um 11:56 schrieb Thomas Kahr 
mailto:tho...@vaime.at>>:


Dear Developers,

Its been a while since my last attempt to port ooRexx to Android. The time has 
co

Re: [Oorexx-devel] ooRexx -> Android / Resuming the porting

2022-02-15 Thread P.O. Jonsson
Hi Thomas,

I think one would need to amend CMakeLists.txt at this point to consider also 
Android.

I will have a look later unless someone else beats me to it.

There is another possibility using jenkins, an emulator plugin

https://plugins.jenkins.io/android-emulator/ 


https://www.vogella.com/tutorials/JenkinsAndroid/article.html 


I am not sure how to use it, but will have a look, please do the same.

P.O. Jonsson
oor...@jonases.se



> Am 15.02.2022 um 10:29 schrieb Thomas Kahr :
> 
> Hi,
> 
> Turns out that nurses is working just fine. I was able to build ooRexx thanks 
> to your hints P.O.
> 
> Although that is only half the truth. The problem is actually using the 
> Android toolchain. So when I want to compile ooRexx for Android. The check is 
> also carried out here. Already on Ubuntu there was one or the other problem 
> at this point. Some functionalities failed in this test. I even imagine that 
> the problem with NCurses also existed here. However, the build process was 
> not aborted. Is this new, that the build process is aborted if NCurses is not 
> found, or has it always been like this?
> 
> In any case, it is understandable that this problem occurs. The Android 
> toolchain uses the Bionic library which provides these functionalities (Posix 
> functions, NCurses, etc.).
> 
> This means that the test which CMake performs fails. However, the 
> functionality is available in the Bionic library. CMake just does not 
> recognise it. Therefore I would have to deactivate or bypass this test.
> 
> Would someone be so kind and tell me how to deactivate this test?
> 
> Thank you and best regards Thomas
> 
> Translated with www.DeepL.com/Translator  
> (free version)
> 
>> Am 13.02.2022 um 23:03 schrieb P.O. Jonsson > >:
>> 
>> hi,
>> 
>> make sure to uninstall the ncurses from Homebrew first, it should work out 
>> of the box once you have the tools from Xcode, CMake and Subversion (to get 
>> the source).
>> 
>> @Mark: let me know if I am forgetting something.
>> 
>> Hälsningar/Regards/Grüsse,
>> P.O. Jonsson
>> oor...@jonases.se 
>> 
>> 
>> 
>>> Am 13.02.2022 um 22:59 schrieb Thomas Kahr >> >:
>>> 
>>> Hi P.O.,
>>> 
>>> Thanks for your tips. Yes, I installed the developer command line tools 
>>> like you said. Maybe I will try to reinstall.
>>> I will have a look at your tips and keep you updated.
>>> 
>>> Thank you!
>>> 
>>> Best regards
>>> Thomas
>>> 
>>> 
 On 13.02.2022, at 16:03, P.O. Jonsson >>> > wrote:
 
 Hi Thomas, nice to have you back!
 
 We are already building for M1 Mac since some time so it should be 
 possible to sort you out.
 
 In the normal case ncurses is taken from the Xcode command line tools that 
 you install with Xcode-select install, did you do that? This is how it 
 should look like on a M1 Mac with Monterey when CMake runs:
 
 -- Looking for wsyncup in 
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libcurses.tbd
 -- Looking for wsyncup in 
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libcurses.tbd
  - found
 -- Looking for cbreak in 
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
 -- Looking for cbreak in 
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
  - found
 -- Looking for nodelay in 
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
 -- Looking for nodelay in 
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
  - found
 -- Found Curses: 
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
   
 -- CURSES_HAVE_NCURSES_H is 
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/ncurses.h
 -- CURSES_HAVE_NCURSES_NCURSES_H is CURSES_HAVE_NCURSES_NCURSES_H-NOTFOUND
 -- CPACK_PACKAGE_FILE_NAME ooRexx-5.0.0-12353.macOS.arm64.x86_64
 -- Configuring done
 -- Generating done
 -- Build files have been written to: 
 /Users/jenkins/workspace/ooRexx-macOS1201-build2
 
 The 12.1 should be 12.2 if you have uppgraded lately
 
 If you have installed another version of ncurses (using HomeBrew or Ports 
 for instance) you need to symlink them into the right place, the 
 installation gives you a hint for that but the one from Appl

Re: [Oorexx-devel] ooRexx -> Android / Resuming the porting

2022-02-15 Thread Thomas Kahr
Hi,

Turns out that nurses is working just fine. I was able to build ooRexx thanks 
to your hints P.O.

Although that is only half the truth. The problem is actually using the Android 
toolchain. So when I want to compile ooRexx for Android. The check is also 
carried out here. Already on Ubuntu there was one or the other problem at this 
point. Some functionalities failed in this test. I even imagine that the 
problem with NCurses also existed here. However, the build process was not 
aborted. Is this new, that the build process is aborted if NCurses is not 
found, or has it always been like this?

In any case, it is understandable that this problem occurs. The Android 
toolchain uses the Bionic library which provides these functionalities (Posix 
functions, NCurses, etc.).

This means that the test which CMake performs fails. However, the functionality 
is available in the Bionic library. CMake just does not recognise it. Therefore 
I would have to deactivate or bypass this test.

Would someone be so kind and tell me how to deactivate this test?

Thank you and best regards Thomas

Translated with www.DeepL.com/Translator (free 
version)

Am 13.02.2022 um 23:03 schrieb P.O. Jonsson 
mailto:oor...@jonases.se>>:

hi,

make sure to uninstall the ncurses from Homebrew first, it should work out of 
the box once you have the tools from Xcode, CMake and Subversion (to get the 
source).

@Mark: let me know if I am forgetting something.

Hälsningar/Regards/Grüsse,
P.O. Jonsson
oor...@jonases.se



Am 13.02.2022 um 22:59 schrieb Thomas Kahr 
mailto:tho...@vaime.at>>:

Hi P.O.,

Thanks for your tips. Yes, I installed the developer command line tools like 
you said. Maybe I will try to reinstall.
I will have a look at your tips and keep you updated.

Thank you!

Best regards
Thomas


On 13.02.2022, at 16:03, P.O. Jonsson 
mailto:oor...@jonases.se>> wrote:

Hi Thomas, nice to have you back!

We are already building for M1 Mac since some time so it should be possible to 
sort you out.

In the normal case ncurses is taken from the Xcode command line tools that you 
install with Xcode-select install, did you do that? This is how it should look 
like on a M1 Mac with Monterey when CMake runs:

-- Looking for wsyncup in 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libcurses.tbd
-- Looking for wsyncup in 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libcurses.tbd
 - found
-- Looking for cbreak in 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
-- Looking for cbreak in 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
 - found
-- Looking for nodelay in 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
-- Looking for nodelay in 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
 - found
-- Found Curses: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libncurses.tbd
-- CURSES_HAVE_NCURSES_H is 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/ncurses.h
-- CURSES_HAVE_NCURSES_NCURSES_H is CURSES_HAVE_NCURSES_NCURSES_H-NOTFOUND
-- CPACK_PACKAGE_FILE_NAME ooRexx-5.0.0-12353.macOS.arm64.x86_64
-- Configuring done
-- Generating done
-- Build files have been written to: 
/Users/jenkins/workspace/ooRexx-macOS1201-build2

The 12.1 should be 12.2 if you have uppgraded lately

If you have installed another version of ncurses (using HomeBrew or Ports for 
instance) you need to symlink them into the right place, the installation gives 
you a hint for that but the one from Apple works just fine.

Let us know how you progress and if you need any further help

Am 13.02.2022 um 11:56 schrieb Thomas Kahr 
mailto:tho...@vaime.at>>:


Dear Developers,

Its been a while since my last attempt to port ooRexx to Android. The time has 
come to finish this project.
Meanwhile, I changed my approach and want to try to port it from an ARM Mac to 
Android instead of Linux.
I want to give it a try but I’m already stuck at the beginning.

The initial build on Mac worked just fine but combining it with the CMAKE 
toolchain gives me an error regarding curses:





I installed ncurses via Home-brew. I got the following hints from Home-brew 
directly after installing:




I already tried different things but still, CMake is complaining about the 
missing Curses. Here is what I've tried so far:


  *   -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/ncurses/bin (I added this line to 
my CMake command. The error stays the same)
  *   I also tried to add these two lines to the CMakeList