Best Practices for MultiPlatform in single OF folder

Hello,

What is the easiest approach to combining multiple OF platforms into one? I usually download OF for OSX and then for Windows and then copy over the appropriate libs, scripts, project generator etc. into a single folder. Is there a more efficient way of doing this?

Thanks!
Nick

you can use the download_libs.sh script to download libraries, by passing the -n flag it’ll keep any libraries already there, you can also pass arguments for each platform so you could create a script that downloads all of them at once

–help will give you a help message

be aware that the script is only thought to be used for development so by now it’ll only download libraries for master not the stable ones. it should be pretty straightforward to add a new argument to download for an specific version though

2 Likes

YES. This is amazing. I had to install wget and all the dependencies and the wrestle with SIP on OSX, but worked great afterwards for the master branch. There is already an arg for --version. I tried stable, but it didn’t work. Any idea what I might be doing wrong to get the stable libs?

Nicks-MacBook-Pro:scripts NickHardeman$ ./download_libs.sh -n -v stable -p vs2017

Downloading openFrameworksLibs_stable_vs2017_32_1.zip

--2018-12-14 11:11:12-- http://ci.openframeworks.cc/libs/openFrameworksLibs_stable_vs2017_32_1.zip

Resolving ci.openframeworks.cc... 198.61.170.130

Connecting to ci.openframeworks.cc|198.61.170.130|:80... connected.

HTTP request sent, awaiting response... 404 Not Found

2018-12-14 11:11:12 ERROR 404: Not Found.

you have to specify the semver version as in 0.10.1 but from the link it shows there i think it’ might be wrong since it should be downloading from

http://ci.openframeworks.cc/libs/0.10.1/....

Hmm, yeah the script places the --version tag inside the zip filename, not appending to the url.
So it creates the url: http://ci.openframeworks.cc/libs/openFrameworksLibs_(--version)_vs2017_32_1.zip
Testing in the browser,
Does not Work: http://ci.openframeworks.cc/libs/0.10.1/openFrameworksLibs_stable_vs2017_32_1.zip
Works: http://ci.openframeworks.cc/libs/0.10.1/openFrameworksLibs_master_vs2017_32_1.zip

That should be pretty straightforward to fix. If you can send a PR?

Yeah.
What is the proper url for the stable libs? I can only get the master

that’s the correct url by now. you can see all the libraries in http://ci.openframeworks.cc/libs the real master ones are in the root the stable version ones in their corresponding libs although the name includes master instead of stable.

the release.sh script is probably renaming them incorrectly but just leave them as master by now if you want and i’ll fix the release script later

Ok great. Sent a PR. :slight_smile: Thank you!!