Re: Linux Version?

Hi fafner, thank you for proposing smile
teZeriusz is actually doing some work on it,
I'll contact you when something can be tested, we'll keep some news about Linux on this thread.

Re: Linux Version?

Ok, cool:) Looking forward to trying it out! Let me know if I can be of any help with building, testing, etc.

Re: Linux Version?

Thank you : )
We'll keep in touch

Re: Linux Version?

Hi, very good,
thank you, I'll try the patch soon.

About 3) some problem probably happen on SVN, the file is supposed to be named "MRenderingContext", I'll correct the case.

Bests,

Re: Linux Version?

Hi,
I added a minimal X11 MWindow port on SVN, tested on MacOSX as I don't have any Linux :
http://code.google.com/p/maratis/source/detail?r=57

I also applied egore911 patch for linux3, the MWindow file selector is missing but while I'm searching a solution I need someone to try compiling Maratis on Linux, all the ports are done, there is maybe some specific includes missing and some compilation tricks to do.

Bests,
Anaël.

Re: Linux Version?

Compiling r59 on Ubuntu 11.04 shows the following errors (maybe I'm missing some lib):

scons: Reading SConscript files ...
Build in release mode
Using 3rdparty libraries in folder: /home/joao/maratis/3rdparty
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/linux2/release/Examples/ManualUse/ManualUse -Wl,-rpath=@loader_path/. -Wl,--as-needed -Wl,--allow-multiple-definition build/linux2/release/Examples/ManualUse/main.o build/linux2/release/Examples/ManualUse/MyGame.o -Lbuild/linux2/release/MSDK/MaratisCore -LMSDK/MaratisCore -Lbuild/linux2/release/MSDK/MEngine -LMSDK/MEngine -Lbuild/linux2/release/MSDK/MCore -LMSDK/MCore -Lbuild/linux2/release/MSDK/MGui -LMSDK/MGui -Lbuild/linux2/release/Maratis/Common -LMaratis/Common -Lbuild/linux2/release/3rdparty/lua -L/home/joao/maratis/3rdparty/lua -Lbuild/linux2/release/3rdparty/bullet -L/home/joao/maratis/3rdparty/bullet -L/home/joao/maratis/3rdparty/openal/linux -Lbuild/linux2/release/3rdparty/glee -L/home/joao/maratis/3rdparty/glee -Lbuild/linux2/release/3rdparty/devil -L/home/joao/maratis/3rdparty/devil -Lbuild/linux2/release/3rdparty/tinyxml -L/home/joao/maratis/3rdparty/tinyxml -Lbuild/linux2/release/3rdparty/libpng -L/home/joao/maratis/3rdparty/libpng -Lbuild/linux2/release/3rdparty/libjpeg -L/home/joao/maratis/3rdparty/libjpeg -Lbuild/linux2/release/3rdparty/zlib -L/home/joao/maratis/3rdparty/zlib -Lbuild/linux2/release/3rdparty/freetype -L/home/joao/maratis/3rdparty/freetype -L/home/joao/maratis/3rdparty/libsndfile/linux -lMaratisCommon -lMEngine -lMCore -lMGui -llua -lbullet -lopenal -lglee -lil -ltinyxml -lpng -ljpeg -lzlib -lfreetype -lsndfile
build/linux2/release/Examples/ManualUse/main.o: In function `draw()':
main.cpp:(.text+0xa3c): undefined reference to `MWindow::swapBuffer()'
build/linux2/release/Examples/ManualUse/main.o: In function `main':
main.cpp:(.text+0xb1c): undefined reference to `MWindow::create(char const*, unsigned int, unsigned int, int, bool)'
main.cpp:(.text+0xb35): undefined reference to `MWindow::hideCursor()'
main.cpp:(.text+0xb68): undefined reference to `MWindow::setCurrentDirectory(char const*)'
main.cpp:(.text+0xebb): undefined reference to `MWindow::getSystemTick()'
main.cpp:(.text+0xed3): undefined reference to `MWindow::onEvents()'
main.cpp:(.text+0xee0): undefined reference to `MWindow::getSystemTick()'
main.cpp:(.text+0xff9): undefined reference to `MWindow::swapBuffer()'
build/linux2/release/Examples/ManualUse/main.o: In function `MWindow::getInstance()':
main.cpp:(.text._ZN7MWindow11getInstanceEv[MWindow::getInstance()]+0x47): undefined reference to `MWindow::MWindow()'
main.cpp:(.text._ZN7MWindow11getInstanceEv[MWindow::getInstance()]+0x5b): undefined reference to `MWindow::~MWindow()'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::MGLContext()':
MGLContext.cpp:(.text+0x1ee): undefined reference to `glGetString'
MGLContext.cpp:(.text+0x255): undefined reference to `glEnable'
MGLContext.cpp:(.text+0x269): undefined reference to `glHint'
MGLContext.cpp:(.text+0x27e): undefined reference to `glFogf'
MGLContext.cpp:(.text+0x2a6): undefined reference to `glClearDepth'
MGLContext.cpp:(.text+0x2b3): undefined reference to `glLineWidth'
MGLContext.cpp:(.text+0x2bf): undefined reference to `glClearStencil'
MGLContext.cpp:(.text+0x2d3): undefined reference to `glPixelStorei'
MGLContext.cpp:(.text+0x2e7): undefined reference to `glPixelStorei'
MGLContext.cpp:(.text+0x2fd): undefined reference to `glGetFloatv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setOrthoView(float, float, float, float, float, float)':
MGLContext.cpp:(.text+0x548): undefined reference to `glOrtho'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setViewport(int, int, unsigned int, unsigned int)':
MGLContext.cpp:(.text+0x580): undefined reference to `glViewport'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L96':
MGLContext.cpp:(.text+0x5bb): undefined reference to `glClear'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L97':
MGLContext.cpp:(.text+0x5c9): undefined reference to `glClear'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L99':
MGLContext.cpp:(.text+0x5d7): undefined reference to `glClear'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L98':
MGLContext.cpp:(.text+0x5e5): undefined reference to `glClear'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L100':
MGLContext.cpp:(.text+0x5f3): undefined reference to `glClear'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o):MGLContext.cpp:(.text+0x601): more undefined references to `glClear' follow
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setClearColor(MVector4 const&)':
MGLContext.cpp:(.text+0x654): undefined reference to `glClearColor'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableTexture()':
MGLContext.cpp:(.text+0x67a): undefined reference to `glEnable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableTexture()':
MGLContext.cpp:(.text+0x69e): undefined reference to `glDisable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setTextureFilterMode(M_TEX_FILTER_MODES, M_TEX_FILTER_MODES)':
MGLContext.cpp:(.text+0x6df): undefined reference to `glTexParameteri'
MGLContext.cpp:(.text+0x702): undefined reference to `glTexParameteri'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setTextureUWrapMode(M_WRAP_MODES)':
MGLContext.cpp:(.text+0x749): undefined reference to `glTexParameteri'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setTextureVWrapMode(M_WRAP_MODES)':
MGLContext.cpp:(.text+0x791): undefined reference to `glTexParameteri'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setTextureCombineMode(M_TEX_COMBINE_MODES)':
MGLContext.cpp:(.text+0x7c6): undefined reference to `glTexEnvi'
MGLContext.cpp:(.text+0x804): undefined reference to `glTexEnvi'
MGLContext.cpp:(.text+0x822): undefined reference to `glTexEnvi'
MGLContext.cpp:(.text+0x840): undefined reference to `glTexEnvi'
MGLContext.cpp:(.text+0x85e): undefined reference to `glTexEnvi'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::bindTexture(unsigned int, unsigned int)':
MGLContext.cpp:(.text+0x888): undefined reference to `glActiveTexture'
MGLContext.cpp:(.text+0x898): undefined reference to `glClientActiveTexture'
MGLContext.cpp:(.text+0x8ab): undefined reference to `glBindTexture'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::createTexture(unsigned int*)':
MGLContext.cpp:(.text+0x8d7): undefined reference to `glGenTextures'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::deleteTexture(unsigned int*)':
MGLContext.cpp:(.text+0x903): undefined reference to `glDeleteTextures'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::sendTextureImage(MImage*, bool, bool, bool)':
MGLContext.cpp:(.text+0x9b3): undefined reference to `glEnable'
MGLContext.cpp:(.text+0x9c7): undefined reference to `glHint'
MGLContext.cpp:(.text+0x9e8): undefined reference to `glTexParameteri'
MGLContext.cpp:(.text+0xa09): undefined reference to `glTexParameteri'
MGLContext.cpp:(.text+0xa26): undefined reference to `glTexParameteri'
MGLContext.cpp:(.text+0xa43): undefined reference to `glTexParameteri'
MGLContext.cpp:(.text+0xa64): undefined reference to `glTexParameteri'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o):MGLContext.cpp:(.text+0xa81): more undefined references to `glTexParameteri' follow
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::sendTextureImage(MImage*, bool, bool, bool)':
MGLContext.cpp:(.text+0xad1): undefined reference to `glTexImage2D'
MGLContext.cpp:(.text+0xaf5): undefined reference to `glTexParameterf'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::texImage(unsigned int, unsigned int, unsigned int, M_TYPES, M_TEX_MODES, void const*)':
MGLContext.cpp:(.text+0xb8f): undefined reference to `glTexImage2D'
MGLContext.cpp:(.text+0xbb3): undefined reference to `glTexParameterf'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::texSubImage(unsigned int, int, int, unsigned int, unsigned int, M_TYPES, M_TEX_MODES, void const*)':
MGLContext.cpp:(.text+0xc2c): undefined reference to `glTexSubImage2D'
MGLContext.cpp:(.text+0xc50): undefined reference to `glTexParameterf'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::getTexImage(unsigned int, MImage*)':
MGLContext.cpp:(.text+0xcc0): undefined reference to `glGetTexLevelParameteriv'
MGLContext.cpp:(.text+0xce2): undefined reference to `glGetTexLevelParameteriv'
MGLContext.cpp:(.text+0xd04): undefined reference to `glGetTexLevelParameteriv'
MGLContext.cpp:(.text+0xd26): undefined reference to `glGetTexLevelParameteriv'
MGLContext.cpp:(.text+0xd48): undefined reference to `glGetTexLevelParameteriv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o):MGLContext.cpp:(.text+0xd6a): more undefined references to `glGetTexLevelParameteriv' follow
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::getTexImage(unsigned int, MImage*)':
MGLContext.cpp:(.text+0xe39): undefined reference to `glGetTexImage'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setDrawingBuffers(M_FRAME_BUFFER_ATTACHMENT*, unsigned int)':
MGLContext.cpp:(.text+0xfaa): undefined reference to `glDrawBuffer'
MGLContext.cpp:(.text+0xfb6): undefined reference to `glReadBuffer'
MGLContext.cpp:(.text+0x1027): undefined reference to `glDrawBuffer'
MGLContext.cpp:(.text+0x1033): undefined reference to `glReadBuffer'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableVertexArray()':
MGLContext.cpp:(.text+0x1612): undefined reference to `glEnableClientState'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableColorArray()':
MGLContext.cpp:(.text+0x1636): undefined reference to `glEnableClientState'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableNormalArray()':
MGLContext.cpp:(.text+0x165a): undefined reference to `glEnableClientState'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableTexCoordArray()':
MGLContext.cpp:(.text+0x167e): undefined reference to `glEnableClientState'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableVertexArray()':
MGLContext.cpp:(.text+0x16ca): undefined reference to `glDisableClientState'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableColorArray()':
MGLContext.cpp:(.text+0x16ee): undefined reference to `glDisableClientState'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableNormalArray()':
MGLContext.cpp:(.text+0x1712): undefined reference to `glDisableClientState'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableTexCoordArray()':
MGLContext.cpp:(.text+0x1736): undefined reference to `glDisableClientState'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setVertexPointer(M_TYPES, unsigned int, void const*)':
MGLContext.cpp:(.text+0x17a1): undefined reference to `glVertexPointer'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setColorPointer(M_TYPES, unsigned int, void const*)':
MGLContext.cpp:(.text+0x17e5): undefined reference to `glColorPointer'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setNormalPointer(M_TYPES, void const*)':
MGLContext.cpp:(.text+0x1820): undefined reference to `glNormalPointer'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setTexCoordPointer(M_TYPES, unsigned int, void const*)':
MGLContext.cpp:(.text+0x1863): undefined reference to `glTexCoordPointer'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::drawArray(M_PRIMITIVE_TYPES, unsigned int, unsigned int)':
MGLContext.cpp:(.text+0x1901): undefined reference to `glDrawArrays'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::drawElement(M_PRIMITIVE_TYPES, unsigned int, M_TYPES, void const*)':
MGLContext.cpp:(.text+0x1950): undefined reference to `glDrawElements'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableLineAntialiasing()':
MGLContext.cpp:(.text+0x1976): undefined reference to `glEnable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableLineAntialiasing()':
MGLContext.cpp:(.text+0x199a): undefined reference to `glDisable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setMaterialDiffuse(MVector4 const&)':
MGLContext.cpp:(.text+0x19d5): undefined reference to `glMaterialfv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setMaterialSpecular(MVector4 const&)':
MGLContext.cpp:(.text+0x1a11): undefined reference to `glMaterialfv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setMaterialAmbient(MVector4 const&)':
MGLContext.cpp:(.text+0x1a4d): undefined reference to `glMaterialfv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setMaterialEmit(MVector4 const&)':
MGLContext.cpp:(.text+0x1a89): undefined reference to `glMaterialfv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setMaterialShininess(float)':
MGLContext.cpp:(.text+0x1abd): undefined reference to `glMaterialf'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableScissorTest()':
MGLContext.cpp:(.text+0x1ae2): undefined reference to `glEnable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableScissorTest()':
MGLContext.cpp:(.text+0x1b06): undefined reference to `glDisable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setScissor(int, int, unsigned int, unsigned int)':
MGLContext.cpp:(.text+0x1b3e): undefined reference to `glScissor'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setColor(MColor const&)':
MGLContext.cpp:(.text+0x1b92): undefined reference to `glColor4ub'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setColor4(MVector4 const&)':
MGLContext.cpp:(.text+0x1bd8): undefined reference to `glColor4f'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setColor3(MVector3 const&)':
MGLContext.cpp:(.text+0x1c1d): undefined reference to `glColor4f'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setColorMask(bool, bool, bool, bool)':
MGLContext.cpp:(.text+0x1c7c): undefined reference to `glColorMask'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setDepthMask(bool)':
MGLContext.cpp:(.text+0x1ca8): undefined reference to `glDepthMask'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setAlphaTest(float)':
MGLContext.cpp:(.text+0x1cde): undefined reference to `glEnable'
MGLContext.cpp:(.text+0x1cec): undefined reference to `glDisable'
MGLContext.cpp:(.text+0x1cff): undefined reference to `glAlphaFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableDepthTest()':
MGLContext.cpp:(.text+0x1d24): undefined reference to `glEnable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableDepthTest()':
MGLContext.cpp:(.text+0x1d48): undefined reference to `glDisable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L226':
MGLContext.cpp:(.text+0x1d82): undefined reference to `glDepthFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L227':
MGLContext.cpp:(.text+0x1d90): undefined reference to `glDepthFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L228':
MGLContext.cpp:(.text+0x1d9e): undefined reference to `glDepthFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L229':
MGLContext.cpp:(.text+0x1dac): undefined reference to `glDepthFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L230':
MGLContext.cpp:(.text+0x1dba): undefined reference to `glDepthFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o):MGLContext.cpp:(.text+0x1dc8): more undefined references to `glDepthFunc' follow
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableStencilTest()':
MGLContext.cpp:(.text+0x1dfc): undefined reference to `glEnable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableStencilTest()':
MGLContext.cpp:(.text+0x1e20): undefined reference to `glDisable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L237':
MGLContext.cpp:(.text+0x1e69): undefined reference to `glStencilFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L239':
MGLContext.cpp:(.text+0x1e89): undefined reference to `glStencilFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L240':
MGLContext.cpp:(.text+0x1ea9): undefined reference to `glStencilFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L238':
MGLContext.cpp:(.text+0x1ec9): undefined reference to `glStencilFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L241':
MGLContext.cpp:(.text+0x1ee6): undefined reference to `glStencilFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o):MGLContext.cpp:(.text+0x1f03): more undefined references to `glStencilFunc' follow
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setStencilOp(M_STENCIL_OPS)':
MGLContext.cpp:(.text+0x1f90): undefined reference to `glStencilOp'
MGLContext.cpp:(.text+0x1fae): undefined reference to `glStencilOp'
MGLContext.cpp:(.text+0x1fcc): undefined reference to `glStencilOp'
MGLContext.cpp:(.text+0x1fea): undefined reference to `glStencilOp'
MGLContext.cpp:(.text+0x2008): undefined reference to `glStencilOp'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableCullFace()':
MGLContext.cpp:(.text+0x202e): undefined reference to `glEnable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableCullFace()':
MGLContext.cpp:(.text+0x2052): undefined reference to `glDisable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setCullMode(M_CULL_MODES)':
MGLContext.cpp:(.text+0x2088): undefined reference to `glCullFace'
MGLContext.cpp:(.text+0x2096): undefined reference to `glCullFace'
MGLContext.cpp:(.text+0x20a4): undefined reference to `glCullFace'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::loadIdentity()':
MGLContext.cpp:(.text+0x21b5): undefined reference to `glLoadIdentity'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setMatrixMode(M_MATRIX_MODES)':
MGLContext.cpp:(.text+0x21eb): undefined reference to `glMatrixMode'
MGLContext.cpp:(.text+0x21f9): undefined reference to `glMatrixMode'
MGLContext.cpp:(.text+0x2207): undefined reference to `glMatrixMode'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::pushMatrix()':
MGLContext.cpp:(.text+0x2225): undefined reference to `glPushMatrix'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::popMatrix()':
MGLContext.cpp:(.text+0x2243): undefined reference to `glPopMatrix'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::multMatrix(MMatrix4x4 const*)':
MGLContext.cpp:(.text+0x2267): undefined reference to `glMultMatrixf'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::translate(MVector3 const&)':
MGLContext.cpp:(.text+0x22a1): undefined reference to `glTranslatef'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::rotate(MVector3 const&, float)':
MGLContext.cpp:(.text+0x22e2): undefined reference to `glRotatef'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::scale(MVector3 const&)':
MGLContext.cpp:(.text+0x231b): undefined reference to `glScalef'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::getViewport(int*)':
MGLContext.cpp:(.text+0x2347): undefined reference to `glGetIntegerv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::getModelViewMatrix(MMatrix4x4*)':
MGLContext.cpp:(.text+0x2373): undefined reference to `glGetFloatv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::getProjectionMatrix(MMatrix4x4*)':
MGLContext.cpp:(.text+0x239f): undefined reference to `glGetFloatv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::getTextureMatrix(MMatrix4x4*)':
MGLContext.cpp:(.text+0x23cb): undefined reference to `glGetFloatv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableFog()':
MGLContext.cpp:(.text+0x23f0): undefined reference to `glEnable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableFog()':
MGLContext.cpp:(.text+0x2414): undefined reference to `glDisable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setFogColor(MVector3 const&)':
MGLContext.cpp:(.text+0x2459): undefined reference to `glFogfv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setFogDistance(float, float)':
MGLContext.cpp:(.text+0x249b): undefined reference to `glFogf'
MGLContext.cpp:(.text+0x24ae): undefined reference to `glFogf'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableLighting()':
MGLContext.cpp:(.text+0x251c): undefined reference to `glEnable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableLighting()':
MGLContext.cpp:(.text+0x2540): undefined reference to `glDisable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableLight(unsigned int)':
MGLContext.cpp:(.text+0x2568): undefined reference to `glEnable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableLight(unsigned int)':
MGLContext.cpp:(.text+0x2590): undefined reference to `glDisable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setLightPosition(unsigned int, MVector4 const&)':
MGLContext.cpp:(.text+0x2605): undefined reference to `glLightfv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setLightDiffuse(unsigned int, MVector4 const&)':
MGLContext.cpp:(.text+0x267b): undefined reference to `glLightfv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setLightSpecular(unsigned int, MVector4 const&)':
MGLContext.cpp:(.text+0x26f1): undefined reference to `glLightfv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setLightAmbient(unsigned int, MVector4 const&)':
MGLContext.cpp:(.text+0x2767): undefined reference to `glLightfv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setLightAttenuation(unsigned int, float, float, float)':
MGLContext.cpp:(.text+0x2801): undefined reference to `glLightf'
MGLContext.cpp:(.text+0x2821): undefined reference to `glLightf'
MGLContext.cpp:(.text+0x2841): undefined reference to `glLightf'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setLightSpotDirection(unsigned int, MVector3 const&)':
MGLContext.cpp:(.text+0x28b1): undefined reference to `glLightfv'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setLightSpotAngle(unsigned int, float)':
MGLContext.cpp:(.text+0x290a): undefined reference to `glLightf'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::setLightSpotExponent(unsigned int, float)':
MGLContext.cpp:(.text+0x2984): undefined reference to `glLightf'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::enableBlending()':
MGLContext.cpp:(.text+0x2b88): undefined reference to `glEnable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `MGLContext::disableBlending()':
MGLContext.cpp:(.text+0x2bac): undefined reference to `glDisable'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L329':
MGLContext.cpp:(.text+0x2bee): undefined reference to `glBlendFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L330':
MGLContext.cpp:(.text+0x2c04): undefined reference to `glBlendFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L331':
MGLContext.cpp:(.text+0x2c1a): undefined reference to `glBlendFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L333':
MGLContext.cpp:(.text+0x2c30): undefined reference to `glBlendFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MGLContext.o): In function `.L332':
MGLContext.cpp:(.text+0x2c46): undefined reference to `glBlendFunc'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MWinContext.o): In function `MWinContext::setCursorPosition(int, int)':
MWinContext.cpp:(.text+0x8c): undefined reference to `MWindow::setCursorPos(int, int)'
build/linux2/release/Maratis/Common/libMaratisCommon.a(MWinContext.o): In function `MWinContext::getSystemTick()':
MWinContext.cpp:(.text+0xdf): undefined reference to `MWindow::getSystemTick()'
build/linux2/release/3rdparty/glee/libglee.a(GLee.o): In function `__GLeeGetProcAddress':
GLee.c:(.text+0x19): undefined reference to `glXGetProcAddressARB'
build/linux2/release/3rdparty/glee/libglee.a(GLee.o): In function `__GLeeGetExtStrPlat':
GLee.c:(.text+0x2aee9): undefined reference to `glXGetCurrentDisplay'
GLee.c:(.text+0x2af10): undefined reference to `glXQueryExtensionsString'
build/linux2/release/3rdparty/glee/libglee.a(GLee.o): In function `__GLeeGetExtensions':
GLee.c:(.text+0x2b00a): undefined reference to `glGetString'
build/linux2/release/3rdparty/glee/libglee.a(GLee.o): In function `GLeeGetExtStrGL':
GLee.c:(.text+0x2b38a): undefined reference to `glGetString'
build/linux2/release/3rdparty/glee/libglee.a(GLee.o): In function `GLeeInit':
GLee.c:(.text+0x2b531): undefined reference to `glGetString'
collect2: ld returned 1 exit status
scons: *** [build/linux2/release/Examples/ManualUse/ManualUse] Error 1
scons: building terminated because of errors.

Re: Linux Version?

Hi linux-man, thanks for trying,
the scons build system is missing some work for it to work on linux,
and as it is a contributor that made the scons system, I don't have the knowledge myself
to finish it. I guess it's missing the link to the MGUI/X11 port and the needed linux libs (X11 etc).

Re: Linux Version?

Hello. I am an Arch Linux user and I have successfully compiled maratis after making some changes in the
build scripts and the source code. I haven't had the time to thoroughly test them, but all the executables
seem to work fine *.

Link to patch

Question*: Is the Maratis Player executable supposed to be executed directly by the user or
                is it used internally by the Maratis Player? I am asking because if i try to execute
                it directly I get a 'Segmentation fault'. I haven't had the time to inspect the source
                code and figure out what it does.

Summary of changes:

-- libbullet:
    - append '-fpermissive' flag to support compilation on newer versions of gcc (3rdparty/bullet/SConscript)

-- libsndfile:
    - changed the library filename from 'libsndfile.so.1.0.23' to 'libsndfile.so' to reflect the one which
      appears in the repository (trunk/dev/var/scons/thirdparty/libsndfile.py)

-- Executables:
    - linked with 'GL' and 'Xxf86vm' system libraries

-- Executables & Libraries:
    - included '/usr/include' path in CPPPATH in order to locate system-wide header files

