Comments (5)
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.
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.
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.
from pololu-tic-software.
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.
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.
from pololu-tic-software.
Related Issues (9)
- README link is to wrong webpage HOT 1
- API documentation HOT 1
- Possible to compile 64-bit version on Windows to be able to use in Python? HOT 5
- Simple circuit for bidirectional level shifting 5V to 3.3V for I2C HOT 2
- Configure Limit Switches Via I2C
- current position resets to 0 HOT 1
- Applicable license? HOT 4
- libusbp::error: Could not find interface 2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pololu-tic-software.