Git Product home page Git Product logo

Comments (5)

DavidEGrayson avatar DavidEGrayson commented on June 3, 2024 1

I'm glad you were able to get things working. I'll leave this issue open as a reminder that we might need to add extra steps to our macOS instructions to get pkg-config to work.

from pololu-tic-software.

stephanschulz avatar stephanschulz commented on June 3, 2024

The current steps install the lib in /usr/local/lib/libusbp-1.dylib along with other suff and also pkgconfig

I confirmed it's existence with ls /usr/local/lib/pkgconfig
I then added this to the PKG_CONFIG_PATH search path with export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}"

This seemed to have resolved all the issues.
I was able to install the rest and successfully call ticgui

from pololu-tic-software.

stephanschulz avatar stephanschulz commented on June 3, 2024

I now followed these steps to do the linking correct

In Xcode, select your project in the Project Navigator, then your target under "TARGETS".
 Go to the "Build Settings" tab.
 Search for "Header Search Paths" and add /usr/local/include/libusbp-1.
 Search for "Library Search Paths" and add /usr/local/lib.
 "Other Linker Flags" field. Here, you'll need to add -lusbp-1

But I get a bunch of error which might be very www.openframeworks.cc specific but maybe worth mentioning here.

Screen Shot 2023-05-29 at 8 15 55 PM

from pololu-tic-software.

DavidEGrayson avatar DavidEGrayson commented on June 3, 2024

The /usr/local directory is not specified in our CMakeLists.txt file; it is just the default location where CMake wants to install software on your system. It is unfortunate that location is not on your pkg-config search path by default. If you've installed both CMake and pkg-config from Homebrew and they disagree like this, maybe the Homebrew people could be convinced to patch one of them to make them agree.

from pololu-tic-software.

stephanschulz avatar stephanschulz commented on June 3, 2024

I think I figured it out.
the above error in the screenshot happens because when I added the /usr/local/lib/libusbp-1.dylib and /usr/local/lib/libpololu-tic-1.1.8.2.dylib to the Other Linker Flags section I must have removed the items related to openframeworks that were already there.
No the app complies. Fingers crossed that it also runs :)

I had to modify the cmake commands a bit to force to build for macOS 12.3 because my version of openframeworks complained that the library was build for 12.6 while the app is trying to build for 12.3

for libusbp
cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=12.3 ..

for tic
cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix qt5) -DCMAKE_OSX_DEPLOYMENT_TARGET=12.3

Here some screenshot showing my settings just in case my future self needs a reminder.
Screen Shot 2023-05-30 at 7 52 31 AM
Screen Shot 2023-05-30 at 7 52 21 AM
Screen Shot 2023-05-30 at 7 52 06 AM

from pololu-tic-software.

Related Issues (9)

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.