×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Super Contributor
    Join Date
    Dec 2005
    Location
    England,UK
    Posts
    1,600

    Carbide c++ and OpenGLE 1.1 Snow and Rain examples

    The problem with debug using AppTrk and Carbide.C++ Pro was for several reasons.

    Previous posting of a link to an Eclipse Bug problem error, was factually incorrect,
    there is no problem with any Carbide.c++ version or gdb and this entry
    I believe should have been removed as its over 3 years old.

    The closing resolution of the problem is the carry out the activity below.

    1)
    Download the latest version of the OpenGL Version 1.1 SDK,This Supports the Nokia N93 and Nokia E61.
    "OpenGL ES 1.1 plug-in for S60 3rd Ed. SDK for Symbian OS, for C++" at
    http://www.forum.nokia.com/info/sw.n...7821b4dc7.html


    When the SDK has been installed on S60 3rd Ed MR, the path should be
    C:\Symbian\9.1\S60_3rd_MR\OpenGL11.
    2a)
    You must now copy
    C:\Symbian\9.1\S60_3rd_MR\Epoc32\release\armv5\lib\libGLES_CM.dso to
    C:\Symbian\9.1\S60_3rd_MR\Epoc32\release\armv5\lib\libgles_cm{000a0000}.dso
    2b)
    You must now copy
    C:\Symbian\9.1\S60_3rd_MR\Epoc32\release\armv5\lib\libGLES_CM.lib to
    C:\Symbian\9.1\S60_3rd_MR\Epoc32\release\armv5\lib\libgles_cm{000a0000}.lib

    3) The install application icon startup problem
    ------------------------------------------------

    Common Error
    When you load/installed the Rain_gcce_carbide.sis into the phone and start it does it seem to start them return to screen. This is because the icon rain.mif generated by Carbide has the same error described in Section 3 above.


    There appears to be a fault in the SVG converter file used to build the SVG icon install file into .mif files, namely
    C:\Symbian\9.1\S60_3rd_MR\S60Tools\svg2svgt\installer\svg2svgtconverter.exe
    and C:\Symbian\9.1\S60_3rd_MR_3\Epoc32\release\winscw\udeb\svgtbinencode.exe
    They seem to panic and ask for a DRM DLL file.

    3) workaround
    To get round this problem, which occurs with all examples in OpenGL 1.1,
    I have modified the package file line in \sis\Rain.pkg

    "$(EPOCROOT)\Epoc32\data\z\resource\apps\Rain.mif" -"!:\resource\apps\Rain.mif"
    and replaced it with

    $(EPOCROOT)\Epoc32\data\z\resource\apps\default_app_icon.mbm"
    -"!:\resource\apps\Rain.mbm"

    Switch off/deselect compress Executable in the Carbide project properties file.
    CC+ Build in the gcce compiler section just below UID3 description.

    Create versions called rain_gcce_carbide.pkg


    Carbide
    ---------------------------------------------------------------------------------
    ;Carbide.C++ Rain_gcce_carbide.pkg
    ;Languages
    &EN

    ;Header
    #{"Rain"}, (0xA0000218), 1, 0, 0,TYPE=SA

    ;Localised Vendor name
    %{"Vendor-EN"}

    ;Unique Vendor name
    :"Vendor"

    ;Supports Series 60 v 3.0
    [0x101F7961], 0, 0, 0, {"Series60ProductID"}

    ;Files to install
    "$(EPOCROOT)epoc32\release\$(PLATFORM)\$(TARGET)\Rain.exe" -"!:\sys\bin\Rain.exe"
    "$(EPOCROOT)epoc32\data\z\resource\apps\Rain.RSC" -"!:\resource\apps\Rain.RSC"
    "$(EPOCROOT)epoc32\data\Z\private\10003a3f\import\apps\rain_reg.RSC" -"!:\private\10003a3f\import\apps\rain_reg.RSC"
    "$(EPOCROOT)epoc32\release\winscw\udeb\z\resource\apps\default_app_icon.mbm" -"!:\resource\apps\rain.mif"

    "$(EPOCROOT)\S60Ex\OpenGLEx\pictures\tree.gif" -"!:\private\A0000218\tree.gif"
    "$(EPOCROOT)\S60Ex\OpenGLEx\pictures\grass.jpg" -"!:\private\A0000218\grass.jpg"
    "$(EPOCROOT)\S60Ex\OpenGLEx\pictures\cloud.jpg" -"!:\private\A0000218\cloud.jpg"

    ;required for application to be covered by backup/restore facility
    "$(EPOCROOT)\S60Ex\OpenGLEx\Rain\sis\backup_registration.xml" -"!:\private\A0000218\backup_registration.xml"

    ---------------------------------------------------------------------------------------



    Many of the problems can be solved by using S60 3rd Edition Feature Pack 1
    which is the update to S60 3rd Ed Maintenance release.

    You should use the new OpenGL code from the v1.1 sdk or the S60 3rd Edition Feature Pack 1.

    S60 3rd Edition Feature Pack 1 is version 9.2. This contains update libraries for OpenGL and the updated examples.
    According to the S60 3rd Edition Feature Pack 1 documentation due to limitation the EXPORT not taking place that the ABLD show be carried out


    Command line build without carbide
    ----------------------------------

    >bldmake bldfiles
    >abld build gcce then update rain_gcce.pkg to rain_gcce_abld.pkg
    >cd ..\sis
    >createsis create rain_gcce_abld.pkg

    Enter password as rain
    Move mouse round until "random data collected" is displayed

    This creates rain_gcce_abld.sis which is loaded to the S60 3rd Edition phone
    with PC Suite version 6.8 or above.

    The App Trk is started by building the example with GCCE Debug option.
    Select the debug profile

    The change to the code to make OpenGL 1.0 for S60 2nd Ed FP1 is in file
    RainAppUi.cpp

    the line
    BaseConstructL();
    needs to replaced by
    BaseConstructL(EAknEnableSkin);

    If App Trk debug gets an error at this line its because the startup icon on the install
    menu for the application has an error. When Replaced with the default this works i.e.

    "$(EPOCROOT)epoc32\release\winscw\udeb\z\resource\apps\default_app_icon.mbm"
    -"!:\resource\apps\rain.mif"


    If you have loaded "S60 3rd Edition Feature Pack 1 is version 9.2" into you Carbide.C++
    the you will find a section identifying this problem and others which may need to be
    added to get the OpenGL programs to work

    Summary
    -------

    This is not the complete answer because I cannot get the normal SvG start icon to work
    due to an incompatability on the SVGTencode.exe which gives errors whilst
    trying to convert icons.

    I am happy as I can now see the rain and snow on my Nokia E61
    and in the emulator in all screen settings.

    You will need to export the files into the emulator to run them
    see http://discussion.forum.nokia.com/fo...ad.php?t=91201


    Good Luck
    Jim
    Last edited by jimgilmour1; 2006-10-26 at 13:18.

  2. #2
    Registered User
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386

    How to overwrite a built in library?

    Can you tell me how I can upgrade the OpenGL on my 3250?

    I am working on an application that is hitting a bug in the shipping version and it is supposedly fixed in the current Hybrid version.

    When I try to install it, it says "Unable to install. Component is built-in.". Is there a way to overwrite a 'built-in' library?

    Max.

  3. #3
    Super Contributor
    Join Date
    Dec 2005
    Location
    England,UK
    Posts
    1,600

    Re: Carbide c++ and OpenGLE 1.1 Snow and Rain examples

    Hi,
    After a lot of investigation with Series 3ed FP1 which contains Open GL 1.1 as standard the simple answer is no.

    This is because the library when run on a phone uses the firmware libary calls. The only time you can load the extra library calls is when a feature in missing from the firmware.

    I cannot see how overloading functions will help as you want to modify the library not the code.
    Jim

  4. #4
    Registered User
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386

    Re: Carbide c++ and OpenGLE 1.1 Snow and Rain examples

    Quote Originally Posted by jimgilmour1
    Hi,
    After a lot of investigation with Series 3ed FP1 which contains Open GL 1.1 as standard the simple answer is no.
    OK.

    This is because the library when run on a phone uses the firmware libary calls. The only time you can load the extra library calls is when a feature in missing from the firmware.

    I cannot see how overloading functions will help as you want to modify the library not the code.
    Jim
    I was suggesting that I could install the fixed gles library in some directory on the phone, then do the equivalent of setting the LD_LIBRARY_PATH to that directory so that the application uses that library instead of the firmware one.

    Is there no such facility?

    Max.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386

    Re: Carbide c++ and OpenGLE 1.1 Snow and Rain examples

    Quote Originally Posted by davidmaxwaterman
    OK.



    I was suggesting that I could install the fixed gles library in some directory on the phone, then do the equivalent of setting the LD_LIBRARY_PATH to that directory so that the application uses that library instead of the firmware one.

    Is there no such facility?

    Max.
    I'm still hitting this problem. Is there really no way to use OpenGL ES 1.1 on a phone that has OpenGL ES 1.0 preinstalled?

    Max.

  6. #6
    Super Contributor
    Join Date
    Dec 2005
    Location
    England,UK
    Posts
    1,600

    Re: Carbide c++ and OpenGLE 1.1 Snow and Rain examples

    Hi Max,
    Have you looked at the new example for Open GL which will sense hardware like N95 uses. Maybe this will give an idea of how the shut off the hardware.

    The example is at

    http://www.forum.nokia.com/info/sw.n..._1_en.zip.html

    Good Luck
    Jim

  7. #7
    Registered User
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386

    Re: Carbide c++ and OpenGLE 1.1 Snow and Rain examples

    > Maybe this will give an idea of how the shut off the hardware.

    Better than that; it shows me that it is possible to make a non-fullscreen OpenGL application work on OpenGLES 1.0 phones.

    However, I am having trouble building it. I get :

    "ABLD ERROR: "\Symbian\9.1\S60_3rd\EPOC32\BUILD\DocumentsPlatform.pm" not yet created"

    Any idea what that message is trying to tell me?

    ---edit---

    Ah, it was because I was trying to build from a directory on my Desktop, and the path to that directory has a space in it - there's obviously a bug (missing quotes, probably) in the build script that can't cope with spaces. I moved it somewhere else, and it built fine.
    Last edited by davidmaxwaterman; 2007-05-14 at 04:37.

  8. #8
    Registered User
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386

    Re: Carbide c++ and OpenGLE 1.1 Snow and Rain examples

    Quote Originally Posted by jimgilmour1
    Hi Max,
    Have you looked at the new example for Open GL which will sense hardware like N95 uses. Maybe this will give an idea of how the shut off the hardware.

    The example is at

    http://www.forum.nokia.com/info/sw.n..._1_en.zip.html

    Good Luck
    Jim
    I'm trying to change this so that it starts in non-full screen mode, but I can't seem to do it without it exhibiting the problem.

    Can you tell me what has to happen before I can change the size of the window?

    EDIT: looks like it's the swapbuffers, though it could be other initialisation too.

    Max.
    Last edited by davidmaxwaterman; 2007-05-23 at 04:37.

  9. #9
    Super Contributor
    Join Date
    Dec 2005
    Location
    England,UK
    Posts
    1,600

    Re: Carbide c++ and OpenGLE 1.1 Snow and Rain examples

    Hi,
    I have tried to look into this but I cant see how to do this, my Nokia N95 is now upgraded from version 10 firmware to version 12 firmware, but I am not sure why the landscape orientation works with the screen which is non full screen but I have to wonder it this is an extension to the original OpenGLx libraries which has not been implemented fully for the phone.

    I am really quite lost with this now


    Jim

Posting Permissions

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