Andereoo / TkinterWeb

Python bindings for Tkhtml.
MIT License
146 stars 16 forks source link

How to compile htmlwidget.MODIFIED.zip? #86

Closed Zamy846692 closed 10 months ago

Zamy846692 commented 10 months ago

Attempted to follow instructions on https://github.com/Andereoo/TkinterWeb/issues/26 and compile tkhtml on Windows 10 64-bit, using MinGW in Git Bash. Tried:

TCL=C:/MinGW
export PATH=$TCL/bin:$PATH
cd Downloads
#unzip htmlwidget.MODIFIED.zip && mv "htmlwidget (MODIFIED)" htmlwidget
cd htmlwidget/tkhtml
tclsh src/cssprop.tcl && tclsh src/tokenlist.txt && tclsh src/mkdefaultstyle.tcl > htmldefaultstyle.c
mv *.c src && mv *.h src
mkdir build
cd build
TCLCON=C:/Users/[X]/AppData/Local/Programs/Git/mingw64/lib
../configure CC="gcc -static-libgcc" --with-tcl=$TCLCON --with-tk=$TCLCON --with-tclinclude=$TCL/include --with-tkinclude=$TCL/include

# On 64-bit Windows, open Makefile and set  SHLIB_LD = gcc -static-libgcc -pipe -shared

make binaries

Got:

../src/css.c: In function 'rgbToColor':
../src/css.c:429:9: warning: variable 'n' set but not used [-Wunused-but-set-variable]
     int n = 0;
         ^
At top level:
../src/css.c:32:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: css.c,v 1.139 2007/12/16 11:57:43 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/cssdynamic.c` -o cssdynamic.o
../src/cssdynamic.c:5:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: cssdynamic.c,v 1.12 2007/06/10 07:53:03 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/cssparser.c` -o cssparser.o
../src/cssparser.c:30:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: cssparser.c,v 1.8 2008/01/19 06:08:13 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/csssearch.c` -o csssearch.o
../src/csssearch.c:5:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: csssearch.c,v 1.7 2007/10/27 08:37:50 hkoba Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmldraw.c` -o htmldraw.o
../src/htmldraw.c: In function 'searchCanvas':
../src/htmldraw.c:2434:9: warning: variable 'bSeenFixedMarker' set but not used [-Wunused-but-set-variable]
     int bSeenFixedMarker = 0;
         ^~~~~~~~~~~~~~~~
At top level:
../src/htmldraw.c:33:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: htmldraw.c,v 1.208 2008/02/14 08:43:49 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmlfloat.c` -o htmlfloat.o
../src/htmlfloat.c:107:1: warning: 'floatListPrint' defined but not used [-Wunused-function]
 floatListPrint (HtmlFloatList *pList)
 ^~~~~~~~~~~~~~
../src/htmlfloat.c:40:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: htmlfloat.c,v 1.21 2006/10/27 15:19:18 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmlhash.c` -o htmlhash.o
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmlimage.c` -o htmlimage.o
../src/htmlimage.c: In function 'HtmlImageImage':
../src/htmlimage.c:678:17: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
             int rc;
                 ^~
../src/htmlimage.c: In function 'HtmlImagePixmap':
../src/htmlimage.c:924:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
         int rc;
             ^~
At top level:
../src/htmlimage.c:39:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: htmlimage.c,v 1.70 2008/01/20 06:17:49 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmlinline.c` -o htmlinline.o
../src/htmlinline.c: In function 'inlineBoxMetrics':
../src/htmlinline.c:254:9: warning: variable 'iTopLeading' set but not used [-Wunused-but-set-variable]
     int iTopLeading;
         ^~~~~~~~~~~
../src/htmlinline.c: In function 'inlineContextAddNewLine':
../src/htmlinline.c:685:16: warning: variable 'pBox' set but not used [-Wunused-but-set-variable]
     InlineBox *pBox;
                ^~~~
../src/htmlinline.c: In function 'HtmlInlineContextAddText':
../src/htmlinline.c:1652:13: warning: variable 'color' set but not used [-Wunused-but-set-variable]
     XColor *color;                 /* Color to render in */
             ^~~~~
