Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile on Mac generates error but generates dylib anyway in invisible .libs folder #5

Open
digitaltvguy opened this issue Dec 21, 2018 · 2 comments

Comments

@digitaltvguy
Copy link

CC colorbars.lo
colorbars.c:736:25: warning: suggest braces around initialization of subobject [-Wmissing-braces]
ColorBarsData d = { 0 };
^
{}
1 warning generated.
CCLD libcolorbars.la

@ifb
Copy link
Owner

ifb commented Dec 27, 2018

That's a silly warning, not an error.

Pretty sure it's expect behavior for autotools to put its output in .libs. The same thing happens on Windows at least. All the cool kids are switching to meson, so maybe I'll try that some time.

As in the README, you can just compile it yourself with gcc. It'll need a little tweaking for OSX, though:

gcc -c colorbars.c -I include/vapoursynth -O3 -ffast-math -mfpmath=sse -msse2 -march=native -std=c99 -Wall
gcc -shared -o colorbars.dll colorbars.o -Wl,--out-implib,colorbars.a

If you figure out a one or two-liner for OSX, I'll document it.

@digitaltvguy
Copy link
Author

digitaltvguy commented Dec 28, 2018

For OSX

  • Install homebrew: https://brew.sh
  • Install dependencies via command line:
    • brew install VapourSynth
    • brew install autoconf
    • brew install libtool
  • run instructions for "autotools" compile of VapourSynth-colorbars and ignore generated error message
  • move libcolorbars.dylib to VapourSynth default plug-ins folder or define it as per instructions @ http://www.vapoursynth.com/doc/autoloading.html

Optional (this will allow you to export different video formats thru pipe)
- brew install ffmpeg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants