Author Topic: MegaGlest 3.7.1 in Ubuntu 13.04 pre-release VirtualBox  (Read 1500 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
MegaGlest 3.7.1 in Ubuntu 13.04 pre-release VirtualBox
« on: 20 April 2013, 14:38:51 »
I've just installed an Ubuntu 13.04 pre-release + all currently available updates on VirtualBox 4.2.12 (host system is my atibox), then tried to install and run MegaGlest 3.7.1.

Here's my experience (pretending to be a first-time MegaGlest user on a freshly installed Ubunt 13.04):

  • After downloading the file from http://megaglest.org (we did not update Debian / Ubuntu packages in time for Wheezy or Raring sadly), I needed to locate the downloaded file which Firefox placed in ~/Downloads, using the file browser available on Ubuntu's Launcher by default.
  • Having found the file, I did what's discussed at http://megaglest.org/installation.html (a web page the download page pointed me to) - I right-clicked on it, selected "Properties", clicked the "Permissions" tab and activated the "Execute: Allow executing file as program" checkbox
  • Then I double-clicked the file and the installer started and guided me through the install process.
  • Once the installation was complete, I was back in Unity, but there was no obvious way to start MegaGlest (no icon on the launcher). However, as soon I typed "megaglest" into the dash all the options ("MegaGlest 3.7.1", "MegaGlest Uninstall 3.7.1", "MegaGlest Map Editor 3.7.1", "MegaGlest G3D Model Viewer 3.7.1") would show up
  • I clicked on the "MegaGlest 3.7.1" icon - nothing (notable) happened
  • I was a bit stuck at this point, looked at the "installation" web page again, also at http://megaglest.org/get-started.html and the README file the installer had opened for me. The first two did not help at all, and the README file just said: Please check the FAQ and read up on the forums for more verbose instructions. (not giving out the locations of these)
  • I looked at http://megaglest.org again and after a while found the FAQ link there, pointing to http://faq.megaglest.org
  • On this huge page, I missed the list of contents because it is not shown by default, but when I found out how to show it I was able to identify my issue as:2 Issues running the game -> 2.1 When I click the game icon nothing happens/a window just opens and closes -> 2.1.1 Linux
    I decided to follow those instructions which involve working on a text terminal.
  • So I opened a terminal window, by clicking on the Terminal icon on the launcher (pressing Ctrl-Alt-T works, too), typed "megaglest" and got:
    The program 'megaglest' is currently not installed. You can install it by typing: sudo apt-get install megaglest
    That's kind of irritating since I just had it installed
  • I realized that the installation I did was not an Ubuntu / deb package, and that the FAQ actually said I should find those files in ~/megaglest by default, so I typed:
    cd megaglest, which worked, then typed ./megaglest to start the executable in this directory, and got this:
Code: [Select]
tomreyn@ubuntubox:~/megaglest$ ./start_megaglest
gamedir [/home/tomreyn/megaglest]
Looking for LDCONFIG []...
LDCONFIG environment variable is not set...
Found LDCONFIG using which [/sbin/ldconfig]...
default library [/home/tomreyn/megaglest/lib/libopenal.so.1] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libdirectfb-1.2.so.0] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libfusion-1.2.so.0] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libdirect-1.2.so.0] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libjpeg.so.62] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/x86_64-linux-gnu/libjpeg.so.8] pointed to from [/home/tomreyn/megaglest/lib/libjpeg.so.62]
default library [/home/tomreyn/megaglest/lib/libpng15.so.15] is missing, attempting to find and link to a newer version if available...
new library link [/lib/x86_64-linux-gnu/libpng12.so.0] pointed to from [/home/tomreyn/megaglest/lib/libpng15.so.15]
default library [/home/tomreyn/megaglest/lib/libcurl.so.4] was found in [/usr/lib/x86_64-linux-gnu/libcurl.so.4]
default library [/home/tomreyn/megaglest/lib/libxerces-c-3.1.so] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libicudata.so.40] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/x86_64-linux-gnu/libicudata.so.48] pointed to from [/home/tomreyn/megaglest/lib/libicudata.so.40]
default library [/home/tomreyn/megaglest/lib/libicuuc.so.40] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/x86_64-linux-gnu/libicuuc.so.48] pointed to from [/home/tomreyn/megaglest/lib/libicuuc.so.40]
default library [/home/tomreyn/megaglest/lib/libGLEW.so.1.5] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/x86_64-linux-gnu/libGLEW.so.1.8] pointed to from [/home/tomreyn/megaglest/lib/libGLEW.so.1.5]
default library [/home/tomreyn/megaglest/lib/libGLEW.so.1.5] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libogg.so.0] was found in [/usr/lib/x86_64-linux-gnu/libogg.so.0]
default library [/home/tomreyn/megaglest/lib/libvorbis.so.0] was found in [/usr/lib/x86_64-linux-gnu/libvorbis.so.0]
default library [/home/tomreyn/megaglest/lib/libvorbisfile.so.3] was found in [/usr/lib/x86_64-linux-gnu/libvorbisfile.so.3]
default library [/home/tomreyn/megaglest/lib/libfontconfig.so.1] was found in [/usr/lib/x86_64-linux-gnu/libfontconfig.so.1]
default library [/home/tomreyn/megaglest/lib/libfreetype.so.6] was found in [/usr/lib/x86_64-linux-gnu/libfreetype.so.6]
default library [/home/tomreyn/megaglest/lib/libgnutls.so.26] was found in [/usr/lib/x86_64-linux-gnu/libgnutls.so.26]
default library [/home/tomreyn/megaglest/lib/libldap_r-2.4.so.2] was found in [/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2]
default library [/home/tomreyn/megaglest/lib/libresolv.so.2] was found in [/lib/x86_64-linux-gnu/libresolv.so.2]
default library [/home/tomreyn/megaglest/lib/liblua5.1.so.0] was found in [/usr/lib/x86_64-linux-gnu/liblua5.1.so.0]
default library [/home/tomreyn/megaglest/lib/libftgl.so.2] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libircclient.so.1] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libdl.so.2] was found in [/lib/x86_64-linux-gnu/libdl.so.2]
default library [/home/tomreyn/megaglest/lib/libvlccore.so.5] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libvlc.so.5] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libgcrypt.so.11] was found in [/lib/x86_64-linux-gnu/libgcrypt.so.11]
./megaglest: error while loading shared libraries: libopenal.so.1: cannot open shared object file: No such file or directory
tomreyn@ubuntubox:~/megaglest$
  • So I was stuck again here, this time with an error message. The FAQ said this was to be expected at this point and that I should search both FAQ and forums for more info.
  • I searched the FAQ for "error while loading shared libraries: libopenal.so.1", "libopenal" and "openal" to no avail.
  • I searched the forums for "error while loading shared libraries: libopenal.so.1" and the only thing I could come up with was this: [solved] libopenal.so.0 cannot open shared library, 3.3.7beta2, kubuntu 10.10 and this didn't really help
  • So I searched the web, and after looking around a bit I came across other people who had run into this error message, and had done this to fix it:
    sudo apt-get install libopenal1
  • So I tried this: sudo apt-get install libopenal1 and then I ran ./start_megaglest again and now I got this:
