Donate Share

Printed Circuit Board Layout Tool

Tracker: Bugs

5 Out of source building fails - ID: 2889226
Last Update: Comment added ( ineiev )

When I try to build pcb in a folder other than source folder, it fails.

The error is because of targets like:

path/to/something_list.h:
true > $@

true command fails because "path/to/" path does not exist in the directory
where I am running the build.

The attached patch fixes this issue (It fixes it in Makefile.in, you
probably want to modify it to fix Makefile.am instead)


Ahmed El-Mahmoudy ( aelmahmoudy ) - 2009-10-30 04:11

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 5 )




Date: 2009-10-31 20:55
Sender: ineiev

For fixing the sources, I would suggest adding AC_PROG_MKDIR_P to
configure.ac
and ${MKDIR_P} the_needed_dir in src/Makefile.am where Ahmed put mkdir -p
$$(dirname $@);
I don't know whether it is Ok to rely on dirname.

Cheers,
Ineiev


Date: 2009-10-31 20:39
Sender: aelmahmoudy

Tried --enable-dependency-tracking, and it worked without the patch !
Thanks a lot...


Date: 2009-10-31 20:22
Sender: ineiev

The offending option is --disable-dependency-tracking. thank you for a good
catch.


Date: 2009-10-31 19:47
Sender: aelmahmoudy

* PCB version is 20081128
* Host OS is Debian linux
* I configure as follows (note the the current directory is the toplevel
source directory "pcb-20081128"):

$ mkdir build_gtk && cd build_gtk && ../configure --prefix=/usr \
--includedir=/usr/include \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/pcb" \
--disable-maintainer-mode \
--disable-dependency-tracking \
--disable-rpath \
--enable-dbus \
--disable-update-desktop-database \
--disable-update-mime-database \
--with-gui=gtk



Date: 2009-10-31 16:42
Sender: ineiev

Strange. I'm typically build PCB this way and have quite different issues.
I'm used to
WISH=`which true` ../src/configure --disable-doc --disable-toporouter
--disable-update-desktop-database --disable-update-mime-database&&make
I use a GNU make; this typically works since at least pcb-20081128.

Can you elaborate, please (what version of PCB, how you configure the
sources, what is host OS)?


Log in to comment.




Attached File ( 1 )

Filename Description Download
Makefile.diff Patch to fix out-of-source building problem Download

Change ( 1 )

Field Old Value Date By
File Added 348801: Makefile.diff 2009-10-30 04:11 aelmahmoudy