This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IMGLIB + VLIB + VC++ 10 express



Dear all,

I am new in this forum and I am not sure I am in the good forum.

I designing a vision software to be implemented on a TMS320C64+.

First, I would like to develop my software under VC ++ 10 express and use the IMGLIB and VLIB library for optimisation.

I downloaded the libraries and tried to compile a simple example under a win32 console application.

But I have linking problem.

Is anyone already compile a test program under VC++ and can help me?

Thank you very much for your help.

Best regards,

VPM

 

  • I presume VC ++ 10 express is some form of the MicroSoft C++ compiler.  That's the compiler you use when you build executables that run on the x86 device in your PC.  You want to use a compiler which builds executables to execute on a TMS320C64+.  That's the TI C6000 compiler.  It executes on your PC, but produces code for C6000 devices.  The TI compiler was used to create the IMGLIB and VLIB libraries.  

    I recommend you install CCSv4 and start with the tutorials it contains.  See http://processors.wiki.ti.com/index.php/Category:Code_Composer_Studio_v4 .  CCS is a integrated development environment which runs on your PC.  But you use to build and debug code for execution on TI devices.  CCSv4 is the latest release of this environment.

    Thanks and regards,

    -George

     

  • Thanks George for your answer.

    I would like to use CCS after. Before, I would like to develop and test my algorithme with Visual C++.

    As it is say in the documentation library : " The vlib.lib library is a bit-exact version of the library for testing in PC (Windows) environments. It was compiled using Microsoft Visual C++ 6.0"

    But it seem not working with more recent plateform.

    Best regards

    VPM

  • The vlib library does is not part of the compiler package.  As you can see, I don't know anything about it.  I'll move this thread to the C6400+ processor forum, where there are folks who can help out.

    Thanks and regards,

    -George

     

  • I finally solved my linking problem at the beginning of the week.

    If you want to use VLIB or IMGLIB with visual studio C++, you have to put at the beginning of the concerning file the following code to allow Microsoft compiler to understand the VLIB and IMGLIB code

     

     

    #if defined(_MSC_VER)
        #if (_MSC_VER >= 1400)
           #define restrict __restrict
        #else 
           #error "non supported"
        #endif
    #else

    #endif
    // Instruction pour VLIB
    extern "C" {
    #include <VLIB_prototypes.h>
    }

    Now it work fine.

    For information, there is a mistake in the VLIB_prototype.h declaration. You have 2 times : void VLIB_dilate_bin_square, one should be replace by   void VLIB_erode_bin_cross

    Best regards,

    Jérôme Seneschal