The International Simutrans Forum

 

Author Topic: Some help compiling  (Read 2987 times)

0 Members and 1 Guest are viewing this topic.

Offline Sir_Tramalot

  • *
  • Posts: 20
  • Languages: EN
Some help compiling
« on: December 18, 2015, 09:15:47 PM »
Ok, so I am completely unable to compile the latest experimental build or experimental Britain pakset, so I was wondering if someone could email me a dropbox link with both the build and Britain pakset (the latest versions of both, including signalboxes). I will PM anyone who can help my email, instead of posting it, for security.
Thanks in advance, Tramalot.
(If this is in the wrong place, please move it)
« Last Edit: December 18, 2015, 09:26:51 PM by Sir_Tramalot »

Offline Isaac Eiland-Hall

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3905
  • Providing hosting for Simutrans projects
    • pc2.io
  • Languages: EN
Re: Some help compiling
« Reply #1 on: December 18, 2015, 11:07:50 PM »
If anyone would prefer a place accessible via FTP/SFTP..... trivial for me to create a spot on a simutrans domain :)

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20700
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Some help compiling
« Reply #2 on: December 18, 2015, 11:12:43 PM »
Sorry that you are having trouble - may I ask what errors that you are getting and whether you have been able to compile earlier versions? The trouble with just sending you the latest binary is that it will be out of date very soon (and the latest binary that I have is not the same as the binary built from the latest commit in devel-new, as it has a partly completed piece of work in it which, as it currently stands, does not work at all).

Offline Sir_Tramalot

  • *
  • Posts: 20
  • Languages: EN
Re: Some help compiling
« Reply #3 on: December 18, 2015, 11:26:56 PM »
The problem is that Visual Studio just does not work for me, and now my free trial has run out.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20700
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Some help compiling
« Reply #4 on: December 18, 2015, 11:28:00 PM »
Which version are you using? You should be able to use a completely free version and not need to worry about a trial.

Offline Sir_Tramalot

  • *
  • Posts: 20
  • Languages: EN
Re: Some help compiling
« Reply #5 on: December 18, 2015, 11:59:20 PM »
Managed to get one, and I am at the step where you compile, how do I go about compiling it. (I have added the directories, the guide does not give much help on actually compiling)



Also, the files I need to add to the project (in the .rar) cannot be downloaded, they show up a 404 error
« Last Edit: December 19, 2015, 04:01:39 AM by Isaac.Eiland-Hall »

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20700
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Some help compiling
« Reply #6 on: December 19, 2015, 12:18:35 AM »
Once you have it set up, you would generally compile by pressing F7. As to the files that you cannot download, can you let me know which ones that they are?

Offline Sir_Tramalot

  • *
  • Posts: 20
  • Languages: EN
Re: Some help compiling
« Reply #7 on: December 19, 2015, 01:16:46 AM »
http://ul.to/mv89mmpv
is the link
From step 10

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2836
  • Languages: EN
Re: Some help compiling
« Reply #8 on: December 19, 2015, 03:32:07 AM »
If you understand C++/C (you are a programmer) you should be able to solve all the compiler problems with a bit of time. All dependant libraries are open source and can be built using MSVC 2015 with little modification (mostly properties to fit with the sort of build you want).

If you do not understand C++/C you should really ask for a ready made build. Compiling Simutrans is not as easy as one would like it to be. Especially since some developers use MSVC (James, myself etc) where as other use GCC with possibly some Linux IDE.

Offline Sir_Tramalot

  • *
  • Posts: 20
  • Languages: EN
Re: Some help compiling
« Reply #9 on: December 19, 2015, 08:23:17 AM »
OK, it is saying that the build failed, with 270 warnings and 3 errors, so as the post above says, could someone e-mail me a compiled exe, and update the download link with all the other necessary files in it.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20700
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Some help compiling
« Reply #10 on: December 19, 2015, 10:28:48 AM »
May I ask what the errors were? If you copy and paste them, that should be reasonably straightforward. As noted, I cannot upload the .exe at present, because mine contains half-complete not working code that has not been committed yet.

Offline Sir_Tramalot

  • *
  • Posts: 20
  • Languages: EN
Re: Some help compiling
« Reply #11 on: December 19, 2015, 03:16:29 PM »
Error   1   error C1083: Cannot open source file: 'utils\cstring_t.cc': No such file or directory   D:\Programming\simutrans-experimental-master\c1xx   Simutrans-Experimental
Error   2   error C1083: Cannot open source file: 'tpl\debug_helper.cc': No such file or directory   D:\Programming\simutrans-experimental-master\c1xx   Simutrans-Experimental
Error   3   error C1083: Cannot open source file: 'gui\colors.cc': No such file or directory   D:\Programming\simutrans-experimental-master\c1xx   Simutrans-Experimental


Also, the .rar file required for the rest of the experimental version is going to a 404 error.

EDIT: What is the branch of the experimental Simutrans that I should use if I want the latest version including signalboxes?
« Last Edit: December 19, 2015, 04:44:49 PM by Sir_Tramalot »

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20700
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Some help compiling
« Reply #12 on: December 20, 2015, 01:03:26 AM »
What do you mean by "the .rar file required for the rest of the experimental"? To which specific file are you referring?

As to the branch that you should be using for the latest development work, it is devel-new.

The errors suggest that your project file is from a different branch than the source files, or you have not downloaded all the source files. Try with devel-new and see whether that works any better.

Offline Sir_Tramalot

  • *
  • Posts: 20
  • Languages: EN
Re: Some help compiling
« Reply #13 on: December 20, 2015, 06:50:32 PM »
The rar file is from step 10 on this: http://forum.simutrans.com/index.php?topic=14254.0

And, erm, Devel-New came out with a lot of errors. 39 in total.

Error   1   error C1083: Cannot open source file: 'dings\zeiger.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   2   error C1083: Cannot open source file: 'dings\wolke.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   3   error C1083: Cannot open source file: 'gui\werkzeug_waehler.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   20   error C1083: Cannot open source file: 'dings\wayobj.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   36   error C1083: Cannot open source file: 'dataobj\umgebung.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   49   error C1083: Cannot open source file: 'dings\tunnel.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   54   error C1083: Cannot open source file: 'gui\thing_info.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   63   error C1083: Cannot open source file: 'gui\stadt_info.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   107   error C1083: Cannot open source file: 'simwin.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   108   error C1083: Cannot open source file: 'simwerkz.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   111   error C1083: Cannot open source file: 'simview.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   112   error C1083: Cannot open source file: 'vehicle\simverkehr.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   113   error C1083: Cannot open source file: 'vehicle\simvehikel.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   114   error C1083: Cannot open source file: 'simtools.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   179   error C1083: Cannot open source file: 'simgraph16.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   190   error C1083: Cannot open source file: 'simdings.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   247   error C1083: Cannot open source file: 'dings\signal.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   283   error C1083: Cannot open source file: 'dings\roadsign.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   291   error C1083: Cannot open source file: 'dings\pillar.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   305   error C1083: Cannot open source file: 'dataobj\network_packet.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   306   error C1083: Cannot open source file: 'dataobj\network_cmd.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   307   error C1083: Cannot open source file: 'dataobj\network.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   322   error C1083: Cannot open source file: 'utils\memory_rw.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   339   error C1083: Cannot open source file: 'dings\leitung2.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   343   error C1083: Cannot open source file: 'dings\label.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   396   error C1083: Cannot open source file: 'gui\gui_convoiinfo.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   397   error C1083: Cannot open source file: 'gui\gui_container.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   407   error C1083: Cannot open source file: 'dings\groundobj.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   419   error C1083: Cannot open source file: 'dings\gebaeude.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   424   error C1083: Cannot open source file: 'font.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   425   error C1083: Cannot open source file: 'dings\field.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   462   error C1083: Cannot open source file: 'dataobj\einstellungen.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   463   error C1083: Cannot open source file: 'dataobj\dingliste.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   467   error C1083: Cannot open source file: 'tpl\debug_helper.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   477   error C1083: Cannot open source file: 'utils\cstring_t.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   480   error C1083: Cannot open source file: 'dings\crossing.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   492   error C1083: Cannot open source file: 'gui\colors.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   520   error C1083: Cannot open source file: 'dings\bruecke.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
Error   535   error C1083: Cannot open source file: 'dings\baum.cc': No such file or directory   D:\Programmingdevel\simutrans-experimental-devel-new\c1xx   Simutrans-Experimental
« Last Edit: December 20, 2015, 07:26:45 PM by Sir_Tramalot »

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20700
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Some help compiling
« Reply #14 on: December 21, 2015, 12:19:16 AM »
Hmm - I didn't upload that .rar file and do not know what it contained. These errors are very odd, as they suggest some fundamental problem with your Visual Studio setup. What version of MSVS are you using? Also, what solution or project file are you opening?

Offline Sir_Tramalot

  • *
  • Posts: 20
  • Languages: EN
Re: Some help compiling
« Reply #15 on: December 21, 2015, 12:38:47 AM »
Visual Studio 2012 update 4, and I am opening 'Simutrans-Experimental.vcxproj'

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20700
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Some help compiling
« Reply #16 on: December 21, 2015, 10:22:12 AM »
Try Simutrans-Experimental.sln