On 09.01.2019 21:11, Rick McGuire wrote:
> This is not an acceptable patch because it imposes a directory structure that 
> is not necessary and
> is not necessarily what will be used on the other platforms. Just make the 
> simple one-line change
> to the CMakeLists.txt file to install rexx.img in the same directory as 
> librexxapi as it intended.

Unfortunately, this does not solve the problem at all in r11665.

Reverted ooRexx to trunk including CMakeList.txt and built for Mac and 
installed to the current
default directory "~/Applications". Moved ooRexx5.0.0 away from it, moved 
manually "bin/rexx.img" to
"lib" and experimented:

    wu114215:bin rony$ mv rexx.img ../lib/

    wu114215:bin rony$ ./rexx 
    dyld: Library not loaded: @rpath/librexx.5.0.0.dylib
      Referenced from: /Users/rony/Applications/test/ooRexx5.0.0/bin/./rexx
      Reason: image not found
    Abort trap: 6

Now making sure that libraries are found in "../lib":

    wu114215:bin rony$ *DYLD_LIBRARY_PATH=../lib ./rexx *

    Syntax is "rexx filename [arguments]"
    or        "rexx -e program_string [arguments]"
    or        "rexx -v".

However "Logic error: no startup image" occurs:

    wu114215:bin rony$ *DYLD_LIBRARY_PATH=../lib ./rexx -e 
"out=.array~new;address '' 'ls -al' with output using
    (out);say out"*
    Logic error: no startup image
    Illegal instruction: 4

    wu114215:bin rony$ 
    wu114215:bin rony$ *pwd*
    /Users/rony/Applications/test/ooRexx5.0.0/bin
    wu114215:bin rony$ *find .. -name rexx.img*
    ../lib/rexx.img

"rexx.img" is indeed located in "bin"'s sibling directory "lib".

---rony




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

Reply via email to