DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr 2007 - 1 Carlo Izzo Using External Libraries.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

User Guide TE Connectivity Data Collection Tool (DCT) January 2012.
1 IST 410/420 Software Version Control 2 DevelopmentIntegration Test System Test User Acceptance Testing ProductionArchive DEVELOPMENTUSERS - Developers.
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Scienze dellInformazione Università di Bologna.
Slide 1 Insert your own content. Slide 2 Insert your own content.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 4 Author: Julia Richards and R. Scott Hawley.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Problem Solving & Program Design in C Sixth Edition By Jeri R. Hanly & Elliot B. Koffman 1-1.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
0 - 0.
ALGEBRAIC EXPRESSIONS
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLYING MONOMIALS TIMES POLYNOMIALS (DISTRIBUTIVE PROPERTY)
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Das GNU Build System Autotools Roman Leshchinsky David Schulz, Shaoke Wu.
Surgery OR Procedure Card Database David L. Odom 1. Secure Password into Database:
Intel VTune Yukai Hong Department of Mathematics National Taiwan University July 24, 2008.
© Tally Solutions Pvt. Ltd. All Rights Reserved 1 Housekeeping in Shoper 9 POS February 2010.
Drivers and the kernel1-1 Drivers and the kernel UNIX system has three layers: m The hardware m The operating system kernel m The user-level programs Kernel.
1 SEDIT & S/REXX SEDIT and S/REXX Mainframe-caliber tools for UNIX Offered by Treehouse Software, Inc.
© S Haughton more than 3?
05/11/2001 CPT week Natalia Ratnikova, FNAL 1 Software Distribution in CMS Distribution unitFormContent Version of SCRAM managed project.
5.9 + = 10 a)3.6 b)4.1 c)5.3 Question 1: Good Answer!! Well Done!! = 10 Question 1:
1 Directed Depth First Search Adjacency Lists A: F G B: A H C: A D D: C F E: C D G F: E: G: : H: B: I: H: F A B C G D E H I.
CS 22: Enhanced Web Site Design - Week 8Slide 1 of 15 Enhanced Web Site Design Stanford University Continuing Studies CS 22 Mark Branom
General Navigation Training Presentation for Supply Chain Platform: BAE Systems July 2012.
Linking Verb? Action Verb or. Question 1 Define the term: action verb.
1 NS-2 Tutorial COMP R2 University of Manitoba March 4, 2009.
RH030 Linux Computing Essentials
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
1 Welcome to JCCAA Data base presentation Click box to see the DEMO 1.JCCAA Web Site 2. Member Login 3. My Acount 4. School DBA The end.
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
Week 1.
We will resume in: 25 Minutes.
Multi Contents Registration Manual National Institute of Informatics
© 2009 GroundWork Open Source, Inc. PROPRIETARY INFORMATION: Information contained herein is not for use or disclosure outside of GroundWork Open Source,
LING 581: Advanced Computational Linguistics Lecture Notes March 29th.
Working with pig Cloud computing lecture. Purpose  Get familiar with the pig environment  Advanced features  Walk though some examples.
NDT Tools Tutorial: How-To setup your own NDT server Rich Carlson Summer 04 Joint Tech July 19, 2004.
Julie McEnery1 Installing the ScienceTools The release manager automatically compiles each release of the Science Tools, it creates a set of wrapper scripts.
Computer Science 210 Computer Organization Modular Decomposition Making a Library Separate Compilation.
SDD/DFS R. Palsa VLT 2 nd Generation Instrumentation Pipelines, 19 Apr Ralf Palsa CVS, GNU Build Tools & Coding Standards.
Dustin Harman VM Workshop 2015 RPM Basics. What is RPM? Red Hat Package Manager Native package manager on RHEL, Fedora, SUSE, some Mandriva RPM/SRPM files.
CCA Port, Component & Application Build Skeleton Templates “A new script toolkit for generating CCA build skeletons” Torsten Wilde and James Kohl Oak Ridge.
Trilinos 101: Getting Started with Trilinos November 7, :30-9:30 a.m. Mike Heroux Jim Willenbring.
Tutorial build Main ideas –Reuse as much previously obtained configuration information as possible: from Babel, cca-spec-babel, etc. –Extract all irrelevant.
How to configure, build and install Trilinos November 2, :30-9:30 a.m. Jim Willenbring Mike Phenow.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy’s National Nuclear.
SDD/DFS Y. Jung VLT 2 nd Generation Instrumentation Pipelines, 19 Apr General Introduction Yves Jung.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
SDD/DFS A. Modigliani VLT 2 nd Generation Instrumentation Pipelines, 19 Apr ACCEPTANCE TESTS Andrea Modigliani.
Linux Commands C151 Multi-User Operating Systems.
HW4: Due Nov 24th 23:59 1.Describe test cases to reach full path coverage of the triangle program by completing the path condition table below. Also, draw.
Getting Started with Trilinos October 14, :30-10:30 a.m. Jim Willenbring.
Yannick Patois - Datagrid Software Repository Presentation - March, n° 1 Datagrid Software Repository Presentation CVS, packages and automatic.
How to Open a New Language in Web OPAC for Testing Web Screens Presenter: Yoel Kortick.
INTRODUCTION TO AUTOCONF AND AUTOMAKE. GNU BUILD SYSTEM 1)GNU AUTOCONF 2)GNU AUTOMAKE 3)GNU LIBTOOL 4)GNU GETTEXT.
How to configure, build and install Trilinos November 2, :30-9:30 a.m. Jim Willenbring.
CLHEP Infrastructure Improvements CHEP 2004 Lynn Garren, FNAL and Andreas Pfeiffer, CERN.
Developing Portable Applications ● Introduction GNU autotools – GNU toolchain ● Goals - cross-platform ● Supported platforms (POSIX compliant) ● GNU autotools.
MaSH – Miniature Shell ● Brief introduction to shell. – What is a shell? ● A program that reads inputs from the keyboard and executes the commands. ● Basic.
COM S 326X Deep C Programming for the 21st Century Prof. Rozier
Software Package development and management
Presentation transcript:

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr Carlo Izzo Using External Libraries

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr CPL iiinstrument admin doxygen iiinstrument m4macros recipes tests external WCSLIB GSL FFTW SExtractor … iiinstrument_x.y.z.tar.gz directory tree

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr AUTOMAKE_OPTIONS = 1.8 foreign ACLOCAL_AMFLAGS = -I m4macros DISTCLEANFILES = *~ COMPILE_FIRST = TOPSUBDIRS = iiinstrument recipes COMPILE_LAST = tests HTML_SUBDIRS = SUBDIRS = $(COMPILE_FIRST) $(TOPSUBDIRS) $(COMPILE_LAST) EXTRA_DIST = m4macros/eso.m4 m4macros/cpl.m4 admin/html.am \ doxygen/Doxyfile.in setup pkgdata_DATA = ChangeLog AUTHORS NEWS README TODO if MAINTAINER_MODE MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in configure \ stamp-h.in external external/Makefile.in iiinstrument admin doxygen iiinstrument m4macros recipes tests external Makefile.am, top iiinstrument directory

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr AUTOMAKE_OPTIONS = 1.8 foreign ACLOCAL_AMFLAGS = -I m4macros DISTCLEANFILES = *~ HTML_SUBDIRS = SUBDIRS = EXTRA_DIST = m4macros/eso.m4 m4macros/cpl.m4 admin/html.am \ doxygen/Doxyfile.in setup pkgdata_DATA = ChangeLog AUTHORS NEWS README TODO if MAINTAINER_MODE MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in configure \ stamp-h.in external external/Makefile.in iiinstrument admin doxygen iiinstrument m4macros recipes tests external iiinstrument recipes tests Makefile.am, top iiinstrument directory

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr File: acinclude.m4, top iiinstrument directory iiinstrument admin doxygen iiinstrument m4macros recipes tests external # IIINSTRUMENT_CREATE_SYMBOLS # # Define include and library related makefile symbols AC_DEFUN([IIINSTRUMENT_CREATE_SYMBOLS], [ # Symbols for package include file and library search paths IIINSTRUMENT_INCLUDES='-I$(top_srcdir)/iiinstrument' IIINSTRUMENT_LDFLAGS='-L$(top_srcdir)/iiinstrument' # Library aliases LIBIIINSTRUMENT='$(top_srcdir)/iiinstrument/libiiinstrument.la' # Substitute the defined symbols AC_SUBST(IIINSTRUMENT_INCLUDES) AC_SUBST(IIINSTRUMENT_LDFLAGS) AC_SUBST(LIBIIINSTRUMENT) # Check for CPL and user defined libraries AC_REQUIRE([CPL_CHECK_LIBS]) AC_REQUIRE([ESO_CHECK_EXTRA_LIBS]) all_includes='$(IIINSTRUMENT_INCLUDES) $(CPL_INCLUDES) all_ldflags='$(IIINSTRUMENT_LDFLAGS) $(CPL_LDFLAGS) AC_SUBST(all_includes) AC_SUBST(all_ldflags) ]) LIBWCS_INCLUDES='-I$(top_srcdir)/external/libwcs' LIBWCS_LDFLAGS='-L$(top_srcdir)/external/libwcs' AC_SUBST(LIBWCS_INCLUDES) AC_SUBST(LIBWCS_LDFLAGS) $(LIBWCS_INCLUDES)$(EXTRA_INCLUDES)' $(LIBWCS_LDFLAGS) $(EXTRA_LDFLAGS)'

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr iiinstrument admin doxygen iiinstrument m4macros recipes tests external AC_CONFIG_FILES(Makefile doxygen/Doxyfile iiinstrument/Makefile recipes/Makefile tests/Makefile) external/Makefile configure.ac, top iiinstrument directory

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr Create file: bootdirs, top iiinstrument directory iiinstrument admin doxygen iiinstrument m4macros recipes tests external external/libwcs

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr iiinstrument admin doxygen iiinstrument m4macros recipes tests external AUTOMAKE_OPTIONS = 1.8 foreign DISTCLEANFILES = *~ EXTRA_DIST=fftw tar.gz Create file Makefile.am, external directory

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr File: Makefile.am, bottom iiinstrument directory iiinstrument admin doxygen iiinstrument m4macros recipes tests external AUTOMAKE_OPTIONS = 1.8 foreign DISTCLEANFILES = *~ if MAINTAINER_MODE MAINTAINERCLEANFILES = Makefile.in endif CPPFLAGS = -DCX_LOG_DOMAIN=\"IiinstrumentLib\" INCLUDES = $(all_includes) noinst_HEADERS = iiinstrument_utils.h iiinstrument_pfits.h iiinstrument_dfs.h pkginclude_HEADERS = lib_LTLIBRARIES = libiiinstrument.la libiiinstrument_la_SOURCES = iiinstrument_utils.c iiinstrument_pfits.c iiinstrument_dfs.c libiiinstrument_la_LDFLAGS = $(CPL_LDFLAGS) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) libiiinstrument_la_LIBADD = libiiinstrument_la_DEPENDENCIES = $(LIBWCS) $(LIBCPLDFS) $(LIBCPLUI) $(LIBCPLDRS) $(LIBCPLCORE) $(LIBWCS)

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr iiinstrument admin doxygen iiinstrument m4macros recipes tests external configure should make available the necessary command line options pointing to the external library. This is done by defining in the acinclude.m4 file a IIINSTRUMENT_CHECK_FFTW macro where the FFTW_INCLUDES, FFTW_LDFLAGS, and LIBFFTW are set up properly. Example implementations of this macro can be found in the cpl.m4 macro. acinclude.m4, top iiinstrument directory

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr iiinstrument admin doxygen iiinstrument m4macros recipes tests external acinclude.m4, top iiinstrument directory # IIINSTRUMENT_CHECK_FFTW # # Checks for the FFTW library and header files. AC_DEFUN([IIINSTRUMENT_CHECK_FFTW], [ AC_MSG_CHECKING([for FFTW]) iiinstrument_fftw_check_header="fftw.h" iinstrument_fftw_check_lib="libfftw.a" iiinstrument_fftw_includes="" iiinstrument_fftw_libraries="" AC_ARG_WITH(fftw, AC_HELP_STRING([--with-fftw], [location where FFTW is installed]), [ iiinstrument_with_fftw_includes=$withval/include iiinstrument_with_fftw_libs=$withval/lib ]) ESO_FIND_FILE($iiinstrument_fftw_check_header, $iiinstrument_with_fftw_includes, iiinstrument_fftw_includes) ESO_FIND_FILE($iinstrument_fftw_check_lib, $iiinstrument_with_fftw_libs, iiinstrument_fftw_libraries)

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr iiinstrument admin doxygen iiinstrument m4macros recipes tests external acinclude.m4, top iiinstrument directory # IIINSTRUMENT_CHECK_FFTW # # Checks for the FFTW library and header files. AC_DEFUN([IIINSTRUMENT_CHECK_FFTW], [ AC_MSG_CHECKING([for FFTW]) iiinstrument_fftw_check_header="fftw.h" iinstrument_fftw_check_lib="libfftw.a" iiinstrument_fftw_includes="" iiinstrument_fftw_libraries="" AC_ARG_WITH(fftw, AC_HELP_STRING([--with-fftw], [location where FFTW is installed]), [ iiinstrument_with_fftw_includes=$withval/include iiinstrument_with_fftw_libs=$withval/lib ]) ESO_FIND_FILE($iiinstrument_fftw_check_header, $iiinstrument_with_fftw_includes, iiinstrument_fftw_includes) ESO_FIND_FILE($iinstrument_fftw_check_lib, $iiinstrument_with_fftw_libs, iiinstrument_fftw_libraries)

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr iiinstrument admin doxygen iiinstrument m4macros recipes tests external acinclude.m4, top iiinstrument directory … ESO_FIND_FILE($iiinstrument_fftw_check_header, $iiinstrument_with_fftw_includes, iiinstrument_fftw_includes) ESO_FIND_FILE($iinstrument_fftw_check_lib, $iiinstrument_with_fftw_libs, iiinstrument_fftw_libraries) if test x"$iiinstrument_fftw_includes" = xno; then AC_MSG_ERROR([FFTW include was not found.]) fi if test x"$iiinstrument_fftw_libraries" = xno; then AC_MSG_ERROR([FFTW library was not found.]) fi AC_MSG_RESULT([FFTW library and header found.]) FFTW_INCLUDES="-I$iiinstrument_fftw_includes" FFTW_LDFLAGS="-L$iiinstrument_fftw_libraries" LIBFFTW="-lfftw" AC_SUBST(FFTW_INCLUDES) AC_SUBST(FFTW_LDFLAGS) AC_SUBST(LIBFFTW) ])

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr iiinstrument admin doxygen iiinstrument m4macros recipes tests external AUTOMAKE_OPTIONS = 1.8 foreign DISTCLEANFILES = *~ if MAINTAINER_MODE MAINTAINERCLEANFILES = Makefile.in endif CPPFLAGS = -DCX_LOG_DOMAIN=\"IiinstrumentLib\" INCLUDES = $(all_includes) noinst_HEADERS = iiinstrument_utils.h iiinstrument_pfits.h iiinstrument_dfs.h pkginclude_HEADERS = lib_LTLIBRARIES = libiiinstrument.la libiiinstrument_la_SOURCES = iiinstrument_utils.c iiinstrument_pfits.c iiinstrument_dfs.c libiiinstrument_la_LDFLAGS = libiiinstrument_la_LIBADD = libiiinstrument_la_DEPENDENCIES = $(LIBCPLDFS) $(LIBCPLUI) $(LIBCPLDRS) $(LIBCPLCORE) $(LIBFFTW) Makefile.am, bottom iiinstrument directory $(FFTW_INCLUDE) $(FFTW_LDFLAGS) $(CPL_LDFLAGS) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr iiinstrument admin doxygen iiinstrument m4macros recipes tests error () { echo "Error: $cmd: $1" exit 1 } # Main cmd=`basename $0` usage="Usage: $cmd installation-path" setup_configure="./configure --prefix=$1" setup_make="make" # The destination directory for the installation is mandatory if test $# != 1; then echo "$usage" exit 1 fi # Configure the package echo "Setting up pipeline package... " if eval $setup_configure; then : else error "Package setup failed! See logfile for details." fi # Compile the pipeline echo "Building pipeline package... " if eval $setup_make; then : else error "Package build failed! See logfile for details." fi # Install the pipeline echo "Installing pipeline package... " if eval $setup_make install install-html; then : else error "Package installation failed! See logfile for details." fi exit 0 setup, top iiinstrument directory

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr /configure --prefix=$1 make make install cd external gunzip fftw tar.gz tar -xvf fftw tar cd fftw /configure –prefix=$HOME/tmp/fftw –disable-shared make make install cd.. setup, top iiinstrument directory –with-fftw=$HOME/tmp/fftw iiinstrument admin doxygen iiinstrument m4macros recipes tests external tmp

DFS/SDD C. Izzo VLT 2 nd Generation Instrumentation Pipelines, 19 Apr File: Makefile.am, bottom iiinstrument directory iiinstrument admin doxygen iiinstrument m4macros recipes tests external AUTOMAKE_OPTIONS = 1.8 foreign DISTCLEANFILES = *~ if MAINTAINER_MODE MAINTAINERCLEANFILES = Makefile.in endif CPPFLAGS = -DCX_LOG_DOMAIN=\"IiinstrumentLib\" INCLUDES = $(all_includes) noinst_HEADERS = iiinstrument_utils.h iiinstrument_pfits.h iiinstrument_dfs.h pkginclude_HEADERS = lib_LTLIBRARIES = libiiinstrument.la libiiinstrument_la_SOURCES = iiinstrument_utils.c iiinstrument_pfits.c iiinstrument_dfs.c libiiinstrument_la_LDFLAGS = $(CPL_LDFLAGS) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) libiiinstrument_la_LIBADD = libiiinstrument_la_DEPENDENCIES = $(LIBWCS) $(LIBCPLDFS) $(LIBCPLUI) $(LIBCPLDRS) $(LIBCPLCORE) $(LIBWCS)