From: Joe <min...@ea...> - 2017-01-24 02:52:25
|
Hi Madbad, I am able to build and run now. I tried with Visual Studio 2010 and VS2008. Builds and runs OK. Looks really good! I was also able to build and run on Linux Mint 17 with gcc 4.8.4. I also built on OS X with clang. Everything builds but it crashes at race start with OSG. This is not due to HUD. It was happening before your commits. I will look into that. FYI: when initializing the member variable(s) in the constructor, you don't need the 'this->' ie: this->avariable = 0; is the same as avariable = 0; It doesn't hurt anything, just needless typing. @Julien, what version of visual studio are you using? Maybe I can help. Cheers, Joe On 1/23/2017 1:16 PM, madbad wrote: > Hi Julien, > If you can post the full log it can help (you can use pastebin or > something similar if it is too long to attach here) > > If it not crashing too early > > You should at least find in the log > "OSGHUD: Hud Scale is" > > And, after, a bounch of > "OSGHUD: Generate text object" > > Cheers Madbad > > Il 23 gen 2017 19:21, "Julien Schaffo" <juj...@ho... > <mailto:juj...@ho...>> ha scritto: > > Hi Madbad, > > > I am just back from work and tested a build, this time it builds, > but it crashes when loading a session (any type). Last message in > the console is: > > > WebServer: Number of async request waiting for a reply from the > server: 1 > > > It is present multiple times ( 4 to be precise). > > > Not sure where it hangs though. i don't see any OSG mention in the > console might it be before even ? > > > Cheers, > > Julien > > ------------------------------------------------------------------------ > *De :* madbad <mad...@gm... <mailto:mad...@gm...>> > *Envoyé :* lundi 23 janvier 2017 17:50:16 > *À :* speed-dreams-devel > *Objet :* Re: [Speed-dreams-devel] Work In Progress OSG HUD > > Hi Joe and Julien > All the issues should be solved now (or at least I think :-) ). > Can one of you test? > > Thanks in advance. > Cheers, Madbad > > 2017-01-23 3:41 GMT+01:00 Joe <min...@ea... > <mailto:min...@ea...>>: > > Hi MadBad, > Also, I think that std::stof is c++11. > > I get this build error on Linux Mint: > > /home/joe/source/speed-dreams/src/modules/graphic/osggraph/Viewer/OsgHUD.cpp:1328:62: > error: cannot pass objects of non-trivially-copyable type > ‘std::string > {aka class std::basic_string<char>}’ through ‘...’ > GfLogInfo("OSG-HUD object type not recognized: %s", type); > > > May be old gcc?? > > joe@office ~/source/speed-dreams/build-test $ gcc --version > gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 > > Cheers, > Joe > > > On 1/22/2017 3:18 PM, madbad wrote: > > Hi Joe, > > Thanks for the fast testing and for the detailed report. > > On linux I don't get those errors. > > Should be an easy fix that I will commit tomorrow when I will be at my PC. > > > > Cheers MadBad > > > > > > > > Il 22 gen 2017 22:08, "Joe" <min...@ea... <mailto:min...@ea...> > > <mailto:min...@ea... > <mailto:min...@ea...>>> ha scritto: > > > > Hi MadBad, > > There are a couple of errors with your commit. > > > > for(tCarElt * car : boardCars) > > > > src\modules\graphic\osggraph\viewer\OsgHUD.h(107): error > C2864: > > 'SDHUD::startingFuel' : only static const integral data > members can be > > initialized within a class > > src\modules\graphic\osggraph\viewer\OsgHUD.h(108): error > C2864: > > 'SDHUD::remainingFuelForLaps' : only static const integral > data members > > can be initialized within a class > > src\modules\graphic\osggraph\viewer\OsgHUD.h(111): error > C2864: > > 'SDHUD::laptimeFreezeCountdown' : only static const > integral data > > members can be initialized within a class > > src\modules\graphic\osggraph\viewer\OsgHUD.h(112): error > C2864: > > 'SDHUD::laptimeFreezeTime' : only static const integral > data members can > > be initialized within a class > > src\modules\graphic\osggraph\viewer\OsgHUD.h(113): error > C2864: > > 'SDHUD::timeDiffFreezeCountdown' : only static const > integral data > > members can be initialized within a class > > src\modules\graphic\osggraph\viewer\OsgHUD.h(114): error > C2864: > > 'SDHUD::timeDiffFreezeTime' : only static const integral > data members > > can be initialized within a class > > src\modules\graphic\osggraph\viewer\OsgHUD.h(115): error > C2864: > > 'SDHUD::oldSector' : only static const integral data > members can be > > initialized within a class > > src\modules\graphic\osggraph\viewer\OsgHUD.h(119): error > C2864: > > 'SDHUD::numberOfSectors' : only static const integral data > members can > > be initialized within a class > > src\modules\graphic\osggraph\viewer\OsgHUD.h(120): error > C2864: > > 'SDHUD::oldLapNumber' : only static const integral data > members can be > > initialized within a class > > src\modules\graphic\osggraph\viewer\OsgHUD.h(122): error > C2864: > > 'SDHUD::hudScale' : only static const integral data > members can be > > initialized within a class > > > > > > This looks like C++11 and won't compile with MSVC (at > least with VS2010) > > > > Also, should 'tdble lapLenght' not be 'tdble lapLength' ?? > > > > In SVN: > > > https://sourceforge.net/p/speed-dreams/code/HEAD/tree/trunk/data/data/fonts/ > <https://sourceforge.net/p/speed-dreams/code/HEAD/tree/trunk/data/data/fonts/> > > > <https://sourceforge.net/p/speed-dreams/code/HEAD/tree/trunk/data/data/fonts/ > <https://sourceforge.net/p/speed-dreams/code/HEAD/tree/trunk/data/data/fonts/>> > > We now have both Vera.ttf AND vera.ttf. > > This won't work for Windows (case-insensitve file system). > > They look to be the same. Just delete the one we don't need. > > > > Cheers, > > Joe > > > > On 1/22/2017 11:41 AM, madbad wrote: > > > Hi Guys, I've just committed my work in progress for the > OSG HUD. > > > > > > > > > I fought with git-svn all the afternoon, I hope I didn't > make a > > mess :-) > > > > > > There still a lot of work to be done (proper > speedometer, minimap etc > > > etc),and bugs to be fixed, but it has already at least > the minimal > > > functionality. > > > > > > Hope you like it. > > > > > > Cheers, > > > Madbad > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Check out the vibrant tech community on one of the > world's most > > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > > > > > > > > > > > _______________________________________________ > > > Speed-dreams-devel mailing list > > > Spe...@li... > <mailto:Spe...@li...> > > <mailto:Spe...@li... > <mailto:Spe...@li...>> > > > > https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel > <https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel> > > <https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel > <https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel>> > > > > > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > _______________________________________________ > > Speed-dreams-devel mailing list > > Spe...@li... > <mailto:Spe...@li...> > > <mailto:Spe...@li... > <mailto:Spe...@li...>> > > > https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel > <https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel> > > > <https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel <https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel>> > > > > > > > > > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > > > > > > > _______________________________________________ > > Speed-dreams-devel mailing list > > Spe...@li... > <mailto:Spe...@li...> > > > https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel > <https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel> > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Speed-dreams-devel mailing list > Spe...@li... > <mailto:Spe...@li...> > https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel > <https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel> > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Speed-dreams-devel mailing list > Spe...@li... > <mailto:Spe...@li...> > https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel > <https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel> > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Speed-dreams-devel mailing list > Spe...@li... > https://lists.sourceforge.net/lists/listinfo/speed-dreams-devel > |