Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Build Tools    [ Add a report in this area ]  
Report #:  100534   Status: Open
"Resource compiler to use" option doesn't work at all
Project:  Delphi Build #:  16.0.4276.44006
Version:    16.0 Submitted By:   Alexander Alexeev
Report Type:  Basic functionality failure Date Reported:  10/28/2011 2:17:57 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   288508
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: 1
Description
"Resource compiler to use" option seems to be ignored/non-functional.
Steps to Reproduce:
1. Open attached project.
2. Open Project/Options and go to Resource Compiler category.
3. Verify that "Resource compiler to use" option is set to:
a). "Borland Resource Compiler (brcc32.exe)" for Debug profile
b). "Windows SDK Resource Compiler" for Release profile.
4. Close options.
5. Switch to Release profile and compile the project.
6. Check Messages window and see expected output:

Build tab:
brcc32 command line for "Project1.vrc"
  c:\program files (x86)\embarcadero\rad studio\9.0\bin\cgrc.exe -c65001 "Project1.vrc" -foProject1.res

Output tab:
Target BuildVersionResource:
    c:\program files (x86)\embarcadero\rad studio\9.0\bin\cgrc.exe -c65001 "Project1.vrc" -foProject1.res
    CodeGear Resource Compiler/Binder
    Version 1.2.0 Copyright (c) 2008-2010 Embarcadero Technologies Inc.
    
    Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
    
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    
    Deleting file "Project1.vrc".

7. Switch to Debug profile and compile the project.
8. Check Messages window and see unexpected output - the same as on step 6.
Expected output should indicate using of brcc32.exe, not cgrc.exe as indicated now.
Workarounds
None
Attachment
Example.zip
Comments

Conor Boyd at 1/16/2012 1:13:33 PM -
Pretty sure I have the same issue.

My project settings are all set to use BRCC32.  However, it seems to me that Delphi XE2 is ignoring these settings and trying to invoke cgrc.exe.

Since my project source is stored in TFS, unless I explicitly check out my project files (dpr, dprog, res, etc), Delphi XE2 fails to compile my project since the res file is read-only.

The compile failure message is as follows:

Checking project dependencies...
Building Project1.dproj (Release, Win64)
brcc32 command line for "Project1.vrc"
  c:\program files (x86)\embarcadero\rad studio\9.0\bin\cgrc.exe -c65001 Project1.vrc -foProject1.res
[BRCC32 Error] Project1.vrc(1): error creating Project1.res
Failed
Elapsed time: 00:00:00.1

Server Response from: ETNACODE01