geoffmcl / test-sg

Some tests of the FG SimGear libs, and d-and-c.x64.bat
GNU General Public License v2.0
0 stars 1 forks source link

Joining the dots... #14

Open geoffmcl opened 8 years ago

geoffmcl commented 8 years ago

To build SG/FG in Windows, using MSVC, then this is a single batch file, d-and-c.x64.bat should do exactly that...

First it should select the MSVC version... __selectMSVC.x64.bat

Then proceed to download, compile, and install all the required 3rd Party components... This is not always successful on the first run... but seek help in fixing this...

Of course, for some of these 3rd Party components, for some MSVC versions, the binaries might be available from Jenkins (simpits), but for others not! Simply how can simpits keep up... but it tries...

This d-and-c.x64.bat attempts to solve all that... Try it for your self -

$ clone the repo
$ mkdir where to build SG/FG
$ copy repo scripts/d-and-c/*.bat to here
$ d-and-c.x64 # run the batch..

This should work, but has some wrinkles... any help you can offer to resolve these problem much appreciated... thanks...

geoffmcl commented 8 years ago

This last commit joins d-and-c to make3rd... make3rd has to successfully run first...

jasin commented 8 years ago

I have now run a full make3rd.x64.bat and have since started a d-and-c.x64 build. MSVC 12

This is looking really good from a dependency standpoint. Think we should skip the CGAL build as well in d-and-c.x64 as we already accomplish that in make3rd,x64?

OSG - compiled from git SG - compiled from git FG - compiled from git

TerraGear fails because cmake can't find CGAL. Need fix that, tell it where to looks in 3rdParty.x64? TerraGUI fails FGRun fails - is this even needed any longer? Maybe a switch for what we want to compile and not?

Maybe the default behavior should be build OSG/SG/FG and then use switches to disable/enabe all other builds.

example: d-and-c.x64.bat /T /G

/O - OSG /S - Simgear /F - FlightGear /T - terragear /G - terragui

geoffmcl commented 8 years ago

@jasin glad you got a full, at least OSG/SG/FG compile... that is great...

Have pushed a few more small changes... hope you get a chance to try them...

I can see your idea on the switches, but it already does that... if you specify one or more of the targets then it should only try to do those...

Like most of the time I run just d-and-c.x64 simgear flightgear... this then limits the builds...

I have not tried any of the other target for a while, but will get around to it...

But on the other hand, agree that a default run - no parameters - should perhaps only do say the core - osg simgear flightgear - and you have to specifically add the target to get others... any ideas on how to do that?

And yes I think there is some stuff that should be cut out of d-and-c, now that that target is in build3rd, or elsewhere... suggestions welcome...