2016-04-20

Buiild tclBlend on Windows 7 (64bit)

使用 MSYS2 和 JDK8,需要更新 tcljava.m4,加入下列的段落:

        # Sun JDK 1.4 and 1.5 for Win32 (server JVM)

        F=lib/jvm.lib
        if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
            AC_MSG_LOG([Looking for $ac_java_jvm_dir/$F], 1)
            if test -f $ac_java_jvm_dir/$F ; then
                # jre/bin/client must contain jvm.dll
                # jre/bin/server directory could also contain jvm.dll,
                # just assume the user wants to use the server JVM.
                DLL=jre/bin/server/jvm.dll
                if test -f $ac_java_jvm_dir/$DLL ; then
                    AC_MSG_LOG([Found $ac_java_jvm_dir/$F], 1)
                    D1=$ac_java_jvm_dir/jre/bin
                    D2=$ac_java_jvm_dir/jre/bin/server
                    ac_java_jvm_jni_lib_runtime_path="${D1}:${D2}"
                    ac_java_jvm_jni_lib_flags="$ac_java_jvm_dir/$F"
                fi
            fi
        fi 

原來的只有 Sun JDK 1.4 and 1.5 for Win32 (client JVM),所以 server JVM 要自己加入。如果執行 autoconf 有困難,可以考慮直接修改 configure,找到 Sun JDK 1.4 and 1.5 for Win32 (client JVM) 的部份,把 jre/bin/client 的 client 改為 server。

其它的部份都一樣

沒有留言: