[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] RE: [cdt-debug-dev] Resource compiler?

Hi Jean-Claude,

The problem might be in incorrect custom build settings. You might also
want to check the makefile being generated to see what's wrong there.

Here is an example of using the resource custom build steps:

Suppose you have the resource.rc file in the project root directory and
want to generate the resource.o that is then to be linked into an
executable together with the other .o files:
The Custom Build steps settings for the resource.rc would look like:

"Custom Build Step Applicability"->"Apply Custom Build Step..."
"Output file name(s):"->"resource.o"
"Command"->"windres ../resource.rc resource.o"

BTW, you might better ask the user questions to the newsgroup since this
list is mostly for developer discussions.

Regards,
Mikhail

-----Original Message-----
From: Jean-Claude Gervais [mailto:jc.gervais@xxxxxxxxxxxx] 
Sent: Monday, June 05, 2006 9:31 PM
To: Sennikovsky, Mikhail
Cc: cdt-dev@xxxxxxxxxxx
Subject: RE: [cdt-debug-dev] Resource compiler?

Mikhail,

Thanks for the info. I tried it but I get the following:

make -k clean all 
rm  -rf ./src/main.o ./resource.o bppfcEdit.exe
[...]
make: *** No rule to make target `resource.o', needed by
`bppfcEdit.exe'.



On Mon, 2006-06-05 at 20:05 +0400, Sennikovsky, Mikhail wrote: 
> Hi,
> make: *** No rule to make target `resource.o', needed by
`bppfcEdit.exe'.
> The problem you are seeing might occur because the project pre- and
> post- build steps do not provide any information about files being
used
> and generated and thus CDT/MBS is not always possible to take into
> account those files while build.
> 
> You might want to use the resource custom build steps instead of
project
> custom build steps in your case.
> 
> The resource custom build steps settings are accessed via the "Custom
> Build Steps" tab of the file "C/C++ Build" property page (right-click
on
> the rc file and select "Properties" in the context menu).
> 
> You then might enable the custom build step and add the "windres
> ../src/resource.rc ../Debug/resource.o" to the command field and
> "resource.o" to the "Output file name" field to make your resource
file
> be compiled and included in the build. 
> 
> Mikhail
> 
> -----Original Message-----
> From: cdt-debug-dev-bounces@xxxxxxxxxxx
> [mailto:cdt-debug-dev-bounces@xxxxxxxxxxx] On Behalf Of Jean-Claude
> Gervais
> Sent: Monday, June 05, 2006 7:35 PM
> To: CDT Debug developers list
> Subject: Re: [cdt-debug-dev] Resource compiler?
> 
> Thanks for the info.
> 
> I did manage to get resources to compile:
> 
> In the project's BUILD STEPS, I put
> windres ../src/resource.rc ../Debug/resource.o
> 
> in the COMMAND: edit field and added
> ../Debug/resource.o
> in the Tool Settings - Miscellaneous field.
> 
> The downside is that resources get compiled only when I do a CLEAN.
> It would be good if there was a way to get the .RC file considered in
> the project dependencies, but I have no clue how to do that.
> 
> Thanks again.
> 
> 
> On Tue, 2006-05-23 at 15:55 -0400, Chris Recoskie wrote:
> > Well, assuming you are using Managed Build, you would need to have
> > toolchain definitions that would support Microsoft's resource
> compiler.
> > Right now we don't have these.  If someone wants to volunteer the
> effort
> > though we'll happily make them a part of CDT somewhere.
> > 
> > If you are using Standard Make to build your project you can of
course
> do
> > anything you wish in your makefile, since you get to write it by
hand.
> > 
> > ===========================
> > 
> > Chris Recoskie
> > Team Lead, IBM CDT Team
> > IBM Toronto
> > http://www.eclipse.org/cdt
> > 
> > 
> > 
> >
> 
> >              Jean-Claude
> 
> >              Gervais
> 
> >              <jc.gervais@video
> To 
> >              tron.ca>                  CDT Debug developers list
> 
> >              Sent by:                  <cdt-debug-dev@xxxxxxxxxxx>
> 
> >              cdt-debug-dev-bou
> cc 
> >              nces@xxxxxxxxxxx
> 
> >
> Subject 
> >                                        [cdt-debug-dev] Resource
> compiler?  
> >              23/05/2006 03:45
> 
> >              PM
> 
> >
> 
> >
> 
> >              Please respond to
> 
> >                  CDT Debug
> 
> >               developers list
> 
> >              <cdt-debug-dev@ec
> 
> >                 lipse.org>
> 
> >
> 
> >
> 
> > 
> > 
> > 
> > 
> > Hi,
> > 
> >              I've been using Eclipse to develop console-mode
> applications
> > for a
> > little while now and so far it has worked really well.
> > 
> >              But upon writing a graphical Win32 application, I
> couldn't
> > figure out
> > how to specify an .RC file for my project.
> > 
> >              Is there a way (using the Eclipse IDE) to specify a
> resource
> > script
> > that should be compiled and bound to the output executable?
> > 
> > Thanks in advance.
> > J
> > 
> > _______________________________________________
> > cdt-debug-dev mailing list
> > cdt-debug-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
> > 
> > 
> > _______________________________________________
> > cdt-debug-dev mailing list
> > cdt-debug-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
> 
> _______________________________________________
> cdt-debug-dev mailing list
> cdt-debug-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev