ResidualVM logo Forum Index - ResidualVM website - Contact us - Rules Login    Register     Search curved edge
It is currently Mon Aug 21, 2017 8:13 am

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: STARK engine
PostPosted: Mon Jan 04, 2016 8:20 am 
Offline

Joined: Mon Jan 04, 2016 5:07 am
Posts: 3
I ran my compiler with latest residualvm git source. WIN7 x86, MiNGW-MSYS (make clean, ./configure --enable-all-engines).
Configure script is disabling STARK engine, because OpenGL with shaders is required. Please anyone help me, how to fix it.

The configure script Screenshot:
Image


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Mon Jan 04, 2016 6:36 pm 
Offline

Joined: Tue Feb 12, 2013 6:10 pm
Posts: 46
To get a build with the STARK engine, you will need to:
- Install GLEW in your build environment
- Update to the lastest git revision. Changes have been made today in order to build the engine by default


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Tue Jan 05, 2016 7:16 am 
Offline

Joined: Mon Jan 04, 2016 5:07 am
Posts: 3
Thanks!

The libraries on the GLEW website are built for the Microsoft C compiler. In order to use GLEW on MinGW, i compile the libraries in this way:
http://www.prinmath.com/csci5229/misc/install.html
section "Windows: MinGW and GLEW"

This part has failed (foo.c not exist) and compile script is ran the same as before (STARK engine skipped):
..
To compile and link foo.c using MinGW and GLEW you need gcc -DUSEGLEW -Wall -ofoo foo.c -lglew32 -lglut32cu -lglu32 -lopengl32
..
Please help, what did I do wrong..


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Tue Jan 05, 2016 9:33 am 
Offline

Joined: Sat Jan 17, 2015 1:38 pm
Posts: 5
Hello,

I got the glew sources from http://glew.sourceforge.net. I was able to compile glew without any issues. You might need to add the glew libraries manually your system, as "make install" did not work for me...

Afterwards I was able to build the latest sources (including stark engine). I get an opengl error when trying to start a games using the stark engine...


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Tue Jan 05, 2016 10:33 am 
Offline

Joined: Thu May 07, 2009 8:32 am
Posts: 21
Vorph wrote:
Hello,

I got the glew sources from http://glew.sourceforge.net. I was able to compile glew without any issues. You might need to add the glew libraries manually your system, as "make install" did not work for me...

Afterwards I was able to build the latest sources (including stark engine). I get an opengl error when trying to start a games using the stark engine...


Hello,

Which compiler? I'm getting an error in grim engine.

Code:
....
Looking for C++ compiler... g++
Checking for compiler version... 4.3.3, ok
....
Checking for GL Extension Wrangler (GLEW)... yes
Checking whether iconv.h is present... yes
Checking whether iconv needs linking against libiconv... yes
Checking signature of iconv... iconv_t, const char **, size_t *, char **, size_t *
Checking for iconv... yes
Checking for OpenGL... yes (shaders enabled)
....
Engines (builtin):
    Grim [all games]
    Myst 3
    The Longest Journey

....


In file included from ../engines/grim/gfx_opengl_shaders.cpp:61:
../engines/grim/gfx_opengl_shaders.h:266: error: declaration of 'struct Grim::GfxOpenGLS::Light'
../engines/grim/gfx_base.h:43: error: changes meaning of 'Light' from 'struct Grim::Light'


Any ideas?

As the variable is private if I change the struct name I can compile and get the grim engine working but stark is not compiling...

Code:
engines/stark/libstark.a(dialogpanel.o):.\residual_svn\build_windows/../engines/stark/ui/dialogpanel.cpp:150: undefined reference to `Stark::DialogPanel::_aprilColor'
engines/stark/libstark.a(dialogpanel.o):.\residual_svn\build_windows/../engines/stark/ui/dialogpanel.cpp:150: undefined reference to `Stark::DialogPanel::_otherColor'


So It looks like I have something wrong in my environment...


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Tue Jan 05, 2016 11:33 am 
Offline

Joined: Thu May 07, 2009 8:32 am
Posts: 21
Also if I modify the source to compile I got an error in stark engine:

Code:
INFO: OpenGL Vendor: Intel
INFO: OpenGL Renderer: Intel(R) HD Graphics 4000
INFO: OpenGL Version: 4.0.0 - Build 10.18.10.4276
INFO: OpenGL Red bits: 8
INFO: OpenGL Green bits: 8
INFO: OpenGL Blue bits: 8
INFO: OpenGL Alpha bits: 8
INFO: OpenGL Z buffer depth bits: 24
INFO: OpenGL Double Buffer: 1
INFO: OpenGL Stencil buffer bits: 8
INFO: GLEW Version: 1.13.0
INFO: GLSL version: 4.00 - Build 10.18.10.4276
Could not open shader stark_surface.vertex!!


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Tue Jan 05, 2016 12:40 pm 
Offline

Joined: Sat Jan 17, 2015 1:38 pm
Posts: 5
Hi there...

I am using are recent MinGW installation on a Windows Machine

