uvc-util icon indicating copy to clipboard operation
uvc-util copied to clipboard

FR: Provide build and deploy instructions

Open kubark42 opened this issue 2 years ago • 7 comments

This looks like a really cool project, and I'm really enjoying using it. Heckofajob!

Would it be possible to add build and deploy instructions to the Readme.md? It might even be great if there were a way to build strictly from the CLI, so there's no need to try to describe how to use the XCode GUI.

kubark42 avatar Feb 12 '23 02:02 kubark42

Feel free to fork a copy and supply an augmented README.md in a pull request. The organization that needed this program no longer uses it, so I don't have time to actively support further development of the code.

jtfrey avatar Feb 13 '23 13:02 jtfrey

Understood! Unfortunately, I personally don't use XCode well enough to describe how to make it compile, aside from "poke at a bunch of crap until something looks sane".

Maybe someone else can fill in the blanks?

kubark42 avatar Feb 13 '23 17:02 kubark42

I don't have Xcode installed currently but looking at my shell history I believe I used this command to build it in the terminal.

xcodebuild -scheme uvc-util build

I don't recall having to do anything in the Xcode GUI to build it.

BeansIsFat avatar Feb 13 '23 18:02 BeansIsFat

@BeansIsFat, thanks, that (sorta) worked!

The reason I say "sorta", is because the files were generated in a strange place, which I only found by looking through the console spew and finding ~/Library/Developer/Xcode/DerivedData/uvc-util-dgdxibmkflixffddgnwzmrezdnau.

So would just need to figure out how to make the build target directory something local, and maybe as well make a Release version instead of a Debug version.

kubark42 avatar Feb 13 '23 23:02 kubark42

Try from the cloned source directory:

xcodebuild -derivedDataPath ./build -scheme uvc-util -target uvc-util -configuration Release

and look for the executable under ./build/Build/Products/Release/uvc-util.

jtfrey avatar Feb 13 '23 23:02 jtfrey

@jtfrey nice. I tried your code from the unzipped repo archive, and worked perfectly there, too.

Thanks again for this util, it's perfect for our educational work.

kubark42 avatar Feb 14 '23 01:02 kubark42

see: PR https://github.com/jtfrey/uvc-util/pull/18

stevenfoncken avatar Dec 11 '23 12:12 stevenfoncken