Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Registered User csovi's Avatar
    Join Date
    Feb 2004
    Posts
    7
    I'm testing Carbide.c++ Express but stuck right in the beginning. I cannot import .mmp and bld.inf files. An "Invalid Target Type in MMP File" error is displayed for any .mmp files being imported. The bld.inf import does not proceed after selecting the input file and pressing the Next button.

    I got these "results" for example when importing the HelloWorld example of the UIQ 2.1 SDK, but also for any other existing projects. In the .mmp file there is an innocent TARGETTYPE app line. Needless to say, all these projects build perfectly with CodeWarrior and from the command line.

    Is importing normally possible with Carbide? Any advice please! Thanks.

  2. #2
    Nokia Developer Expert timm-ah's Avatar
    Join Date
    Dec 2004
    Location
    Austin, TX
    Posts
    399
    Try importing a basic helloworld, e.g. TARGETTYPE APP
    Only basic user-side code will build with express, e.g. targettypes of:

    APP
    DLL
    EXE
    LIB

    Cheers,
    Tim

  3. #3
    Registered User csovi's Avatar
    Join Date
    Feb 2004
    Posts
    7
    Try importing a basic helloworld, e.g. TARGETTYPE APP
    Yes, that's what I did (see above post) and it failed. Since then I made tests using the HelloWorld example's very simple and plain .mmp file, by changing and deleting lines. In all cases I get the same error Invalid Target Type in MMP File. Finally, even an empty .mmp file gave the exact same error!! So this looks like a very basic problem, not really dependent on the .mmp file being imported.

  4. #4
    Nokia Developer Expert timm-ah's Avatar
    Join Date
    Dec 2004
    Location
    Austin, TX
    Posts
    399
    Do you have Perl installed? Go to a command-line and type 'perl -v'. What do you see?

    Tim

  5. #5
    Registered User csovi's Avatar
    Join Date
    Feb 2004
    Posts
    7
    I see this...

    This is perl, v5.6.1 built for MSWin32-x86-multi-thread
    (with 1 registered patch, see perl -V for more detail)

    ...and then copyright stuff. The perl -V command lists a lot of stuff but I think this is the essence:

    Locally applied patches: ActivePerl Build 635

    So I tend to feel Perl itself is okay (I installed it with the UIQ 3 SDK). (Thanks for looking into the case!)

  6. #6
    Nokia Developer Expert timm-ah's Avatar
    Join Date
    Dec 2004
    Location
    Austin, TX
    Posts
    399
    Your setup sounds OK for Carbide. Just for kicks, try a different 'default' devices.xml setting. When the MMP file is preprocesses it will use the cpp.exe from whatever the default device is.

    Tim

  7. #7
    Registered User csovi's Avatar
    Join Date
    Feb 2004
    Posts
    7
    try a different 'default' devices.xml setting
    I tried that and still the same error message. BTW, I could build a new application using the app generator, so the tool chain is working, but no any luck with the .mmp importer, I always get the same error message, regardless the .mmp file used. It appears as if the importer is "not enabled", whatever that means in terms of Carbide. Any further advice, please?

  8. #8
    Nokia Developer Expert timm-ah's Avatar
    Join Date
    Dec 2004
    Location
    Austin, TX
    Posts
    399
    The only way we could reproduce this EXACT scenario on UIQ 2.1 HelloWorld example was to open the MMP file in CodeWarrior, chagne the line ending to Macintosh in the editor, save the file, they try to import.

    So, make sure you line endings are DOS. Could you use some other editor that chagnes your line endings?

    Cheers,
    Tim

  9. #9
    Registered User ghislain.hude's Avatar
    Join Date
    Apr 2006
    Posts
    3
    Hello all,
    I have exactly the same problem, when i want to import a mmp project i have the following error "Invalid target type in MMP file".
    CSOVI do resolve your problem if yes how do you do.
    My configuration:
    Windows 2000 service pack4
    Perl : v5.6.1 built 638
    SDK : S60_3rd

  10. #10
    Registered User SamoylovBoris's Avatar
    Join Date
    May 2006
    Posts
    22
    Try type "TARGETTYPE APP" instead "TARGETTYPE app". It's case-sensitive.

  11. #11
    Registered User ghislain.hude's Avatar
    Join Date
    Apr 2006
    Posts
    3
    Thanks, for the answer. Shame on me , the JRE which i used is the 1.5.xx, i change it by the 1.4.2 11 and it is works fine.

  12. #12
    Weird... I had the same, and it was all due to the SDK's, the projects and carbide not being on the same volume.

    when I reinstalled everything on the same driveletter, everything worked. Including the import function

  13. #13
    Registered User siddiq's Avatar
    Join Date
    Mar 2003
    Location
    Lahore, Pakistan
    Posts
    7
    Why doesn't carbide tells the exact error?

  14. #14
    Registered User mohsin.sohail's Avatar
    Join Date
    May 2006
    Posts
    17
    After one whole day of searching for an answer for why can't I import *.mmp files in Carbide...I finally found the answer. In the release notes it states that there should not be any spaces in the path of where the mmp file is located so I copied the folder in which my whole project was and placed it on my C drive. Wolla...it imported it successfully!!!!!!!!!

    So NO spaces in the file structure when your importing otherwise it will give you a Token error if you try to Import.

  15. #15
    Regular Contributor Tina_Tibrewal's Avatar
    Join Date
    Sep 2006
    Posts
    280
    Hi All,

    I am struggling to import a project in carbide.c++
    Even the HelloWorldbasic project is not getting imported.
    It cribs abouts "Error detected on token TARGETPATH"
    I am using SDK3.0.
    I have no spaces in the name and the carbide installation abd SDK installation are on the same drive.

    The strange thing is I am able to import another project in which the targettype is dll.

    When building for thumb through command prompt the compilation fails with
    "No rule to make target `..\..\..\EPOC32\RELEASE\THUMB\UREL\EEXE.LIB' ,
    needed by `..\..\..\EPOC32\RELEASE\THUMB\UREL\HELLOWORLDBASIC.EXE'. Stop.

    Can anyone help me with this.

    Regards.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved