Opened 13 years ago

Closed 12 years ago

#1295 closed patch (wontfix)

Patch to allow seperate build directory

Reported by: Dibblah Owned by: Isaac Richards
Priority: trivial Milestone: 0.21
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

This patch allows the following to work:

mkdir ~/mythbuild
cd ~/mythbuild
/usr/src/mythtv/configure
make
make install
  • the source directory is completely seperated from the build directory. The source directory is not modified during the build.

It's fairly hacky, but consistently so:

qmake, when it include ( )s a file, changes into the directory of that file first. This means that it's not possible to easily centralise these changes.

Headers do not seem to get pulled in from the VPATH if they're located away from the current build directory - Hence the modifications to the INCLUDEPATHs.

A couple of #include "mythconfig.h" needed changed to #include "config.h" to make picking up the configuration from the build directory easier.

If you are compiling in the same directory as the source, this change has no effect at all.

It has only been tested on x86. I can't see how it'd break other architectures, but it is probably worth mentioning.

Attachments (6)

mythseperatebuild.diff (29.2 KB) - added by Dibblah 13 years ago.
mythseperatebuild2.diff (29.2 KB) - added by Dibblah 13 years ago.
Remove debug echo. No other changes.
mythseperatebuild3.diff (34.7 KB) - added by Dibblah 13 years ago.
Updated to SVN 9838, bugfix (don't recurse into created links), make sure all new / less used .pros have been updated
mythseperatebuild4.diff (36.0 KB) - added by Dibblah 13 years ago.
Updated to current (10047) SVN
mythseperatebuild5.diff (36.5 KB) - added by Dibblah 13 years ago.
Updated to 10224. Not ready for commit - svn version number doesn't work properly
mythseperatebuild6.diff (38.2 KB) - added by Dibblah 13 years ago.
Fixes previous bug with svnversion and themes not being installed

Download all attachments as: .zip

Change History (10)

Changed 13 years ago by Dibblah

Attachment: mythseperatebuild.diff added

Changed 13 years ago by Dibblah

Attachment: mythseperatebuild2.diff added

Remove debug echo. No other changes.

Changed 13 years ago by Dibblah

Attachment: mythseperatebuild3.diff added

Updated to SVN 9838, bugfix (don't recurse into created links), make sure all new / less used .pros have been updated

Changed 13 years ago by Dibblah

Attachment: mythseperatebuild4.diff added

Updated to current (10047) SVN

comment:1 Changed 13 years ago by danielk

Milestone: unknown0.20
Owner: changed from Isaac Richards to danielk

comment:2 Changed 13 years ago by Isaac Richards

Owner: changed from danielk to Isaac Richards

Was waiting on an updated patch before applying this..

Changed 13 years ago by Dibblah

Attachment: mythseperatebuild5.diff added

Updated to 10224. Not ready for commit - svn version number doesn't work properly

Changed 13 years ago by Dibblah

Attachment: mythseperatebuild6.diff added

Fixes previous bug with svnversion and themes not being installed

comment:3 Changed 13 years ago by Isaac Richards

Milestone: 0.200.21

comment:4 Changed 12 years ago by stuartm

Resolution: wontfix
Status: newclosed

Closed at the request of the ticket reporter.

Note: See TracTickets for help on using tickets.