STK UNOFFICIAL preview build (updated 07/22/17)

Re: STK UNOFFICIAL preview build

Postby QwertyChouskie » 10 Jun 2017, 02:26

I just posted a new build that includes the recorder improvements and physics fixes. Link in first post.
Contributor to/fan of STK (Upstreamed Cartoon theme, numerous random big fixes/tweaks)
User avatar
QwertyChouskie
 
Posts: 559
Joined: 29 Jun 2016, 14:57

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby kriistofor » 19 Jul 2017, 21:39

Look,
I'm sorry for being a plonker here but can you help me with installing this?

I can't cmake .. it via cmd or via the cmake itself.

errors I get:
PS C:\stk-win\stk-code\build> cmake ..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
The CMAKE_C_COMPILER:

x86_64-w64-mingw32-gcc-posix

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:2 (project):
The CMAKE_CXX_COMPILER:

x86_64-w64-mingw32-g++-posix

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "C:/stk-win/stk-code/build/CMakeFiles/CMakeOutput.log".
See also "C:/stk-win/stk-code/build/CMakeFiles/CMakeError.log".
PS C:\stk-win\stk-code\build>


what I did is next: uninstalled everything, tried fresh - same.
changed few lines of code in cmake files (before this error I got an error that said that directories are not in the same place, so I changed all the (/home/qwerty) path lines with my location (C:).

In C:/stk-win/stk-code I have build folder as I should, I have cmakelists.txt, all those errors I surpassed but this is not clear to me.
I tried with cmake .. -G Visual Studio 15 2017 [Win64] - nothing happens.

I already have 9.1.2 installed on another drive if that says anything about the problem.

Really eager to try this build
so... any help? :)
kriistofor
 
Posts: 13
Joined: 18 Jul 2017, 15:35

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby deve » 20 Jul 2017, 23:16

Are you using mingw or VS? If mingw, then:
set PATH=c:\mingw\bin;c:\program files\cmake\bin;%PATH%
cmake .. -G "MinGW Makefiles"
mingw32-make

I assume that you have installed compiler and downloaded STK dependencies.

Build instructions and dependencies for mingw are here:
https://github.com/supertuxkart/depende ... dows-mingw

I don't remember what cmake command is for 64-bit VS compilation, but it should automatically use VS if it's installed when you just write "cmake ..".

And I have no idea where did you find the "/home/qwerty". Are you trying to use his linux build script on windows?
deve
 
Posts: 268
Joined: 23 Jan 2014, 13:45

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby kriistofor » 21 Jul 2017, 14:25

No, i downloaded the win version from the onedrive. folder is named stk-win.

i am usin vs 15 2017 64 bit.

.......

,EDIT:
I deleted the "build" directory that came with the "stk-win" download and created my own. I managed to cmake .. it but after that, i get this error:


C:\stk-win\stk-code\build>msbuild.exe SuperTuxKart.sln /p:Platform="Any CPU"
Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 21.7.2017. 16:53:07.
Project "C:\stk-win\stk-code\build\SuperTuxKart.sln" on node 1 (default targets).
C:\stk-win\stk-code\build\SuperTuxKart.sln.metaproj : error MSB4126: The specified solution configuration "Debug|Any CP
U" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBu
ild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default s
olution configuration. [C:\stk-win\stk-code\build\SuperTuxKart.sln]
Done Building Project "C:\stk-win\stk-code\build\SuperTuxKart.sln" (default targets) -- FAILED.


Build FAILED.

"C:\stk-win\stk-code\build\SuperTuxKart.sln" (default target) (1) ->
(ValidateSolutionConfiguration target) ->
C:\stk-win\stk-code\build\SuperTuxKart.sln.metaproj : error MSB4126: The specified solution configuration "Debug|Any
CPU" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MS
Build.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default
solution configuration. [C:\stk-win\stk-code\build\SuperTuxKart.sln]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.11
____________________________________________________________________________
I put /p:Platform inside the command as cmd suggested me to do - as you can see, no luck.
I restarted the PC and when i try to execute msbuild.exe SuperTuxKart.sln, it says:
C:\stk-win\stk-code\build>msbuild.exe SuperTuxKart.sln
Access is denied.

with the message: This app can't run on your PC
kriistofor
 
Posts: 13
Joined: 18 Jul 2017, 15:35

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby capricom45 » 21 Jul 2017, 18:44

kriistofor {l Wrote}:No, i downloaded the win version from the onedrive. folder is named stk-win.

i am usin vs 15 2017 64 bit.

.......

,EDIT:
I deleted the "build" directory that came with the "stk-win" download and created my own. I managed to cmake .. it but after that, i get this error:


