resource not found on OSX >> Trial version >> Our Forum Techna

techna.site

Our Forum Techna



SearchSearch   Users   Registration   Entrance
Today: 02.08.2025 - 16:53:47
Pages:  1  

resource not found on OSX

Advertising


AuthorMessage

V Shah

users




Statistics:
Messages: 19
Registration: 02.26.2001

Hello i'm trying to build a simple plugin with a background using WDL-OL as soon as it tries to load a resource background file, i got an ASSERT warning that the file isn't found 1 my files are present in the Copy Bundle Resources part 2 i've tried all kind of combinations with/without subfolder, with caps or not i'm lost there i don't get why it doesn't find the file if i create a simple test it works, it finds the file knob.png but with my project it doesn't work here is what i usein the resource.h: #define BCKG_ID 102 #define BCKG_FN "resources/img/background2.png" and i call the background using this code : pGraphics->AttachBackground(BCKG_ID, BCKG_FN); please help thanks Jeff

---------------------
Vishal '03 Track Evo '97 Eurosport TS M3 - Sold [Track Videos]
Message # 1 01.11.20 - 17:58:46
RE: resource not found on OSX

Ed Salas

users




Statistics:
Messages: 323
Registration: 05.26.2001

okay i found something interesting in MyProject-OSXAPP-Info.plist, "Bundle Identifier" is set to : com.Khaelis.standalone.${BINARY_NAME} but if i stop the program at the function LoadImgFromResourceOSX(...) and look at the variable "bundleID", it shows: "bundleID = com.Khaelis.standalone.test" even if i entered another BINARY_NAME (in MyProject.xcconfig) how come ? the compiler doesn't apply the name i put. the variable "bundleID" should be com.Khaelis.standalone.PerfectEQ not com.Khaelis.standalone.test is there a file that i should update? thanks ***Jeff***

---------------------
Message # 2 01.11.20 - 18:03:40
RE: resource not found on OSX

jhfutch

users




Statistics:
Messages: 63
Registration: 04.06.2003

yay ! GOT IT! if you ever encounter this kind of error (resource not found) check if the Bundle Name (in resource.h) and BINARY_NAME (in Project.xcconfig) are the same then it should work Jeff

---------------------
1985 635 CSi Euro - For Sale
Message # 3 01.11.20 - 18:14:33
RE: resource not found on OSX
Changing sample rate? : Previous topicNext topic: x264 and MeGUI - messed up picture
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants