×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jan 2009
    Posts
    61

    Question Using makefile for building Symbian apps with different SDK's

    We use GNU 'make' utility for building our application from a command file. The reason for this is to enable us to quickly rebuild our application using various SDK's (3rd MR, 5th edition and N97). At the moment before issuing 'make' command we have to manually issue 'device' command to set up correct SDK environment. Unfortunately this gets tedious when you have several SDK's and when you build in various order. Here is the problem. When we add 'device' command execution into the make file it does get executed but symbian build environment still builds with the previous device settings. For example the current setting is for 3rd edition and I need to build for the 5th. The makefile issues the command “devices -setdefault @S60_5th_Edition........” followed by abld command. When I inspect the compilation commands the __S60_50__ does not get defined and as result I end up with the code for 3rd edition device. But when I manually issue 'devices' command followed by make command then everything gets set up correctly and I end up with the correct code. (By the way I use windows's cmd command shell). What makes 'devices' command work differently when it's executed from within the make environment? Thanks.

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: Using makefile for building Symbian apps with different SDK's

    One suggestion just create one batch file abc.bat or something and place one line in it and then check by typing devices on command line whether the default sdk has changed or not.

    I think you missed a space after and before setdefault, recheck it.

    devices -setdefault @S60_3rd_MR:com.nokia.s60

    I did use that and it worked really fine.
    Regards,
    Shafali

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: Using makefile for building Symbian apps with different SDK's

    make is not necessarily happy with the "@" in the middle, so it may be a good idea. For me "devices" works correctly from a batch file.

  4. #4
    Regular Contributor
    Join Date
    Jan 2009
    Posts
    61

    Re: Using makefile for building Symbian apps with different SDK's

    Quote Originally Posted by shafali gupta View Post
    One suggestion just create one batch file abc.bat or something and place one line in it and then check by typing devices on command line whether the default sdk has changed or not.

    I think you missed a space after and before setdefault, recheck it.

    devices -setdefault @S60_3rd_MR:com.nokia.s60

    I did use that and it worked really fine.
    Hi. Thanks for reply but there is space. The command does get executed. When I run my makefile the "device" command does get executed. Once make file finishes I check the current setting with 'device' command and it reports that new device has been set (one I wanted),l but for some reason Symbian build environment does not pick it up and as result it compiles with the old device setting. I do have two cmd files which read as follow:
    This one for 3rd edition
    Code:
    devices -setdefault @S60_3rd_MR:com.nokia.s60
    make build sign SDK=nokia3 PLATFORM=gcce CFG=urel | tee builds60_30.log
    this one is for fifth
    Code:
    devices -setdefault @S60_5th_Edition_SDK_v1.0:com.nokia.s60
    make clobber updateversion build sign SDK=nokia5 PLATFORM=gcce CFG=urel 2>&1 | tee builds60_50.log
    Yes it works but I am not very happy about the solution. I have to create another script to run a script that runs a script.....

    I hope you can see the point.

Similar Threads

  1. Can't run native Symbian apps on memory card after phone restart
    By stewart.hector in forum General Development Questions
    Replies: 5
    Last Post: 2007-05-28, 11:19
  2. Buying J2ME, Symbian and Brew apps
    By dominic.reeves in forum News and Announcements
    Replies: 0
    Last Post: 2006-11-11, 18:08
  3. Replies: 12
    Last Post: 2006-09-13, 23:27
  4. Replies: 0
    Last Post: 2004-11-27, 17:03
  5. Different Symbian Devices, different SDK's???
    By Difflam in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2003-04-08, 10:46

Posting Permissions

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