C:\stk-win\stk-code\build>msbuild.exe SuperTuxKart.sln /p:Platform="Any CPU"
Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 21.7.2017. 16:53:07.
Project "C:\stk-win\stk-code\build\SuperTuxKart.sln" on node 1 (default targets).
C:\stk-win\stk-code\build\SuperTuxKart.sln.metaproj : error MSB4126: The specified solution configuration "Debug|Any CP
U" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBu
ild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default s
olution configuration. [C:\stk-win\stk-code\build\SuperTuxKart.sln]
Done Building Project "C:\stk-win\stk-code\build\SuperTuxKart.sln" (default targets) -- FAILED.


Build FAILED.

"C:\stk-win\stk-code\build\SuperTuxKart.sln" (default target) (1) ->
(ValidateSolutionConfiguration target) ->
C:\stk-win\stk-code\build\SuperTuxKart.sln.metaproj : error MSB4126: The specified solution configuration "Debug|Any
CPU" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MS
Build.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default
solution configuration. [C:\stk-win\stk-code\build\SuperTuxKart.sln]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.11
____________________________________________________________________________
I put /p:Platform inside the command as cmd suggested me to do - as you can see, no luck.
I restarted the PC and when i try to execute msbuild.exe SuperTuxKart.sln, it says:
C:\stk-win\stk-code\build>msbuild.exe SuperTuxKart.sln
Access is denied.

with the message: This app can't run on your PC

What instructions did you follow? because CMake needs to run before running
{l Code}: {l Select All Code}
msbuild SuperTuxKart.sln
Socially banned since 2014, a somewhat sleepy musician
capricom45
 
Posts: 100
Joined: 10 Oct 2014, 14:05

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby kriistofor » 21 Jul 2017, 22:32

https://github.com/supertuxkart/stk-code

this one, for windows
i stuck on step 6.
kriistofor
 
Posts: 13
Joined: 18 Jul 2017, 15:35

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby capricom45 » 21 Jul 2017, 23:02

kriistofor {l Wrote}:https://github.com/supertuxkart/stk-code

this one, for windows
i stuck on step 6.

Step 6 on this method: https://github.com/supertuxkart/stk-cod ... mmand-line ?

What does CMake say when you try step 5?
Socially banned since 2014, a somewhat sleepy musician
capricom45
 
Posts: 100
Joined: 10 Oct 2014, 14:05

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby QwertyChouskie » 21 Jul 2017, 23:19

This download has a binary, no need to install it. Just run stk-code/build/bin/supertuxkart.exe
Contributor to/fan of STK (Upstreamed Cartoon theme, numerous random big fixes/tweaks)
User avatar
QwertyChouskie
 
Posts: 559
Joined: 29 Jun 2016, 14:57

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby kriistofor » 22 Jul 2017, 13:01

I tried to run it as soon as i downloaded it showed me these same messages as it does now. I deleted everything, re-downloaded and tried to run and it shows me that two dlls are missing
Attachments
errors.jpg
kriistofor
 
Posts: 13
Joined: 18 Jul 2017, 15:35

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby MTres19 » 22 Jul 2017, 13:28

kriistofor {l Wrote}:I tried to run it as soon as i downloaded it showed me these same messages as it does now. I deleted everything, re-downloaded and tried to run and it shows me that two dlls are missing


I think that was compiled with Visual Studio, so you'd need at least the vcrun2017/2015/2013 redistributable package installed. IMO it's quite easy to compile with Visual Studio and you can get the Community Edition for free. Probably easier than dealing with MinGW...

EDIT: I think 64 bit STK is supported on VS now too, just like MinGW.
User avatar
MTres19
 
Posts: 191
Joined: 17 Aug 2015, 20:15

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby kriistofor » 22 Jul 2017, 14:51

OK so, I downloaded the build directory again, actually the whole thing.

I already have vs 15 installed as I said.

So i extracted stk-win placed dependencies in stk-code, merged with the existing directory.

I opened developer cmd for vs 2017
created build
cd into build
c make it - when it was done -
i used msbuild.exe SuperTuxKart.sln
when the file was created i got several errors along the way.

here are the two files. first one is the cmd report of cmake.. progress,
the other one is the one from msbuild SuperTuxKart.sln

https://drive.google.com/drive/folders/ ... sp=sharing
kriistofor
 
Posts: 13
Joined: 18 Jul 2017, 15:35

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby MTres19 » 22 Jul 2017, 15:16

Are you using the 32 bit or 64 bit dependency pack? Please use cmake-gui, where you'll be able to choose 32-bit or 64-bit MSVC more easily.
User avatar
MTres19
 
Posts: 191
Joined: 17 Aug 2015, 20:15

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby kriistofor » 22 Jul 2017, 16:26

So I did,

