Changeset 4060
- Timestamp:
- Nov 15, 2013 1:06:52 AM (10 years ago)
- Location:
- trunk/packages/vizservers
- Files:
-
- 10 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/Makefile.in
r4052 r4060 19 19 20 20 SUBDIRS = @SUBDIRS@ 21 VTK_LIB_DIR = @VTK_LIB_DIR@22 CG_LIB_DIR = @CG_LIB_DIR@23 24 SUBDIRS = nanoscale pymolproxy25 26 ifneq ($(VTK_LIB_DIR),)27 SUBDIRS += vtkvis28 endif29 30 ifneq ($(CG_LIB_DIR),)31 SUBDIRS += nanovis32 endif33 21 34 22 .PHONY: all install clean distclean $(SUBDIRS) -
trunk/packages/vizservers/configure
r4049 r4060 624 624 ac_subst_vars='LTLIBOBJS 625 625 LIBOBJS 626 VTK_LIB_DIR627 VTK_INC_SPEC628 VERSION629 626 TCL_VERSION 630 627 TCL_LIB_SPEC … … 632 629 SUBDIRS 633 630 STATSDIR 634 SIZEOF_VOID_P635 SIZEOF_LONG_LONG636 SIZEOF_LONG637 SIZEOF_INT638 SIZEOF_FLOAT639 SHLIB_LDFLAGS640 RP_LIB_DIR641 RP_INC_SPEC642 RP_DIR643 631 LD_RPATH 644 CG_LIB_SPEC645 CG_INC_SPEC646 FFMPEG647 632 CXXCPP 648 633 ac_ct_CXX … … 732 717 enable_option_checking 733 718 with_tcllib 734 with_rappture 735 with_vtk_includes 736 with_vtk_libs 737 with_vtk 738 with_ffmpeg 719 with_statsdir 739 720 with_python 740 with_statsdir741 721 enable_64bit 742 722 enable_64bit_vis … … 1382 1362 --with-tcllib=DIR location of Tcl binary library libtclstubs.a 1383 1363 [default=/usr/lib] 1384 --with-rappture=DIR location of rappture files lib/librappture.a and 1385 include/rappture.h [default=/usr] 1386 --with-vtk-includes=DIR VTK include files are in DIR 1387 --with-vtk-libs=DIR VTK libraries are in DIR 1388 --with-vtk=VERSION Version of VTK required 1389 --with-ffmpeg=DIR location of ffmpeg [default=yes] 1364 --with-statsdir=DIR Write statistics in DIR 1390 1365 --with-python=DIR location of python [default=yes] 1391 --with-statsdir=DIR Write statistics in DIR1392 1366 --with-x use the X Window System 1393 1367 … … 1887 1861 1888 1862 } # ac_fn_cxx_try_run 1889 1890 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES1891 # ----------------------------------------------1892 # Tries to find the compile-time value of EXPR in a program that includes1893 # INCLUDES, setting VAR accordingly. Returns whether the value could be1894 # computed1895 ac_fn_cxx_compute_int ()1896 {1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1898 if test "$cross_compiling" = yes; then1899 # Depending upon the size, compute the lo and hi bounds.1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1901 /* end confdefs.h. */1902 $41903 int1904 main ()1905 {1906 static int test_array [1 - 2 * !(($2) >= 0)];1907 test_array [0] = 0;1908 return test_array [0];1909 1910 ;1911 return 0;1912 }1913 _ACEOF1914 if ac_fn_cxx_try_compile "$LINENO"; then :1915 ac_lo=0 ac_mid=01916 while :; do1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1918 /* end confdefs.h. */1919 $41920 int1921 main ()1922 {1923 static int test_array [1 - 2 * !(($2) <= $ac_mid)];1924 test_array [0] = 0;1925 return test_array [0];1926 1927 ;1928 return 0;1929 }1930 _ACEOF1931 if ac_fn_cxx_try_compile "$LINENO"; then :1932 ac_hi=$ac_mid; break1933 else1934 as_fn_arith $ac_mid + 1 && ac_lo=$as_val1935 if test $ac_lo -le $ac_mid; then1936 ac_lo= ac_hi=1937 break1938 fi1939 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val1940 fi1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1942 done1943 else1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1945 /* end confdefs.h. */1946 $41947 int1948 main ()1949 {1950 static int test_array [1 - 2 * !(($2) < 0)];1951 test_array [0] = 0;1952 return test_array [0];1953 1954 ;1955 return 0;1956 }1957 _ACEOF1958 if ac_fn_cxx_try_compile "$LINENO"; then :1959 ac_hi=-1 ac_mid=-11960 while :; do1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1962 /* end confdefs.h. */1963 $41964 int1965 main ()1966 {1967 static int test_array [1 - 2 * !(($2) >= $ac_mid)];1968 test_array [0] = 0;1969 return test_array [0];1970 1971 ;1972 return 0;1973 }1974 _ACEOF1975 if ac_fn_cxx_try_compile "$LINENO"; then :1976 ac_lo=$ac_mid; break1977 else1978 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val1979 if test $ac_mid -le $ac_hi; then1980 ac_lo= ac_hi=1981 break1982 fi1983 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val1984 fi1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1986 done1987 else1988 ac_lo= ac_hi=1989 fi1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1991 fi1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1993 # Binary search between lo and hi bounds.1994 while test "x$ac_lo" != "x$ac_hi"; do1995 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1997 /* end confdefs.h. */1998 $41999 int2000 main ()2001 {2002 static int test_array [1 - 2 * !(($2) <= $ac_mid)];2003 test_array [0] = 0;2004 return test_array [0];2005 2006 ;2007 return 0;2008 }2009 _ACEOF2010 if ac_fn_cxx_try_compile "$LINENO"; then :2011 ac_hi=$ac_mid2012 else2013 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val2014 fi2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2016 done2017 case $ac_lo in #((2018 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;2019 '') ac_retval=1 ;;2020 esac2021 else2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2023 /* end confdefs.h. */2024 $42025 static long int longval () { return $2; }2026 static unsigned long int ulongval () { return $2; }2027 #include <stdio.h>2028 #include <stdlib.h>2029 int2030 main ()2031 {2032 2033 FILE *f = fopen ("conftest.val", "w");2034 if (! f)2035 return 1;2036 if (($2) < 0)2037 {2038 long int i = longval ();2039 if (i != ($2))2040 return 1;2041 fprintf (f, "%ld", i);2042 }2043 else2044 {2045 unsigned long int i = ulongval ();2046 if (i != ($2))2047 return 1;2048 fprintf (f, "%lu", i);2049 }2050 /* Do not output a trailing newline, as this causes \r\n confusion2051 on some platforms. */2052 return ferror (f) || fclose (f) != 0;2053 2054 ;2055 return 0;2056 }2057 _ACEOF2058 if ac_fn_cxx_try_run "$LINENO"; then :2059 echo >>conftest.val; read $3 <conftest.val; ac_retval=02060 else2061 ac_retval=12062 fi2063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \2064 conftest.$ac_objext conftest.beam conftest.$ac_ext2065 rm -f conftest.val2066 2067 fi2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno2069 as_fn_set_status $ac_retval2070 2071 } # ac_fn_cxx_compute_int2072 1863 2073 1864 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES … … 2655 2446 2656 2447 2657 ac_config_headers="$ac_config_headers nano vis/nvconf.h nanoscale/config.h"2448 ac_config_headers="$ac_config_headers nanoscale/config.h" 2658 2449 2659 2450 … … 2668 2459 2669 2460 2670 # Check whether --with-rappture was given. 2671 if test "${with_rappture+set}" = set; then : 2672 withval=$with_rappture; with_rappture=$withval 2673 else 2674 with_rappture=yes 2675 fi 2676 2677 2678 2679 # Check whether --with-vtk-includes was given. 2680 if test "${with_vtk_includes+set}" = set; then : 2681 withval=$with_vtk_includes; with_vtk_includes=$withval 2682 else 2683 with_vtk_includes="" 2684 fi 2685 2686 2687 2688 # Check whether --with-vtk-libs was given. 2689 if test "${with_vtk_libs+set}" = set; then : 2690 withval=$with_vtk_libs; with_vtk_libs=$withval 2691 else 2692 with_vtk_libs="" 2693 fi 2694 2695 2696 2697 # Check whether --with-vtk was given. 2698 if test "${with_vtk+set}" = set; then : 2699 withval=$with_vtk; with_vtk=$withval 2700 else 2701 with_vtk=yes 2702 fi 2703 2704 2705 2706 # Check whether --with-ffmpeg was given. 2707 if test "${with_ffmpeg+set}" = set; then : 2708 withval=$with_ffmpeg; 2709 else 2710 with_ffmpeg=yes 2461 # Check whether --with-statsdir was given. 2462 if test "${with_statsdir+set}" = set; then : 2463 withval=$with_statsdir; STATSDIR=$withval 2464 else 2465 STATSDIR="/var/tmp/visservers" 2711 2466 fi 2712 2467 … … 4070 3825 fi 4071 3826 4072 4073 4074 # Check whether --with-statsdir was given.4075 if test "${with_statsdir+set}" = set; then :4076 withval=$with_statsdir; STATSDIR=$withval4077 else4078 STATSDIR="/var/tmp/visservers"4079 fi4080 4081 4082 VERSION=0.0.14083 3827 4084 3828 #------------------------------------------------------------------------ … … 6010 5754 6011 5755 6012 6013 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 6014 5757 $as_echo_n "checking for X... " >&6; } … … 7999 7742 esac 8000 7743 8001 # The cast to long int works around a bug in the HP C Compiler8002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects8003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.8004 # This bug is HP SR number 8606223364.8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&58006 $as_echo_n "checking size of int... " >&6; }8007 if ${ac_cv_sizeof_int+:} false; then :8008 $as_echo_n "(cached) " >&68009 else8010 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :8011 8012 else8013 if test "$ac_cv_type_int" = yes; then8014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&58015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}8016 as_fn_error 77 "cannot compute sizeof (int)8017 See \`config.log' for more details" "$LINENO" 5; }8018 else8019 ac_cv_sizeof_int=08020 fi8021 fi8022 8023 fi8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&58025 $as_echo "$ac_cv_sizeof_int" >&6; }8026 8027 8028 8029 cat >>confdefs.h <<_ACEOF8030 #define SIZEOF_INT $ac_cv_sizeof_int8031 _ACEOF8032 8033 8034 # The cast to long int works around a bug in the HP C Compiler8035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects8036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.8037 # This bug is HP SR number 8606223364.8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&58039 $as_echo_n "checking size of long... " >&6; }8040 if ${ac_cv_sizeof_long+:} false; then :8041 $as_echo_n "(cached) " >&68042 else8043 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :8044 8045 else8046 if test "$ac_cv_type_long" = yes; then8047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&58048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}8049 as_fn_error 77 "cannot compute sizeof (long)8050 See \`config.log' for more details" "$LINENO" 5; }8051 else8052 ac_cv_sizeof_long=08053 fi8054 fi8055 8056 fi8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&58058 $as_echo "$ac_cv_sizeof_long" >&6; }8059 8060 8061 8062 cat >>confdefs.h <<_ACEOF8063 #define SIZEOF_LONG $ac_cv_sizeof_long8064 _ACEOF8065 8066 8067 # The cast to long int works around a bug in the HP C Compiler8068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects8069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.8070 # This bug is HP SR number 8606223364.8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&58072 $as_echo_n "checking size of long long... " >&6; }8073 if ${ac_cv_sizeof_long_long+:} false; then :8074 $as_echo_n "(cached) " >&68075 else8076 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :8077 8078 else8079 if test "$ac_cv_type_long_long" = yes; then8080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&58081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}8082 as_fn_error 77 "cannot compute sizeof (long long)8083 See \`config.log' for more details" "$LINENO" 5; }8084 else8085 ac_cv_sizeof_long_long=08086 fi8087 fi8088 8089 fi8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&58091 $as_echo "$ac_cv_sizeof_long_long" >&6; }8092 8093 8094 8095 cat >>confdefs.h <<_ACEOF8096 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long8097 _ACEOF8098 8099 8100 # The cast to long int works around a bug in the HP C Compiler8101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects8102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.8103 # This bug is HP SR number 8606223364.8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&58105 $as_echo_n "checking size of void *... " >&6; }8106 if ${ac_cv_sizeof_void_p+:} false; then :8107 $as_echo_n "(cached) " >&68108 else8109 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :8110 8111 else8112 if test "$ac_cv_type_void_p" = yes; then8113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&58114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}8115 as_fn_error 77 "cannot compute sizeof (void *)8116 See \`config.log' for more details" "$LINENO" 5; }8117 else8118 ac_cv_sizeof_void_p=08119 fi8120 fi8121 8122 fi8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&58124 $as_echo "$ac_cv_sizeof_void_p" >&6; }8125 8126 8127 8128 cat >>confdefs.h <<_ACEOF8129 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p8130 _ACEOF8131 8132 8133 # The cast to long int works around a bug in the HP C Compiler8134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects8135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.8136 # This bug is HP SR number 8606223364.8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&58138 $as_echo_n "checking size of float... " >&6; }8139 if ${ac_cv_sizeof_float+:} false; then :8140 $as_echo_n "(cached) " >&68141 else8142 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :8143 8144 else8145 if test "$ac_cv_type_float" = yes; then8146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&58147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}8148 as_fn_error 77 "cannot compute sizeof (float)8149 See \`config.log' for more details" "$LINENO" 5; }8150 else8151 ac_cv_sizeof_float=08152 fi8153 fi8154 8155 fi8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&58157 $as_echo "$ac_cv_sizeof_float" >&6; }8158 8159 8160 8161 cat >>confdefs.h <<_ACEOF8162 #define SIZEOF_FLOAT $ac_cv_sizeof_float8163 _ACEOF8164 8165 8166 7744 8167 7745 # Save the values as shell variables so that we can substitute them 8168 7746 # into bltHash.h for situtations where there's no bltInt.h. 8169 8170 7747 8171 7748 LD_RPATH=""; … … 8181 7758 # CgGL headers and library 8182 7759 # pthread library 8183 # ffmpeg headers and library (started)8184 7760 # 8185 7761 … … 8187 7763 for dir in \ 8188 7764 ${exec_prefix} \ 8189 ${exec_prefix}/lib \ 8190 ${with_rappture} \ 8191 ${with_rappture}/lib ; do 7765 ${exec_prefix}/lib ; do 8192 7766 tclconfig="${dir}/tclConfig.sh" 8193 7767 if test -f "$tclconfig" ; then … … 8209 7783 fi 8210 7784 8211 RP_DIR=""8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rappture" >&58213 $as_echo_n "checking for rappture... " >&6; }8214 if test "$with_rappture" == "yes" ; then8215 for dir in "$exec_prefix" "/usr" ; do8216 if test -r "$dir/include/rappture2/rappture2.h" -a \8217 -r "$dir/lib/librappture.a"; then8218 RP_DIR="$dir"8219 RP_INC_SPEC="-I$dir/include -I$dir/include/rappture2"8220 RP_LIB_DIR="$dir/lib"8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dir" >&58222 $as_echo "$dir" >&6; }8223 break8224 fi8225 done8226 else8227 if test ! -d "$with_rappture" ; then8228 as_fn_error $? "--with-rappture: no such directory $with_rappture" "$LINENO" 58229 fi8230 RP_DIR=$with_rappture8231 RP_INC_SPEC="-I$with_rappture/include -I$with_rappture/include/rappture2"8232 RP_LIB_DIR="$with_rappture/lib"8233 fi8234 if test "x${RP_DIR}" = "x" ; then8235 as_fn_error $? "cannot find rappture.h and librappture2.a, try using --with-rappture" "$LINENO" 58236 else8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_rappture" >&58238 $as_echo "$with_rappture" >&6; }8239 fi8240 8241 # This could be temporary. We are assuming that we're using VTK 6+.8242 # Since VTK 6 hasn't been released, we will look it only in the8243 # Rappture build directories.8244 VTK_LIB_DIR=${libdir}8245 if test "$with_vtk" != "no" ; then8246 if test "$with_vtk" = "yes" ; then8247 for dir in vtk-6.{10,9,8,7,6,5,4,3,2,1,0} ; do8248 if test -d "${incdir}/$dir"; then8249 VTK_INC_SPEC="-I${incdir}/$dir"8250 break8251 fi8252 done8253 fi8254 fi8255 8256 if test "x$with_vtk_includes" != "x"; then8257 VTK_INC_SPEC=-I$with_vtk_includes8258 fi8259 8260 if test "x$with_vtk_libs" != "x"; then8261 VTK_LIB_DIR=$with_vtk_libs8262 VTK_LIB_SPEC="-L$with_vtk_libs"8263 fi8264 8265 save_CPPFLAGS=$CPPFLAGS8266 CPPFLAGS=$VTK_INC_SPEC8267 8268 for ac_header in vtkSmartPointer.h8269 do :8270 ac_fn_cxx_check_header_mongrel "$LINENO" "vtkSmartPointer.h" "ac_cv_header_vtkSmartPointer_h" "$ac_includes_default"8271 if test "x$ac_cv_header_vtkSmartPointer_h" = xyes; then :8272 cat >>confdefs.h <<_ACEOF8273 #define HAVE_VTKSMARTPOINTER_H 18274 _ACEOF8275 8276 else8277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find vtkSmartPointer.h" >&58278 $as_echo "$as_me: WARNING: cannot find vtkSmartPointer.h" >&2;}8279 fi8280 8281 done8282 8283 CPPFLAGS=$save_CPPFLAGS8284 8285 ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default"8286 if test "x$ac_cv_header_GL_glut_h" = xyes; then :8287 8288 fi8289 8290 7785 8291 7786 ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default" … … 8335 7830 8336 7831 8337 save_CPPFLAGS=$CPPFLAGS 8338 8339 8340 #-------------------------------------------------------------------- 8341 # search for ffmpeg executable 8342 #-------------------------------------------------------------------- 8343 if test "${with_ffmpeg}" != "no" ; then 8344 if test "${with_ffmpeg}" = "yes" ; then 8345 # Extract the first word of "ffmpeg", so it can be a program name with args. 8346 set dummy ffmpeg; ac_word=$2 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8348 $as_echo_n "checking for $ac_word... " >&6; } 8349 if ${ac_cv_path_FFMPEG+:} false; then : 8350 $as_echo_n "(cached) " >&6 8351 else 8352 case $FFMPEG in 8353 [\\/]* | ?:[\\/]*) 8354 ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path. 8355 ;; 8356 *) 8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8358 for as_dir in $PATH 8359 do 8360 IFS=$as_save_IFS 8361 test -z "$as_dir" && as_dir=. 8362 for ac_exec_ext in '' $ac_executable_extensions; do 8363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8364 ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext" 8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8366 break 2 8367 fi 8368 done 8369 done 8370 IFS=$as_save_IFS 8371 8372 ;; 8373 esac 8374 fi 8375 FFMPEG=$ac_cv_path_FFMPEG 8376 if test -n "$FFMPEG"; then 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5 8378 $as_echo "$FFMPEG" >&6; } 8379 else 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8381 $as_echo "no" >&6; } 8382 fi 8383 8384 8385 else 8386 # Extract the first word of "ffmpeg", so it can be a program name with args. 8387 set dummy ffmpeg; ac_word=$2 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8389 $as_echo_n "checking for $ac_word... " >&6; } 8390 if ${ac_cv_path_FFMPEG+:} false; then : 8391 $as_echo_n "(cached) " >&6 8392 else 8393 case $FFMPEG in 8394 [\\/]* | ?:[\\/]*) 8395 ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path. 8396 ;; 8397 *) 8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8399 as_dummy="${with_ffmpeg}/bin:${with_ffmpeg}" 8400 for as_dir in $as_dummy 8401 do 8402 IFS=$as_save_IFS 8403 test -z "$as_dir" && as_dir=. 8404 for ac_exec_ext in '' $ac_executable_extensions; do 8405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8406 ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext" 8407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8408 break 2 8409 fi 8410 done 8411 done 8412 IFS=$as_save_IFS 8413 8414 ;; 8415 esac 8416 fi 8417 FFMPEG=$ac_cv_path_FFMPEG 8418 if test -n "$FFMPEG"; then 8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5 8420 $as_echo "$FFMPEG" >&6; } 8421 else 8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8423 $as_echo "no" >&6; } 8424 fi 8425 8426 8427 fi 8428 if test "${FFMPEG}x" != "x" ; then 8429 8430 $as_echo "#define HAVE_FFMPEG 1" >>confdefs.h 8431 8432 fi 8433 fi 8434 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nVidia Cg installation" >&5 8436 $as_echo_n "checking for nVidia Cg installation... " >&6; } 8437 CG_DIR="" 8438 for dir in \ 8439 /opt/nvidia-cg-toolkit \ 8440 /usr/cg \ 8441 /usr 8442 do 8443 if test -r "$dir/include" ; then 8444 CG_DIR=$dir 8445 break 8446 fi 8447 done 8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CG_DIR}" >&5 8449 $as_echo "${CG_DIR}" >&6; } 8450 8451 CG_INC_SPEC="-I${CG_DIR}/include" 8452 8453 save_CPPFLAGS=$CPPFLAGS 8454 CPPFLAGS="${CG_INC_SPEC} $CPPFLAGS" 8455 for ac_header in Cg/cgGL.h 8456 do : 8457 ac_fn_cxx_check_header_mongrel "$LINENO" "Cg/cgGL.h" "ac_cv_header_Cg_cgGL_h" "$ac_includes_default" 8458 if test "x$ac_cv_header_Cg_cgGL_h" = xyes; then : 8459 cat >>confdefs.h <<_ACEOF 8460 #define HAVE_CG_CGGL_H 1 8461 _ACEOF 8462 8463 else 8464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find nVidia Cg headers" >&5 8465 $as_echo "$as_me: WARNING: cannot find nVidia Cg headers" >&2;} 8466 fi 8467 8468 done 8469 8470 CPPFLAGS=$save_CPPFLAGS 8471 8472 CG_LIB_DIR="" 8473 for dir in \ 8474 /opt/nvidia-cg-toolkit \ 8475 /usr/cg \ 8476 /usr 8477 do 8478 if test -r "$dir/lib" ; then 8479 CG_LIB_DIR=$dir/lib 8480 break 8481 fi 8482 if test -r "$dir/lib64" ; then 8483 CG_LIB_DIR=$dir/lib64 8484 break 8485 fi 8486 done 8487 8488 if test "${CG_LIB_DIR}" = "/usr/lib" ; then 8489 CG_INC_SPEC="" 8490 CG_LIB_SPEC="-lCg -lCgGL" 8491 else 8492 CG_LIB_SPEC="-L${CG_LIB_DIR} -lCg -lCgGL" 8493 LD_RPATH="$loader_run_path:${CG_LIB_DIR}" 8494 fi 8495 8496 SUBDIRS="nanoscale nanovis pymolproxy vtkvis" 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl nanovis/Doxyfile nanovis/Makefile nanovis/graphics/Makefile nanovis/imgLoaders/Makefile nanovis/newmat11/Makefile nanovis/util/Makefile nanovis/vrmath/Makefile pymolproxy/Makefile vtkvis/Doxyfile vtkvis/Makefile start_nanoscale.sh" 7832 SUBDIRS="nanoscale pymolproxy" 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl pymolproxy/Makefile start_nanoscale.sh" 8528 7843 8529 7844 cat >confcache <<\_ACEOF … … 9219 8534 do 9220 8535 case $ac_config_target in 9221 "nanovis/nvconf.h") CONFIG_HEADERS="$CONFIG_HEADERS nanovis/nvconf.h" ;;9222 8536 "nanoscale/config.h") CONFIG_HEADERS="$CONFIG_HEADERS nanoscale/config.h" ;; 9223 8537 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9224 8538 "nanoscale/Makefile") CONFIG_FILES="$CONFIG_FILES nanoscale/Makefile" ;; 9225 8539 "nanoscale/renderservers.tcl") CONFIG_FILES="$CONFIG_FILES nanoscale/renderservers.tcl" ;; 9226 "nanovis/Doxyfile") CONFIG_FILES="$CONFIG_FILES nanovis/Doxyfile" ;;9227 "nanovis/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/Makefile" ;;9228 "nanovis/graphics/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/graphics/Makefile" ;;9229 "nanovis/imgLoaders/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/imgLoaders/Makefile" ;;9230 "nanovis/newmat11/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/newmat11/Makefile" ;;9231 "nanovis/util/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/util/Makefile" ;;9232 "nanovis/vrmath/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/vrmath/Makefile" ;;9233 8540 "pymolproxy/Makefile") CONFIG_FILES="$CONFIG_FILES pymolproxy/Makefile" ;; 9234 "vtkvis/Doxyfile") CONFIG_FILES="$CONFIG_FILES vtkvis/Doxyfile" ;;9235 "vtkvis/Makefile") CONFIG_FILES="$CONFIG_FILES vtkvis/Makefile" ;;9236 8541 "start_nanoscale.sh") CONFIG_FILES="$CONFIG_FILES start_nanoscale.sh" ;; 9237 8542 -
trunk/packages/vizservers/configure.in
r4049 r4060 1 1 AC_PREREQ([2.60]) 2 AC_INIT( vizservers, 0.1, rappture@nanohub.org)2 AC_INIT([vizservers], [0.1], [rappture@nanohub.org]) 3 3 AC_CONFIG_AUX_DIR(cf) 4 AC_CONFIG_HEADERS([nano vis/nvconf.h nanoscale/config.h])4 AC_CONFIG_HEADERS([nanoscale/config.h]) 5 5 6 6 AC_ARG_WITH( … … 12 12 13 13 AC_ARG_WITH( 14 [rappture],15 [AS_HELP_STRING([--with-rappture[=DIR]],16 [location of rappture files lib/librappture.a and include/rappture.h @<:@default=/usr@:>@])],17 [with_rappture=$withval],18 [with_rappture=yes])19 20 AC_ARG_WITH(21 [vtk-includes],22 [AS_HELP_STRING([--with-vtk-includes=DIR],23 [VTK include files are in DIR])],24 [with_vtk_includes=$withval],25 [with_vtk_includes=""])26 27 AC_ARG_WITH(28 [vtk-libs],29 [AS_HELP_STRING([--with-vtk-libs=DIR],30 [VTK libraries are in DIR])],31 [with_vtk_libs=$withval],32 [with_vtk_libs=""])33 34 AC_ARG_WITH(35 [vtk],36 [AS_HELP_STRING([--with-vtk=VERSION],37 [Version of VTK required])],38 [with_vtk=$withval],39 [with_vtk=yes])40 41 AC_ARG_WITH(42 [ffmpeg],43 [AS_HELP_STRING([--with-ffmpeg[=DIR]],44 [location of ffmpeg @<:@default=yes@:>@])],45 [],46 [with_ffmpeg=yes])47 48 RP_LANG_PYTHON49 50 AC_ARG_WITH(51 14 [statsdir], 52 15 [AS_HELP_STRING([--with-statsdir=DIR], … … 55 18 [STATSDIR="/var/tmp/visservers"]) 56 19 57 VERSION=0.0.1 20 RP_LANG_PYTHON 58 21 59 22 #------------------------------------------------------------------------ … … 81 44 SC_CONFIG_CFLAGS 82 45 83 84 46 AC_PATH_X 85 47 … … 97 59 98 60 AC_C_BIGENDIAN 99 AC_CHECK_SIZEOF(int, 4)100 AC_CHECK_SIZEOF(long, 4)101 AC_CHECK_SIZEOF(long long, 8)102 AC_CHECK_SIZEOF(void *, 4)103 AC_CHECK_SIZEOF(float, 4)104 61 105 62 # Save the values as shell variables so that we can substitute them 106 63 # into bltHash.h for situtations where there's no bltInt.h. 107 108 64 109 65 LD_RPATH=""; … … 119 75 # CgGL headers and library 120 76 # pthread library 121 # ffmpeg headers and library (started)122 77 # 123 78 … … 125 80 for dir in \ 126 81 ${exec_prefix} \ 127 ${exec_prefix}/lib \ 128 ${with_rappture} \ 129 ${with_rappture}/lib ; do 82 ${exec_prefix}/lib ; do 130 83 tclconfig="${dir}/tclConfig.sh" 131 84 if test -f "$tclconfig" ; then … … 147 100 fi 148 101 149 RP_DIR=""150 AC_MSG_CHECKING([for rappture])151 if test "$with_rappture" == "yes" ; then152 for dir in "$exec_prefix" "/usr" ; do153 if test -r "$dir/include/rappture2/rappture2.h" -a \154 -r "$dir/lib/librappture.a"; then155 RP_DIR="$dir"156 RP_INC_SPEC="-I$dir/include -I$dir/include/rappture2"157 RP_LIB_DIR="$dir/lib"158 AC_MSG_RESULT([$dir])159 break160 fi161 done162 else163 if test ! -d "$with_rappture" ; then164 AC_MSG_ERROR([--with-rappture: no such directory $with_rappture])165 fi166 RP_DIR=$with_rappture167 RP_INC_SPEC="-I$with_rappture/include -I$with_rappture/include/rappture2"168 RP_LIB_DIR="$with_rappture/lib"169 fi170 if test "x${RP_DIR}" = "x" ; then171 AC_MSG_ERROR([cannot find rappture.h and librappture2.a, try using --with-rappture])172 else173 AC_MSG_RESULT([$with_rappture])174 fi175 176 # This could be temporary. We are assuming that we're using VTK 6+.177 # Since VTK 6 hasn't been released, we will look it only in the178 # Rappture build directories.179 VTK_LIB_DIR=${libdir}180 dnl Prefer our VTK installation over systems. --with-vtk overrides.181 if test "$with_vtk" != "no" ; then182 if test "$with_vtk" = "yes" ; then183 for dir in vtk-6.{10,9,8,7,6,5,4,3,2,1,0} ; do184 if test -d "${incdir}/$dir"; then185 VTK_INC_SPEC="-I${incdir}/$dir"186 break187 fi188 done189 fi190 fi191 192 if test "x$with_vtk_includes" != "x"; then193 VTK_INC_SPEC=-I$with_vtk_includes194 fi195 196 if test "x$with_vtk_libs" != "x"; then197 VTK_LIB_DIR=$with_vtk_libs198 VTK_LIB_SPEC="-L$with_vtk_libs"199 fi200 201 save_CPPFLAGS=$CPPFLAGS202 CPPFLAGS=$VTK_INC_SPEC203 AC_CHECK_HEADERS([vtkSmartPointer.h], [], [AC_MSG_WARN([cannot find vtkSmartPointer.h])])204 CPPFLAGS=$save_CPPFLAGS205 206 AC_CHECK_HEADER([GL/glut.h])207 102 AC_CHECK_HEADER([GL/glew.h]) 208 103 … … 212 107 AC_CHECK_FUNCS([accept4]) 213 108 214 save_CPPFLAGS=$CPPFLAGS 109 SUBDIRS="nanoscale pymolproxy" 215 110 216 217 #--------------------------------------------------------------------218 # search for ffmpeg executable219 #--------------------------------------------------------------------220 if test "${with_ffmpeg}" != "no" ; then221 if test "${with_ffmpeg}" = "yes" ; then222 AC_PATH_PROG(FFMPEG, ffmpeg)223 else224 AC_PATH_PROG(FFMPEG, ffmpeg, [], [${with_ffmpeg}/bin:${with_ffmpeg}])225 fi226 if test "${FFMPEG}x" != "x" ; then227 AC_DEFINE(HAVE_FFMPEG, 1, [nanovis can use ffmpeg to create videos.])228 fi229 fi230 231 AC_MSG_CHECKING([for nVidia Cg installation])232 CG_DIR=""233 for dir in \234 /opt/nvidia-cg-toolkit \235 /usr/cg \236 /usr237 do238 if test -r "$dir/include" ; then239 CG_DIR=$dir240 break241 fi242 done243 AC_MSG_RESULT([${CG_DIR}])244 245 CG_INC_SPEC="-I${CG_DIR}/include"246 247 save_CPPFLAGS=$CPPFLAGS248 CPPFLAGS="${CG_INC_SPEC} $CPPFLAGS"249 AC_CHECK_HEADERS([Cg/cgGL.h], [], AC_MSG_WARN([cannot find nVidia Cg headers]))250 CPPFLAGS=$save_CPPFLAGS251 252 CG_LIB_DIR=""253 for dir in \254 /opt/nvidia-cg-toolkit \255 /usr/cg \256 /usr257 do258 if test -r "$dir/lib" ; then259 CG_LIB_DIR=$dir/lib260 break261 fi262 if test -r "$dir/lib64" ; then263 CG_LIB_DIR=$dir/lib64264 break265 fi266 done267 268 if test "${CG_LIB_DIR}" = "/usr/lib" ; then269 CG_INC_SPEC=""270 CG_LIB_SPEC="-lCg -lCgGL"271 else272 CG_LIB_SPEC="-L${CG_LIB_DIR} -lCg -lCgGL"273 LD_RPATH="$loader_run_path:${CG_LIB_DIR}"274 fi275 276 SUBDIRS="nanoscale nanovis pymolproxy vtkvis"277 278 AC_SUBST(CFLAGS_DEBUG)279 AC_SUBST(CFLAGS_OPTIMIZE)280 AC_SUBST(CG_INC_SPEC)281 AC_SUBST(CG_LIB_SPEC)282 AC_SUBST(FFMPEG)283 111 AC_SUBST(LD_RPATH) 284 AC_SUBST(RP_DIR)285 AC_SUBST(RP_INC_SPEC)286 AC_SUBST(RP_LIB_DIR)287 AC_SUBST(SHLIB_CFLAGS)288 AC_SUBST(SHLIB_LD)289 AC_SUBST(SHLIB_LDFLAGS)290 AC_SUBST(SHLIB_SUFFIX)291 AC_SUBST(SIZEOF_FLOAT)292 AC_SUBST(SIZEOF_INT)293 AC_SUBST(SIZEOF_LONG)294 AC_SUBST(SIZEOF_LONG_LONG)295 AC_SUBST(SIZEOF_VOID_P)296 112 AC_SUBST(STATSDIR) 297 AC_SUBST(STLIB_LD)298 113 AC_SUBST(SUBDIRS) 299 114 AC_SUBST(PYTHON) … … 301 116 AC_SUBST(TCL_LIB_SPEC) 302 117 AC_SUBST(TCL_VERSION) 303 AC_SUBST(VERSION)304 AC_SUBST(VTK_INC_SPEC)305 AC_SUBST(VTK_LIB_DIR)306 118 307 119 AC_OUTPUT([ … … 309 121 nanoscale/Makefile \ 310 122 nanoscale/renderservers.tcl \ 311 nanovis/Doxyfile \312 nanovis/Makefile \313 nanovis/graphics/Makefile \314 nanovis/imgLoaders/Makefile \315 nanovis/newmat11/Makefile \316 nanovis/util/Makefile \317 nanovis/vrmath/Makefile \318 123 pymolproxy/Makefile \ 319 vtkvis/Doxyfile \320 vtkvis/Makefile \321 124 start_nanoscale.sh]) -
trunk/packages/vizservers/nanoscale/config.h.in
r2448 r4060 10 10 #undef HAVE_ARPA_INET_H 11 11 12 /* Define to 1 if you have the `avformat_alloc_context' function. */13 #undef HAVE_AVFORMAT_ALLOC_CONTEXT14 15 /* Define to 1 if you have the <Cg/cgGL.h> header file. */16 #undef HAVE_CG_CGGL_H17 18 /* Define to 1 if you have the <ffmpeg/avcodec.h> header file. */19 #undef HAVE_FFMPEG_AVCODEC_H20 21 /* Define to 1 if you have the <ffmpeg/avformat.h> header file. */22 #undef HAVE_FFMPEG_AVFORMAT_H23 24 /* Define to 1 if you have the <ffmpeg/avutil.h> header file. */25 #undef HAVE_FFMPEG_AVUTIL_H26 27 /* Define to 1 if you have the `img_convert' function. */28 #undef HAVE_IMG_CONVERT29 30 12 /* Define to 1 if you have the <inttypes.h> header file. */ 31 13 #undef HAVE_INTTYPES_H 32 33 /* Define to 1 if you have the `avcodec' library (-lavcodec). */34 #undef HAVE_LIBAVCODEC35 36 /* Define to 1 if you have the <libavcodec/avcodec.h> header file. */37 #undef HAVE_LIBAVCODEC_AVCODEC_H38 39 /* Define to 1 if you have the `avformat' library (-lavformat). */40 #undef HAVE_LIBAVFORMAT41 42 /* Define to 1 if you have the <libavformat/avformat.h> header file. */43 #undef HAVE_LIBAVFORMAT_AVFORMAT_H44 45 /* Define to 1 if you have the `avutil' library (-lavutil). */46 #undef HAVE_LIBAVUTIL47 48 /* Define to 1 if you have the <libavutil/avutil.h> header file. */49 #undef HAVE_LIBAVUTIL_AVUTIL_H50 51 /* Define to 1 if you have the `highgui' library (-lhighgui). */52 #undef HAVE_LIBHIGHGUI53 14 54 15 /* Define to 1 if you have the <memory.h> header file. */ … … 60 21 /* Define to 1 if you have the <netinet/in.h> header file. */ 61 22 #undef HAVE_NETINET_IN_H 62 63 /* Define to 1 if you have the <opencv/cv.h> header file. */64 #undef HAVE_OPENCV_CV_H65 66 /* Define to 1 if you have the <opencv/highgui.h> header file. */67 #undef HAVE_OPENCV_HIGHGUI_H68 23 69 24 /* Define to 1 if you have the <stdint.h> header file. */ … … 97 52 #undef HAVE_UNISTD_H 98 53 99 /* Define to 1 if you have the <vtkSmartPointer.h> header file. */100 #undef HAVE_VTKSMARTPOINTER_H101 102 54 /* Define to the address where bug reports for this package should be sent. */ 103 55 #undef PACKAGE_BUGREPORT … … 112 64 #undef PACKAGE_TARNAME 113 65 66 /* Define to the home page for this package. */ 67 #undef PACKAGE_URL 68 114 69 /* Define to the version of this package. */ 115 70 #undef PACKAGE_VERSION 116 117 /* The size of `float', as computed by sizeof. */118 #undef SIZEOF_FLOAT119 120 /* The size of `int', as computed by sizeof. */121 #undef SIZEOF_INT122 123 /* The size of `long', as computed by sizeof. */124 #undef SIZEOF_LONG125 126 /* The size of `long long', as computed by sizeof. */127 #undef SIZEOF_LONG_LONG128 129 /* The size of `void *', as computed by sizeof. */130 #undef SIZEOF_VOID_P131 71 132 72 /* Define to 1 if you have the ANSI C header files. */ -
trunk/packages/vizservers/nanovis/CmdProc.cpp
r4056 r4060 117 117 nv::GetOpFromObj(Tcl_Interp *interp, /* Interpreter to report errors to */ 118 118 int nSpecs, /* Number of specifications in array */ 119 CmdSpec *specs, 119 CmdSpec *specs, /* Op specification array */ 120 120 int operPos, /* Position of operation in argument 121 121 * list. */ -
trunk/packages/vizservers/nanovis/Makefile.in
r3876 r4060 54 54 VRMATH_LIB_SPEC = $(VRMATH_LIB) 55 55 56 VTK_VERSION = @VTK_VERSION@ 56 57 VTK_LIB_DIR = @VTK_LIB_DIR@ 57 VTK_INC_SPEC = @VTK_INC_SPEC@ 58 VTK_LIB_SPEC = \ 59 -lvtkIOCore-6.0 \ 60 -lvtkIOLegacy-6.0 \ 61 -lvtkFiltersCore-6.0 \ 62 -lvtkImagingHybrid-6.0 \ 63 -lvtkImagingCore-6.0 \ 64 -lvtkCommonCore-6.0 \ 65 -lvtkCommonDataModel-6.0 \ 66 -lvtkCommonExecutionModel-6.0 \ 67 -lvtkCommonMisc-6.0 \ 68 -lvtkCommonSystem-6.0 \ 69 -lvtkCommonTransforms-6.0 \ 70 -lvtkCommonMath-6.0 58 VTK_INC_DIR = @VTK_INC_DIR@ 59 VTK_INC_SPEC = -I$(VTK_INC_DIR)/vtk-$(VTK_VERSION) 60 VTK_LIB_SPEC = -L$(VTK_LIB_DIR) \ 61 -lvtkIOCore-$(VTK_VERSION) \ 62 -lvtkIOLegacy-$(VTK_VERSION) \ 63 -lvtkFiltersCore-$(VTK_VERSION) \ 64 -lvtkImagingHybrid-$(VTK_VERSION) \ 65 -lvtkImagingCore-$(VTK_VERSION) \ 66 -lvtkCommonCore-$(VTK_VERSION) \ 67 -lvtkCommonDataModel-$(VTK_VERSION) \ 68 -lvtkCommonExecutionModel-$(VTK_VERSION) \ 69 -lvtkCommonMisc-$(VTK_VERSION) \ 70 -lvtkCommonSystem-$(VTK_VERSION) \ 71 -lvtkCommonTransforms-$(VTK_VERSION) \ 72 -lvtkCommonMath-$(VTK_VERSION) 71 73 72 74 EXTRA_LIBS = -lm -lpthread … … 78 80 TCL_INC_SPEC = @TCL_INC_SPEC@ 79 81 80 LD_RUN_PATH = $( libdir):@LD_RPATH@82 LD_RUN_PATH = $(VTK_LIB_DIR):$(libdir):@LD_RPATH@ 81 83 82 84 SVN_VERSION = $(shell svnversion $(srcdir)) -
trunk/packages/vizservers/nanovis/nvconf.h.in
r3559 r4060 1 /* n anovis/nvconf.h.in. Generated from configure.in by autoheader. */1 /* nvconf.h.in. Generated from configure.in by autoheader. */ 2 2 3 3 /* Define if building universal (internal helper macro) */ … … 27 27 /* Define to 1 if you have the <netinet/in.h> header file. */ 28 28 #undef HAVE_NETINET_IN_H 29 30 /* Define to 1 if you have the <Python.h> header file. */31 #undef HAVE_PYTHON_H32 29 33 30 /* Define to 1 if you have the <stdint.h> header file. */ … … 82 79 #undef PACKAGE_VERSION 83 80 84 /* The size of `float', as computed by sizeof. */85 #undef SIZEOF_FLOAT86 87 /* The size of `int', as computed by sizeof. */88 #undef SIZEOF_INT89 90 /* The size of `long', as computed by sizeof. */91 #undef SIZEOF_LONG92 93 /* The size of `long long', as computed by sizeof. */94 #undef SIZEOF_LONG_LONG95 96 /* The size of `void *', as computed by sizeof. */97 #undef SIZEOF_VOID_P98 99 81 /* Define to 1 if you have the ANSI C header files. */ 100 82 #undef STDC_HEADERS -
trunk/packages/vizservers/pymolproxy/Makefile.in
r3403 r4060 12 12 TCL_INC_SPEC = @TCL_INC_SPEC@ 13 13 TCL_LIB_SPEC = @TCL_LIB_SPEC@ 14 RP_LIB_DIR = @RP_LIB_DIR@15 14 16 15 bindir = @bindir@ … … 24 23 srcdir = @srcdir@ 25 24 26 RP_DIR = @RP_DIR@27 25 INSTALL = @INSTALL@ 28 26 MKDIR_P = @MKDIR_P@ … … 38 36 PROXY2_OBJS = pymolproxy2.o md5.o 39 37 LIBS = $(TCL_LIB_SPEC) \ 40 -Wl,-rpath,$( RP_LIB_DIR)38 -Wl,-rpath,$(libdir) 41 39 42 40 SCRIPTS = $(srcdir)/scripts/box.py -
trunk/packages/vizservers/vtkvis/LIC.cpp
r3999 r4060 33 33 GraphicsObject(), 34 34 _sliceAxis(Z_AXIS), 35 _colorMap(NULL) 35 _colorMap(NULL), 36 _resolution(128) 36 37 { 37 38 } … … 230 231 int xdim, ydim, zdim; 231 232 double origin[3], spacing[3]; 233 int res = _resolution; 232 234 if (minDir == 0) { 233 235 xdim = 1; 234 ydim = 128;235 zdim = 128;236 ydim = res; 237 zdim = res; 236 238 origin[0] = bounds[0] + xSize/2.; 237 239 origin[1] = bounds[2]; … … 242 244 _sliceAxis = X_AXIS; 243 245 } else if (minDir == 1) { 244 xdim = 128;246 xdim = res; 245 247 ydim = 1; 246 zdim = 128;248 zdim = res; 247 249 origin[0] = bounds[0]; 248 250 origin[1] = bounds[2] + ySize/2.; … … 253 255 _sliceAxis = Y_AXIS; 254 256 } else { 255 xdim = 128;256 ydim = 128;257 xdim = res; 258 ydim = res; 257 259 zdim = 1; 258 260 origin[0] = bounds[0]; … … 279 281 } 280 282 _lic->Update(); 281 vtkSmartPointer<vtkImageCast> cast = vtkSmartPointer<vtkImageCast>::New(); 282 cast->SetInputConnection(_probeFilter->GetOutputPort()); 283 cast->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, 284 _probeFilter->GetValidPointMaskArrayName()); 285 cast->SetOutputScalarTypeToUnsignedChar(); 286 vtkSmartPointer<vtkImageMask> mask = vtkSmartPointer<vtkImageMask>::New(); 287 mask->SetInputConnection(0, _lic->GetOutputPort()); 288 mask->SetInputConnection(1, cast->GetOutputPort()); 289 _mapper->SetInputConnection(mask->GetOutputPort()); 283 if (1) { 284 vtkSmartPointer<vtkImageData> imgData = _probeFilter->GetImageDataOutput(); 285 imgData->GetPointData()->SetActiveScalars(_probeFilter->GetValidPointMaskArrayName()); 286 vtkSmartPointer<vtkImageCast> maskCast = vtkSmartPointer<vtkImageCast>::New(); 287 maskCast->SetInputData(imgData); 288 //maskCast->SetInputConnection(_probeFilter->GetOutputPort()); 289 //maskCast->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, 290 // _probeFilter->GetValidPointMaskArrayName()); 291 maskCast->SetOutputScalarTypeToUnsignedChar(); 292 vtkSmartPointer<vtkImageCast> licCast = vtkSmartPointer<vtkImageCast>::New(); 293 licCast->SetInputConnection(_lic->GetOutputPort()); 294 licCast->SetOutputScalarTypeToDouble(); 295 vtkSmartPointer<vtkImageMask> mask = vtkSmartPointer<vtkImageMask>::New(); 296 mask->SetInputConnection(0, licCast->GetOutputPort()); 297 mask->SetInputConnection(1, maskCast->GetOutputPort()); 298 _mapper->SetInputConnection(mask->GetOutputPort()); 299 } else { 300 // Mask not working in VTK 6.1? 301 _mapper->SetInputConnection(_lic->GetOutputPort()); 302 } 290 303 } else { 291 304 // DataSet is a 3D PolyData with cells … … 371 384 assert(vtkDataSet::SafeDownCast(_probeFilter->GetSource()) != NULL); 372 385 _dataSet->getBounds(bounds); 373 int dim = 128;386 int dim = _resolution; 374 387 375 388 switch (axis) { -
trunk/packages/vizservers/vtkvis/LIC.h
r3621 r4060 67 67 Axis _sliceAxis; 68 68 ColorMap *_colorMap; 69 int _resolution; 69 70 70 71 vtkSmartPointer<vtkLookupTable> _lut; -
trunk/packages/vizservers/vtkvis/Makefile.in
r4040 r4060 40 40 TCL_INC_SPEC = @TCL_INC_SPEC@ 41 41 42 VTK_VERSION = @VTK_VERSION@ 42 43 VTK_LIB_DIR = @VTK_LIB_DIR@ 43 VTK_INC_ SPEC = @VTK_INC_SPEC@44 VTK_ VERSION = 6.045 VTK_LIB_SPEC = \44 VTK_INC_DIR = @VTK_INC_DIR@ 45 VTK_INC_SPEC = -I$(VTK_INC_DIR)/vtk-$(VTK_VERSION) 46 VTK_LIB_SPEC = -L$(VTK_LIB_DIR) \ 46 47 -lvtkDomainsChemistry-$(VTK_VERSION) \ 47 48 -lvtkIOCore-$(VTK_VERSION) \ … … 84 85 endif 85 86 86 LD_RUN_PATH = $( libdir)87 LD_RUN_PATH = $(VTK_LIB_DIR):$(libdir) 87 88 88 89 LIBS = \
Note: See TracChangeset
for help on using the changeset viewer.