labjackusb.h not found

Shuyang Jin's Avatar

Shuyang Jin

13 Aug, 2021 11:03 PM

Hi Chris,

This is Shuyang from Duke again. I downloaded the latest version of MWorks (Version 0.11.dev) and I'm having trouble building the bundle. The error is:
'labjackusb.h' not found (see the attached screen shot). I tried the sudo commands in the terminal but it's still having the error. Restarting the Mac doesn't seem to help either. Do you know what's causing this issue?

Thank you very much!
Shuyang

  1. Support Staff 1 Posted by Christopher Sta... on 15 Aug, 2021 01:35 PM

    Christopher Stawarz's Avatar

    Hi Shuyang,

    It sounds like you need to install the Exodriver package.

    FYI, I'll be on vacation for the next two weeks. If you need assistance with building the plugin during that time, I recommend getting in touch with Lindsey Glickfeld or someone from her lab.

    Cheers,
    Chris

  2. 2 Posted by Shuyang Jin on 31 Aug, 2021 12:10 AM

    Shuyang Jin's Avatar

    Hi Chris,

    I hope you had a great vacation! I installed the exodriver, and now I’m getting the 2 errors attached. Lindsey is actually setting up MWorks on a new Mac and she got the exact same thing. Do you have any idea what’s causing the errors?

    Best,
    Shuyang

  3. Support Staff 3 Posted by Christopher Sta... on 01 Sep, 2021 02:56 PM

    Christopher Stawarz's Avatar

    Hi Shuyang & Lindsey,

    Apologies for the delay in replying. I'm still catching up on my post-vacation backlog.

    I’m getting the 2 errors attached. Lindsey is actually setting up MWorks on a new Mac and she got the exact same thing. Do you have any idea what’s causing the errors?

    Sorry about that. The latest Xcode changed the definition of "standard 64-bit architectures" to include arm64 (aka Apple Silicon), which the LabJack libraries don't support.

    The basic fix is to tell Xcode to build only for x86_64. This is done in the build settings for the LabJackU6Plugin target (see the attached image). However, there might be other issues, depending on what version of MWorks you're building against. Are you using a numbered release or a nightly build?

    I'll try to clean things up so that the plugin builds against both MWorks 0.10 (which is Intel only) and the current nightly build (which supports both Intel and Apple Silicon). Lindsey, I'll also reconcile these changes with the other changes I made recently.

    Cheers,
    Chris

  4. 4 Posted by llglick on 01 Sep, 2021 03:01 PM

    llglick's Avatar

    Hi Chris,
    Thanks for your response- that makes sense.
    We're trying to install the nightly build.
    We'll try and set it up for the x86_64 build- and keep an eye out for your
    pull request.
    Thanks,
    Lindsey.

  5. 5 Posted by Shuyang Jin on 01 Sep, 2021 07:11 PM

    Shuyang Jin's Avatar

    Hi Chris,

    I changed the build settings to x86_64, and now I'm getting these errors (see attached).

    Best,
    Shuyang
    ________________________________

  6. Support Staff 6 Posted by Christopher Sta... on 01 Sep, 2021 09:32 PM

    Christopher Stawarz's Avatar

    We're trying to install the nightly build.

    OK, then you want the version that also supports Apple Silicon. FYI, I simplified this a bit and submitted a new pull request. If you want to try it, download my embedded_exodriver_2 branch.

    I changed the build settings to x86_64, and now I'm getting these errors (see attached).

    Yes, that's one of the "other issues" to which I alluded. The embedded_exodriver_2 code includes a fix for it.

    If you run in to any other problems, please let me know!

    Chris

  7. 7 Posted by Lindsey Glickfe... on 01 Sep, 2021 10:24 PM

    Lindsey Glickfeld's Avatar

    Hi Chris,
    Thanks- the build now works.
    However, it fails to find the labjack when loading an experiment (power and status lights are on).
    Lindsey.
    ________________________________

  8. Support Staff 8 Posted by Christopher Sta... on 02 Sep, 2021 01:17 PM

    Christopher Stawarz's Avatar

    Hi Lindsey,

    That error message indicates that MWorks didn't load the plugin, not that it didn't find the device. Are you sure you installed it? In Xcode, you need to build the Install or Everything target to both compile and install the plugin (see attached image).

    Chris

  9. Support Staff 9 Posted by Christopher Sta... on 02 Sep, 2021 01:21 PM

    Christopher Stawarz's Avatar

    In Xcode, you need to build the Install or Everything target to both compile and install the plugin (see attached image).

    Never mind. That will just fail with permissions errors with a nightly build. I guess just install the plugin manually, however you normally do that.

    Chris

  10. 10 Posted by llglick on 02 Sep, 2021 01:24 PM

    llglick's Avatar

    Hi Chris,
    Sorry- I'm not sure what you mean by "install"- usually we just compile in
    Xcode and that is sufficient.
    Lindsey.

  11. Support Staff 11 Posted by Christopher Sta... on 02 Sep, 2021 01:33 PM

    Christopher Stawarz's Avatar

    The plugin bundle (LabJackU6Plugin.bundle) has to be copied to the folder /Library/Application Support/MWorks/Plugins/Core in order for MWServer to find and load it. You had to be installing it somehow, otherwise you'd always see the "No factory type for object" error.

    Chris

  12. 12 Posted by llglick on 02 Sep, 2021 03:00 PM

    llglick's Avatar

    Oh shoot- you're totally right, I skipped that step. Should be all good
    then.
    Lindsey.

  13. Christopher Stawarz closed this discussion on 01 Oct, 2021 02:11 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac