Localized.rsrc: no such file or directory

531 views
Skip to first unread message

heinob

unread,
Apr 21, 2013, 12:48:58 PM4/21/13
to firebre...@googlegroups.com
I am compiling my first project on a Mac, so please be patient with me...

When building my plugin based on the mac tutorial video I get the following error in xcode:

error: /Users/me/github/firebreath/../myplugin/build/projects/myplugin/bundle/English.lproj/Localized.rsrc: No such file or directory

There is a Localized.r in the mentioned folder, but no Localized.rsrc. When I rename the extension of the file to .rsrc the build process succeeds then, but I don't think that this is the right way, isn't it!? You told us not to modify anything in the build directory!

What am I doing wrong? Thanks for your help!  

Richard Bateman

unread,
Apr 22, 2013, 12:09:48 PM4/22/13
to firebre...@googlegroups.com

What version of Mac OS? What version of xcode? What version of cmake? What version of FireBreath?

This doesn't sound like anything I've seen before, it probably means somehow it couldn't compile the resource at build time.

Richard

--
 
---
You received this message because you are subscribed to the Google Groups "firebreath-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebreath-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jochen Brüggemann

unread,
Apr 22, 2013, 12:33:43 PM4/22/13
to firebre...@googlegroups.com
Mac OS: OS X 10.8.3
Xcode: 4.6.2 (4H1003)
cmake: 2.8.10.2
FB: 1.7



2013/4/22 Richard Bateman <ric...@batemansr.us>

--
 
---
You received this message because you are subscribed to a topic in the Google Groups "firebreath-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebreath-dev/Zem0gWygVjo/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to firebreath-de...@googlegroups.com.

Schmoo

unread,
Jan 13, 2014, 7:45:37 AM1/13/14
to firebre...@googlegroups.com
In my case (OSX 10.9) its because the following cmake call is failing:
    execute_process(COMMAND
        ${RC_COMPILER} ${RCFILES} -useDF ${ARCHS} -arch x86_64 -o ${CMAKE_CURRENT_BINARY_DIR}/bundle/English.lproj/Localized.rsrc
        )

Which is due to it being unable to locate:  CoreServices.r

Which according to the FAQ is due to missing xcode command line tools (which I think is out of date for 10.9)

My quick fix was to tweak Localised.r to include:
#include </Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/CoreServices.r>

I will try and come up with a proper workaround (once I confirm my control is working on OSX 10.9 + FireBreath/master

Gordon.

mkoch

unread,
Feb 7, 2014, 7:11:20 AM2/7/14
to firebre...@googlegroups.com
Hi, 

I have very similar problem: OS X Mavericks, Xcode 5.0.2, CMake 2.8.12.2 

Xcode build crashes with this:
The following build commands failed:
PBXCp /Users/mkoch/work/splayer/build/projects/SPlayer/bundle/English.lproj/Localized.rsrc /Users/mkoch/work/splayer/build/projects/SPlayer/Debug/npSPlayer.plugin/Contents/Resources/English.lproj/Localized.rsrc

And the reason is that  /Users/mkoch/work/splayer/build/projects/SPlayer/bundle/English.lproj/Localized.rsrc is not there.

I tried the #include... trick suggested by Gordon, but still no success. Do you have any other idea?

Thanks, Mate

mkoch

unread,
Feb 13, 2014, 4:47:03 PM2/13/14
to firebre...@googlegroups.com
I found additional info today. During the run of the prepmac script, the following error was generated:

/Users/mkoch/splayer/build/projects/SPlayer/bundle/English.lproj/Localized.r: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Since errors occurred, /Users/mkoch/splayer/build/projects/SPlayer/bundle/English.lproj/Localized.rsrc's resource fork was not written.

Any idea?

Thanks,
Mate

Zhang Jerry

unread,
Feb 28, 2014, 2:56:07 PM2/28/14
to firebre...@googlegroups.com
I also have the same problem. 

After using the #include trick from mkoch, I got

/Users/jerry/temp/build/projects/BasicMediaPlayer/bundle/English.lproj/Localized.r:1: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Expected filename (string), but got number (9)
Rez(20515,0xa16de1a8) malloc: *** error for object 0x18058: pointer being realloc'd was not allocated
*** set a breakpoint in malloc_error_break to debug
Generating /Users/jerry/temp/build/projects/BasicMediaPlayer/bundle/English.lproj/Localized.rsrc

Any idea?

Koch Máté

unread,
Mar 1, 2014, 7:23:48 AM3/1/14
to firebre...@googlegroups.com
Hi Zhang Jerry,

Finally I found a solution. In my case, the problem was that I tried to add multiple mime types in the plugin config file (actually the same word with different letter cases). This worked on linux an windows, but cmake on Mac could not process it, that was the reason in my case, the Localized.rsrc wasn't created. 

Cheers,
Mate

--
Koch Mate
20 9795411

--

yin...@temasys.com.sg

unread,
Jan 21, 2015, 10:46:03 PM1/21/15
to firebre...@googlegroups.com
Hi Mate,
I'd like to know if is there any work around on this problem?

Richard Bateman

unread,
Jan 22, 2015, 12:11:14 AM1/22/15
to FireBreath Dev Group

If something like this is happening it likely means the output in the generated file isn't correct.  Check the generated Localized.r file from your build directory and see if you can figure out why it can't process the file -- most likely something about how you've done your multiple mimetypes has broken something.

Richard

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages