BradLarson / GPUImage3

GPUImage 3 is a BSD-licensed Swift framework for GPU-accelerated video and image processing using Metal.
BSD 3-Clause "New" or "Revised" License
2.68k stars 334 forks source link

MovieOutput, Camera: cannot be constructed - no accessible constructors #18

Closed pawelnathan closed 5 years ago

pawelnathan commented 5 years ago

Hi Brad!

I really like your GPUImage lib. Because of some instability, I'd like to migrate to GPUImage2 or 3. But whenever I use MovieOutput or Camera (using GPUImage 2 or 3), I get the strange error:

When I do

       do {
            let videoCamera = try Camera(sessionPreset: AVCaptureSessionPresetHigh, location: .backFacing)
        }
        catch {
        }

I get 'Camera' cannot be constructed because it has no accessible initializers

Has anyone got an idea, what to do?

Many thanks Regards Werner

pawelnathan commented 5 years ago

After a lot of work, I finally found found the problem. The library does not work in a Swift 3 project. Hope this is of help to somebody else.