Page 1 of 1
STK Editor Linux Mint

Posted:
23 Jan 2015, 00:36
by johnno56
Greetings.
I and my grandkids enjoy playing STK and I would like to try my hand at creating a track.
I use Linux Mint (ubuntu based) and have downloaded the source files. And that is as far as I go. The files are meant to be expanded into the STK 'data' folder but there are no instructions on how to startup the editor. Can anyone help me out?
Regards
J
Re: STK Editor Linux Mint

Posted:
26 Jan 2015, 00:27
by Auria
Hi, I'm afraid we don't have instructions yet. The editor is built with CMake, are you familiar with CMake? That's also what is used to build STK itself so the process would be similar
Re: STK Editor Linux Mint

Posted:
26 Jan 2015, 01:02
by johnno56
Thanks for replying Auria. I have been watching for a reply for the last two days and was beginning to feel a bit left out... To answer your question. I have used CMake a couple of times but no, I am not all that familiar with it. In my research, I found that I need to also install, the Irrlicht Engine. Found it. Downloaded it. Another compiler nightmare. I am beginning to think that I am not destined to create tracks... *sigh*
I had even concidered running the Windows version of STK (... I am running with 32 bit Linux Mint 17.. sorry, I should have mentioned that earlier. My bad.) STK runs just fine (via Wine), but the editor, could not create the tracks. I do no beleive that the editor is at fault. I beleive it is a problem that "Windows" has trying to create files within a Linux system. It cannot write a track file because it cannot "see" the disk. imho.
The upside is, I have found heaps of tracks that others have created, and have been showing the grandkids what can be produced. Having lots of fun, but wishing I coud do more... I am not complaining about STK, by any means, I think it's great. I am just eager to create my own tracks. I am learning to use Blender so I can try my hand at creating karts as well. Lots to learn and play.
I hope that instructions can be produced soon, but in the meantime, I have some tracks to try out. Again, thanks for replying.
Regards
J
Re: STK Editor Linux Mint

Posted:
26 Jan 2015, 09:54
by Akien
As far as I can tell, to build the editor you will have to use the code at
https://github.com/mcsab/stk-editorFirst, clone it with git:
$ git clone
https://github.com/mcsab/stk-editorMake sure you have the needed development libraries:
- PhysFS
- Irrlicht
Then initialise it with CMake:
$ cd stk-editor
$ cmake .
If CMake does not complain about missing libraries, you're ready to compile the beat:
$ make -jX
where X stands for the number of CPU cores that you want to allow to the compilation. It's not a big project though so you can also use "make" directly to use only one core.
Re: STK Editor Linux Mint

Posted:
26 Jan 2015, 12:24
by deve
Note that you need modified irrlicht. In theory available here:
https://github.com/mcsab/irrlichtbut in practice, you won't compile it with current mesa, so it's a bit burdensome atm.
Re: STK Editor Linux Mint

Posted:
26 Jan 2015, 13:24
by Akien
It built fine here against system irrlicht and mesa 10.4.2, but maybe some functionalities would be broken, I did not really try to use the editor.
IMO if an irrlicht fork has to be maintained for the editor, it would be best to use STK's Antartica engine directly.
Re: STK Editor Linux Mint

Posted:
26 Jan 2015, 22:05
by johnno56
This is the error I get when trying to install Irrlicht...
In file included from COpenGLDriver.h:25:0,
from COpenGLDriver.cpp:5:
COpenGLExtensionHandler.h:1236:3: error: ‘PFNGLBLENDEQUATIONPROC’ does not name a type
PFNGLBLENDEQUATIONPROC pGlBlendEquation;
^
COpenGLExtensionHandler.h: In member function ‘void irr::video::COpenGLExtensionHandler::extGlBlendEquation(GLenum)’:
COpenGLExtensionHandler.h:2566:6: error: ‘pGlBlendEquation’ was not declared in this scope
if (pGlBlendEquation)
^
make: *** [COpenGLDriver.o] Error 1
I have absolutely no idea what this means or how to fix it... As Pink Floyd would say, "another brick in the wall" *sigh*
J
Re: STK Editor Linux Mint

Posted:
26 Jan 2015, 22:56
by Akien
I think you need this patch which most distros used for their irrlicht package (I took it from fedora):
http://svnweb.mageia.org/packages/cauld ... iew=markupThat's one of the reasons why maintaining yet another fork of irrlicht would be ill-advised.
Re: STK Editor Linux Mint

Posted:
27 Jan 2015, 00:42
by johnno56
I do not mean to be a pain in the neck, but I am uncertain, as to what to do with the "patch". Is it meant to replace the existing COpenGLExtensionHandler.h file or to be added to the existing file? Compilling programs, of any kind, I tend not to do without instructions. I'm afraid I might "break" something... *sigh*
J
Re: STK Editor Linux Mint

Posted:
27 Jan 2015, 07:05
by deve
@johnno56 You have this error because you compile irrlicht with mesa 10 and stable irrlicht contains old gl headers (it is updated in current svn). Most distributions patched irrlicht to avoid this problem. Personally I use these two changes:
https://github.com/deveee/supertuxkart- ... f575d86834https://github.com/deveee/supertuxkart- ... f73a5d39b4You need to modify existing file, not replace.
Re: STK Editor Linux Mint

Posted:
27 Jan 2015, 11:37
by Akien
johnno56 {l Wrote}:I do not mean to be a pain in the neck, but I am uncertain, as to what to do with the "patch". Is it meant to replace the existing COpenGLExtensionHandler.h file or to be added to the existing file? Compilling programs, of any kind, I tend not to do without instructions.
If you are not familiar with patches, the easiest solution for you would be to open COpenGLExtensionHandler.h with a text editor, locate the part where changes need to be made (i.e. after "#include <GL/glx.h>" according to the patch), and the add those three lines:
- {l Code}: {l Select All Code}
#ifndef PFNGLBLENDEQUATIONPROC
typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
#endif
(basically so that the code snippet looks like the patch without the + signs).
You can then save the file, and try to compile again, it should work.
Re: STK Editor Linux Mint

Posted:
27 Jan 2015, 22:03
by johnno56
git cloned both editor and irrlicht. Installed the PhysFS and Irrlicht dev files. Made the appropriate changes to the COpenGLExtensionHandler.h file. Compiled Irrlicht (without the previous error); STK-Editor "cmake ." and "make" completed successfully. What's next?
J
Re: STK Editor Linux Mint

Posted:
28 Jan 2015, 11:16
by Akien
You should now have a "stk-editor" executable where you compiled the editor.
Run it with "./stk-editor", and then select your stk-assets directory, the editor should start with all available content.
Re: STK Editor Linux Mint

Posted:
05 Feb 2015, 10:41
by deve
I tried to run stk-editor and atm. I get segfault on startup. I needed this change to make it working:
https://github.com/mcsab/stk-editor/iss ... t-73016471I hope that this will be fixed soon.
Re: STK Editor Linux Mint

Posted:
21 Feb 2015, 12:51
by deve
I fixed the crash on startup and created slightly better build system. Now irrlicht is included in stk-editor sources and it can be compiled in the same way as in STK game. You just need physfs developer package on linux or you can force to use static physfs by using cmake option.
https://github.com/supertuxkart/stk-editorStill good readme file is missing :P And I didn't check if it works on osx.
Re: STK Editor Linux Mint

Posted:
22 Feb 2015, 01:24
by Auria
If you have a readme file to contribute, a pull request is certainly welcome