Code: [Select]
tomreyn@ubuntubox:~/megaglest$ ./start_megaglest
gamedir [/home/tomreyn/megaglest]
Looking for LDCONFIG []...
LDCONFIG environment variable is not set...
Found LDCONFIG using which [/sbin/ldconfig]...
default library [/home/tomreyn/megaglest/lib/libopenal.so.1] was found in [/usr/lib/x86_64-linux-gnu/libopenal.so.1]
default library [/home/tomreyn/megaglest/lib/libdirectfb-1.2.so.0] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libfusion-1.2.so.0] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libdirect-1.2.so.0] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libjpeg.so.62] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/x86_64-linux-gnu/libjpeg.so.8] pointed to from [/home/tomreyn/megaglest/lib/libjpeg.so.62]
default library [/home/tomreyn/megaglest/lib/libpng15.so.15] is missing, attempting to find and link to a newer version if available...
new library link [/lib/x86_64-linux-gnu/libpng12.so.0] pointed to from [/home/tomreyn/megaglest/lib/libpng15.so.15]
default library [/home/tomreyn/megaglest/lib/libcurl.so.4] was found in [/usr/lib/x86_64-linux-gnu/libcurl.so.4]
default library [/home/tomreyn/megaglest/lib/libxerces-c-3.1.so] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libicudata.so.40] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/x86_64-linux-gnu/libicudata.so.48] pointed to from [/home/tomreyn/megaglest/lib/libicudata.so.40]
default library [/home/tomreyn/megaglest/lib/libicuuc.so.40] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/x86_64-linux-gnu/libicuuc.so.48] pointed to from [/home/tomreyn/megaglest/lib/libicuuc.so.40]
default library [/home/tomreyn/megaglest/lib/libGLEW.so.1.5] is missing, attempting to find and link to a newer version if available...
new library link [/usr/lib/x86_64-linux-gnu/libGLEW.so.1.8] pointed to from [/home/tomreyn/megaglest/lib/libGLEW.so.1.5]
default library [/home/tomreyn/megaglest/lib/libGLEW.so.1.5] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libogg.so.0] was found in [/usr/lib/x86_64-linux-gnu/libogg.so.0]
default library [/home/tomreyn/megaglest/lib/libvorbis.so.0] was found in [/usr/lib/x86_64-linux-gnu/libvorbis.so.0]
default library [/home/tomreyn/megaglest/lib/libvorbisfile.so.3] was found in [/usr/lib/x86_64-linux-gnu/libvorbisfile.so.3]
default library [/home/tomreyn/megaglest/lib/libfontconfig.so.1] was found in [/usr/lib/x86_64-linux-gnu/libfontconfig.so.1]
default library [/home/tomreyn/megaglest/lib/libfreetype.so.6] was found in [/usr/lib/x86_64-linux-gnu/libfreetype.so.6]
default library [/home/tomreyn/megaglest/lib/libgnutls.so.26] was found in [/usr/lib/x86_64-linux-gnu/libgnutls.so.26]
default library [/home/tomreyn/megaglest/lib/libldap_r-2.4.so.2] was found in [/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2]
default library [/home/tomreyn/megaglest/lib/libresolv.so.2] was found in [/lib/x86_64-linux-gnu/libresolv.so.2]
default library [/home/tomreyn/megaglest/lib/liblua5.1.so.0] was found in [/usr/lib/x86_64-linux-gnu/liblua5.1.so.0]
default library [/home/tomreyn/megaglest/lib/libftgl.so.2] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libircclient.so.1] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libdl.so.2] was found in [/lib/x86_64-linux-gnu/libdl.so.2]
default library [/home/tomreyn/megaglest/lib/libvlccore.so.5] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libvlc.so.5] is missing, attempting to find and link to a newer version if available...
default library [/home/tomreyn/megaglest/lib/libgcrypt.so.11] was found in [/lib/x86_64-linux-gnu/libgcrypt.so.11]
megaglest v3.7.1
Compiled using: GNUC: 40403 [64bit] on: Nov 23 2012 00:00:58 platform: Linux-X64 endianness: little
SVN: [Rev: 3948] - using STREFLOP [SSE] - [no-denormals]
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table

