Open stephanschulz opened 1 year ago
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
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.
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.
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.
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.
I am following the sets here https://github.com/pololu/pololu-tic-software/blob/master/BUILDING.md to build on a Mac book pro with M1 chipset. On an M1 brew installs most things in
/opt/homebrew/Cellar/
but I think the Pololu make script is looking for things in usr/localIs there a work around I can do?
I get this error message after running all the commands listed:
ibusbp-1
oribusbp
can not be foundbrew install pkg-config cmake qt5
prints outThanks