×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    27

    [moved] MakeFile (.mk) problem

    Hi to all!
    I wanna display an .SVG image into my application... i'm trying to follow this tutorial: http://wiki.forum.nokia.com/index.ph...ate_a_MIF_file

    I have correctly added my My_Icon.mk file to the project, and I've pasted the .mk example, modifying it as follows:

    Code:
    ifeq (WINS,$(findstring WINS, $(PLATFORM)))
    ZDIR=$(EPOCROOT)epoc32\release\$(PLATFORM)\$(CFG)\Z
    else
    ZDIR=$(EPOCROOT)epoc32\data\z
    endif
     
    TARGETDIR=$(ZDIR)\resource\apps
    ICONTARGETFILENAME=$(TARGETDIR)\Anonymous_headphones.mif
     
    HEADERDIR=$(EPOCROOT)epoc32\include
    HEADERFILENAME=$(HEADERDIR)\Anonymous_headphones.mbg
     
    ICONDIR=..\gfx
     
    do_nothing : @rem do_nothing
     
    MAKMAKE : do_nothing
     
    BLD : do_nothing
     
    CLEAN : do_nothing
     
    LIB : do_nothing
     
    CLEANLIB : do_nothing
     
    # In the below lines the c32,8 the 32 is for the image and 
    # 8 is for it's mask. See how the BMP file is mentioned
    # below the SVG's here.
     
    RESOURCE :	 mifconv $(ICONTARGETFILENAME) /h$(HEADERFILENAME) \
            /c32,8 $(ICONDIR)\Anonymous_headphones.svg
    		
    FREEZE : do_nothing
     
    SAVESPACE : do_nothing
     
    RELEASABLES : @echo $(HEADERFILENAME)&& \
        @echo $(ICONTARGETFILENAME)
     
    FINAL : do_nothing
    But when I compile, i get this errors:
    make[2]: *** No rule to make target `@rem', needed by `do_nothing'. Stop.
    make[2]: *** No rule to make target `mifconv', needed by `RESOURCE'.

    What is the problem? :confused:

    Thanks in advance,
    XDnl
    Last edited by XDnl; 2008-07-16 at 16:02.

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    Moscow, Russia
    Posts
    803

    Re: MakeFile (.mk) problem

    On the Wiki page you refer to there's a new line that you do not have:
    Code:
    ICONDIR=..\gfx
     
    do_nothing :
        @rem do_nothing
     
    MAKMAKE : do_nothing
    I am not sure that this should help but you can try...
    Regards,
    ivey

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    27

    Re: MakeFile (.mk) problem

    Quote Originally Posted by ivey View Post
    On the Wiki page you refer to there's a new line that you do not have:
    Code:
    ICONDIR=..\gfx
     
    do_nothing :
        @rem do_nothing
     
    MAKMAKE : do_nothing
    I am not sure that this should help but you can try...
    Code:
    do_nothing :
               @rem do_nothing
    Yes, I've already tried this, but i get this error:
    *** missing separator. Stop.

    I fixed this by adding a '\' symbol like this:
    Code:
    do_nothing : \
               @rem do_nothing
    but i get the same two errors before (no rule to make target...)

    edit: I think i've solved this problem: I need to use a tab, not spaces! Now i get 0 errors!
    Last edited by XDnl; 2008-07-16 at 16:20.

  4. #4
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: MakeFile (.mk) problem

    Quote Originally Posted by XDnl View Post
    edit: I think i've solved this problem: I need to use a tab, not spaces! Now i get 0 errors!
    Yes inded, that's the golden rule when editing a makefile.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  5. #5
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    65

    Re: MakeFile (.mk) problem

    From SDK help doc, "Symbian OS v9.1 » Symbian OS Tools And Utilities » Build tools reference » bld.inf file syntax » Extension makefiles", which tells us that "You must have a space or a tab at the start of lines containing target commands."

Similar Threads

  1. [moved] problem with STLPORT
    By sanassin in forum Open C/C++
    Replies: 1
    Last Post: 2008-02-04, 09:32
  2. About 6230 Bt Problem
    By eerkek in forum Bluetooth Technology
    Replies: 17
    Last Post: 2005-02-08, 12:33
  3. 7210 Silent Problem
    By MarkMckim in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-18, 12:36
  4. Problem with 9210 C++ SDK abld makefile command
    By Nokia_Archive in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-06-01, 21:04
  5. PJava runtime problem within Nokia 9210, Hrlp~!
    By Nokia_Archive in forum PersonalJava
    Replies: 1
    Last Post: 2002-05-28, 13:15

Posting Permissions

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