Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Status Already Exists
Workspace Domino
Categories Integration
Created by Guest
Created on Apr 13, 2021

Make libnotes more dynamically loadable on Mac/Linux without specifying environment variables

What I'm referring to is this sort of hoop-jumping: https://frostillic.us/blog/posts/2016/2/27/C28A45748198EB1385257F6600791862

Specifically, the way libnotes works on macOS and Linux, it's obligatory to have several environment variables prepped ahead of time in order to successfully load the library - I guess related to the use of @executable_path references. While this is practical sometimes, it's a massive impediment in other situations, such as trying to get maven-surefire-plugin working, especially with macOS releases from the last four years: https://stackoverflow.com/questions/42747213/can-i-set-dyld-library-path-with-maven-surefire-plugin . It ends up being a pretty-consistent thorn in my side.

What I'd like is to be able to point to a dynamic library by path (libnotes or a combined variant), load it, and call NotesInitExtended, all without worrying about whether specific paths have been set up in the environment ahead of time.

  • Attach files
  • Guest
    Reply
    |
    Nov 17, 2022

    The trouble isn't that it isn't possible - I've managed to make it work - but that it's more fiddly and complicated than it needs to be, particularly on macOS.

  • Admin
    Thomas Hampel
    Reply
    |
    Nov 11, 2022

    take a look at /opt/hcl/domino/notes/latest/linux/bin/startup

    startup /bin/bash

    will set up the environment.