Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: GCC Errot when i compil the Vincent Source code on Linux

  1. #1
    Junior Member
    Join Date
    Jul 2004
    Location
    suwon
    Posts
    16

    GCC Errot when i compil the Vincent Source code on Linux

    ../../src/ContextTexture.cpp: In function `EGL::Color
    *{unnamed}::ExtractColorPalette (const U8 *&, {unnamed}::PaletteFormat,
    unsigned int)':
    ../../src/ContextTexture.cpp:890: could not convert `{}' to
    `{unnamed}::RGB2Color &'
    ../../src/ContextTexture.cpp:877: in passing argument 4 of
    `{unnamed}::CreatePalette (const U8 *&, unsigned int, EGL::Color *,
    SrcAccessor &) [with SrcAccessor = {unnamed}::RGB2Color]'
    ../../src/ContextTexture.cpp:894: could not convert `{}' to
    `{unnamed}::RGBA2Color &'
    ../../src/ContextTexture.cpp:877: in passing argument 4 of
    `{unnamed}::CreatePalette (const U8 *&, unsigned int, EGL::Color *,
    SrcAccessor &) [with SrcAccessor = {unnamed}::RGBA2Color]'
    ../../src/ContextTexture.cpp:898: could not convert `{}' to
    `{unnamed}::RGB5652Color &'
    ../../src/ContextTexture.cpp:877: in passing argument 4 of
    `{unnamed}::CreatePalette (const U8 *&, unsigned int, EGL::Color *,
    SrcAccessor &) [with SrcAccessor = {unnamed}::RGB5652Color]'
    ../../src/ContextTexture.cpp:902: could not convert `{}' to
    `{unnamed}::RGBA44442Color &'
    ../../src/ContextTexture.cpp:877: in passing argument 4 of
    `{unnamed}::CreatePalette (const U8 *&, unsigned int, EGL::Color *,
    SrcAccessor &) [with SrcAccessor = {unnamed}::RGBA44442Color]'
    ../../src/ContextTexture.cpp:906: could not convert `{}' to
    `{unnamed}::RGBA55512Color &'
    ../../src/ContextTexture.cpp:877: in passing argument 4 of
    `{unnamed}::CreatePalette (const U8 *&, unsigned int, EGL::Color *,
    SrcAccessor &) [with SrcAccessor = {unnamed}::RGBA55512Color]'
    make[1]: *** [ContextTexture.o] Error 1
    make[1]: Leaving directory `/home/seongnam_oh/ogles/projects/linux'
    make: *** [GLES] Error 2
    [seongnam_oh@localhost linux]$

    =============================================
    This problem is happend with GCC 2.96.
    Who can help me ?
    As far as i know, this ContextTexture.c file was compiled with Embedded VC.
    the message looks like "namespace" problem. but that is not real problem, the real problem is template problem.

  2. #2
    Senior Member
    Join Date
    Sep 2003
    Location
    Seattle, WA
    Posts
    246

    Re: GCC Errot when i compil the Vincent Source code on Linux

    Unfortunately I do not have a version of gcc-2.96. The file compiles successfully using
    gcc version 2.9-psion-98r2 (Symbian build 540).

    Can you isolate the issue (i.e. finding the minimum subset of the file that reproduces the, or maybe just the first of the problems)?

    Looking over the code: Maybe the implementation of anonymous namespaces in broken in this compiler build. You might want to try to comment out all
    Code :
     
    declarations and lift all declarations to global scope. There is a rule in C++ that a sequence of anonymous namespaces gets collected into a single namespace. Maybe the code in the second namespace does not see code coming from the first. If that's the case, then moving the code into a single namespace would be the correct resolution.

    Let me know.

    - HM

    PS: There is actually a Support Request Page and a Help Discussion Forum for Vincent hosted on sourceforge.

    [ July 16, 2004: Message edited by: Hans-Martin Will ]

  3. #3
    Senior Member
    Join Date
    Sep 2003
    Location
    Seattle, WA
    Posts
    246

    Re: GCC Errot when i compil the Vincent Source code on Linux

    BTW, what system are you exactly targeting?

    Just curious,
    HM

  4. #4
    Junior Member
    Join Date
    Jul 2004
    Location
    suwon
    Posts
    16

    Re: GCC Errot when i compil the Vincent Source code on Linux

    could you send me your e-mail address ?
    i am going to send you my comipiled source tree. you may check with this problem with evey compiler [ GCC , X86 ].

    before i load previous message i have tried your suggetion. it had still that problem.

    Regards,
    SeongNam.

  5. #5
    Senior Member
    Join Date
    Sep 2003
    Location
    Seattle, WA
    Posts
    246

    Re: GCC Errot when i compil the Vincent Source code on Linux

    Thanks. You can reach me through this forum (private message) or through sourceforge.

    I probably won't have the time to play with gcc 2.96 nor do want to change any of the infrastructure settings on my development machine at this point. If those few functions are indeed the only problem, then just do the expansion of the templates manually.

    Have you tried Klimt? It has been successfully ported to a couple of Linux platforms. It's use of templates is much more fundamental than Vincent's.

    Good luck,
    HM

  6. #6
    Senior Member
    Join Date
    Sep 2003
    Location
    Seattle, WA
    Posts
    246

    Re: GCC Errot when i compil the Vincent Source code on Linux

    GCC 2.96 has never been released as a production build by gnu, see here.
    Have you considered up/downgrading to one of the released builds from this list?

    Cheers,
    HM

  7. #7
    Junior Member
    Join Date
    Jul 2004
    Location
    suwon
    Posts
    16

    Re: GCC Errot when i compil the Vincent Source code on Linux

    i don't know how to attach the zipped file through private mail board.
    my e-mail address is seongnam.oh@samsung.com.
    could you send me a mail, that times, i am gonna send the source files and make environments with mail-attached function.
    i compiled the other files successfully. the only one have has this problem.

    thanks.

  8. #8
    Junior Member
    Join Date
    Jul 2004
    Location
    suwon
    Posts
    16

    Re: GCC Errot when i compil the Vincent Source code on Linux

    OK. I have solved this problem by changing a line in source code.
    ======================================
    <<<<<< Original Source >>>>>>>>

    template <class SrcAccessor> inline void CreatePalette(const U8 *& data,
    size_t numberOfColors, Color * colors, const SrcAccessor& accessor) {
    for (size_t index = 0; index < numberOfColors; ++index) {
    colors[index] = accessor(data);
    }
    }

    ======================================
    <<<<<< modified source >>>>>>>>

    template <class SrcAccessor> inline void CreatePalette(const U8 *& data,
    size_t numberOfColors, Color * colors, const SrcAccessor& ) {
    SrcAccessor accessor;
    for (size_t index = 0; index < numberOfColors; ++index) {
    colors[index] = accessor(data);
    }
    }
    ========================================

  9. #9
    Senior Member
    Join Date
    Sep 2003
    Location
    Seattle, WA
    Posts
    246

    Re: GCC Errot when i compil the Vincent Source code on Linux

    Great. So it is just a simple compiler bug.
    I'll adjust the code though.

    Thanks,
    HM

  10. #10
    Junior Member
    Join Date
    Jul 2004
    Location
    suwon
    Posts
    16

    Re: GCC Errot when i compil the Vincent Source code on Linux

    I have removed "namespace" relevent code in your souce code, the purpose of the keyword is to prevent function/variable's scope missing.
    but it can be protected by using C++ Class and static keyword, then Nomally, Generally, Embedded programmer doesn't use that keyword.
    because, Embedded programmer has always making strict coding in mind.

    do i have any problem when i remove this keyword ?

    i have successfully compiled the sources, but didn't have a chance to test this code. because i am developing egl relevent code for fbdev.

Page 1 of 3 123 LastLast

Similar Threads

  1. OpenVG source code
    By chandrasekhar in forum OpenVG and VGU
    Replies: 1
    Last Post: 10-24-2007, 11:04 PM
  2. Can i use the vincent in linux operate system
    By qqrilxk in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 05-11-2007, 12:47 PM

Posting Permissions

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