At top level:
../src/htmlinline.c:35:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: htmlinline.c,v 1.60 2008/01/12 14:23:05 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmllayout.c` -o htmllayout.o
../src/htmllayout.c: In function 'drawReplacementContent':
../src/htmllayout.c:1618:17: warning: variable 'iOffset' set but not used [-Wunused-but-set-variable]
             int iOffset;
                 ^~~~~~~
../src/htmllayout.c:1617:22: warning: variable 'pWin' set but not used [-Wunused-but-set-variable]
             Tcl_Obj *pWin = 0;
                      ^~~~
../src/htmllayout.c: In function 'normalFlowLayout':
../src/htmllayout.c:3345:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
     int rc = 0;                       /* Return Code */
         ^~
At top level:
../src/htmllayout.c:50:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: htmllayout.c,v 1.270 2008/01/07 04:48:02 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmlparse.c` -o htmlparse.o
../src/htmlparse.c: In function 'HtmlTokenize':
../src/htmlparse.c:1028:25: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
                     int rc;
                         ^~
At top level:
../src/htmlparse.c:33:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static char const rcsid[] =
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmlprop.c` -o htmlprop.o
../src/htmlprop.c: In function 'propertyValuesSetColor':
../src/htmlprop.c:1186:67: warning: passing argument 2 of 'getInheritPointer' from incompatible pointer type [-Wincompatible-pointer-types]
         HtmlColor **pInherit = (HtmlColor **)getInheritPointer(p, pCVar);
                                                                   ^~~~~
../src/htmlprop.c:1033:1: note: expected 'unsigned char *' but argument is of type 'HtmlColor ** {aka struct HtmlColor **}'
 getInheritPointer (HtmlComputedValuesCreator *p, unsigned char *pVar)
 ^~~~~~~~~~~~~~~~~
../src/htmlprop.c: In function 'propertyValuesSetSize':
../src/htmlprop.c:1689:61: warning: passing argument 2 of 'getInheritPointer' from incompatible pointer type [-Wincompatible-pointer-types]
                 int *pInherit = (int *)getInheritPointer(p, pIVal);
                                                             ^~~~~
../src/htmlprop.c:1033:1: note: expected 'unsigned char *' but argument is of type 'int *'
 getInheritPointer (HtmlComputedValuesCreator *p, unsigned char *pVar)
 ^~~~~~~~~~~~~~~~~
../src/htmlprop.c: In function 'HtmlComputedValuesCompare':
../src/htmlprop.c:3357:54: warning: self-comparison always evaluates to false [-Wtautological-compare]
         (!pV1->eVerticalAlign && pV1->iVerticalAlign != pV1->iVerticalAlign)
                                                      ^~
At top level:
../src/htmlprop.c:39:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: htmlprop.c,v 1.135 2007/12/05 10:11:12 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmlstyle.c` -o htmlstyle.o
../src/htmlstyle.c:39:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: htmlstyle.c,v 1.61 2007/12/12 04:50:29 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmltagdb.c` -o htmltagdb.o
../src/htmltagdb.c:40:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: htmltagdb.c,v 1.11 2007/11/11 11:00:48 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmltable.c` -o htmltable.o
../src/htmltable.c: In function 'rowGroupIterate':
../src/htmltable.c:1158:31: warning: passing argument 2 of 'rowIterate' from incompatible pointer type [-Wincompatible-pointer-types]
             rowIterate(pTree, &sRow, p);
                               ^
../src/htmltable.c:1061:1: note: expected 'HtmlNode * {aka struct HtmlNode *}' but argument is of type 'HtmlElementNode * {aka struct HtmlElementNode *}'
 rowIterate (HtmlTree *pTree, HtmlNode *pNode, RowIterateContext *p)
 ^~~~~~~~~~
../src/htmltable.c: In function 'tableIterate':
../src/htmltable.c:1284:36: warning: passing argument 2 of 'rowGroupIterate' from incompatible pointer type [-Wincompatible-pointer-types]
             rowGroupIterate(pTree, &sRowGroup, &sRowContext);
                                    ^
../src/htmltable.c:1118:1: note: expected 'HtmlNode * {aka struct HtmlNode *}' but argument is of type 'HtmlElementNode * {aka struct HtmlElementNode *}'
 rowGroupIterate (HtmlTree *pTree, HtmlNode *pNode, RowIterateContext *p)
 ^~~~~~~~~~~~~~~
At top level:
../src/htmltable.c:37:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: htmltable.c,v 1.124 2007/11/03 11:23:16 danielk1977 Exp $";
                   ^~~~~