results from cmake gui are below

The C compiler identification is MSVC 19.10.25019.0
The CXX compiler identification is MSVC 19.10.25019.0
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.10.25017/bin/HostX86/x64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.10.25017/bin/HostX86/x64/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.10.25017/bin/HostX86/x64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.10.25017/bin/HostX86/x64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
CMake Error at CMakeLists.txt:13 (include):
include could not find load file:

BuildTypeSTKRelease


No build type selected, default to STKRelease
CMake Error at CMakeLists.txt:91 (add_subdirectory):
The source directory

C:/Users/kriis/Desktop/stk-win/stk-code/build/lib/bullet

does not contain a CMakeLists.txt file.


CMake Error at CMakeLists.txt:95 (add_subdirectory):
The source directory

C:/Users/kriis/Desktop/stk-win/stk-code/build/lib/enet

does not contain a CMakeLists.txt file.


CMake Error at CMakeLists.txt:101 (add_subdirectory):
The source directory

C:/Users/kriis/Desktop/stk-win/stk-code/build/lib/glew

does not contain a CMakeLists.txt file.


CMake Error at CMakeLists.txt:108 (add_subdirectory):
add_subdirectory given source
"C:/Users/kriis/Desktop/stk-win/stk-code/build/lib/zlib" which is not an
existing directory.


CMake Error at CMakeLists.txt:120 (add_subdirectory):
add_subdirectory given source
"C:/Users/kriis/Desktop/stk-win/stk-code/build/lib/libpng" which is not an
existing directory.


CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.9/Modules/FindJPEG.cmake:30 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:134 (find_package)


Configuring incomplete, errors occurred!
See also "C:/Users/kriis/Desktop/stk-win/stk-code/build/bin/CMakeFiles/CMakeOutput.log".


does not matter do i use the downloaded stk-win with updated dependencies, or when i delete the build directory and let cmake create it.
kriistofor
 
Posts: 13
Joined: 18 Jul 2017, 15:35

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby MTres19 » 22 Jul 2017, 19:48

I recommend cloning the code and assets directly from git and svn, respectively. It seems like you're trying to compile the download from this forum thread...? That's already compiled; you shouldn't have to do any more compiling. Really, the best thing would probably just be to start from scratch. Download Git for Windows if you haven't already, and get TortoiseSVN for Windows also. Make sure Git is added to your %PATH% environment variable (ignore the instructions to download msysgit though).


1. Make a new folder, e.g C:\Users\YourUsername\Destktop\STK.
2. Open up command prompt (not the Visual Studio shell thing), cd to the folder you made, and run
{l Code}: {l Select All Code}
git clone --depth 1 git://github.com/supertuxkart/stk-code.git

(the depth 1 part will skip downloading all the commit history, since you only need the latest files)
3. Open up TortoiseSVN and checkout the URL svn://svn.code.sf.net/p/supertuxkart/code/stk-assets into the same folder that contains stk-code.
4. Now, you're ready to start building at step 3 in the instructions in the README.

The best thing about building from from Git/SVN is that you can just run "git pull" and "svn update", rebuild, and have the latest version without needing to download everything again.
User avatar
MTres19
 
Posts: 191
Joined: 17 Aug 2015, 20:15

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby QwertyChouskie » 22 Jul 2017, 19:53

OK, I think I figured out the issue, will upload a new build soon.
Contributor to/fan of STK (Upstreamed Cartoon theme, numerous random big fixes/tweaks)
User avatar
QwertyChouskie
 
Posts: 559
Joined: 29 Jun 2016, 14:57

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby QwertyChouskie » 22 Jul 2017, 23:37

OK, uploaded a new build (tested to work in Wine).
Contributor to/fan of STK (Upstreamed Cartoon theme, numerous random big fixes/tweaks)
User avatar
QwertyChouskie
 
Posts: 559
Joined: 29 Jun 2016, 14:57

Re: STK UNOFFICIAL preview build (updated 07/22/17)

Postby Super » 29 Jul 2017, 00:53

don't work here, it's need something else to run this build.
User avatar
Super
 
Posts: 21
Joined: 17 Sep 2016, 19:19

Re: STK UNOFFICIAL preview build (updated 07/22/17)

Postby QwertyChouskie » 29 Jul 2017, 01:05

Try going to stk-code/build/bin and running supertuxkart.exe directly.
Contributor to/fan of STK (Upstreamed Cartoon theme, numerous random big fixes/tweaks)
User avatar
QwertyChouskie
 
Posts: 559
Joined: 29 Jun 2016, 14:57

Re: STK UNOFFICIAL preview build (updated 07/22/17)

Postby kriistofor » 29 Jul 2017, 11:57

