-
Notifications
You must be signed in to change notification settings - Fork 57
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
Can't load .jpg images when using ofxKinectV2 #42
Comments
Thanks for this report. Will test this out. |
Just tested this on OSX with an app built with the project generator and was able to load both jpg and png. As Theo mentioned, libturbojpeg could be interfering if it's added to Xcode or the lib is linked. That lib is not needed on OSX. If it's added try removing it and see if that fixes it. |
Hmm weird - I am on macOS 10.14.6 and also can't recreate this issue. Are you using Xcode or another environment / make files? |
Hey, thanks for the super fast response. That's weird, I'm not sure what I'm missing here.
As Nick suggested, I also tried to remove libturbojpeg. I only found mentions to it under addons/ofxKinectV2/addon_config.mk, so I commented these lines:
but I still have the same issue. When I check the obj/osx/Release/.compiler_flags file after compiling the code, I can see the following mentions to libturbojpeg:
When I remove the ofxKinectV2 from the addons.make file, there are no mentions to libturbojpeg in obj/osx/Release/.compiler_flags and the code works fine. So apparently ofxKinectV2 is still making usage of libturbojpeg somehow? Do you guys have the same flags when using ofxKinectV2? Do you have any suggestion on how can we avoid that? |
So looks like a vscode / makefile quirk as Xcode doesn't seem to have these issues. Either way the ADDON_INCLUDES_EXCLUDE should be excluding the files. That might be the project generator not picking up the includes correctly. If you delete this folder all together from Finder does it build and run okay? |
Good news! Deleting the folder I think the issue might be with makefile since I get the same problem when I'm using the Terminal. Thank you very much Theo, I appreciate the fast responses! You work is really inspiring. |
Thank you very much for the addon, Theo!
I came across the following issue. I can't open a .jpg image if I have ofxKinectV2 in the addons.make file. Loading .png works fine.
addons.make
ofApp.h
ofApp.cpp
When I run the code above and drag a .jpg onto the canvas, I get the following on the terminal:
I'm using of_v0.10.1_osx_release on macOS 10.14.4.
The text was updated successfully, but these errors were encountered: