-
Notifications
You must be signed in to change notification settings - Fork 20
Fixes invalid path reference in CeedGL.h #2
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
base: master
Are you sure you want to change the base?
Conversation
|
Hi Hari. Thank you. Could you tell me how you are integrating CeedGL in your own project? The include files are copied on purpose into a CeedGL/ directory as part of the build process, in a way that we can use the same approach for building an app using either the framework or the static lib. Changing it the way you propose would break that behavior. But I can help you configure your project instead. |
|
Hi Raphael, Thanks again for making this library. I've had another look and this is what I've found….
#import <CeedGL/GLPlatform.h> …unless you tell Xcode to look for CeedGL in Framework Search Path, it prefers quotes "..." rather than <...> I think. However it seems to work if you change it to… #import <GLPlatform.h> or #import "CeedGL/GLPlatform.h" But then is breaks in your demo project as it can't find any of the imports with <> - but then XCode makes a suggestion to change the <>'s to ""'s. If you do, everything works including the static builds...
Hope this helps. I've done all this and sent another pull request. Also I was thinking about a helper method or two on GLProgram to load, compile and link a vertex/fragment shader pair either from strings or files. It's a very common use case and would save a nice chunk of code. Are you open to such additions? Gratefully, ══════════════════════════════════════ "A very unique and sophisticated virtual musical instrument"
"Surprisingly absorbing and relaxing"
http://soundwandapp.com | Tw | Fb | Yt | Sc ══════════════════════════════════════ On 30 Jul 2013, at 18:05, Raphael Sebbe notifications@github.com wrote:
|
|
Hari, When you say it doesn't compile, is it your own project making use of CeedGL, or the CeedGL itself? The headers are actually meant to be included as a framework <CeedGL/GLTexture.h>. It's a choice I made. It is easier to handle when you have multliple libraries around. I'd like to have it to work that way too in your setup too, instead of changing the approach. So please include build log, Xcode version, platform you're targeting, and I'll try to get you going. |
|
Hi Raphael, The CeedGL iOS project gives the error below straight out of the box: /Users/Club15CC/Google Drive/Code/ScottishPower/ScottishPower/Vendor/CeedGL/Sources/GLTexture.h corrected by adding an import for quartz My project gives /Users/Club15CC/Google Drive/Code/ScottishPower/ScottishPower/Vendor/CeedGL/Sources/GLObject.h:10:9: 'CeedGL/GLPlatform.h' file not found And when you fix that, others pop up... I've never seen an iOS library not use quotes - e.g. AFNetworking, BlockKit, MagicalRecord. Maybe it's different in OSX. Like a mentioned it works fine with <> if you remove the "CeedGL/" prefix which seems to make sense to me as these header files are in the same folder "CeedGL" hence no for the prefix? Or am I missing something. I have my project set to search the Vendor folder (in which CeedGL lives) recursively. Anyway, I've got it working, I just would like to contribute but I can't really if my version isn't in sync with yours… Thanks for taking the time to have a look... Gratefully, ══════════════════════════════════════ "A very unique and sophisticated virtual musical instrument"
"Surprisingly absorbing and relaxing"
http://soundwandapp.com | Tw | Fb | Yt | Sc ══════════════════════════════════════ On 31 Jul 2013, at 15:49, Raphael Sebbe notifications@github.com wrote:
|
|
Hari, I'm trying to understand the compilation failure. Here it builds out of the box on a test (blank) user account with both Xcode 4.6.3 & 5DP4, on a 10.8.4 Mac.
(I agree there is a problem with CGSize declaration that needs to be fixed, but it should nonetheless compile in its current state because it is included in the .pch) To answer your question, Xcode is supposed to copy CeedGL header files during the build to a location, under the CeedGL/ subpath, that is an implicit framework search path (you don't have to add yourself in the target). This is why I was asking the full transcript of the failure (the CompileC + full page of compiler args), to see if that implicit path was correctly added by Xcode. If you have that line + whole arg list for the failed compilation, please include it as well. Thank you for your help identifying the problem. |
|
Hi Raphael Attached are the build logs for the iOS demo app form a clean master (62f04ed modernized project) for Xcode 4 iOS6 and Xcode 5 DP3 iOS6. Let me know if this helps…. Hari Karam Singh On 31 Jul 2013, at 20:17, Raphael Sebbe notifications@github.com wrote:
|
|
There is no attachment, I can't review it. Can you send it again? |
Hi. I had compiler errors from CeedGL.h not being able to find the referenced header file includes. Great lib btw. I had planned to write something similar and was happy to find out someone else had down it already!