Menu

#1319 Make Failure on Mac OSX

None
closed
nobody
None
none
5
2018-12-14
2014-12-14
Bruce
No

ooRexx from the ooRexx-4.2.0-source.tar.gz file fails to compile on Mac OS X 10.6.8 (Intel 32bit)for the following reason:

make[2]: No rule to make target rexxapi/server/platform/unix/mac/APIService.cpp', needed byrxapi-APIService.o'. Stop.
make[1]:
[all-recursive] Error 1
make: *** [all] Error 2

No such file: rexxapi/server/platform/unix/mac/APIService.cpp
No such directory rexxapi/server/platform/unix/mac

Related

Bugs: #1319
Bugs: #1523

Discussion

1 2 > >> (Page 1 of 2)
  • Per Olov Jonsson

    Hello Bruce,

    Have a look at item 1263 a bit further down the list.

     
  • Alexander Adolf

    Alexander Adolf - 2018-01-15

    So Mac users will not be able to run the latest stable version, but instead would be forced to wait for if and when 5.0.0. will be released? That would be a sad conclusion.

    The reporter of bug 1263 already hints at a potential solution. Have you/anyone tried it and ran a few tests yet?

    Many thanks in advance for looking intom this!

     
    • Per Olov Jonsson

      Dear Alexander,

      Version 5.0.0 IS a stable version for all that I know, I am using version 5.0.0 on a Mac since well over half a year, and it is very stable. I have had it running programs for weeks in a row without any crashes so I suggest you give it a go and just try it out, I´ll promise it is well worth the time spent!

      The quickest way for Mac users to getooRexx is to use the installer prepared for Bsf4ooRexx, you will get a bridge to Java at no cost but the ooRexx installation can be used as is also without this extra sugar. The nice thing with the Bsf installer is that it comes with an uninstaller as well so you can try it out and remove it if you are not happy with the click of a button, very neat.

      https://sourceforge.net/projects/bsf4oorexx/files/beta/20171022/ https://sourceforge.net/projects/bsf4oorexx/files/beta/20171022/

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

      Am 15.01.2018 um 18:53 schrieb Alexander Adolf c-alpha@users.sf.net:

      So Mac users will not be able to run the latest stable version, but instead would be forced to wait for if and when 5.0.0. will be released? That would be a sad conclusion.

      The reporter of bug 1263 already hints at a potential solution. Have you/anyone tried it and ran a few tests yet?

      Many thanks in advance for looking intom this!

      [bugs:#1319] https://sourceforge.net/p/oorexx/bugs/1319/ Make Failure on Mac OSX

      Status: open
      Group: v4.2.0
      Created: Sun Dec 14, 2014 08:59 PM UTC by Bruce
      Last Updated: Fri Jan 09, 2015 09:30 PM UTC
      Owner: nobody

      ooRexx from the ooRexx-4.2.0-source.tar.gz file fails to compile on Mac OS X 10.6.8 (Intel 32bit)for the following reason:

      make[2]: No rule to make target rexxapi/server/platform/unix/mac/APIService.cpp', needed byrxapi-APIService.o'. Stop.
      make[1]: [all-recursive] Error 1
      make: *** [all] Error 2

      No such file: rexxapi/server/platform/unix/mac/APIService.cpp
      No such directory rexxapi/server/platform/unix/mac

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oorexx/bugs/1319/ https://sourceforge.net/p/oorexx/bugs/1319/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #1319

  • Alexander Adolf

    Alexander Adolf - 2018-01-15

    Hello Per,

    many thanks for your swift response! It seems your suggestion is the fastest and most convenient way of getting started on a Mac.

    My use case was however, that I wanted to make a Homebrew formula for ooRexx. Homebrew so far only provides a Regina package, but not ooRexx, so I thought I'd slap one up.

    To make a Homebrew formula, I would need a URL for source tarball. I haven't been able to find one though?

    Hence I turned to 4.2.0, which is the latest stable according to the downloads page. When building it, I ran into this issue. Appranetly it stands unfixed since 2014, so it might well be that I am out of luck...?

     
    • Rene Vincent Jansen

      Hi Alexander,

      that is one excellent idea, and I am sure a lot of people will be very thankful if they can ‘brew install oorexx’ - I would be one of them.
      We are only a few steps away from releasing ooRexx 5.0.0. I will make sure you have a source tarball to test with as soon as possible. How easy is it to update your formula with a later version? For the macOS version there are some tiny details to be arranged, like the location (will that always be ~/homebrew/ ? We must be sure to take out any hardcoded dependencies on other locations, like for example the pid file.

      You do know about the daemon process rxapi? Can you make a brew service rxapi start/stop/reload/status out of that?

      I’ll try to have something available pronto so you can work on 5.0.0 - please don’t invest in 4.2.0 for the mac.

      best regards,

      René

      On 15 Jan 2018, at 17:08, Alexander Adolf c-alpha@users.sf.net wrote:

      Hello Per,

      many thanks for your swift response! It seems your suggestion is the fastest and most convenient way of getting started on a Mac.

      My use case was however, that I wanted to make a Homebrew https://brew.sh/ formula for ooRexx. Homebrew so far only provides a Regina package, but not ooRexx, so I thought I'd slap one up.

      To make a Homebrew formula, I would need a URL for source tarball. I haven't been able to find one though?

      Hence I turned to 4.2.0, which is the latest stable according to the downloads page http://www.oorexx.org/download.html. When building it, I ran into this issue. Appranetly it stands unfixed since 2014, so it might well be that I am out of luck...?

      [bugs:#1319] https://sourceforge.net/p/oorexx/bugs/1319/ Make Failure on Mac OSX

      Status: open
      Group: v4.2.0
      Created: Sun Dec 14, 2014 08:59 PM UTC by Bruce
      Last Updated: Mon Jan 15, 2018 05:53 PM UTC
      Owner: nobody

      ooRexx from the ooRexx-4.2.0-source.tar.gz file fails to compile on Mac OS X 10.6.8 (Intel 32bit)for the following reason:

      make[2]: No rule to make target rexxapi/server/platform/unix/mac/APIService.cpp', needed byrxapi-APIService.o'. Stop.
      make[1]: [all-recursive] Error 1
      make: *** [all] Error 2

      No such file: rexxapi/server/platform/unix/mac/APIService.cpp
      No such directory rexxapi/server/platform/unix/mac

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oorexx/bugs/1319/ https://sourceforge.net/p/oorexx/bugs/1319/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #1319

      • Alexander Adolf

        Alexander Adolf - 2018-01-16

        Hello Réné,

        that is one excellent idea, and I am sure a lot of people will be very thankful if they can ‘brew install oorexx’ - I would be one of them.

        Great. It seems you've just volunteered as an alpha tester for the HB formula? ;-))

        [...]
        How easy is it to update your formula with a later version?

        That's not different from any other open source project. Homebrew is on github, so we'll have to get some maintainer's attention, and ask them to merge the pull request that updates the formula.

        For the macOS version there are some tiny details to be arranged, like the location (will that always be ~/homebrew/ ?

        Not sure what you're referring to here? Usually, homebrew lives in /usr/local. No traces of it in the home dir.

        We must be sure to take out any hardcoded dependencies on other locations, like for example the pid file.

        You do know about the daemon process rxapi? Can you make a brew service rxapi start/stop/reload/status out of that?

        I haven't done stuiff that starts a service yet, but I'm quite sure there will be some prior art for this in hombrew formulae, from which I can inspire myself (read: shamelessly copy stuff).

        I’ll try to have something available pronto so you can work on 5.0.0 - please don’t invest in 4.2.0 for the mac.

        Cool! yes, please do keep me posted on any (pre-) releases I could use.

         
        • Rene Vincent Jansen

          Yes, I will happily keep testing it.

          On 16 Jan 2018, at 14:20, Alexander Adolf c-alpha@users.sf.net wrote:

          Hello Réné,

          that is one excellent idea, and I am sure a lot of people will be very thankful if they can ‘brew install oorexx’ - I would be one of them.

          Great. It seems you've just volunteered as an alpha tester for the HB formula? ;-))

          [...]
          How easy is it to update your formula with a later version?

          That's not different from any other open source project. Homebrew is on github, so we'll have to get some maintainer's attention, and ask them to merge the pull request that updates the formula.

          For the macOS version there are some tiny details to be arranged, like the location (will that always be ~/homebrew/ ?

          Not sure what you're referring to here? Usually, homebrew lives in /usr/local. No traces of it in the home dir.

          There is SIP; my homebrew runs from my homedir. Do not remember since when.

          best regards,

          René.

           
          • Alexander Adolf

            Alexander Adolf - 2018-01-18

            There is SIP;

            https://en.wikipedia.org/wiki/SIP ???

            my homebrew runs from my homedir. Do not remember since when.

            I wouldn't foresee any difficulties with that. Wherever you decided to install it, should be refernced from the relevant environmnet variables (PATH, LD_LIBRARY_PATH, and similar), or else your setup wouldn't have been overly usable in the first place. I would thus think that its safe to assume that when you do a brew install oorexx, you already have a working homebrew in place. So we shouldn't have to worry about executables and stuff that comes with them (shared libs, global config files, asf.).

             
    • Per Olov Jonsson

      Hello Alexander,

      Making a version for Homebrew is indeed an excellent idea, I’ll help if I can, I can certainly be your guinea pig :-). I am a vivid Homebrewer myself and already have some 13 items installed that way.

      Homebrew itself lives in

      /usr/local/Homebrew

      And it stores all installations in

      /usr/local/Cellar/<item>

      It then make symbolic links (symlinks) to

      /usr/local/bin

      Where the system will find it back.

      I have started to make a generic installer for Mac some time ago and I am almost there, I can build a running system from daily builds, but I got stuck when I came to the symlinks. I started to make them manually (there are some 20 of them needed) with the intention to write a script to define them so that it would be possible also to uninstall the stuff. But then I got carried away on another project :-(

      There is one other reason why you might still want to go with the Bsf installation: There is no GUI for Mac in ooRexx, at least not yet. ooDialog is only available on Windows to my knowledge. With Bsf you have a sleek JAVA GUI at your finger tips. I use a Java XML parser (two actually) over this bridge and it is only a ~ away.

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

      Am 15.01.2018 um 22:08 schrieb Alexander Adolf c-alpha@users.sf.net:

      Hello Per,

      many thanks for your swift response! It seems your suggestion is the fastest and most convenient way of getting started on a Mac.

      My use case was however, that I wanted to make a Homebrew https://brew.sh/ formula for ooRexx. Homebrew so far only provides a Regina package, but not ooRexx, so I thought I'd slap one up.

      To make a Homebrew formula, I would need a URL for source tarball. I haven't been able to find one though?

      Hence I turned to 4.2.0, which is the latest stable according to the downloads page http://www.oorexx.org/download.html. When building it, I ran into this issue. Appranetly it stands unfixed since 2014, so it might well be that I am out of luck...?

      [bugs:#1319] https://sourceforge.net/p/oorexx/bugs/1319/ Make Failure on Mac OSX

      Status: open
      Group: v4.2.0
      Created: Sun Dec 14, 2014 08:59 PM UTC by Bruce
      Last Updated: Mon Jan 15, 2018 05:53 PM UTC
      Owner: nobody

      ooRexx from the ooRexx-4.2.0-source.tar.gz file fails to compile on Mac OS X 10.6.8 (Intel 32bit)for the following reason:

      make[2]: No rule to make target rexxapi/server/platform/unix/mac/APIService.cpp', needed byrxapi-APIService.o'. Stop.
      make[1]: [all-recursive] Error 1
      make: *** [all] Error 2

      No such file: rexxapi/server/platform/unix/mac/APIService.cpp
      No such directory rexxapi/server/platform/unix/mac

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oorexx/bugs/1319/ https://sourceforge.net/p/oorexx/bugs/1319/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #1319

      • Alexander Adolf

        Alexander Adolf - 2018-01-18

        There is one other reason why you might still want to go with the Bsf installation: There is no GUI for Mac in ooRexx, at least not yet. ooDialog is only available on Windows to my knowledge. With Bsf you have a sleek JAVA GUI at your finger tips. I use a Java XML parser (two actually) over this bridge and it is only a ~ away.

        As a follower of the "one thing well" mantra, I think I would prefer to first make a formula install oorexx only. For any GUI wrapper, a separate homebrew formula could be made, which lists oorexx as a mandatory prerequisite. That way, when installing - hypothetical example - bsf-oorexx, the script would check whether oorexx is installed, and install it first if missing.

         
    • Per Olov Jonsson

      And it is P.O. by the way, Per is just the half of my name :-)

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

      Am 15.01.2018 um 22:08 schrieb Alexander Adolf c-alpha@users.sf.net:

      Hello Per,

      many thanks for your swift response! It seems your suggestion is the fastest and most convenient way of getting started on a Mac.

      My use case was however, that I wanted to make a Homebrew https://brew.sh/ formula for ooRexx. Homebrew so far only provides a Regina package, but not ooRexx, so I thought I'd slap one up.

      To make a Homebrew formula, I would need a URL for source tarball. I haven't been able to find one though?

      Hence I turned to 4.2.0, which is the latest stable according to the downloads page http://www.oorexx.org/download.html. When building it, I ran into this issue. Appranetly it stands unfixed since 2014, so it might well be that I am out of luck...?

      [bugs:#1319] https://sourceforge.net/p/oorexx/bugs/1319/ Make Failure on Mac OSX

      Status: open
      Group: v4.2.0
      Created: Sun Dec 14, 2014 08:59 PM UTC by Bruce
      Last Updated: Mon Jan 15, 2018 05:53 PM UTC
      Owner: nobody

      ooRexx from the ooRexx-4.2.0-source.tar.gz file fails to compile on Mac OS X 10.6.8 (Intel 32bit)for the following reason:

      make[2]: No rule to make target rexxapi/server/platform/unix/mac/APIService.cpp', needed byrxapi-APIService.o'. Stop.
      make[1]: [all-recursive] Error 1
      make: *** [all] Error 2

      No such file: rexxapi/server/platform/unix/mac/APIService.cpp
      No such directory rexxapi/server/platform/unix/mac

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oorexx/bugs/1319/ https://sourceforge.net/p/oorexx/bugs/1319/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #1319

      • Alexander Adolf

        Alexander Adolf - 2018-01-18

        And it is P.O. by the way, Per is just the half of my name :-)

        Oops, sorry!

         
  • Alexander Adolf

    Alexander Adolf - 2018-01-18

    Hello Per Olov, and Réné,

    So I'm waiting for you guys to announce the availability of the 5.0.0 source tarball, sO I can get started on the homebrew formula. If you post the announcement here, I can pick it up.

    Homebrew is maintained on github. It would thus be most convenient for me to handle the development of the formula there, too. Do you have github accounts, too?

     
    • Per Olov Jonsson

      Dear Alexander and René,

      This (oorexx:bugs) might be the wrong place to discuss an installer for ooRexx so if an administrator wants to move it to the oorexx-users list I have no objections.

      I can not provide you with the essentials for making a formula but I guess René can, I just want to point out that BSF4ooRexx and ooRexx with it are both installed as „Frameworks“, concepts devised by Apple I guess for things like interpreters and the like. They both reside on a Mac in

      /Library/Frameworks/BSF4ooRexx.framework
      /Library/Frameworks/ooRexx.framework

      And symlink to

      /usr/local/bin
      /usr/local/lib

      and I think it might be difficult to combine that with a Homebrew concept of storing everything in the „Cellar“. Maybe a standalone ooRexx version is a good start. An advantage with the BSF4ooRexx installer is that is contains also the possibility to uninstall everything (and I mean EVERYTHING), this is lacking in the (obsolete) 4.1.2 ooRexx installer for Mac.

      Good luck in brewing a formula, I will happily try it out once you have something to test!

      PS and it is still P.O., only my mother call me Per Olov :-)

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

      Am 18.01.2018 um 13:38 schrieb Alexander Adolf c-alpha@users.sf.net:

      Hello Per Olov, and Réné,

      So I'm waiting for you guys to announce the availability of the 5.0.0 source tarball, sO I can get started on the homebrew formula. If you post the announcement here, I can pick it up.

      Homebrew is maintained on github. It would thus be most convenient for me to handle the development of the formula there, too. Do you have github accounts, too?

      [bugs:#1319] https://sourceforge.net/p/oorexx/bugs/1319/ Make Failure on Mac OSX

      Status: open
      Group: v4.2.0
      Created: Sun Dec 14, 2014 08:59 PM UTC by Bruce
      Last Updated: Mon Jan 15, 2018 09:08 PM UTC
      Owner: nobody

      ooRexx from the ooRexx-4.2.0-source.tar.gz file fails to compile on Mac OS X 10.6.8 (Intel 32bit)for the following reason:

      make[2]: No rule to make target rexxapi/server/platform/unix/mac/APIService.cpp', needed byrxapi-APIService.o'. Stop.
      make[1]: [all-recursive] Error 1
      make: *** [all] Error 2

      No such file: rexxapi/server/platform/unix/mac/APIService.cpp
      No such directory rexxapi/server/platform/unix/mac

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oorexx/bugs/1319/ https://sourceforge.net/p/oorexx/bugs/1319/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #1319

      • Rene Vincent Jansen

        Hi P.O.,

        the discussion started out with a bug … I am sure nobody minds the installer discussion too much. Let’s move it after this one. (cross-posted for the move).

        Alexander - there is a source tarball at https://sourceforge.net/projects/oorexx/files/oorexx/5.0.0beta/ now. It is called oorexx-source-11346.tar.gz . 11346 is the svn revision number. This version has dependencies for pid file and is not fully relocatable on install.

        Let us know how your progress is - I’ll test everything.

        best regards,

        René.

        On 18 Jan 2018, at 17:30, Per Olov Jonsson perolovjonsson@users.sf.net wrote:

        Dear Alexander and René,

        This (oorexx:bugs) might be the wrong place to discuss an installer for ooRexx so if an administrator wants to move it to the oorexx-users list I have no objections.

        I can not provide you with the essentials for making a formula but I guess René can, I just want to point out that BSF4ooRexx and ooRexx with it are both installed as „Frameworks“, concepts devised by Apple I guess for things like interpreters and the like. They both reside on a Mac in

        /Library/Frameworks/BSF4ooRexx.framework
        /Library/Frameworks/ooRexx.framework

        And symlink to

        /usr/local/bin
        /usr/local/lib

        and I think it might be difficult to combine that with a Homebrew concept of storing everything in the „Cellar“. Maybe a standalone ooRexx version is a good start. An advantage with the BSF4ooRexx installer is that is contains also the possibility to uninstall everything (and I mean EVERYTHING), this is lacking in the (obsolete) 4.1.2 ooRexx installer for Mac.

        Good luck in brewing a formula, I will happily try it out once you have something to test!

        PS and it is still P.O., only my mother call me Per Olov :-)

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

        Am 18.01.2018 um 13:38 schrieb Alexander Adolf c-alpha@users.sf.net:

        Hello Per Olov, and Réné,

        So I'm waiting for you guys to announce the availability of the 5.0.0 source tarball, sO I can get started on the homebrew formula. If you post the announcement here, I can pick it up.

        Homebrew is maintained on github. It would thus be most convenient for me to handle the development of the formula there, too. Do you have github accounts, too?

        [bugs:#1319] https://sourceforge.net/p/oorexx/bugs/1319/ Make Failure on Mac OSX

        Status: open
        Group: v4.2.0
        Created: Sun Dec 14, 2014 08:59 PM UTC by Bruce
        Last Updated: Mon Jan 15, 2018 09:08 PM UTC
        Owner: nobody

        ooRexx from the ooRexx-4.2.0-source.tar.gz file fails to compile on Mac OS X 10.6.8 (Intel 32bit)for the following reason:

        make[2]: No rule to make target rexxapi/server/platform/unix/mac/APIService.cpp', needed byrxapi-APIService.o'. Stop.
        make[1]: [all-recursive] Error 1
        make: *** [all] Error 2

        No such file: rexxapi/server/platform/unix/mac/APIService.cpp
        No such directory rexxapi/server/platform/unix/mac

        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oorexx/bugs/1319/ https://sourceforge.net/p/oorexx/bugs/1319/
        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

        [bugs:#1319] Make Failure on Mac OSX

        Status: open
        Group: v4.2.0
        Created: Sun Dec 14, 2014 08:59 PM UTC by Bruce
        Last Updated: Thu Jan 18, 2018 12:38 PM UTC
        Owner: nobody

        ooRexx from the ooRexx-4.2.0-source.tar.gz file fails to compile on Mac OS X 10.6.8 (Intel 32bit)for the following reason:

        make[2]: No rule to make target rexxapi/server/platform/unix/mac/APIService.cpp', needed byrxapi-APIService.o'. Stop.
        make[1]: [all-recursive] Error 1
        make: *** [all] Error 2

        No such file: rexxapi/server/platform/unix/mac/APIService.cpp
        No such directory rexxapi/server/platform/unix/mac

        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oorexx/bugs/1319/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #1319

        • Alexander Adolf

          Alexander Adolf - 2018-01-26

          Hi René,

          In the CmakeLists.txt, you should update the subversion bit from:

          find_package(Subversion)
          if(SUBVERSION_FOUND)
            Subversion_WC_INFO(${PROJECT_SOURCE_DIR} ORX)
            set(ORX_BLD_LVL ${ORX_WC_REVISION})
          endif()
          
          message(STATUS "SVN Revision Number is ${ORX_BLD_LVL}")
          

          to instead do this:

          find_package(Subversion)
          if(SUBVERSION_FOUND AND (EXISTS ${PROJECT_SOURCE_DIR}/.svn))
            Subversion_WC_INFO(${PROJECT_SOURCE_DIR} ORX)
            set(ORX_BLD_LVL ${ORX_WC_REVISION})
            message(STATUS "SVN Revision Number is ${ORX_BLD_LVL}")
          endif()
          

          i.e. only perform Subversion operations if svnis installed, and the source code is a working copy (i.e. has a .svn subdir).

          Next thing I'll look at is the install prefix.

           
          • Alexander Adolf

            Alexander Adolf - 2018-01-26

            Next thing I'll look at is the install prefix.

            Again, in the CMakeLists.txt, you should replace this:

               if (APPLE )
                 set (CMAKE_INSTALL_PREFIX ~/Applications/ooRexx${ORX_MAJOR}.${ORX_MINOR}.${ORX_MOD_LVL})
                 set (INSTALL_LIB_DIR ${CMAKE_INSTALL_PREFIX}/bin)
                 set (CMAKE_INSTALL_RPATH @executable_path)
               else ()
                 set (CMAKE_INSTALL_PREFIX /usr)
                    find_path(INSTALL_LIB_DIR libc.so PATHS ${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_INSTALL_PREFIX}/lib64)
               # at least on Ubuntu above doesn't seem to work; use fallback:
               if (${INSTALL_LIB_DIR} STREQUAL "INSTALL_LIB_DIR-NOTFOUND")
                  set (INSTALL_LIB_DIR ${CMAKE_INSTALL_PREFIX}/lib)
               endif ()
            

            and instead do this:

               if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
                 set(CMAKE_INSTALL_PREFIX
                   $<IF:$<PLATFORM_ID:Darwin>,$ENV{HOME}/Applications/ooRexx${ORX_MAJOR}.${ORX_MINOR}.${ORX_MOD_LVL},/usr>
                   CACHE
                   PATH
                   "Default install path"
                   FORCE)
               endif()
               if (APPLE)
                 set (INSTALL_LIB_DIR ${CMAKE_INSTALL_PREFIX}/bin)
                 set (CMAKE_INSTALL_RPATH @executable_path)
               else ()
                 find_path(INSTALL_LIB_DIR libc.so PATHS ${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_INSTALL_PREFIX}/lib64)
                 # at least on Ubuntu above doesn't seem to work; use fallback:
                 if (${INSTALL_LIB_DIR} STREQUAL "INSTALL_LIB_DIR-NOTFOUND")
                   set (INSTALL_LIB_DIR ${CMAKE_INSTALL_PREFIX}/lib)
                 endif ()
               endif ()
            

            This will allow you to say cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/oorexx/5.0.0

            Btw, it seems that the shared libs are installed in bin. I would have expected lib?

             
            • Alexander Adolf

              Alexander Adolf - 2018-01-30

              Btw, it seems that the shared libs are installed in bin. I would have expected lib?

              Ok, fooled myself. Corrected CMakeLists.txt attached.

               
  • Rony G. Flatscher

    Hi Alexander,

    maybe you could also find and take care of [bugs:#1421] for MacOSX. In this case also the major version 5 would be needed in addition

    Background: if there are Rexx libraries that were linked with earlier versions of ooRexx these library versions are needed.

    Not having any knowledge about CMake (and being distracted to all sort of corners where I have to invest a lot of time and effort, currently e.g. into Java 9, where the new module system poses quite some challenges for BSF4ooRexx) I have not been able to tackle this myself.

    It seems that you are or have become proficient in CMake so if you can, please be so kind and help address this issue.

    TIA,

    ---rony

     

    Related

    Bugs: #1421

1 2 > >> (Page 1 of 2)

Anonymous
Anonymous

Add attachments
Cancel