COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 04-22-2011, 10:28 AM   #1
onqel
Human being with feelings
 
onqel's Avatar
 
Join Date: Jun 2007
Location: Troms°, Norway
Posts: 223
Default OSX n00b Resource problem..

Hi

I've got access to a OSX system (10.6) with Xcode 4 .. the IPlugExample built just fine.

The problem occours now when I'm trying to build and run one of my own plugins.. It builds fine but the plugin can't find one of the resources (Assertion failed: (imgResourceFound)) .. I think I've tried and failed for a couple of hours now without luck and I haven't touched OSX and XCode before so if you guys can tell me what I'm doing wrong it'll be very helpful!

I'm the project I'm adding (all) my graphics to Resources/img/...
The resource.h tells the program to look for e.g "img/BG.png" ..
(All) the files appears in "Copy bundle resources" in both the AU and VST target ..

(The project is built a modifed IPlugExample.xcodeproj)

Thanks..
onqel is offline   Reply With Quote
Old 04-22-2011, 10:49 AM   #2
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 2,939
Default

I also got the imgResourceFound failure when I first tried to build for OS X. In my case the problem was that on Mac OS X filenames are case-sensitive. On Windows I never noticed this, because on Windows filenames aren't case-sensitive.

BTW, I found out which image it was by disabling all GUI controls, and then adding them again one by one. When I enabled the GUI control using the culprit image filename, I got the imgResourceFound failure again, so then I knew it had something to do with that specific image.
Tale is offline   Reply With Quote
Old 04-23-2011, 08:25 AM   #3
onqel
Human being with feelings
 
onqel's Avatar
 
Join Date: Jun 2007
Location: Troms°, Norway
Posts: 223
Default

Thanks,

it didn't help me much though :\
onqel is offline   Reply With Quote
Old 04-23-2011, 01:50 PM   #4
cc_
Human being with feelings
 
Join Date: Mar 2009
Posts: 256
Default

My images always end up in Contents/Resources/ (not in an img subdirectory).
cc_ is offline   Reply With Quote
Old 04-23-2011, 05:03 PM   #5
onqel
Human being with feelings
 
onqel's Avatar
 
Join Date: Jun 2007
Location: Troms°, Norway
Posts: 223
Default

Quote:
Originally Posted by cc_ View Post
My images always end up in Contents/Resources/ (not in an img subdirectory).
Yeah they end up the same here.. but, I put my images in the image folder under the XCode project's resource folder ..
I'll figure it out eventually

Last edited by onqel; 04-23-2011 at 05:10 PM.
onqel is offline   Reply With Quote
Old 04-24-2011, 04:31 PM   #6
olilarkin
Human being with feelings
 
olilarkin's Avatar
 
Join Date: Apr 2009
Location: Huddersfield, UK
Posts: 1,154
Default

got any jpg resources? I just had this problem... img resource not found, i was trying to load a jpg and forgot i had removed it from my iplug, since i thought i'd never need it... typical!
__________________
VirtualCZ | pMix | Endless Series | iPlug2 | Linkedin | Facebook
Available for Audio Dev tuition via Skype (IPlug/JUCE/C++)
olilarkin is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.