Giter Club home page Giter Club logo

Comments (14)

boland25 avatar boland25 commented on July 3, 2024

Tom, few thing you can try in that case. I notice a pod warning say it can't properly build because of the arch settings. If ur trying to use this from a pod that might be the issue, u need to change the arch settings of the cocoapod project in your workspace to something that works with your project. Then rebuild. If your not using a pod and u are importing it directly.... It looks like it can't find that file. Locate that class.m file in your workspace and open up the right side drawer. It should show you the target membership of that file and the target your building for should be checked. If not then it's not imported properly. I would search google for kind that need to be imported a similar way that have instructions and follow them. Welcome to the wonderful world of dealing with Xcode and it's eccentricies

from dlcimagepickercontroller.

tbergeron avatar tbergeron commented on July 3, 2024

I imported it directly. There's no GPUImage or DLCImagePickerController pod in my project, I imported them using git clone and dragging the xcodeproj to my XCode window only.

All pods are using this configuration:

The thing is, if I remove libPods.a, it won't compile. I can add it back, it's there and on the disk but once I added it back in Frameworks it goes back red.

I don't know if that's supposed to be looking like this but the file is marked for the DLCImagePickerController target:

I'll keep on checking Google for any related solutions.

Thanks a lot for the help, really appreciated!

from dlcimagepickercontroller.

tbergeron avatar tbergeron commented on July 3, 2024

Also here's a list of my header imports, I guess they're alright as they seem to work:

(GPUImage source directory is within DLCImagePickerController directory)

from dlcimagepickercontroller.

boland25 avatar boland25 commented on July 3, 2024

Tom,

I'm not completely sure but it looks like you might need to build that
project that you imported into your code first and then add it to your
build phases in add frameworks section.

In the top of Xcode where your target says vinpin, u can choose another
target to build for and one of them should be dlcimage., choose that and
build it. Then go back to you target and go to the build phases and add
frameworks and libs. Search for it and you should see it.

Hope that does it

On Monday, December 16, 2013, Tommy Bergeron wrote:

Also here's a list of my header imports, I guess they're alright as they
seem to work:

https://github-camo.global.ssl.fastly.net/cbb4d847a9d5aba537575d6a6b693fd534995da7/687474703a2f2f636c2e6c792f696d6167652f32473356306c31703045304c2f53637265656e25323053686f74253230323031332d31322d31362532306174253230332e30302e3034253230504d2e706e67


Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-30694701
.

from dlcimagepickercontroller.

tbergeron avatar tbergeron commented on July 3, 2024

Ok so

  1. I built it by switching target to DLCImagePickerController and then clicked both on the run button and went in Product -> Build For -> Running just to be sure.

  2. I went back to my project (VINPIN) target. I can add it as dependency which works:

but I cannot add it in "Link Binary With Libraries" though:

Also I get this now:

Ah man, there's problem popping everywhere! Thanks so much for the help

from dlcimagepickercontroller.

boland25 avatar boland25 commented on July 3, 2024

Hmmm it appears that this library isn't meant to be compiled like that. If
it had been successful you would of seen the little toolbox icon next to
dlcimage.... Lib.

I think that your going to want to follow instructions somewhere online
for importing another framework into your Xcode project. I'm not sure what
the problem is without sitting and playing with the file.

Try following instructions for adding the three20 framework and replace
three20 project with dlcimagepicker.... see if that helps you get your
project Built.

Greg

On Monday, December 16, 2013, Tommy Bergeron wrote:

Ok so

  1. I built it by switching target to DLCImagePickerController and then
    clicked both on the run button and went in Product -> Build For -> Running
    just to be sure.

https://github-camo.global.ssl.fastly.net/1a5cb70db7b8d0d710895b7059c5ff5f3901a1c0/687474703a2f2f636c2e6c792f696d6167652f3057316331503153324f32322f53637265656e25323053686f74253230323031332d31322d31362532306174253230332e30372e3534253230504d2e706e67

https://github-camo.global.ssl.fastly.net/aa13e3d83550faf82c3b8387c822b9346928ce9d/687474703a2f2f636c2e6c792f696d6167652f3039335430343159325432482f53637265656e25323053686f74253230323031332d31322d31362532306174253230332e31302e3338253230504d2e7%2006e67

  1. I went back to my project (VINPIN) target. I can add it as dependency
    which works:

https://github-camo.global.ssl.fastly.net/15a9152782fc0ad2f0340777521bb772e7d40245/687474703a2f2f636c2e6c792f696d6167652f3371334a3377316f336230452f53637265656e25323053686f74253230323031332d31322d31362532306174253230332e30382e3338253230504d2e706e67

but I cannot add it in "Link Binary With Libraries" though:

https://github-camo.global.ssl.fastly.net/26ced4938e4c14b9be7ad4ba739fbd4322721fb6/687474703a2f2f636c2e6c792f696d6167652f343234353373306d324630382f53637265656e25323053686f74253230323031332d31322d31362532306174253230332e30392e3530253230504d2e706e67

Also I get this now:

https://github-camo.global.ssl.fastly.net/1b5e97a035af9832b7a70162aa87c1a4144737b8/687474703a2f2f636c2e6c792f696d6167652f305a337931583073304c34332f53637265656e25323053686f74253230323031332d31322d31362532306174253230332e31322e3135253230504d2e706e67

Ah man, there's problem popping everywhere! Thanks so much for the help


Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-30696008
.

from dlcimagepickercontroller.

tbergeron avatar tbergeron commented on July 3, 2024

I tried to make a separate project without cocoapods or anything, dragged the DLCImagePickercont... in it and I got the exact same thing:

I'll upload that project so the owner of the project can check if it's a bug or something.

Meanwhile I'll go check three20 install instructions, we never know maybe it'll help!

Thanks a lot again

from dlcimagepickercontroller.

tbergeron avatar tbergeron commented on July 3, 2024

Here's the workspace archive in case anybody would like to try to run it. I carefully followed GPUImage installation instructions, and I would have followed DLCImagePickerController own install instructions if there would have been any!

I also recursively added SRCROOT/DLCImagePickerController/ in header paths.

Here's the project: http://cl.ly/1N3g0f3G2f3h/TestDLCImagePickerControllerProject.zip

It'd be great if somebody could find the issue, I'm not asking you @boland25 for it as you've already did plenty enough to help me! haha

Thanks everybody

from dlcimagepickercontroller.

tbergeron avatar tbergeron commented on July 3, 2024

Just had the exact same problem with another library I cloned from GitHub. So it's 100% my fault here, but I need to know what I'm doing wrong please anybody point me in the right direction :( Thanks

from dlcimagepickercontroller.

asmore avatar asmore commented on July 3, 2024

you can try this:

1.go to project's Build Setting in XCode5, choose "Basic", "Combined" for change setting quickly;
2.Architectures, choose "armv7, armv7s", remove "arm64",,

because your libpods.a didn't support 64-bit

------------------ Original ------------------
From: "Tommy Bergeron";[email protected];
Date: Tue, Dec 17, 2013 03:08 AM
To: "gobackspaces/DLCImagePickerController"[email protected];

Subject: [DLCImagePickerController] I can compile DLCImagePicker proejct frommy project, but can't compile the project itself (#49)

Hi,

I installed DLCImagePickerController, follow GPUImage instructions, etc.

It looks like this within my project:

When I select DLCImagePickerController as my target, it builds flawlessly.

I can #import <> the library but as soon as I try to alloc it I get this:

I know it's not a 100% related problem but mostly as project linking issue but I'd really need some help figuring this out. I've spent almost 2 days figuring it out and I'm still scratching my head on it.

If this can be of any help here's more screenshots:
Build Settings
Build Phases

Also any usage example anywhere? I'm sure it's simple enough but it'd be great to know what to look for when testing if the library is working.

Thanks a lot and have a nice day.

¡ª
Reply to this email directly or view it on GitHub.

from dlcimagepickercontroller.

tbergeron avatar tbergeron commented on July 3, 2024

@asmore thanks for the help but I already have those settings:

There's no arm64 anywhere to be found. :-/

EDIT: Except here:

from dlcimagepickercontroller.

tbergeron avatar tbergeron commented on July 3, 2024

I had to create a new target (static library) and drag all .m and .h and leave resources in my project, set it up with the proper frameworks and I got it fixed and working.

from dlcimagepickercontroller.

boland25 avatar boland25 commented on July 3, 2024

Tom,

Glad to hear u got it working. In the future if you run into a github lib
without any instructions on how to implement I would use another library.
Github is about providing support to our fellow devs so it should be
within reason to expect to be shown how to install a lib.

Good luck and hope you've learned a lot through this exp

Greg

On Tuesday, December 17, 2013, Tommy Bergeron wrote:

I had to create a new target (static library) and drag all .m and .h and
leave resources in my project, set it up with the proper frameworks and I
got it fixed and working.


Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-30786977
.

from dlcimagepickercontroller.

tbergeron avatar tbergeron commented on July 3, 2024

Thanks for the insight, I kept on using that library because it's the only one that does so much for camera filters, etc (that I know of).

I 110% agree about GitHub and support, that's the strongest part of the platform and yet some devs just don't give a damn about their libs users or are just too busy. Anyways, thanks a lot to you as you've been of great help!

Things are running smoothly now that I know how to properly handle static libraries, etc. So I ended up this experience with better knowledge which is always worth the trouble! :P

from dlcimagepickercontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.