[/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp::TextFTGL] Line 87 Error = 1281 [invalid value] for size = 24 res = 72

[/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp::init] Line 195 Error = 1281 [invalid value] for text [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890-=!@#$%^&*()_+:"{}[]/?.,<>\';]

[/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp::SetFaceSize] Line 211 Error = 1281 [invalid value] for facesize = 15

[/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp::init] Line 195 Error = 1281 [invalid value] for text [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890-=!@#$%^&*()_+:"{}[]/?.,<>\';]

[/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp::init] Line 195 Error = 1281 [invalid value] for text [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890-=!@#$%^&*()_+:"{}[]/?.,<>\';]

[/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp::init] Line 195 Error = 1281 [invalid value] for text [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890-=!@#$%^&*()_+:"{}[]/?.,<>\';]

[/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp::init] Line 195 Error = 1281 [invalid value] for text [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890-=!@#$%^&*()_+:"{}[]/?.,<>\';]

[/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/gl/font_textFTGL.cpp::init] Line 195 Error = 1281 [invalid value] for text [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890-=!@#$%^&*()_+:"{}[]/?.,<>\';]
Error saved to logfile [/home/tomreyn/.megaglest/error.log]
[2013-04-20 16:34:56] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 390] [OpenGL error #1281 [0x501] : [invalid value] at file: [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/gl/texture_gl.cpp], line: 763
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xb18eae] line: 237
./megaglest:Shared::Graphics::Gl::_assertGl(char const*, int, unsigned int*)address [0x6ffa01] line: 67
./megaglest:Shared::Graphics::Gl::Texture2DGl::init(Shared::Graphics::Texture::Filter, int)address [0xaba4a3] line: 765
./megaglest:Shared::Graphics::TextureManager::init(bool)address [0xa8ea55] line: 84
./megaglest:Glest::Game::Renderer::init()address [0x6fcd8e] line: 422
./megaglest:Glest::Game::Program::init(Shared::Platform::WindowGl*, bool, bool)address [0x77843b] line: 730
./megaglest:Glest::Game::Program::initNormal(Shared::Platform::WindowGl*)address [0x77b577] line: 201
./megaglest:Glest::Game::glestMain(int, char**)address [0x76add5] line: 4476
./megaglest:Glest::Game::glestMainWrapper(int, char**)address [0x76c703] line: 4973
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7fa5c1557ea5] line: 0
./megaglest() [0x5db3e9]address [0x5db3e9]
] gameInitialized = 0, program = 0x306f670
******************************************************
    #2 An error occurred and MegaGlest will close.
Error msg = [OpenGL error #1281 [0x501] : [invalid value] at file: [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/graphics/gl/texture_gl.cpp], line: 763
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xb18eae] line: 237
./megaglest:Shared::Graphics::Gl::_assertGl(char const*, int, unsigned int*)address [0x6ffa01] line: 67
./megaglest:Shared::Graphics::Gl::Texture2DGl::init(Shared::Graphics::Texture::Filter, int)address [0xaba4a3] line: 765
./megaglest:Shared::Graphics::TextureManager::init(bool)address [0xa8ea55] line: 84
./megaglest:Glest::Game::Renderer::init()address [0x6fcd8e] line: 422
./megaglest:Glest::Game::Program::init(Shared::Platform::WindowGl*, bool, bool)address [0x77843b] line: 730
./megaglest:Glest::Game::Program::initNormal(Shared::Platform::WindowGl*)address [0x77b577] line: 201
./megaglest:Glest::Game::glestMain(int, char**)address [0x76add5] line: 4476
./megaglest:Glest::Game::glestMainWrapper(int, char**)address [0x76c703] line: 4973
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7fa5c1557ea5] line: 0
./megaglest() [0x5db3e9]address [0x5db3e9]
]

Please report this bug to  http://bugs.megaglest.org
******************************************************
Aborted (core dumped)
  • So another error, and things seem to have only gotten worse.
  • So I registered on the MegaGlest forums and posted and, after I went through the hoops involved in registering there, I posted an error report.
Altogether, this wasn't a great experience. :-/  (At least this last issue can be due to VirtualBox / virtualization, though.)

Update: It works with VirtualBox 4.2.12 after installing the (non-packaged, image CD) guest drivers provided by this version.
« Last Edit: 20 April 2013, 15:40:38 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·