../src/htmltable.c: In function 'tableColWidthMultiSpan':
../src/htmltable.c:517:63: warning: 'req.x.iVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
             (colspan == nPercentWidth || fTotalPercent > req.x.fVal)
                                                          ~~~~~^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmltcl.c` -o htmltcl.o
../src/htmltcl.c: In function 'runLayoutEngine':
../src/htmltcl.c:444:17: warning: variable 'pD' set but not used [-Wunused-but-set-variable]
     HtmlDamage *pD;
                 ^~
../src/htmltcl.c: In function 'HtmlCallbackDamageNode':
../src/htmltcl.c:873:40: warning: passing argument 3 of 'HtmlWalkTree' from incompatible pointer type [-Wincompatible-pointer-types]
             HtmlWalkTree(pTree, pNode, setSnapshotId, 0);
                                        ^~~~~~~~~~~~~
In file included from ../src/htmltcl.c:42:0:
../src/html.h:736:5: note: expected 'html_walk_tree_cb {aka int (*)(struct HtmlTree *, struct HtmlNode *, void *)}' but argument is of type 'int (*)(HtmlTree *, HtmlNode *) {aka int (*)(struct HtmlTree *, struct HtmlNode *)}'
 int HtmlWalkTree(HtmlTree*, HtmlNode *, html_walk_tree_cb, ClientData);
     ^~~~~~~~~~~~
../src/htmltcl.c: In function 'viewCommon':
../src/htmltcl.c:1814:14: warning: variable 'pScrollCommand' set but not used [-Wunused-but-set-variable]
     Tcl_Obj *pScrollCommand;
              ^~~~~~~~~~~~~~
../src/htmltcl.c: In function 'Tkhtml_Init':
../src/htmltcl.c:2935:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
     int rc;
         ^~
At top level:
../src/htmltcl.c:33:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static char const rcsid[] = "@(#) $Id: htmltcl.c,v 1.207 2008/01/16 06:29:27 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmltree.c` -o htmltree.o
../src/htmltree.c: In function 'fragmentAddElement':
../src/htmltree.c:3078:31: warning: passing argument 2 of 'implicitCloseCount' from incompatible pointer type [-Wincompatible-pointer-types]
     implicitCloseCount(pTree, pFragment->pCurrent, eType, &nClose);
                               ^~~~~~~~~
../src/htmltree.c:123:1: note: expected 'HtmlNode * {aka struct HtmlNode *}' but argument is of type 'HtmlElementNode * {aka struct HtmlElementNode *}'
 implicitCloseCount (HtmlTree *pTree, HtmlNode *pCurrent, int eTag, int *pNClose)
 ^~~~~~~~~~~~~~~~~~
../src/htmltree.c:3108:37: warning: passing argument 2 of 'nodeHandlerCallbacks' from incompatible pointer type [-Wincompatible-pointer-types]
         nodeHandlerCallbacks(pTree, pFragment->pCurrent);
                                     ^~~~~~~~~
../src/htmltree.c:465:1: note: expected 'HtmlNode * {aka struct HtmlNode *}' but argument is of type 'HtmlElementNode * {aka struct HtmlElementNode *}'
 nodeHandlerCallbacks (HtmlTree *pTree, HtmlNode *pNode)
 ^~~~~~~~~~~~~~~~~~~~
../src/htmltree.c: In function 'fragmentAddClosingTag':
../src/htmltree.c:3122:24: warning: passing argument 1 of 'explicitCloseCount' from incompatible pointer type [-Wincompatible-pointer-types]
     explicitCloseCount(p->pCurrent, eType, zType, &nClose);
                        ^