guys, thanks, i am in stk communuty for about a week and i think i haven't seen or been in such a nice community. everything works now :)
@MTres19
you were right, i tried to compile something that was compiled. when i deleted the build directory cmake would try to build but would also show errors because,as you said, it was compiled already. this is a great tutorial btw, thank you

@qwertychouskie
works like a charm , thank you
:)
kriistofor
 
Posts: 13
Joined: 18 Jul 2017, 15:35

Re: STK UNOFFICIAL preview build (updated 07/22/17)

Postby Super » 30 Jul 2017, 00:13

QwertyChouskie {l Wrote}:Try going to stk-code/build/bin and running supertuxkart.exe directly.

i tried run directly supertuxkart.exe, but nothing happens, literaly nothing, not even a single message error.
User avatar
Super
 
Posts: 21
Joined: 17 Sep 2016, 19:19

Re: STK UNOFFICIAL preview build (updated 07/22/17)

Postby QwertyChouskie » 30 Jul 2017, 04:41

Try running it in a command prompt, and post the output here.
Contributor to/fan of STK (Upstreamed Cartoon theme, numerous random big fixes/tweaks)
User avatar
QwertyChouskie
 
Posts: 559
Joined: 29 Jun 2016, 14:57

Re: STK UNOFFICIAL preview build (updated 07/22/17)

Postby Super » 30 Jul 2017, 17:03

QwertyChouskie {l Wrote}:Try running it in a command prompt, and post the output here.

Edit: i moved the files in the build to the data directory and still doesn't work.
Attachments
stk.PNG
User avatar
Super
 
Posts: 21
Joined: 17 Sep 2016, 19:19

Re: STK UNOFFICIAL preview build (updated 07/22/17)

Postby QwertyChouskie » 30 Jul 2017, 18:15

Try `cd`ing to the build/ directory then running bin/supertuxkart.exe
Contributor to/fan of STK (Upstreamed Cartoon theme, numerous random big fixes/tweaks)
User avatar
QwertyChouskie
 
Posts: 559
Joined: 29 Jun 2016, 14:57

Re: STK UNOFFICIAL preview build (updated 06/09/17)

Postby kriistofor » 01 Aug 2017, 15:56

MTres19 {l Wrote}:I recommend cloning the code and assets directly from git and svn, respectively. It seems like you're trying to compile the download from this forum thread...? That's already compiled; you shouldn't have to do any more compiling. Really, the best thing would probably just be to start from scratch. Download Git for Windows if you haven't already, and get TortoiseSVN for Windows also. Make sure Git is added to your %PATH% environment variable (ignore the instructions to download msysgit though).


1. Make a new folder, e.g C:\Users\YourUsername\Destktop\STK.
2. Open up command prompt (not the Visual Studio shell thing), cd to the folder you made, and run
{l Code}: {l Select All Code}
git clone --depth 1 git://github.com/supertuxkart/stk-code.git

(the depth 1 part will skip downloading all the commit history, since you only need the latest files)
3. Open up TortoiseSVN and checkout the URL svn://svn.code.sf.net/p/supertuxkart/code/stk-assets into the same folder that contains stk-code.
4. Now, you're ready to start building at step 3 in the instructions in the README.

The best thing about building from from Git/SVN is that you can just run "git pull" and "svn update", rebuild, and have the latest version without needing to download everything again.



qwerty please can you look at this.


so, new machine, clean install of win 10 pro, full visual studio, cmake is up, I did everything as you said. all is configured, added to path.
anyway, i managed to do everything except build the solution.

when I try to build it via VS it fails, via cmd it fails in building supertuxkart.vcproj

these are the lines of code that appear before building is done and they are showing the error that does not allow me to finish building the project.

https://drive.google.com/file/d/0B4JlFP ... sp=sharing


i also can't just run stk.exe, not even via cmd, nothing happens, no errors, no stk in task manager. when I saw your solutions it seemed to work but i didn't test it, one day after and I see I have the same problem as Super


EDIT: CAN SOMEBODY WITH A WORKING WINDOWS EDITION OF THIS STK BUILD MAYBE JUST UPLOAD A WORKING BUILD ON G-DRIVE TO SAVE US ALL THIS TROUBLE? :)
kriistofor
 
Posts: 13
Joined: 18 Jul 2017, 15:35

Re: STK UNOFFICIAL preview build (updated 07/22/17)

Postby MTres19 » 01 Aug 2017, 21:19

Kriistofor, did you set supertuxkart as the startup project in VS? Also, you opened supertuxkart.sln, not supertuxkart.vcxproj, right?
User avatar
MTres19
 
Posts: 191
Joined: 17 Aug 2015, 20:15

Who is online

Users browsing this forum: No registered users and 1 guest