Changeset 1055
- Timestamp:
- Jun 23, 2008, 1:15:25 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r1049 r1055 739 739 PYTHON_DISTUTILS 740 740 RUBY 741 SVN_VERSION742 741 RP_BASE 743 742 SHLIB_LDFLAGS … … 1887 1886 1888 1887 1888 1889 set -e 1889 1890 1890 1891 #------------------------------------------------------------------------ … … 8838 8839 PYTHON_LIB="" 8839 8840 PYTHON_LIBDIR="" 8841 PYTHON_SITE_DIR="" 8840 8842 PYTHON_SITE_PACKAGES="" 8841 PYTHON_SITE_DIR=""8842 8843 PYTHON_VERSION="" 8843 8844 pythondir="" … … 8937 8938 { $as_echo "$as_me:$LINENO: checking for python distutils" >&5 8938 8939 $as_echo_n "checking for python distutils... " >&6; } 8939 python_result="`${PYTHON} -c 'import distutils;' 2>&1`" 8940 if test "x${python_result}" = "x" ; then 8940 ${PYTHON} -c "from distutils.core import setup; setup(name='test')" \ 8941 build build_ext 2>&1 > /dev/null 8942 if test $? = 0 ; then 8941 8943 PYTHON_DISTUTILS="yes" 8942 8944 else … … 8953 8955 $as_echo_n "checking for Python include path... " >&6; } 8954 8956 if test "x${PYTHON_CPPFLAGS}" = "x"; then 8955 python_path=`${PYTHON} -c "import distutils.sysconfig; \8957 incdir_path=`${PYTHON} -c "import distutils.sysconfig; \ 8956 8958 print distutils.sysconfig.get_python_inc();"` 8957 if test -n "${ python_path}"; then8958 python_path="-I$ python_path"8959 if test -n "${incdir}"; then 8960 python_path="-I${incdir}" 8959 8961 fi 8960 8962 PYTHON_CPPFLAGS=$python_path … … 8979 8981 8980 8982 echo "PYTHON=${PYTHON}" 8983 echo "PYTHON_CPPFLAGS=${PYTHON_CPPFLAGS}" 8984 echo "PYTHON_DISTUTILS=${PYTHON_DISTUTILS}" 8981 8985 echo "PYTHON_INCLUDES=${PYTHON_INCLUDES}" 8982 echo "PYTHON_DISTUTILS=${PYTHON_DISTUTILS}" 8983 echo "PYTHON_CPPFLAGS=${PYTHON_CPPFLAGS}" 8986 echo "PYTHON_LDFLAGS=${PYTHON_LDFLAGS}" 8987 echo "PYTHON_LIB=${PYTHON_LIB}" 8988 echo "PYTHON_LIBDIR=${PYTHON_LIBDIR}" 8989 echo "PYTHON_SITE_DIR=${PYTHON_SITE_DIR}" 8984 8990 echo "PYTHON_SITE_PACKAGES=${PYTHON_SITE_PACKAGES}" 8985 echo "PYTHON_SUBDIR=${PYTHON_SUBDIR}"8986 echo "PYTHON_SITE_DIR=${PYTHON_SITE_DIR}"8987 8991 echo "PYTHON_VERSION=${PYTHON_VERSION}" 8988 8992 echo "pythondir=${pythondir}" … … 9061 9065 fi 9062 9066 9063 SVN_VERSION=`svnversion $srcdir`9064 9065 9067 { $as_echo "$as_me:$LINENO: result: ${RUBY}" >&5 9066 9068 $as_echo "${RUBY}" >&6; } … … 9186 9188 fi 9187 9189 9190 ac_configure_args="--disable-threads --enable-shared" 9188 9191 9189 9192 -
trunk/configure.in
r1050 r1055 1 1 AC_INIT([Rappture], [1.1], [rappture@nanohub.org]) 2 3 set -e 2 4 3 5 #------------------------------------------------------------------------ … … 312 314 PYTHON_LIB="" 313 315 PYTHON_LIBDIR="" 316 PYTHON_SITE_DIR="" 314 317 PYTHON_SITE_PACKAGES="" 315 PYTHON_SITE_DIR=""316 318 PYTHON_VERSION="" 317 319 pythondir="" … … 366 368 367 369 AC_MSG_CHECKING([for python distutils]) 368 python_result="`${PYTHON} -c 'import distutils;' 2>&1`" 369 if test "x${python_result}" = "x" ; then 370 ${PYTHON} -c "from distutils.core import setup; setup(name='test')" \ 371 build build_ext 2>&1 > /dev/null 372 if test $? = 0 ; then 370 373 PYTHON_DISTUTILS="yes" 371 374 else … … 380 383 AC_MSG_CHECKING([for Python include path]) 381 384 if test "x${PYTHON_CPPFLAGS}" = "x"; then 382 python_path=`${PYTHON} -c "import distutils.sysconfig; \385 incdir_path=`${PYTHON} -c "import distutils.sysconfig; \ 383 386 print distutils.sysconfig.get_python_inc();"` 384 if test -n "${ python_path}"; then385 python_path="-I$ python_path"387 if test -n "${incdir}"; then 388 python_path="-I${incdir}" 386 389 fi 387 390 PYTHON_CPPFLAGS=$python_path … … 405 408 406 409 echo "PYTHON=${PYTHON}" 410 echo "PYTHON_CPPFLAGS=${PYTHON_CPPFLAGS}" 411 echo "PYTHON_DISTUTILS=${PYTHON_DISTUTILS}" 407 412 echo "PYTHON_INCLUDES=${PYTHON_INCLUDES}" 408 echo "PYTHON_DISTUTILS=${PYTHON_DISTUTILS}" 409 echo "PYTHON_CPPFLAGS=${PYTHON_CPPFLAGS}" 413 echo "PYTHON_LDFLAGS=${PYTHON_LDFLAGS}" 414 echo "PYTHON_LIB=${PYTHON_LIB}" 415 echo "PYTHON_LIBDIR=${PYTHON_LIBDIR}" 416 echo "PYTHON_SITE_DIR=${PYTHON_SITE_DIR}" 410 417 echo "PYTHON_SITE_PACKAGES=${PYTHON_SITE_PACKAGES}" 411 echo "PYTHON_SITE_DIR=${PYTHON_SITE_DIR}"412 418 echo "PYTHON_VERSION=${PYTHON_VERSION}" 413 419 echo "pythondir=${pythondir}" … … 478 484 fi 479 485 486 ac_configure_args="--disable-threads --enable-shared" 480 487 AC_CONFIG_SUBDIRS( [packages/optimizer/src] ) 481 488 -
trunk/examples/Makefile.in
r1044 r1055 26 26 zoo 27 27 28 29 .PHONY: $(SUBDIRS) 30 28 31 all: build 29 32 … … 38 41 $(INSTALL) -m 555 $$i $(destdir) ; \ 39 42 done 40 for i in $(SUBDIRS) ; do \43 for i in $(SUBDIRS) ; do \ 41 44 $(MAKE) -C $$i install || exit 1 ; \ 42 45 done 43 46 44 47 clean: 45 for i in $(SUBDIRS) ; do \48 for i in $(SUBDIRS) ; do \ 46 49 $(MAKE) -C $$i clean || exit 1 ; \ 47 50 done 48 51 49 52 distclean: clean 50 for i in $(SUBDIRS) ; do \53 for i in $(SUBDIRS) ; do \ 51 54 $(MAKE) -C $$i distclean || exit 1 ; \ 52 55 done -
trunk/examples/demo.bash.in
r1018 r1055 16 16 17 17 echo "7 examples will be shown-->" 18 for i in $dirs 19 do 20 echo $exdir/$i 21 cd $exdir/$i 22 $rpdir/bin/rappture 18 for i in $dirs ; do 19 echo $exdir/$i 20 cd $exdir/$i 21 $rpdir/bin/rappture 23 22 done 24 23 -
trunk/lang/Makefile.in
r1049 r1055 23 23 24 24 # Rappture requires we always build a Tcl language API. 25 LANGS = t arget_tcl25 LANGS = tcl 26 26 27 27 ifneq ($(MKOCTFILE),) 28 LANGS += target_octave28 LANGS += octave 29 29 endif 30 30 ifneq ($(MEX),) 31 LANGS += target_matlab31 LANGS += matlab 32 32 endif 33 33 ifneq ($(PERL),) 34 LANGS += target_perl34 LANGS += perl 35 35 endif 36 36 ifeq ($(PYTHON_DISTUTILS),yes) 37 LANGS += target_python37 LANGS += python 38 38 endif 39 39 ifneq ($(RUBY),) 40 # LANGS += target_ruby40 # LANGS += ruby 41 41 endif 42 42 43 BUILD_TARGETS = $(patsubst target_%,build_%,$(LANGS)) 44 INSTALL_TARGETS = $(patsubst target_%,install_%,$(LANGS)) 43 .PHONY: tcl octave matlab perl python ruby 45 44 46 all: $(BUILD_TARGETS) 45 all: 46 for i in $(LANGS) ; do \ 47 $(MAKE) -C $$i all || exit 1 ;\ 48 done 47 49 48 install: $(INSTALL_TARGETS) 50 install: 51 for i in $(LANGS) ; do \ 52 $(MAKE) -C $$i install || exit 1 ;\ 53 done 49 54 50 build_python: 51 $(MAKE) -C python all 52 build_perl: 53 $(MAKE) -C perl all 54 build_tcl: 55 $(MAKE) -C tcl all 56 build_matlab: 57 $(MAKE) -C matlab all 58 build_octave: 59 $(MAKE) -C octave all 60 build_ruby: 61 $(MAKE) -C ruby all 55 test: 56 for i in $(LANGS) ; do \ 57 $(MAKE) -C $$i test || exit 1 ;\ 58 done 62 59 63 install_python: 64 $(MAKE) -C python install 65 install_perl: 66 $(MAKE) -C perl install 67 install_tcl: 68 $(MAKE) -C tcl install 69 install_matlab: 70 $(MAKE) -C matlab install 71 install_octave: 72 $(MAKE) -C octave install 73 install_ruby: 74 $(MAKE) -C ruby install 75 76 clean: 77 $(MAKE) -C matlab clean 78 $(MAKE) -C octave clean 79 $(MAKE) -C perl clean 80 $(MAKE) -C python clean 81 $(MAKE) -C ruby clean 82 $(MAKE) -C tcl clean 60 clean: 61 for i in $(LANGS) ; do \ 62 $(MAKE) -C $$i clean ;\ 63 done 83 64 84 65 distclean: 85 $(MAKE) -C matlab distclean 86 $(MAKE) -C octave distclean 87 $(MAKE) -C perl distclean 88 $(MAKE) -C python distclean 89 $(MAKE) -C ruby distclean 90 $(MAKE) -C tcl distclean 66 for i in $(LANGS) ; do \ 67 $(MAKE) -C $$i distclean ;\ 68 done 91 69 $(RM) Makefile *~ -
trunk/src/core/Makefile.in
r1051 r1055 90 90 xerror.h 91 91 92 # Build the scew librarydirectly into Rappture for now.92 # Build the scew and b64 libraries directly into Rappture for now. 93 93 # Note: This works because of viewpath-ing. See the VPATH variable. 94 94 B64_OBJS = \ -
trunk/src/core/RpDXWriter.cc
r1051 r1055 30 30 _origin(NULL) 31 31 { 32 _delta = (float*) malloc(_rank *_rank*sizeof(float));32 _delta = (float*) malloc(_rank * _rank* sizeof(float)); 33 33 if (_delta == NULL) { 34 34 fprintf(stderr, 35 "Error allocating % dbytes, for _delta, inside DXWriter Constructor\n",36 _rank*_rank*sizeof(float));35 "Error allocating %lu bytes, for _delta, inside DXWriter Constructor\n", 36 (unsigned long)(_rank *_rank * sizeof(float))); 37 37 return; 38 38 } … … 52 52 if (_origin == NULL) { 53 53 fprintf(stderr, 54 "Error allocating % dbytes, for _origin, inside DXWriter Constructor\n",55 _rank*sizeof(float));54 "Error allocating %lu bytes, for _origin, inside DXWriter Constructor\n", 55 (unsigned long)(_rank * sizeof(float))); 56 56 return; 57 57 } … … 73 73 if (_delta == NULL) { 74 74 fprintf(stderr, 75 "Error allocating % dbytes, for _delta, inside DXWriter Constructor\n",76 _rank*_rank*sizeof(float));75 "Error allocating %lu bytes, for _delta, inside DXWriter Constructor\n", 76 (unsigned long)(_rank * _rank * sizeof(float))); 77 77 return; 78 78 } … … 92 92 if (_origin == NULL) { 93 93 fprintf(stderr, 94 "Error allocating % dbytes, for _origin, inside DXWriter Constructor\n",95 _rank*sizeof(float));94 "Error allocating %lu bytes, for _origin, inside DXWriter Constructor\n", 95 (unsigned long)(_rank*sizeof(float))); 96 96 return; 97 97 } … … 119 119 DXWriter::origin(float* o) 120 120 { 121 float *tmp = NULL;122 size_t nbytes = 0;123 124 121 if (o == NULL) { 125 122 return *this; 126 123 } 127 128 nbytes = _rank*sizeof(float); 129 tmp = (float*) malloc(nbytes); 124 size_t nbytes = _rank * sizeof(float); 125 float *tmp = (float*) malloc(nbytes); 130 126 if (tmp == NULL) { 131 fprintf(stderr,"Unable to malloc % dbytes inside DXWriter::origin\n",132 127 fprintf(stderr,"Unable to malloc %lu bytes inside DXWriter::origin\n", 128 (unsigned long)nbytes); 133 129 return *this; 134 130 } … … 147 143 DXWriter::delta(float* d) 148 144 { 149 float *tmp = NULL;150 size_t nbytes = 0;151 152 145 if (d == NULL) { 153 146 return *this; 154 147 } 155 148 156 nbytes = pow(_rank,2)*sizeof(float);157 tmp = (float*)malloc(nbytes);149 size_t nbytes = _rank * _rank * sizeof(float); 150 float *tmp = (float*)malloc(nbytes); 158 151 if (tmp == NULL) { 159 fprintf(stderr,"Unable to malloc % dbytes inside DXWriter::delta\n",160 152 fprintf(stderr,"Unable to malloc %lu bytes inside DXWriter::delta\n", 153 (unsigned long)nbytes); 161 154 return *this; 162 155 } … … 175 168 DXWriter::counts(size_t *p) 176 169 { 177 size_t *tmp = NULL;178 size_t nbytes = 0;179 180 170 if (p == NULL) { 181 171 return *this; 182 172 } 183 184 nbytes = _rank*sizeof(size_t); 185 tmp = (size_t*) malloc(nbytes); 173 size_t nbytes = _rank * sizeof(size_t); 174 size_t *tmp = (size_t*) malloc(nbytes); 186 175 if (tmp == NULL) { 187 fprintf(stderr,"Unable to malloc % dbytes inside DXWriter::pos\n",188 176 fprintf(stderr,"Unable to malloc %lu bytes inside DXWriter::pos\n", 177 (unsigned long)nbytes); 189 178 return *this; 190 179 } … … 196 185 197 186 _positions = tmp; 198 199 187 return *this; 200 188 } … … 241 229 dxfile.append("object 1 class gridpositions counts",35); 242 230 for (size_t i=0; i < _rank; i++) { 243 sprintf(b, " %10 d",_positions[i]);231 sprintf(b, " %10lu", (unsigned long)_positions[i]); 244 232 dxfile.append(b,11); 245 233 } … … 261 249 dxfile.append("\nobject 2 class gridconnections counts", 38); 262 250 for (size_t i=0; i < _rank; i++) { 263 sprintf(b, " %10 d",_positions[i]);251 sprintf(b, " %10lu",(unsigned long)_positions[i]); 264 252 dxfile.append(b,11); 265 253 } -
trunk/src/core/RpSimpleBuffer.h
r1051 r1055 412 412 413 413 if (buf == NULL) { 414 fprintf(stderr,"Can't allocate %i bytes of memory\n",nbytes); 414 fprintf(stderr,"Can't allocate %lu bytes of memory\n", 415 (long unsigned int)nbytes); 415 416 _fileState = false; 416 417 return 0; -
trunk/src/core2/Makefile.in
r1054 r1055 1 1 2 # Makefile for Rappture2 2 3 # Copyright (C) 2004-2007 Derrick S. Kearney.
Note: See TracChangeset
for help on using the changeset viewer.