Talk:Building FlightGear - Cross Compiling: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(→‎Build Errors: Documenting problems and solutions is a good idea)
(Minimizing the needed number of MXE packages)
Line 15: Line 15:


:: sounds like a plan, I'd use <nowiki>grep -R</nowiki> and the OSG_USEPLUGIN macro in $SG_SRC and $FG_SRC to see what's important [https://github.com/mxe/mxe/issues/11#issuecomment-13474413]. --[[User:Hooray|Hooray]] ([[User talk:Hooray|talk]]) 19:06, 18 May 2015 (EDT)
:: sounds like a plan, I'd use <nowiki>grep -R</nowiki> and the OSG_USEPLUGIN macro in $SG_SRC and $FG_SRC to see what's important [https://github.com/mxe/mxe/issues/11#issuecomment-13474413]. --[[User:Hooray|Hooray]] ([[User talk:Hooray|talk]]) 19:06, 18 May 2015 (EDT)
== Minimizing the needed number of MXE packages ==
the default 'all-filtered' make target, builds 367 packages in a clean environment, only 107 out of 367 are built using MXE's own dependency walker in the Makefile if 'openscenegraph' is passed as a parameter to 'make'. few packages can be excluded by disabling uneeded OSG plugins, and dependencies of further packages. -- [[User:Hamzaalloush|Hamzaalloush]] ([[User talk:Hamzaalloush|talk]]) 21:16, 22 May 2015 (EDT)

Revision as of 01:16, 23 May 2015

Build Errors

is it a good idea to update the page with the build errors encountered and the possible solutions(like for example with OSG) so as to make the status more informative? -- Hamzaalloush (talk) 18:22, 18 May 2015 (EDT)

sure, why not - we should add anything here that may help others at some point, even if it's just for historic reasons, i.e. the project having a history before it gets a visible commit log. Besides openscenegraph.mk still seems to contain a bunch of static-build related build flags as far as I can tell, are you sure that dynamic/shared builds are intended to be supported ?--Hooray (talk) 18:38, 18 May 2015 (EDT)
yes, you have to change the flags to build dynamically, and this is how you finally get shared libraries into /bin, else they get built into /lib with the *.a prefix as static. actually some shared libraries actually do get installed while some require linking with the plugins before encountering error , this is what i intend to work on -- Hamzaalloush (talk) 18:52, 18 May 2015 (EDT)
It is usually a good idea to document problems and how they got solved. If not for else then for to not do them again.
It could also potentially help similar endeavors later on.
Johan G (Talk | contribs) 06:38, 19 May 2015 (EDT)

Required OSG Plugins

can we get a subset of required plugin needed by flightgear? we can simply disable the faulty ones of the time bieng if they are not needed? mxe allows you to apply patches to source from the *.mk file as well for this -- Hamzaalloush (talk) 18:58, 18 May 2015 (EDT)

sounds like a plan, I'd use grep -R and the OSG_USEPLUGIN macro in $SG_SRC and $FG_SRC to see what's important [1]. --Hooray (talk) 19:06, 18 May 2015 (EDT)

Minimizing the needed number of MXE packages

the default 'all-filtered' make target, builds 367 packages in a clean environment, only 107 out of 367 are built using MXE's own dependency walker in the Makefile if 'openscenegraph' is passed as a parameter to 'make'. few packages can be excluded by disabling uneeded OSG plugins, and dependencies of further packages. -- Hamzaalloush (talk) 21:16, 22 May 2015 (EDT)