-
Notifications
You must be signed in to change notification settings - Fork 18
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
Video IO Example #119
Comments
|
Just adding dcv as dependency (as you have already done) should be enough. Although FFmpeg libs (libav*) should be installed on you machine. Could you paste here the output that you're getting when trying to build it? Important detail about the video IO module - which OS are you running? Also, the example has it's own dub configuration (dub.json), so you could just run it with: cd dcv/examples/video
dub -- [args]By |
|
At the moment, I'm trying it on Ubuntu 16.04, dmd v2.074.0, dub version 1.3.0. I did initially have an issue linking to FFMPEG. I git cloned it and compiled and that seems to have fixed those messages. My issue is now limited to linking to glfw I tried the same thing, downloaded the source files, and built them. but to no avail. |
|
Glad you got FFmpeg working, that was the hard part. GLFW should be easier.
That should be your include directory. What you're looking for is the libglfw.so (or libglfw.a) file (library). After Sorry if I'm stating bunch of obvious stuff, I'm just trying to help. :) And btw
Default configuration should do. The only thing you could set is if you'd like static or shared linking (.a or .so). But that's totally up to you, and dcv should work either way. |
|
Apparently I should just use So simple! However, I now get other errors, but related to |
Ah, yes... you could have just done that. :) Ignore my previous answer. Which FFmpeg did you build? DCV (or rather ffmpegd) should work with version 2.x. I'm currently using 2.8.x on my system. If you've just git cloned the FFmpeg repo, you've most probably built 3.x version (master). You should checkout for e.g. n2.8.12 in your git clone and then rebuild it. Also, if you still got the source building directories on your hard drive, just call |
|
So, using I had a Now my build just looks like It's probably the version of ffmpeg that is the issue. I got the latest version (3.3 I think) so I'll have a go at fixing that.
No need to apologise. It's usually something basic/stupid that I'm doing wrong! |
No, you shouldn't have done that. Anyhow, just remove the symlink you've created (/usr/local/lib/linglfw.so), and you should be good from the glfw side.
Yes, you should definitely try that. I hope that will do it. |
Ok with |
|
I encountered the similar issue on Ubuntu 17.10 with stock FFmpeg and OpenGL. All I had to do was this: |
|
@ljubobratovicrelja Is this still an issue? Can it be closed? |
|
@infinityplusb ping |
Sorry for not responding earlier. I'd say yes - you've posted a very neat way of solving this on Ubuntu (and thank you for that :), which @infinityplusb was also using at the time, so I'm closing this one. Anyone feel free to reopen for further discussion if problem resurfaces on some other platform. |
What other things are required to get the example at:
dcv/examples/video/source/app.dworking?
Creating a new dub project and adding
to
dub.jsondoesn't seem to be sufficient.Could someone take the time to walk me through what should be the "other" assumed steps please.
The text was updated successfully, but these errors were encountered: