Coder Social home page Coder Social logo

Comments (8)

offa avatar offa commented on July 18, 2024 1

As mentioned above you can try libgmock-dev too. gtest and gmock are needed and Ubuntu seems to split into two packages here.

from plug.

offa avatar offa commented on July 18, 2024

Does the Ubuntu package install a more or less up-to-date version of GTest (1.12.1 is latest)? It should include headers and libraries to work properly. In doubt you can use alternatives, eg. Conan or building GTest from source (that's what CI does).

Is it maybe possible to build without the dependency to Gtest? Thanks in advance!

Of course! You can set UNITTEST CMake option to OFF and build without tests / GTest dependency. Either set it through GUI or by passing -DUNITTEST=OFF to Cmake.

from plug.

d0h1 avatar d0h1 commented on July 18, 2024

Thanks a lot! -DUNITTEST=OFF did the trick for building plug. Unfortunately I now get ERROR: Invalid effect id: 186 ERROR: Resource busy when trying to connect to the amp. Interestingly my Mustang III v2 is recognized as Mustang IV v2 when running lsusb. I will need to dig in the udev rules.

from plug.

d0h1 avatar d0h1 commented on July 18, 2024

I see now in the code that usbPID is the same for Mustangs III, IV and V v2. sudo make install did not put any new rule into /etc/udev/rules.d/ apparently, so I added your 50-mustang.rules manually and rebooted but that did not help. User belongs to the plugdev group.

from plug.

offa avatar offa commented on July 18, 2024

There should be three files installed:

  • 50-mustang.rules
  • 70-mustang-uaccess.rules
  • 70-mustang-plugdev.rules

Do you have the others too?

from plug.

j824h avatar j824h commented on July 18, 2024

I suspect libgmock-dev is not installed in your system.

The "cmake .." command fails due to Gtest dependency on Ubuntu Studio 22.04

CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find GTest (missing: GTest_Mock_INCLUDE_DIR GTest_Mock_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindGTest.cmake:33 (find_package_handle_standard_args)
  test/CMakeLists.txt:1 (find_package)

I installed libgtest-dev, build the libraries (got 2 *.a files) and moved them to /usr/lib but cmake still fails as above. Any ideas? Is it maybe possible to build without the dependency to Gtest? Thanks in advance!

from plug.

j824h avatar j824h commented on July 18, 2024

I suspect you already got through the permission issue, since libusb-1.0 is not complaining about Permission denied.
Then we probably should move to #6.
I already found that my Mustang I V2 uses a dialect, so it is likely that III, IV do so.
I suggest trying my patch b536b2a.

Thanks a lot! -DUNITTEST=OFF did the trick for building plug. Unfortunately I now get ERROR: Invalid effect id: 186 ERROR: Resource busy when trying to connect to the amp. Interestingly my Mustang III v2 is recognized as Mustang IV v2 when running lsusb. I will need to dig in the udev rules.

from plug.

ScottG489 avatar ScottG489 commented on July 18, 2024

I ran into this issue as well. It looks like on my system (Ubuntu 22.04) when I install libgtest-dev it installs version 1.11.0-3. You mentioned 1.12.1 so perhaps this version is too old?

Otherwise, cmake -DUNITTEST=OFF .. also worked for me.

Unfortunately, it doesn't look like it's able to find my amp (Mustang LT25)

from plug.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.