../src/htmltree.c:93:1: note: expected 'HtmlNode * {aka struct HtmlNode *}' but argument is of type 'HtmlElementNode * {aka struct HtmlElementNode *}'
 explicitCloseCount (
 ^~~~~~~~~~~~~~~~~~
../src/htmltree.c:3125:37: warning: passing argument 2 of 'nodeHandlerCallbacks' from incompatible pointer type [-Wincompatible-pointer-types]
         nodeHandlerCallbacks(pTree, p->pCurrent);
                                     ^
../src/htmltree.c:465:1: note: expected 'HtmlNode * {aka struct HtmlNode *}' but argument is of type 'HtmlElementNode * {aka struct HtmlElementNode *}'
 nodeHandlerCallbacks (HtmlTree *pTree, HtmlNode *pNode)
 ^~~~~~~~~~~~~~~~~~~~
../src/htmltree.c: In function 'HtmlParseFragment':
../src/htmltree.c:3150:37: warning: passing argument 2 of 'nodeHandlerCallbacks' from incompatible pointer type [-Wincompatible-pointer-types]
         nodeHandlerCallbacks(pTree, sContext.pCurrent);
                                     ^~~~~~~~
../src/htmltree.c:465:1: note: expected 'HtmlNode * {aka struct HtmlNode *}' but argument is of type 'HtmlElementNode * {aka struct HtmlElementNode *}'
 nodeHandlerCallbacks (HtmlTree *pTree, HtmlNode *pNode)
 ^~~~~~~~~~~~~~~~~~~~
At top level:
../src/htmltree.c:39:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: htmltree.c,v 1.161 2008/02/14 08:39:14 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/swproc.c` -o swproc.o
../src/swproc.c:7:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: swproc.c,v 1.6 2006/06/10 12:38:38 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/restrack.c` -o restrack.o
../src/restrack.c:64:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static const char rcsid[] = "$Id: restrack.c,v 1.13 2007/12/12 04:50:29 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmldecode.c` -o htmldecode.o
../src/htmldecode.c:33:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=]
 static char const rcsid[] = "@(#) $Id: htmldecode.c,v 1.9 2008/01/09 06:49:37 danielk1977 Exp $";
                   ^~~~~
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmltext.c` -o htmltext.o
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmlutil.c` -o htmlutil.o
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/cssprop.c` -o cssprop.o
rm -f libTkhtml3.0
gcc -static-libgcc -pipe -shared -o libTkhtml3.0 css.o cssdynamic.o cssparser.o csssearch.o htmldraw.o htmlfloat.o htmlhash.o htmlimage.o htmlinline.o htmllayout.o htmlparse.o htmlprop.o htmlstyle.o htmltagdb.o htmltable.o htmltcl.o htmltree.o swproc.o restrack.o htmldecode.o htmltext.o htmlutil.o cssprop.o -L/mingw64/lib -ltclstub86 -L/mingw64/lib -ltkstub86
css.o:css.c:(.text+0x11): undefined reference to `tclStubsPtr'
css.o:css.c:(.text+0xcf): more undefined references to `tclStubsPtr' follow
htmldraw.o:htmldraw.c:(.text+0x965): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x9bb): undefined reference to `tkIntXlibStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x9cc): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0xab2): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0xc2b): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0xc89): undefined reference to `tkIntXlibStubsPtr'
htmldraw.o:htmldraw.c:(.text+0xc9b): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0xe22): undefined reference to `tclStubsPtr'
htmldraw.o:htmldraw.c:(.text+0xef6): undefined reference to `tclStubsPtr'
htmldraw.o:htmldraw.c:(.text+0xf08): undefined reference to `tclStubsPtr'
htmldraw.o:htmldraw.c:(.text+0xf44): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0xf8b): undefined reference to `tkIntXlibStubsPtr'
htmldraw.o:htmldraw.c:(.text+0xff7): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x1030): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x1088): undefined reference to `tkIntXlibStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x1093): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x12fd): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x1388): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x1408): undefined reference to `tclStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x15e3): more undefined references to `tclStubsPtr' follow
htmldraw.o:htmldraw.c:(.text+0x19cf): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x1a3b): undefined reference to `tkIntXlibStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x1a50): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x1b58): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x2033): undefined reference to `tclStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x275b): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x2787): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x27ed): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x27f8): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x287c): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x28bd): undefined reference to `tkIntXlibStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x28cc): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x2a00): more undefined references to `tkStubsPtr' follow
htmldraw.o:htmldraw.c:(.text+0x310b): undefined reference to `tclStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x3b85): more undefined references to `tclStubsPtr' follow
htmldraw.o:htmldraw.c:(.text+0x49ef): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x4a37): undefined reference to `tkIntXlibStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x4a93): undefined reference to `tclStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x4c0a): more undefined references to `tclStubsPtr' follow
htmldraw.o:htmldraw.c:(.text+0x4cd9): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x4e0f): undefined reference to `tclStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x4e38): more undefined references to `tclStubsPtr' follow
htmldraw.o:htmldraw.c:(.text+0x55c4): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x55d5): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x566a): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x5754): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x57b8): undefined reference to `tkIntXlibStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x5847): undefined reference to `tkStubsPtr'
htmldraw.o:htmldraw.c:(.text+0x58d7): more undefined references to `tkStubsPtr' follow
htmlfloat.o:htmlfloat.c:(.text+0x1e4): undefined reference to `tclStubsPtr'
htmlfloat.o:htmlfloat.c:(.text+0x24c): more undefined references to `tclStubsPtr' follow
htmlimage.o:htmlimage.c:(.text+0x17a): undefined reference to `tclStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x1d1): more undefined references to `tclStubsPtr' follow
htmlimage.o:htmlimage.c:(.text+0x35d): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x9b1): undefined reference to `tclStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x9c1): more undefined references to `tclStubsPtr' follow
htmlimage.o:htmlimage.c:(.text+0xafe): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0xd49): undefined reference to `tclStubsPtr'
htmlimage.o:htmlimage.c:(.text+0xea8): more undefined references to `tclStubsPtr' follow
htmlimage.o:htmlimage.c:(.text+0xef6): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0xf0e): undefined reference to `tclStubsPtr'
htmlimage.o:htmlimage.c:(.text+0xf37): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x107b): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x10c0): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x1183): undefined reference to `tclStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x118e): more undefined references to `tclStubsPtr' follow
htmlimage.o:htmlimage.c:(.text+0x13f0): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x1404): undefined reference to `tclStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x148c): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x1592): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x15af): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x162d): undefined reference to `tkIntXlibStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x1657): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x1770): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x1781): undefined reference to `tclStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x17a8): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x17cb): undefined reference to `tclStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x17eb): undefined reference to `tclStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x17fe): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x180d): undefined reference to `tclStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x182f): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x183e): undefined reference to `tkStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x1ae1): undefined reference to `tclStubsPtr'
htmlimage.o:htmlimage.c:(.text+0x1b18): more undefined references to `tclStubsPtr' follow
htmlinline.o:htmlinline.c:(.text+0x21d0): undefined reference to `tkStubsPtr'
htmlinline.o:htmlinline.c:(.text+0x2207): undefined reference to `tclStubsPtr'
htmlinline.o:htmlinline.c:(.text+0x246d): more undefined references to `tclStubsPtr' follow
htmllayout.o:htmllayout.c:(.text+0x14bf): undefined reference to `tkStubsPtr'
htmllayout.o:htmllayout.c:(.text+0x167d): undefined reference to `tclStubsPtr'
htmllayout.o:htmllayout.c:(.text+0x16c4): more undefined references to `tclStubsPtr' follow
htmllayout.o:htmllayout.c:(.text+0x245b): undefined reference to `tkStubsPtr'
htmllayout.o:htmllayout.c:(.text+0x2bd3): undefined reference to `tclStubsPtr'
htmllayout.o:htmllayout.c:(.text+0x3b36): more undefined references to `tclStubsPtr' follow
htmllayout.o:htmllayout.c:(.text+0x6599): undefined reference to `tkStubsPtr'
htmlparse.o:htmlparse.c:(.text+0xe60): undefined reference to `tclStubsPtr'
htmlparse.o:htmlparse.c:(.text+0xe6f): more undefined references to `tclStubsPtr' follow
htmlprop.o:htmlprop.c:(.text+0x730): undefined reference to `tkStubsPtr'
htmlprop.o:htmlprop.c:(.text+0x791): undefined reference to `tclStubsPtr'
htmlprop.o:htmlprop.c:(.text+0x8ff): undefined reference to `tclStubsPtr'
htmlprop.o:htmlprop.c:(.text+0x915): undefined reference to `tclStubsPtr'
htmlprop.o:htmlprop.c:(.text+0x94f): undefined reference to `tclStubsPtr'
htmlprop.o:htmlprop.c:(.text+0x965): undefined reference to `tclStubsPtr'
htmlprop.o:htmlprop.c:(.text+0x9c0): more undefined references to `tclStubsPtr' follow
htmlprop.o:htmlprop.c:(.text+0x9d5): undefined reference to `tkStubsPtr'
htmlprop.o:htmlprop.c:(.text+0x192f): undefined reference to `tclStubsPtr'
htmlprop.o:htmlprop.c:(.text+0x1a9b): more undefined references to `tclStubsPtr' follow
htmlprop.o:htmlprop.c:(.text+0x2f3d): undefined reference to `tkStubsPtr'
htmlprop.o:htmlprop.c:(.text+0x3813): undefined reference to `tclStubsPtr'
htmlprop.o:htmlprop.c:(.text+0x384d): more undefined references to `tclStubsPtr' follow
htmlprop.o:htmlprop.c:(.text+0x39dd): undefined reference to `tkStubsPtr'
htmlprop.o:htmlprop.c:(.text+0x3c14): undefined reference to `tclStubsPtr'
htmlprop.o:htmlprop.c:(.text+0x3c3b): more undefined references to `tclStubsPtr' follow
htmlstyle.o:htmlstyle.c:(.text+0x472): undefined reference to `tkStubsPtr'
htmlstyle.o:htmlstyle.c:(.text+0x610): undefined reference to `tclStubsPtr'
htmlstyle.o:htmlstyle.c:(.text+0x6b0): more undefined references to `tclStubsPtr' follow
htmltcl.o:htmltcl.c:(.text+0x8ff): undefined reference to `tkStubsPtr'
htmltcl.o:htmltcl.c:(.text+0xa81): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0xc3a): more undefined references to `tclStubsPtr' follow
htmltcl.o:htmltcl.c:(.text+0x1f0e): undefined reference to `tkStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x23d4): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x2468): more undefined references to `tclStubsPtr' follow
htmltcl.o:htmltcl.c:(.text+0x2925): undefined reference to `tkStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x297c): more undefined references to `tkStubsPtr' follow
htmltcl.o:htmltcl.c:(.text+0x2b52): undefined reference to `tkStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x2c2a): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x2c53): more undefined references to `tclStubsPtr' follow
htmltcl.o:htmltcl.c:(.text+0x2da6): undefined reference to `tkStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x2dc7): more undefined references to `tkStubsPtr' follow
htmltcl.o:htmltcl.c:(.text+0x2e66): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x2e82): more undefined references to `tclStubsPtr' follow
htmltcl.o:htmltcl.c:(.text+0x2f02): undefined reference to `tkStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x2f27): undefined reference to `tkStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x2f7f): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x2f9f): undefined reference to `tkStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x2fd4): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x2ff7): undefined reference to `tkStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x3002): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x30c1): undefined reference to `tkIntStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x3295): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x32a0): more undefined references to `tclStubsPtr' follow
htmltcl.o:htmltcl.c:(.text+0x349c): undefined reference to `Tcl_InitStubs'
htmltcl.o:htmltcl.c:(.text+0x34bc): undefined reference to `Tk_InitStubs'
htmltcl.o:htmltcl.c:(.text+0x34c9): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x34fc): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x351f): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x354d): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x357b): undefined reference to `tclStubsPtr'
htmltcl.o:htmltcl.c:(.text+0x35a9): more undefined references to `tclStubsPtr' follow
htmltree.o:htmltree.c:(.text+0x545): undefined reference to `tkStubsPtr'
htmltree.o:htmltree.c:(.text+0x5a0): undefined reference to `tclStubsPtr'
htmltree.o:htmltree.c:(.text+0x884): more undefined references to `tclStubsPtr' follow
htmltree.o:htmltree.c:(.text+0x20f4): undefined reference to `tkStubsPtr'
htmltree.o:htmltree.c:(.text+0x24b4): undefined reference to `tclStubsPtr'
htmltree.o:htmltree.c:(.text+0x24dc): more undefined references to `tclStubsPtr' follow
htmltree.o:htmltree.c:(.text+0x3599): undefined reference to `tkStubsPtr'
htmltree.o:htmltree.c:(.text+0x378a): undefined reference to `tclStubsPtr'
htmltree.o:htmltree.c:(.text+0x37a4): more undefined references to `tclStubsPtr' follow
htmltree.o:htmltree.c:(.text+0x3caf): undefined reference to `tkStubsPtr'
htmltree.o:htmltree.c:(.text+0x3ec1): undefined reference to `tclStubsPtr'
htmltree.o:htmltree.c:(.text+0x3f06): more undefined references to `tclStubsPtr' follow
htmltext.o:htmltext.c:(.text+0x6ea): undefined reference to `tkStubsPtr'
htmltext.o:htmltext.c:(.text+0x712): undefined reference to `tkStubsPtr'
htmltext.o:htmltext.c:(.text+0xf07): undefined reference to `tclStubsPtr'
htmltext.o:htmltext.c:(.text+0xf40): more undefined references to `tclStubsPtr' follow
htmltext.o:htmltext.c:(.text+0x1115): undefined reference to `tkStubsPtr'
htmltext.o:htmltext.c:(.text+0x126d): undefined reference to `tclStubsPtr'
htmltext.o:htmltext.c:(.text+0x12d7): more undefined references to `tclStubsPtr' follow
htmltext.o:htmltext.c:(.text+0x1348): undefined reference to `tkStubsPtr'
htmltext.o:htmltext.c:(.text+0x13de): undefined reference to `tclStubsPtr'
htmltext.o:htmltext.c:(.text+0x1404): more undefined references to `tclStubsPtr' follow
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:273: libTkhtml3.0] Error 1
Andereoo commented 10 months ago