-- MGui
    - included build rules to collect the X11 related source code
    - included 'string.h' for the definition of strcpy() (trunk/dev/MSDK/MGui/Sources/X11/MX11Window.cpp)
    - commented code for the printing of captured input events (trunk/dev/MSDK/MGui/Sources/X11/MX11Window.cpp)
    - changed the FocusIn and FocusOut mouse events to set the focus/unfocus state
      of the window instead of changing the active/inactive state in order to avoid
      terminating the executables (Editor, etc..) when a window of another application is selected
      (trunk/dev/MSDK/MGui/Sources/X11/MX11Window.cpp)
    - Included building rules (commented at the moment) to build as a shared library

-- Maratis Editor:
    - defined SCRIPT_READER preprocessor definition to gvim when building under linux
      (trunk/dev/Maratis/Editor/Maratis/MaratisUI.cpp)

-- General linker flags
    - added the '-Wl,-rpath,.' flag to inject the current working directory in the final executables
      to locate shared libraries located in the same directory as the executables
      (trunk/dev/var/scons/EnvConfig)

Last edited by oreo (2011-09-27 16:52:11)

Re: Linux Version?

Hi oreo,
welcome and thank you a lot for this, that's exactly what was missing !
I will try it and commit your work to svn !

The Maratis Player executable is supposed to be run from a command line (or a batch)
but it should not crash, but today I noticed a mistake in the destroying of the X11 MWindow port, so it's maybe this.

