Comments (11)
yeah that would be useful, wget is also needed
from apothecary.
I wonder if we could avoid using realpath for OS X?
adding a requirement to have brew installed seems like an extra step that might not be needed.
For wget OS X equivalent is:
curl -O <url>
@Daandelange where in the script are you getting the error?
from apothecary.
@ofTheo On every line where realpath
is called in apothecary/apothecary
a line error is thrown saying the execution failed, ending up in a (weird?) failure message. Also, the setting variables are not set.
$ ./apothecary update core
./apothecary: line 111: realpath: command not found
./apothecary: line 112: realpath: command not found
./apothecary: line 113: realpath: command not found
./apothecary: line 114: realpah: command not found
OF:
APOTHECARY: /Developer/openFrameworks/scripts/apothecary/apothecary
FORMULAS:
BUILD:
LIBS_DIR:
ADDONS: /addons
No formula for lib "PROGRESS"
Alternatively I found a series of replacement-functions to realpath and some more.
There's also a more lightweight dependency : realpath-osx
from apothecary.
@ofTheo this scripts now run on the test servers so we won't need to run them locally most of the time. realpath is really useful to figure out some things and wget is usually more reliable than curl since it retries a certain number of times and in the case of linux is always there by default while you have to manually install curl so if we changed it we would need to install curl for every other platform anyway.
from apothecary.
btw, @Daandelange why are you trying to run apothecary locally? all the libraries are now automatically compiled whenever something changes and can be found here: http://ci.openframeworks.cc/libs
from apothecary.
@arturoc - ahh that makes sense. in that case its not a huge ask, if most of the time it won't be needed to be run locally. Also didn't realize how many places the realpath was used in.
Totally agree then!
Maybe just add a note in the ReadMe or a setup script as @Daandelange suggests.
Cheers!!
from apothecary.
from apothecary.
Note: I just noticed there's an osx install script in /scripts/osx/install.sh
already installing coreutils. :)
Closing this issue.
from apothecary.
I'd like to re-open this. For situations where we have addons that require custom ofx add-on builds that use apothecary, we need to have a little easier support for people who don't have the full master branch cloned. Possible solutions:
- Replace
realpath
andwget
- Include
scripts/osx/install.sh
in the distribution version of OS X
By the way, I'm also missing realpath on linux / OS X builds when I use the addons/ci scripts, so this would solve that problem too.
from apothecary.
as @Daandelange noted when closing the issue there's already a scripts/osx/install.sh script that installs the necessary bits. isn't that enough? this tools are used cause they are much more reliable than the alternatives so i don't think substituting them is a good idea.
from apothecary.
Got it. I was looking in the openFrameworks/scripts/osx dir.
from apothecary.
Related Issues (20)
- iOS Simulator Need to compile arm64 with simulator libs HOT 5
- Need to remove all the hardcoded Visual Studio paths.
- Suggestion: a parameter overwrite or similar HOT 2
- Linux Arm CI is not working amrv7 HOT 1
- Disable upload to CI server once all platforms are publishing to Github Releases
- Update CI to windows 2019 ( msys2 / VS )
- msys2 clang64 failing
- VS libs aren't currently working HOT 5
- [update emscripten] FreeImage does not compile for emscripten with > c++11 HOT 11
- Assimp needs Debug build for VS or different runtime linking. HOT 1
- Current PRs / Actions failing for msys2 and SVGTiny HOT 10
- [update emscripten] freetype creates linker error 'unknown file type'
- [update emscripten] opencv formula fails if emsdk on custom path HOT 2
- deprecation warning from Github Actions
- Cairo lib for Emscripten
- Update Boost version to use Filesystem v4 HOT 4
- CI build libs for linuxaarch64 to work with RPI 4 HOT 2
- libusb not present on ofxKinect, vs2019 HOT 4
- ofxSvg incomplete on aarch64 HOT 3
- 0.12.0 is out - lets break some **** HOT 6
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 apothecary.