It's hard to tell what's wrong, but my guess is that the compiler can't find Tcl/Tk.

I'm guessing you have them installed?

Check the C:/Users/[X]/AppData/Local/Programs/Git/mingw64/lib directory. I suspect you want C:/Users/[X]/AppData/Local/Programs/Git/mingw64/lib to be renamed to C:/Users/[X]/AppData/Local/Programs/Git/mingw64 and --with-tcl=$TCLCON --with-tk=$TCLCON to --with-tcl=$TCLCON/lib --with-tk=$TCLCON/lib.

It's been a while since I compiled it last, but if I remember correctly, you want tcl.h and tcl.sh in the directory set in --with-tclinclude=$TCL/include and -with-tkinclude=$TCL/include. I think you need a tcltk folder in the --with-tcl=$TCLCON/lib and --with-tk=$TCLCON/lib folders. Make sure you send the right folders to ../configure.

Let me know if this helps!

Zamy846692 commented 10 months ago

According to https://stackoverflow.com/questions/8024440/what-causes-the-error-undefined-reference-to-some-function “undefined reference to” is a linker error, from what I’ve been able to tell the compiler is unable to link to tclstub86.lib / tkstub86.lib in MinGW\lib(which seems to be where GCC’s C library flies https://stackoverflow.com/questions/6407975/what-are-header-files-and-library-files are kept). Weirdly when I replace those files with libtclstub86.a / libtkstub86.a which I downloaded, I get:

