Jump to content
  • 0

MCC 172 logger error: a needed resource was not available


Jordan

Question

I am trying to run the logger example from the daqhats library on my MCC 172 daq hat. I followed the installation instructions but when I try to run the logger, the GUI launches and says Error: A needed resource was not available. When I click OK the GUI terminates. I can't figure out what "needed resource" the error is referring to. I tried un-installing and re-installing the daqhats library but nothing changed. Do you have any suggestions for what the issue might be?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hello @Jordan

There is a readme.md file in the folder for the mcc 172 /data_logger with instructions for installing the required dependencies.

Viewed on Github:  https://github.com/mccdaq/daqhats/blob/master/examples/c/mcc172/data_logger/README.md

 

Install required packages:

     sudo apt install libgtk-3-dev at-spi2-core autoconf libtool

Install GTKDatabox:

     cd ~

     git clone https://github.com/erikd/gtkdatabox.git

     cd gtkdatabox

     ./autogen.sh

     ./configure

     sudo make install

Run ldconfig after installing the dependencies.

     sudo ldconfig

Running the example

To run the example, enter the following commands:

     cd ~/daqhats/examples/c/mcc172/data_logger/logger

     make

     ./logger

 

Regards,

Jeffrey

Link to comment
Share on other sites

  • 0
18 hours ago, Jeffrey said:

Hello @Jordan

There is a readme.md file in the folder for the mcc 172 /data_logger with instructions for installing the required dependencies.

Viewed on Github:  https://github.com/mccdaq/daqhats/blob/master/examples/c/mcc172/data_logger/README.md

 

Install required packages:

     sudo apt install libgtk-3-dev at-spi2-core autoconf libtool

Install GTKDatabox:

     cd ~

     git clone https://github.com/erikd/gtkdatabox.git

     cd gtkdatabox

     ./autogen.sh

     ./configure

     sudo make install

Run ldconfig after installing the dependencies.

     sudo ldconfig

Running the example

To run the example, enter the following commands:

     cd ~/daqhats/examples/c/mcc172/data_logger/logger

     make

     ./logger

 

Regards,

Jeffrey

 

Thanks Jeffrey. These are the instructions I used for my initial installation, and I just did a new installation in case I'd missed a step or something. Unfortunately, I'm still getting the same error message.

When I ran the last command of the GTKDatabox installation (sudo make install), I got a bunch of warnings about a deprecated pre-processor symbol. I'm not very familiar with the C/C++ language, but I'm wondering if there could be an issue with the versions of everything I'm using being compatible. I haven't found any sort of list about version compatibility-- if that's a reasonable guess, is there a list somewhere that you know of? Or, do you have any other idea what my problem could be? Thanks.

Edited by Jordan
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...