← Back to team overview

kicad-developers team mailing list archive

build scrip now fails - kicad-0.0.20131206/kicad-library" does not exist.

 

Trying to use my debian build scrip (that used to work) and it fails with:


-- Build files have been written to: /usr/src/kicad-0.0.20131206/build/kicad-doc
mkdir -p /usr/src/kicad-0.0.20131206/build/kicad-library
cd /usr/src/kicad-0.0.20131206/build/kicad-library && cmake ../../kicad-library
CMake Error: The source directory "/usr/src/kicad-0.0.20131206/kicad-library" does not exist.


Looking back in this mailing list I see conversations about changing this - not sure which direction it went in? ( I think I should just comment out all the kicad-libarary stuff?)

When I fetch the sources I have:
bzr export $d/kicad lp:kicad/stable
bzr export $d/kicad-doc lp:~kicad-developers/kicad/doc
bzr export $d/kicad-library lp:~kicad-lib-committers/kicad/library


.. for reference - I've attached the rules file that I'm using








--
--------------------------------------------------------------------------------
Karl Schmidt                                  EMail Karl@xxxxxxxxxxxx
Transtronics, Inc.                              WEB http://secure.transtronics.com
3209 West 9th Street                             Ph (785) 841-3089
Lawrence, KS 66049                              FAX (785) 841-0434

Coordination does not run in my family,
it stumbles.
--------------------------------------------------------------------------------
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# Make sure no svn parts inside the deb
DH_ALWAYS_EXCLUDE=CVS:.svn
export DH_ALWAYS_EXCLUDE

# This has to be exported to make some magic below work.
export DH_OPTIONS

# .NOTPARALLEL:

configure: configure-stamp
configure-stamp:

	mkdir -p $(CURDIR)/build/kicad
	mkdir -p $(CURDIR)/build/bitmaps_png
	cd $(CURDIR)/build/kicad && cmake \
		-DKICAD_DEMOS=$(CURDIR)/debian/kicad-common/usr/share/doc/kicad/demos ../../kicad \
		-DKICAD_SCRIPTING_MODULES=ON \
		-DKICAD_TESTING_VERSION=ON \
		-DKICAD_SCRIPTING=ON \
		-DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2.7 \
		-DPYTHON_DEST:PATH=$(CURDIR)/debian/kicad/usr/lib/python2.7/dist-packages/pcbnew/ \
		-DKICAD_SCRIPTING_WXPYTHON=ON -LA
	mkdir -p $(CURDIR)/build/kicad-doc
	cd $(CURDIR)/build/kicad-doc && cmake ../../kicad-doc
	mkdir -p $(CURDIR)/build/kicad-library
	cd $(CURDIR)/build/kicad-library && cmake ../../kicad-library
	touch $@

build: build-arch build-indep

build-arch: build-arch-stamp
build-arch-stamp: configure-stamp

	$(MAKE) -C $(CURDIR)/build/kicad
	touch $@

build-indep: build-indep-stamp
build-indep-stamp: configure-stamp

	$(MAKE) -C $(CURDIR)/build/kicad-doc
	$(MAKE) -C $(CURDIR)/build/kicad-library
	touch $@

clean: clean-build
	
	dh_testdir
	dh_testroot
	rm -f build-arch-stamp build-indep-stamp configure-stamp
	# REMOVE AUTOMATICALLY GENERATED FILES	
	rm -f kicad/pcbnew/dialog_freeroute_exchange_help_html.h \
	      kicad/eeschema/cmp_library_base.h \
	      kicad/eeschema/cmp_library_base.cpp
	dh_clean

clean-build:
	rm -rf $(CURDIR)/build

install: install-indep install-arch
install-indep:
	dh_testdir
	dh_testroot
	dh_clean -k -i 
	dh_installdirs -i
	dh_installdocs

	cd $(CURDIR)/build/kicad/demos && cmake -P cmake_install.cmake
	cd $(CURDIR)/build/kicad-doc/internat && cmake -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-common/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad/template && cmake -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-common/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad-library && cmake -DCOMPONENT=resources -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-common/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=file_formats -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-common/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=footprints_doc -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-common/usr -P cmake_install.cmake

	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-de -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-de/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-de -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-de/usr -P cmake_install.cmake

	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-en -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-en/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-en -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-en/usr -P cmake_install.cmake

	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-es -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-es/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-es -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-es/usr -P cmake_install.cmake

	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-fr -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-fr/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-fr -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-fr/usr -P cmake_install.cmake

	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-hu -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-hu/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-hu -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-hu/usr -P cmake_install.cmake

#	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-it -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-it/usr -P cmake_install.cmake
#	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-it -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-it/usr -P cmake_install.cmake

	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-pt -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-pt/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-pt -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-pt/usr -P cmake_install.cmake

	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-ru -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-ru/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-ru -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-ru/usr -P cmake_install.cmake

	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=doc-zh_CN -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-zh-cn/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad-doc && cmake -DCOMPONENT=help-zh_CN -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad-doc-zh-cn/usr -P cmake_install.cmake

install-arch:
	dh_testdir
	dh_testroot
	dh_clean -k -s 
	dh_installdirs -s
	dh_installmenu -s

	$(MAKE) -C $(CURDIR)/build/kicad preinstall
	cd $(CURDIR)/build/kicad && cmake -DCOMPONENT=binary -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad/usr -P cmake_install.cmake
	cd $(CURDIR)/build/kicad/pcbnew && cmake -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/kicad/usr -P cmake_install.cmake
	mv $(CURDIR)/debian/kicad/usr/lib/python2.7/dist-packages/pcbnew/pcbnew.py $(CURDIR)/debian/kicad/usr/lib/python2.7/dist-packages/pcbnew/__init__.py #TODO: make this python version agnostic, and loop over pyversions
	pyversions -d
	pyversions -s
	pyversions -i
	dh_installdocs

# Build architecture independant packages.
binary-indep: build-indep install-indep
	dh_testdir
	dh_testroot
	dh_installchangelogs -i
	dh_link -i
	dh_strip -i
# i don't want the helpfiles to be compressed
	dh_compress -i --exclude=kicad/help --exclude=kicad/demos --exclude=.pdf
	dh_fixperms -i
	dh_makeshlibs -i
	dh_installdeb -i
	dh_shlibdeps -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

# Build architecture dependant packages.
binary-arch: build-arch install-arch
	dh_testdir
	dh_testroot
	dh_installchangelogs -s kicad/CHANGELOG.txt
	dh_installman -s $(CURDIR)/debian/man/*.1
	dh_link -s
	dh_strip -s
	dh_compress -s
	dh_fixperms -s
	dh_makeshlibs -s
	dh_python2 -ppcbnew
	dh_installdeb -s
	dh_shlibdeps -s
	dh_gencontrol -s
	dh_md5sums -s
	dh_builddeb -s

binary: binary-arch binary-indep
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch

Follow ups