Announcement

Collapse
No announcement yet.

Compiling TSRE

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Thanks for more experimenting! But your last post doesn't resolve anything for me. In fact, mine is still very different. I am using the NetBeans 8.2 Plugin Portal:



    But you have a lot more available plugins than I do.

    I don't have CPPLite Kit as a standalone option. And my C/C++ is an earlier version.



    I've tried to run the Update from the Help menu, but it says I have no updates. I also have no updates in the Plugins tab.

    However, mysteriously.....whenever I just right-clicked on my TSRE5 project, I now have the full menu. Not sure what changed.....
    Attached Files

    Comment


      #17
      Originally posted by pgroenbaek
      So, as promised, here's how to get the current TSRE5...

      ...But if you need more details in regards to something, just ask and I'll clarify....

      ...Let me know if you encounter any difficulties....

      pgroenbaek - I think I've got almost all of this except the make.exe file

      I installed minGW and it looks like it just has this Installation Manager - do you know what package I need to get msys\make.exe ?
      (Note, QT also has a minGW as part of it's install, but that one doesn't have a msys folder, and there's no make.exe anywhere in the qt folder structure.)





      edit, I'm going to try installing mingw32-base and see what happens....
      edit 2 - nope, or sort of nope, I have a mingw32-make.exe - not sure if this should be renamed, but a post on the internet suggested doing that.
      edit 3 - I installed the "MSYS" branch above, and in the package list is a make, I now have a make.exe:


      Attached Files

      Comment


        #18
        So I was able to get through Step 7, and even had all of the paths filled in correctly already, except I had to enter the QMake location at the bottom. Clicked the Hammer button and now get this error (although the Preparing to Build Host box actually opens second and is on top of the error--I waited several minutes, but nothing happened....)



        More internet searching took me here: https://www.cygwin.com/
        After installing cygwin, the Hammer works! It's creating the output now....
        Attached Files

        Comment


          #19
          Yellowdog, per post #48: Hmm, that is interesting - I tried a bunch of times with no luck until I switched project types.
          I do remember hitting "Check for Updates" and "Check for Newest" on the first two tabs of the Plugins page in Netbeans - I see 125 available plugins.

          Per post 50, I'm stuck there too.

          Comment


            #20
            After running the Hammer and having it go through a lot of work, it finally gives me a fail message at the end:

            make.exe[2]: *** [dist/Release_x64/MinGW_1-Windows/TSRE5.exe] Error 1
            make.exe[2]: Leaving directory `/c/Users/xxxxxx/Documents/NetBeansProjects/TSRE5'
            make.exe[1]: *** [.build-conf] Error 2
            make.exe[1]: Leaving directory `/c/Users/xxxxxx/Documents/NetBeansProjects/TSRE5'
            make.exe": *** [.build-impl] Error 2

            BUILD FAILED (exit value 2, total time: 8m 32s)

            TrainSimJack, is that what you're seeing in post 49? I did check the path for the Make command. It is correct. Although it's the only path pointing to MinGW. Everything else is pointing to QT. I don't have a make.exe (or similar) in QT.

            I'm done for the night. Hopefully someone will have answers in the morning! ​​

            Comment


              #21
              Originally posted by yellowdog
              After running the Hammer and having it go through a lot of work, it finally gives me a fail message at the end:

              make.exe[2]: *** [dist/Release_x64/MinGW_1-Windows/TSRE5.exe] Error 1
              make.exe[2]: Leaving directory `/c/Users/xxxxxx/Documents/NetBeansProjects/TSRE5'
              make.exe[1]: *** [.build-conf] Error 2
              make.exe[1]: Leaving directory `/c/Users/xxxxxx/Documents/NetBeansProjects/TSRE5'
              make.exe": *** [.build-impl] Error 2

              BUILD FAILED (exit value 2, total time: 8m 32s)

              TrainSimJack, is that what you're seeing in post 49? I did check the path for the Make command. It is correct. Although it's the only path pointing to MinGW. Everything else is pointing to QT. I don't have a make.exe (or similar) in QT.

              I'm done for the night. Hopefully someone will have answers in the morning! ​​
              My Build Failed at first due to a path in netbeans that I thought I updated for openal-soft..

              Now my build works, but my exe does not.

              Running TSRE5.exe from c:\code\TSRE5\dist\Release_x64\MinGW-Windows\TSRE5.exe originally brought up errors about missing dlls (the ones that are documented in the notes above)
              So I copied all of those but still get an error "OpenAL32.lib was not found"
              So I copied that file over and get:


              It also does not run from within netbeans.​
              Attached Files

              Comment


                #22
                I got mine to work!! I noticed that there was an error related to not being able to find a location. Under C++ Compiler and Linker, I had created the paths to the include and libopenal32.a as described above in the instructions, but I had also left the old paths in there (albeit secondarily). I went in to remove those old paths altogether, and re-ran the Hammer. It did the build in about 4 seconds. Then I copied over the dlls as described, and ran TSRE5.exe. It opened up, and pulled the data from the internet per usual before asking me to add my trainsim folders. Once I did that, it opened right up into the route editor. So I can confirm that this works! Albeit I'm still not exactly sure HOW I got it to work, per post 48.
                Attached Files

                Comment


                  #23
                  Consist editor works as well
                  Attached Files

                  Comment


                    #24
                    I tried double checking my paths, did a clean & build - still builds great, then the exe doesn't run..
                    I've got to be missing something with linking/building related to that openAL file....


                    YellowDog, you've not had to copy that file over, is that correct?​
                    Attached Files

                    Comment


                      #25
                      I followed Steps 6 and 7 in post 38. Just making sure I got the directories correct for my setup (it's tempting to just copy/paste the code from the post).

                      Comment


                        #26
                        Originally posted by yellowdog
                        I followed Step 6 in post 38. Just making sure I got the directory correct.
                        I think I've built that file correctly, it seems to match the original screenshot:



                        This is the config for that in netbeans:
                        ​​
                        Do you see anything different from yours?
                        I don't see any errors in the output of the build either. :-(
                        Attached Files

                        Comment


                          #27
                          Originally posted by pgroenbaek
                          Step 3 - Installing the C/C++ plugin within NetBeans:

                          Next install the C/C++ within NetBeans.

                          You can do this by going to Tools => Plugins in the top menu.

                          In the window that opens select "Available Plugins"

                          Then find the one called "C/C++". And click install.

                          OK, it looks like Step 3 needs a clarification --- I ran update, and got new packages including C/C++ that wasn't the lightweight one

                          Name C/C++ Category C/C++
                          1.30.6.1 dated 5/19/2017

                          C/C++ Support, including editing, projects, GDB debugger and make.
                          There is a basic support for fortran and assembler(x86/64, SPARC)

                          After I restarted the GUI, I now have the magic QT logo next to the project and the full menu of options, and could resume Step 7

                          Fingers crossed that I get as far as Yellowdog...

                          Update: I got the same shell error, installed Cygwin, and now there's a build building for the last 7 minutes.

                          So............... fingers crossed I wake up to a build.
                          If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, items saved in our library or the ongoing development of our TSRE Fork, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

                          Comment


                            #28
                            Originally posted by yellowdog
                            BUILD FAILED (exit value 2, total time: 8m 32s)
                            That's comforting. I failed at 8m 20s with the same error verbatim.

                            Went back and the paths I'd entered in were all reset to the default... Updated, applied, and then re-built.

                            Took 49m 30s to get the build successful message... it gave unused var warnings like crazy. I'll have to figure out how to ignore those on a build. Or maybe it's just on the first time the project build takes place and a differential check from there? Will find out later...
                            If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, items saved in our library or the ongoing development of our TSRE Fork, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

                            Comment


                              #29
                              And..... I'm in.



                              Stumbling block for me after getting a successful build -- I couldn't run. Got an exit error code 2, and no idea what that was.

                              Tried running it from the executable in the /dist folder, and it pointed at OpenAL32.dll missing, which was indeed present ***HOWEVER*** it didn't appear to be registered. So I reinstalled OpenAL and BOOM.... it runs.

                              So....

                              Clarifications needed to Peter's list from my install experience:
                              1. Specifiy the C/C++ compiler option
                              2. Install Cygwin
                              3. Install OpenAL

                              This is huge.

                              I might not be able to figure out all of Piotr's code, and the Polish status/error messages will be maddening to find and possibly translate, but at the very least we have a replicable process to get the compiler up so that anyone could take a stab at future support.


                              Peter, you've just been gifted a First Class Membership for your initiative and willingness to help us out.
                              Attached Files
                              If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, items saved in our library or the ongoing development of our TSRE Fork, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

                              Comment


                                #30
                                As a point of reference for NON-PROGRAMMERS, the JAVA JDK is different from the JAVA RUN-TIME Engine. (JDK versus JRE) The JAVA RIN-TIME installation that most people have installed allows you to *run* java applications, while the JAVA JDK supplies the development tools needed to *write* Java based applications.

                                NOTE: The first draft of the appendix is up on the TSREDOC github page. Needs proofreading... https://github.com/pwillard/TSRE5-Document

                                Now to actually try it myself...
                                http://www.railsimstuff.com
                                Just Blender now, 3DCrafter only when I have to.
                                formerly The Keystone Works (All Permissions Granted)
                                https://github.com/pwillard/MSTS-replacement
                                sigpic

                                Comment

                                Working...
                                X