×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Loading library (windows dll or unix .so)

    Hi,
    I wish to use some functions of the libavcodec library, so I wonder if I can load a .dll (windows) or a .so (unix) file of this library. Or must I porting this ? And in this case, do I take eash .c file of this library in the source of my project ?
    Thanks
    Regards and Peace.

    Cartouche67.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,699

    Re: Loading library (windows dll or unix .so)

    Why could you load a dynamic library originating from a different OS and probably built for a different CPU?
    Yes, you have to port it, at least partially - like copying the .c files into your project and referring them in your .mmp file. If you happen to need OpenC/C++, check their documentation (note that you will not find the docs in the Start Menu, so visit the nokia_plugin folder in the SDK - after you have installed the plugin of course), and their examples.

  3. #3
    Super Contributor
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721

    Re: Loading library (windows dll or unix .so)

    Hello Cartouche,


    you can try to find out some helpful information by searching the web. It looks like there are some other people, who are porting/have ported this lib to Symbian.


    For example:
    http://discussion.forum.nokia.com/fo...d.php?t=105008
    http://www.mobitubia.com/dp/?q=conte...lv-source-code
    http://lists.mplayerhq.hu/pipermail/...il/027414.html


    Regards,

    Pai
    Symbian && Android && iPhoneOS

  4. #4
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: Loading library (windows dll or unix .so)

    Hello guys

    @wizard_hu_, ok this is what I am going to do, I already find some interesting documents on this site

    @paipeng, ya I checked those projects, and it seems that they ported very partially the libavcodec (and not my part), so I am going to port only the few fonctions I need.


    I have another question, I didn't find how create a new Open C project (with carbide c++).
    I know the :
    New -> Symbian OS C++ Project -> S60 -> Open C Application
    but it makes CPP sources, not C. How can I do ?
    Thanks.
    Regards and Peace.

    Cartouche67.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,699

    Re: Loading library (windows dll or unix .so)

    First of all you can refer .c files in the .mmp
    Secondly, C++ was designed to be compatible with C. So if you put code from .c files into .cpp files, it will compile without any problem.

  6. #6
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: Loading library (windows dll or unix .so)

    Thanks for your response wizard_hu_, it works.
    Regards and Peace.

    Cartouche67.

Similar Threads

  1. Fail to build syexpat 1.3 under 2nd FP3
    By harry_zhang in forum Symbian
    Replies: 10
    Last Post: 2010-03-19, 10:24
  2. App and debugger crash while loading DLL
    By Jeffery Griffith in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2007-11-08, 20:21
  3. Replies: 1
    Last Post: 2004-06-08, 10:07

Posting Permissions

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