×

Discussion Board

Page 1 of 3 123 LastLast
Results 1 to 15 of 38
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    1

    the file 'HelloWorld.rsg' cannot be opened

    Hi,

    I've installed Carbide.c++ and the S60 SDK 3rd Edition but when I try and build a project (built using file > new > Symbian OS C++ Project > ...), I get the following errors:

    the file 'HelloWorld.rsg' cannot be opened
    undefined identifier 'R_COMMAND1_TEXT'
    CTags not installed or not in path
    The system cannot find the file specified.[make]

    Note: My workspace has no spaces in.

    Any ideas what the problem could be?

    Thanks for any help,

    T

  2. #2
    Regular Contributor
    Join Date
    May 2005
    Location
    Tokyo
    Posts
    365

    Re: the file 'HelloWorld.rsg' cannot be opened

    maybe the .rsg file is not been created.
    you can use [start resource source-file] to creat the .rsg file.
    exam:
    [target target-file-name]
    [targetpath targetpath]
    [header] // The [header] keyword causes a resource header (.rsg) file
    // to be created

    good luck!

  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    2

    Question Re: the file 'HelloWorld.rsg' cannot be opened

    I had meet the same problem
    Who can tell me how to solve it in detail?

  4. #4
    Registered User
    Join Date
    Apr 2006
    Posts
    1

    Re: the file 'HelloWorld.rsg' cannot be opened

    I meet the same problem, Pls help me!

  5. #5
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    58

    Re: the file 'HelloWorld.rsg' cannot be opened

    same problem me too!
    please help!

    * the file 'hellocarbide.rsg' cannot be opened
    * undefined identifier 'R_COMMAND1_TEXT' (on "HBufC* textResource = StringLoader::LoadLC( R_COMMAND1_TEXT );"

    I just built the second tutorial file!
    I have 3rd edition SDK and no space in my workspace!

  6. #6
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: the file 'HelloWorld.rsg' cannot be opened

    If the .rsg file cannot be opened there most likely has been an error building it. If you can locate the part of the build output where it is being build (from the Output window) and post the error, it might be possible to provide some help.

  7. #7
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    Re: the file 'HelloWorld.rsg' cannot be opened

    Quote Originally Posted by pr1cey
    Hi,

    I've installed Carbide.c++ and the S60 SDK 3rd Edition but when I try and build a project (built using file > new > Symbian OS C++ Project > ...), I get the following errors:

    the file 'HelloWorld.rsg' cannot be opened
    undefined identifier 'R_COMMAND1_TEXT'
    CTags not installed or not in path
    The system cannot find the file specified.[make]

    Note: My workspace has no spaces in.

    Any ideas what the problem could be?

    Thanks for any help,

    T
    Do you have Perl installed? I had the same problem, I had an upgraded PC without Perl and the symptoms sound the same...

    After installing Perl (e.g. from http://www.activestate.com/ ) compilation went OK.

  8. #8
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    57

    Re: the file 'HelloWorld.rsg' cannot be opened

    Hi,

    I had the same problem. I found out that my rsg file wasn't build although there was no warning/error in the build output. The file should be located on $EPOC32\include directory. Make sure all your includes directive from the rss files are correct and that all defined symbols are defined well (for example, for localisation files that be included ifdefed with LANGUAGE_01 while the default is LANGUAGE_sc).
    Also note that carbide has some problem with clean and rebuild. Even evrything is OK with your code and you rebuild, the rsg will not build. I by-pass this problem by simply changing something minor in the rss file (whitespace for example).

    hope it helps,
    Imzadi

  9. #9
    Registered User
    Join Date
    Apr 2006
    Posts
    19

    Question Re: the file 'HelloWorld.rsg' cannot be opened

    Hi,
    I have the same problem. First,I just creat a project 'hello' and didn't change anything in the project. Then I built it ,that's right. But the next time , I just added one sentence and deleted the sentence which I had just added , I built the project ,that's wrong , although there is no any error in the building process , at the end , there is one warning : 'CTags not installed or not in path' . I didn't that's why . please help me too .
    Thanks!!!!!

  10. #10
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: the file 'HelloWorld.rsg' cannot be opened

    First of all, warnings are just that, warnings, with discretion you can ignore them. The CTAGs warning is due to the fact that CTags is set as the default indexer but not shipped as part of Express.

  11. #11
    Regular Contributor
    Join Date
    Apr 2006
    Location
    Romania, Cluj-Napoca
    Posts
    82

    Re: the file 'HelloWorld.rsg' cannot be opened

    So what we have to do so the compiler can make the rsg file?
    Pls help us....pls write in details what we have to do...Thanx!

  12. #12
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: the file 'HelloWorld.rsg' cannot be opened

    Well,

    The .rsg file is a header file describing a resource. If you have an .rss file in your project and you have not excluded the .rss from the build (check this from the file's Properties, right click on file and then towards end of menu), it should be automatically built and the .rsg file should be generated.

    The build output in the Console view should contain something like:
    Code:
    'Building file: ../aif/rsgTestaif.rss'
    'Invoking: Resource Compiler'
    perl.exe -S epocrc.pl -u -DLANGUAGE_sc -I"C:\Users\Carbide2\rsgTest\inc" -I"C:\Users\Carbide2\rsgTest\data" -I- -I"C:\Symbian\8.0a\S60_2nd_FP2_CW\epoc32\include" -o"C:/Symbian/8.0a/S60_2nd_FP2_CW/EPOC32/RELEASE/WINSCW/UDEB/Z/system/apps/rsgTest/rsgTestaif.rsc" -hC:\Symbian\8.0a\S60_2nd_FP2_CW\EPOC32\include\rsgTestaif.rsg ../aif/rsgTestaif.rss
    and ofcourse no errors.

    The rest of the build then will use the .rsg as just an other include file and hence one of your include directory entries should point to the directory where the .rsg file can be found, in the above case in C:\Symbian\8.0a\S60_2nd_FP2_CW\Epoc32\include.

    So pls check
    - that you have the .rss and it is not excluded and has a Resource compiler tool associated to it in the C/C++ Build view (normally do not modify the default settings of the tool)
    - that there are no build errors when building the .rss file
    - that you have an include dir entry for the corresponding directory

  13. #13
    Regular Contributor
    Join Date
    Apr 2006
    Location
    Romania, Cluj-Napoca
    Posts
    82

    Re: the file 'HelloWorld.rsg' cannot be opened

    My rss is not excluded.

    "that there are no build errors when building the .rss file"
    Can the rss file be built separately? Or did u reffered to the building of the entiry proiect?

    In the console i found: 'Building file: ../data/test55.rss'. Does this that it's built?
    And what about this: "C:\Symbian\9.1\S60_3rd\EPOC32\include\test55.rsg ../data/test55.rss, ...) failed.
    make (e=2): The system cannot find the file specified."?


    "that you have an include dir entry for the corresponding directory"
    i don't get it :P


    Thanx for helping me mitts....
    Pls take a look at theese, thanx.

  14. #14
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: the file 'HelloWorld.rsg' cannot be opened

    Carbide does not at this time support building individual files so yes, you do need to build the full project.

    So clearly for the test55.rss, the build fails, so here we have the problem! Now you need to figure out what file is missing. It is mandatory that you learn how to read build output so you can find out what goes wrong with your build..

  15. #15
    Regular Contributor
    Join Date
    Apr 2006
    Location
    Romania, Cluj-Napoca
    Posts
    82

    Re: the file 'HelloWorld.rsg' cannot be opened

    I found this error:

    "make -k clean all
    del /s/q .\src\test55.o .\src\test55AppUi.o .\src\test55AppView.o .\src\test55Application.o .\src\test55Document.o .\.generated\winscw_uid.o \Symbian\9.1\S60_3rd\EPOC32\RELEASE\WINSCW\UDEB\Z\resource\apps\test55.mif C:\Symbian\9.1\S60_3rd\EPOC32\RELEASE\WINSCW\UDEB\Z\test55.rsc C:\Symbian\9.1\S60_3rd\EPOC32\RELEASE\WINSCW\UDEB\Z\private\10003a3f\apps\test55_reg.rsc C:\Symbian\9.1\S60_3rd\epoc32\release\WINSCW\UDEB\test55.exe
    The system cannot find the path specified.
    make: [clean] Error 1 (ignored)"

    It can be this the reason why the rss file cannot be compiled?

Similar Threads

  1. How to edit resource file (.rss) in CW 3.1
    By madsum in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 8
    Last Post: 2009-01-16, 15:00
  2. Replies: 13
    Last Post: 2007-12-07, 11:21
  3. File corrupted
    By MrJou in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 6
    Last Post: 2006-03-22, 08:26
  4. Replies: 0
    Last Post: 2002-11-19, 08:25
  5. reading text file from a jar file -> file not found!
    By iecomdev in forum Mobile Java General
    Replies: 1
    Last Post: 2002-09-30, 12:27

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×