Let's keep in touch, it will be nice to have your feedbacks.
You'll see that the file selector are still missing in the X11 port, I didn't manage to find an equivalent,
maybe the best will be to try to do the file selection manually using MGui and not with a system dependent function.

Re: Linux Version?

I tried on Ubuntu, the compilation went fine,
when I first tried to launch Maratis, it was just missing "libopenal.so.1
" which was not copied with the executable.
And for MaratisPlayer, I also have this Segmentation fault, I'll have a look. [EDIT] > something is wrong with the full-screen (don't know what yet)

I'll commit your patch.

Thank you !! The Linux release is close !

Re: Linux Version?

-- Maratis Player Segmantation Fault:
   It seems that there is a problem when creating a window with fullscreen mode.
   The segmentation fault appears in line 96 of Maratis/Player/main.cpp :

   

window->create("Maratis", width, height, 32, fullscreen == 1);

    When setting the last parameter to false, it runs correctly.
    [EDIT] Oops. I didn't see your edited comment. It seems you have spotted the error smile [/EDIT]

-- openal and libsndfile
   After inspecting the final executables (i.e. ldd MaratisPlayer) on my system, it seems
   that the compiler chooses to link against the system-wide libraries instead of the already
   provided ones. It seems that the linker gives priority to system-wide libraries if they are
   already installed (it makes sense). On my system, both of the libraries are already installed
   and the executables are linked against them. (that's why I didn't have any problems).

   I have made some changes to the build system for openal, following the configuration of
   libsndfile.so in order to copy libopenal.so in the final directories as well. You can give it
   a try on your system and let me know if it works. This is the first time I am messing
   around with scons, so I don't know if there is a better/cleaner way to do things.

   Link to patch

