Announcement

Collapse
No announcement yet.

Compiling TSRE

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

    That's something I didn't try.

    Sent from my SM-S911U using Tapatalk

    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


      I didn't try QTCreator. It was installed with 5.7.1 though

      Sent from my SM-S911U using Tapatalk

      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


        Attached is a zip file OrreGen.zip, decompress and run the .exe file. There is no sound for the editor it is commented out. Then again the distribution from Goku there is no sound my 3 machines. This method is described on YT: Deploy Qt Application.
        Attached Files

        Comment


          I can rule out another approach -- windeployQT came up with a solution, but it won't open on the vanilla machine. Same error as the project built under NetBeans.

          Will wait to see if Bill's approach will work or not.
          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


            I decided to attach the here what I was send t-Notes.zip via ET one is notes wittren in Libre office and the build I did years ago updated to QT 5.15.2
            Attached Files

            Comment


              wjcurrey -- for clarification -- in the online installer, did you select the MinGW and MSVC2019 under 5.15.2 or under the separate developer tools?

              Click image for larger version  Name:	capture_500361.png Views:	0 Size:	73.7 KB ID:	2294161

              These are the options as I saw it in the online installer tonight, so it might have differed from when you tried it.
              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


                First attempt at a 64 bit version failed. Same error as the other compiler...
                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


                  It has been a while since I did an install. Checking my maintence tool surprisingly I have both checked, also under developer tools have Cmake checked. Under mingw81_64 most files are 11/6/2020. I should have told you to perform a simple Qt Widgets Application project, running thru generating an *.exe. Check both and run the test widgets. BTW did TSRE5 window show up? Beside screen shoots, cas start comparing SHA values

                  Comment


                    When I run the build, it executes.

                    When I run the EXE independently it failed, but I may have messed up a step.

                    Very strange. Also, your project had the AL subdirectory where the repository does not. I'm wondering if that may have been the issue all along with our attempts from netbeans. It never came up as a failure in the project 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


                      I am confused about your message, are you saying you have running code in the debug folder? If so may want to establish some baselines.


                      1. Does the version that I sent you on 01/22/24, with the stand alone run​?


                      2. Create a simple Qt Widgets Application
                      2a. Copy the build *.exe into a folder, called QtGenOut or what ever name you prefer.
                      2b. There should only be about a dozen files there. The deletion of the moc* files that I mention are only for reducing clutter and can wait to the end.
                      2c. Locate the *.exe and run windeployqt.exe on it. You should see additional folders and *.dll files along with the standalone *.exe. Note that when running the program *.exe. It must be run in the same folder with the *.dll files.
                      2d. When Goku is talking about building Qt he is referencing about building libraries with a static deployment vs. a dynamic deployment. You may be interested in this short article Google MinGW Static and Dynamic Libraries.


                      3. If I understand you correctly that you have a successful build of the source code I sent you, then copy the debug folder into a working directory. If things get messed then deleted the working directory and start over.


                      Originally posted by eric View Post
                      Also, your project had the AL subdirectory where the repository does not.
                      I placed that folder into the build trying to correct some complication errors for the sound files. However that didn’t help so commented out the code for the sound files. If you look at the *.pro file you will see # next to a file name, this comments out that code for compilation. Goku himself is vague about where he got the source code. In addition to some of his NB files there are hard coded lines such as:
                      INCLUDEPATH += /C/Users/Goku/Desktop/Programy/openal-soft-1.18.2-bin/include
                      LIBS += -lopengl32 C:/Users/Goku/Desktop/Programy/openal-soft-1.18.2-bin/libs/Win32/libOpenAL32.dll.a


                      I have a question for you. Does sound work on your machines? Such a loading USA Marais pass or some route with sound.




                      A simple introduction to static and dynamic libraries with GCC.

                      Comment


                        Originally posted by wjcurrey View Post
                        I have a question for you. Does sound work on your machines?
                        Sound isn't working with any of my TSRE builds including 7.012

                        Originally posted by wjcurrey View Post
                        1. Does the version that I sent you on 01/22/24, with the stand alone run​?
                        Yes.

                        I was also able to compile your version, and it would run from QT Creator, but wouldn't run independently or in a folder with all the DLL's.[QUOTE=wjcurrey;n2294196]LIBS += -lopengl32 C:/Users/Goku/Desktop/Programy/openal-soft-1.18.2-bin/libs/Win32/libOpenAL32.dll.a

                        Very strange...
                        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


                          Originally posted by eric View Post
                          Sound isn't working with any of my TSRE builds including 7.012
                          Thanks for the verification

                          With the version that I sent you on 01/22/24, stand alone running, and your able to compile your version, and it would run from QT Creator. It sounds like a pathing problem to me. Concentrate on creating a simple Qt Widgets Application standalone. Are you using bash terminal, or a windows terminal. Send me a copy of your "C:/Qt/5.15.2/mingw81_64/bin/windeployqt.exe ./111Trse5C.exe" command. Depending on what cmd shell your are running spacing slashes and in the case of the bash shell "./" is important.

                          Comment


                            I'm using Windows terminal -- no bash

                            At this point, I have three versions of QT and multiple versions of MinGW installed, so I'm not going to get valid results on anything until I can wipe the dev environment and start over.
                            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


                              ^^This. I don't have a secondary test machine. So I had to pause helping out because I can't keep installing and uninstalling stuff to try to keep a clean environment on my daily driver

                              Comment


                                Originally posted by eric View Post
                                At this point, I have three versions of QT and multiple versions of MinGW installed, so I'm not going to get valid results on anything until I can wipe the dev environment and start over.
                                I would avoid "installing stuff", because you will lost track of what do you actually use. Check your system PATH variables if there is no mess.

                                For example, I have nothing installed at all. Everything is extracted archives and linked in my project's properties. Nothing sits in my PATH variables.

                                Comment

                                Working...
                                X