Difference between revisions of "Common compilation problems"

From Second Life Wiki
Jump to navigation Jump to search
Line 13: Line 13:
= Linux =  
= Linux =  


* From Mako Mabellon: Having a bit of trouble with ELFIO 1.0.3 under Linux - it wants to build a static library libELFIO.a, and Second Life appears to expect a shared library libelfio.so (judging from the build instructions on the Wiki)...
* From Mako Mabellon: Having a bit of trouble with ELFIO 1.0.3 under Linux - it wants to build a static library libELFIO.a, and Second Life appears to expect a shared library <b>libelfio.so</b> (judging from the build instructions on the Wiki)...
** Tofu says... 'You can rename the library to have the right case.  I don't know why ours ended up lower-case and yours is upper-case - I'll look into it.'
** Tofu says... 'You can rename the library to have the right case.  I don't know why ours ended up lower-case and yours is upper-case - I'll look into it.'


* Something like: error: extra qualification 'LLMessageSystem::' on member 'init'
* Something like: <b>error: extra qualification 'LLMessageSystem::' on member 'init'</b>
** Tofu says... 'This is likely a GCC 4.x thing.  We need GCC 3.4 or thereabouts, for now.  If you want to use GCC 4.x anyway, you can harmlessly remove the LLMessageSystem:: from the troublesome line.'
** Tofu says... 'This is likely a GCC 4.x thing.  We need GCC 3.4 or thereabouts, for now.  If you want to use GCC 4.x anyway, you can harmlessly remove the LLMessageSystem:: from the troublesome line.'


* Something like: linden/indra/i686-linux-client-release/llrender/llimagegl.cpp:122: error: `glActiveTextureARB' was not declared in this scope
* Something like: linden/indra/i686-linux-client-release/llrender/llimagegl.cpp:122: <b>error: `glActiveTextureARB' was not declared in this scope</b>
** Tofu says... 'You'll need to install OpenGL headers if you don't already have them: gl.h, gl_ext.h, glu.h (The ones from 'mesa' should work)'
** Tofu says... 'You'll need to install OpenGL headers if you don't already have them: gl.h, gl_ext.h, glu.h (The ones from 'mesa' should work)'
** Tofu says... 'Try removing the space in ' ../libraries/' around line 121 of indra/SConstruct'
** Tofu says... 'Try removing the space in ' ../libraries/' around line 121 of indra/SConstruct'


* Something like: indra.y.cpp:17: error: previous declaration of `int yyparse()'
* Something like: indra.y.cpp:17: <b>error: previous declaration of `int yyparse()'</b>
** Tofu says... 'This appears to be a problem with some versions of flex/bison.  A resident reports success when comment out the <i>#ifdef __cplusplus</i> lines in lscript/lscript_compile/indra.y'
** Tofu says... 'This appears to be a problem with some versions of flex/bison.  A resident reports success when comment out the <i>#ifdef __cplusplus</i> lines in lscript/lscript_compile/indra.y'


* Compiler can't find gtk/gtk.h, but it's right there!
* Compiler can't find <b>gtk/gtk.h</b>, but it's right there!
** This is probably peculiar to certain SCons versions.  Edit the indra/SConstruct file and remove the leading spaces from the ' ../libraries/' strings from around line 187 onwards.
** This is probably peculiar to certain SCons versions.  Edit the indra/SConstruct file and remove the leading spaces from the ' ../libraries/' strings from around line 187 onwards.

Revision as of 12:39, 8 January 2007

General Problems

Windows

Compiling on MSVC 2005

Mozilla is not compatible with visual studio 2005, so we have not migrated the codebase, so we do not know if it works.

What sort of errors are seen?

Mac OS X

Linux

  • From Mako Mabellon: Having a bit of trouble with ELFIO 1.0.3 under Linux - it wants to build a static library libELFIO.a, and Second Life appears to expect a shared library libelfio.so (judging from the build instructions on the Wiki)...
    • Tofu says... 'You can rename the library to have the right case. I don't know why ours ended up lower-case and yours is upper-case - I'll look into it.'
  • Something like: error: extra qualification 'LLMessageSystem::' on member 'init'
    • Tofu says... 'This is likely a GCC 4.x thing. We need GCC 3.4 or thereabouts, for now. If you want to use GCC 4.x anyway, you can harmlessly remove the LLMessageSystem:: from the troublesome line.'
  • Something like: linden/indra/i686-linux-client-release/llrender/llimagegl.cpp:122: error: `glActiveTextureARB' was not declared in this scope
    • Tofu says... 'You'll need to install OpenGL headers if you don't already have them: gl.h, gl_ext.h, glu.h (The ones from 'mesa' should work)'
    • Tofu says... 'Try removing the space in ' ../libraries/' around line 121 of indra/SConstruct'
  • Something like: indra.y.cpp:17: error: previous declaration of `int yyparse()'
    • Tofu says... 'This appears to be a problem with some versions of flex/bison. A resident reports success when comment out the #ifdef __cplusplus lines in lscript/lscript_compile/indra.y'
  • Compiler can't find gtk/gtk.h, but it's right there!
    • This is probably peculiar to certain SCons versions. Edit the indra/SConstruct file and remove the leading spaces from the ' ../libraries/' strings from around line 187 onwards.