Last edited by oreo (2011-09-27 20:26:06)

Re: Linux Version?

Thank you, I'll try to finish that this week-end,
I'll make a minimal file selection window to load files,
the rest looks to work normally.

Re: Linux Version?

Hi anael, apologies for never getting back to you. I tried to compile when you last contacted me, but as I'm not very familiar with the scons system, there wasn't much I could do:/ However, I tried again just now and it compiled fine:) But when I try to start the MaratisEditor, it's telling me it cant find libMEngine.so.

Re: Linux Version?

did you try running what is created in dev/prod/ ?

Re: Linux Version?

Hi there, I just finished making a MGui native file browser, it will need some improvements but it's working cross-platform,
and finally concludes a full Linux port :

http://www.maratis3d.org/wp-content/uploads/2011/10/filebrowser.jpg

Changes are on svn, I will soon publish some beta builds, the linux version need to be tested smile
Cheers,

Anaël.

Re: Linux Version?

And here's a test build !
http://maratis.googlecode.com/files/Mar … x86-32.zip

42

Re: Linux Version?

That's great everything seems to be working smile

Re: Linux Version?

Very cool.
I'll test it when I get home tonight.
(I run opensuse x64 on my home computer).

Re: Linux Version?

Awesome, Archlinux (i686) working fine, Great Job!