Code:
Running ResidualVM configure...
Looking for C++ compiler... g++
Checking for compiler version... 4.8.1, ok
Building as C++11... no
Checking for whether -Wglobal-constructors work... no
...
Looking for freetype-config... /h/MinGW/bin/freetype-config
Checking for FreeType2... yes
Checking for GL Extension Wrangler (GLEW)... yes
Checking whether iconv.h is present... yes
Checking whether iconv needs linking against libiconv... yes
Checking signature of iconv... iconv_t, char **, size_t *, char **, size_t *
Checking for iconv... yes
Checking for OpenGL... yes (shaders enabled)
Checking for nasm... /h/MinGW/bin/nasm
...
Backend... sdl (1.2.14), assembly routines, savegame timestamp

Engines (builtin):
    Grim [all games]
    Myst 3
    The Longest Journey


Creating config.h
Creating config.mk
Creating engines/engines.mk
Creating engines/plugins_table.h


The building process works without any hassles, but I get (roughly) the same error message when starting TLJ...

Code:
User picked target 'tlj-win' (gameid 'stark')...
  Looking for a plugin supporting this gameid... Stark Engine
  Starting 'Stark Game'
INFO: OpenGL Vendor: NVIDIA Corporation
INFO: OpenGL Renderer: GeForce GTX 660 Ti/PCIe/SSE2
INFO: OpenGL Version: 4.5.0 NVIDIA 361.43
INFO: OpenGL Red bits: 8
INFO: OpenGL Green bits: 8
INFO: OpenGL Blue bits: 8
INFO: OpenGL Alpha bits: 8
INFO: OpenGL Z buffer depth bits: 24
INFO: OpenGL Double Buffer: 1
INFO: OpenGL Stencil buffer bits: 8
INFO: GLEW Version: 1.13.0
INFO: GLSL version: 4.50 NVIDIA
Could not open shader stark_surface.vertex!!


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Tue Jan 05, 2016 1:31 pm 
Offline

Joined: Sun Dec 15, 2013 12:13 pm
Posts: 1
mac_es wrote:
Code:
...
INFO: GLSL version: 4.00 - Build 10.18.10.4276
Could not open shader stark_surface.vertex!!

The file "stark_surface.vertex" is in the ResiduelVM code under
engines/stark/shaders/

After I copied the whole "shaders" directory (as Linux user I should have made a soft link) to the directory with the TLJ data, I could start the game.


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Tue Jan 05, 2016 2:43 pm 
Offline

Joined: Sat Jan 17, 2015 1:38 pm
Posts: 5
Wooohooo....

that did the trick :D

THX


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Tue Jan 05, 2016 2:53 pm 
Offline

Joined: Sat Jan 17, 2015 1:38 pm
Posts: 5
I am in the posession of a german (Funcom) DVD version of the game. The version is not yet detected. Shall I file the debug output as a bug report ?

Vorph


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Tue Jan 05, 2016 3:20 pm 
Offline

Joined: Thu May 07, 2009 8:32 am
Posts: 21
For me too, It runs!

Though there is not possibility to put the shaders directory in the extra path, Residual dir... I'm trying to keep the game directory as clean as possible.

Cheers


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Tue Jan 05, 2016 3:48 pm 
Offline

Joined: Thu May 07, 2009 8:32 am
Posts: 21
mac_es wrote:
For me too, It runs!

Though there is not possibility to put the shaders directory in the extra path, Residual dir... I'm trying to keep the game directory as clean as possible.

Cheers


If you put in the residualVM directory:

engines/stark/shaders directory also works...


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Tue Jan 05, 2016 4:42 pm 
Offline

Joined: Mon Jan 04, 2016 5:07 am
Posts: 3
Someone help me, what did I do wrong, Please? Maybe my compiler (g++) version is wrong? GLEW compiled, installed.
viewtopic.php?f=1&t=712&p=3987#p3981


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Tue Jan 05, 2016 7:02 pm 
Offline

Joined: Tue Feb 12, 2013 6:10 pm
Posts: 46
I'm glad most of you were able to sort their issues. Work is in progress to embed the shader files in the executable so that you don't have to copy them around.

@Vorph: Please post the debug output regarding your version here.

@GoodOldGeorg: You said GLEW was installed but did not post your new problem. I suggest you use a toolchain with a packaging system like https://msys2.github.io/ so that you can install packages for the dependencies, and don't have to bother about building them.


Top
 Profile  
 
 Post subject: Re: STARK engine
PostPosted: Wed Jan 06, 2016 4:49 am 
Offline

Joined: Sat Jan 17, 2015 1:38 pm
Posts: 5
Hi there,

Code:
Please, report the following data to the ResidualVM team along with name
den Namen des Spiels, das Sie hinzuf³gen wollten, als auch die Version/Sprache/usw.:
  {"x.xarc", 0, "de8327850d7bba90b690b141eaa23f61", 3032},
  {"chapters.ini", 0, "e4611d143a87b263d8d7a54edc7e7cd7", 515},


The game DVD calls itself: "The Longest Journey, Special Edition" and was published in 2006 by Funcom / dtp. Game Language (speech / text) is german.
If you need anything else...

Vorph


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Forum design by ScummVM team, icons by raina, adopted for ResidualVM
curved edge   curved edge