c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libtclstub86.a(tclStubLib.o):(.text+0x18): undefined reference to `__stack_chk_guard'
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libtclstub86.a(tclStubLib.o):(.text+0xfa): undefined reference to `__stack_chk_guard'
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libtclstub86.a(tclStubLib.o):(.text+0x1b2): undefined reference to `__stack_chk_fail'
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libtkstub86.a(tkStubLib.o):(.text+0x8): undefined reference to `__stack_chk_guard'
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libtkstub86.a(tkStubLib.o):(.text+0x106): undefined reference to `__stack_chk_guard'
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libtkstub86.a(tkStubLib.o):(.text+0x21a): undefined reference to `__stack_chk_fail'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:273: libTkhtml3.0] Error 1

This seems to mean that the compiler can link to the UNIX files (like shown in mingw.mk) but which themselves can’t link to libssp - I think.

My guess is that I don’t actually have the right MinGW installation (COMPILE.txt isn't very specific and I know little about it), or more specifically the .a flies in MinGW\lib, installed, given I had to manually add these two (the .lib flies were added manually from Python39\tcl). I am wondering what MinGW / GCC / TCL installation your using to compile it, because it don’t seem to be having these problems.

Andereoo commented 10 months ago

Weird... It's been a while since I last ran Mingw, and I don't have it on my computer anymore, but I'll try to offer some suggestions.

Do you have tk-dev and tcl-dev installed? I think that is what I had installed last time. If you have the right packages installed you should not have to download binaries and copy them into folders. I never had to do that.

Try running tclsh or wish in the terminal and type package require Tk. A window should open and the Tk version should be printed. If it works, then you should have everything you need already on your system, it's just a matter of finding where all the files are located.

Let me know if this works?

Zamy846692 commented 10 months ago

I’m unaware of installing anything called tcl-dev or tk-dev, all the installations I’m aware of are in C:\Users\[X]\AppData\Local\rograms\Git\mingw64 and C:\MinGW.

Ran tclsh the in Git Bash terminal:

$ tclsh
% package require Tk
8.6.12
%

The window opened.

Couldn't find the stubs archive library the complier needs. Looked around for tcl-dev online but wasn't sure what to look for, where did you get tcl-dev from? and I suppose they're what I need so how do I install them?

Source of MinGW: https://sourceforge.net/projects/mingw/

Zamy846692 commented 10 months ago

OK, I believe I may have successfully compiled it, but it is named libTkhtml3.0 (it claims to be a “.0 flie”) not Tkhtml30 and is only 333 KB whilst the one in TkinterWeb is 650 KB. All the .o files are still in build, is that normal?

Also should I be using MinGW or Mingw-w64?

Git Bash output:

gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY
_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=
1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmltext.c` -o htmltext.o
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY
_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=
1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/htmlutil.c` -o htmlutil.o
gcc -static-libgcc -pipe -DPACKAGE_NAME=\"Tkhtml\" -DPACKAGE_TARNAME=\"tkhtml\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"Tkhtml\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY
_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DNO_SYS_WAIT_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=
1   -I"C:/MinGW/include" -I"C:/MinGW/include"     -O2 -Wall -Wno-implicit-int  -c -I. -I../src `echo ../src/cssprop.c` -o cssprop.o
rm -f libTkhtml3.0
gcc -static-libgcc -pipe -shared -o libTkhtml3.0 css.o cssdynamic.o cssparser.o csssearch.o htmldraw.o htmlfloat.o htmlhash.o htmlimage.o htmlinline.o htmllayout.o htmlparse.o htmlprop.o htmlstyle.o htmltagdb.o htmltable.o htmltcl.o htmltree.o swproc.o restrack.o htmldec
ode.o htmltext.o htmlutil.o cssprop.o -L/mingw64/lib -ltclstub86 -L/mingw64/lib -ltkstub86
: libTkhtml3.0
echo 'package ifneeded Tkhtml 3.0 [list load [file join $dir libTkhtml3.0]]' > pkgIndex.tcl
echo 'package ifneeded hv3 0.1 [list source [file join $dir hv3-0.1.tm]]' >> pkgIndex.tcl

And no, as of writing I haven't loaded it

Andereoo commented 10 months ago

As far as I can remember, it is perfectly normal for the .o files to be there. The name should be fine. The binaries are given slightly different names on different platforms, so I renamed the binaries after compiling for consistency.

I would use MinGW-w64. It is a bit more advanced and supports both 32-bit and 64-bit programs, while MinGW only supports 32-bit programs. I'm pretty sure that I used the code from https://www.mingw-w64.org/ last time I compiled Tkhtml. However, most 32-bit programs will run on both 32-bit and 64-bit machines, so hey, if you have better luck getting usable binaries out of MinGW, I'd stick to that instead.

Zamy846692 commented 10 months ago

https://www.mingw-w64.org/downloads/ has several Pre-built toolchains, which one do you mean?

Andereoo commented 10 months ago

Good point... It was MSYS2. I might have actually downloaded it from https://www.msys2.org; I can't remember.

Did the binary you compiled work?

On Wed, Nov 8, 2023, 12:31 p.m. Zamy846692 @.***> wrote:

https://www.mingw-w64.org/downloads/ has several Pre-built toolchains, which one do you mean?

— Reply to this email directly, view it on GitHub https://github.com/Andereoo/TkinterWeb/issues/86#issuecomment-1802346454, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMA4CXQVV76QCIFMOLPKEMLYDO6V3AVCNFSM6AAAAAA6LAYPS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBSGM2DMNBVGQ . You are receiving this because you commented.Message ID: @.***>

Zamy846692 commented 10 months ago

I have been able to install MSYS2 (it’s recommended for mingw-w64 by https://code.visualstudio.com/docs/cpp/config-mingw) and successfully compile Tkhtml 64-bit, rename it, and place it in tkinterweb\tkhtml\Windows\64-bit, and so far so good! The generated file is smaller than the default (593 KB, 650 KB), not sure why that is, assuming it is just a compiling difference, did you ever got a different size for the same version? / experienced anything like that?

Strangely the file is still a 0 file (libTkhtml3.0/*.0) https://github.com/Andereoo/TkinterWeb/issues/86#issuecomment-1793612551, when changed to *.dll it works fine though, may just be because it’s called libTkhtml3.0 in the last gcc command, just wondering if that is normal – was yours a 0 file as well?

Also what does the folder tkhtml\src\MODIFIED do? Its just there and its files were modified later than src, is it any different?

Andereoo commented 10 months ago

Yes, the filename is normal. Compiling Tkhtml on Windows has a lot of quirks. As for the generated file size, I never noticed much of a difference, but as long as it works I wouldn't worry. The MODIFIED folder was just a different version of the code; if I remember correctly it is missing some edits I made to prevent crashes on some websites. It shouldn't be there. I just removed it.