Re: Linux Version?

Really glad to see Maratis on Linux! Beta GUI works, but when i compiled SVN code today, left-right cursor keys didn't work when editing coordinates. Instead, a weird char appeared ( a y with 2 points above) several times.
Cheers!

Re: Linux Version?

Hi everyone, new user (hopefully) here smile

Just to let you know that i have the same "libMEngine.so missing" issue under ubuntu 11.04. How can i tell Maratis to look into its own folder?

Thanks anyway for this tool, i'm looking forward to using it!

Last edited by Sythuzuma-Ka (2011-11-14 12:39:04)

Re: Linux Version?

Hi, thank you for trying,

is the "libMEngine.so missing" when running the prebuild : http://maratis.googlecode.com/files/Mar … x86-32.zip

or when building yourself ?

note that you will need OpenAL to be installed on your system

Re: Linux Version?

Sorry i forgot to mention it : yes it was with the prebuilt version, and openAL is installed on my system yep (libopenal1 exactly).

Re: Linux Version?

strange... i don't understand how it can work on other people computer if the link is wrong, can it be a 32/64 bits problem ? are you on 64 bits ?

Re: Linux Version?

I saw that others could run it, on other systems than ubuntu.
I'm running a 32 bits system, 11.04, on core2duo... i dont think they're could be a problem with that.

Maybe is it some unzipping problem? I did it graphically.

Or it's related to ubuntu itself (which would be quite weird)... i guess i should build Maratis myself just to see if i get the same issue... i'll give it a try and let you know...

Last edited by Sythuzuma-Ka (2011-11-14 17:28:57)