TKTable 2.8 - building with MinGW (cross compilation) ...
From: Robert S. Sciuk (rob_at_ControlQ.com)
Date: 03/29/04
- Next message: miguel sofer: "Re: % operator incompatibility..."
- Previous message: Darren New: "Re: % operator incompatibility..."
- Next in thread: Jeff Hobbs: "Re: TKTable 2.8 - building with MinGW (cross compilation) ..."
- Reply: Jeff Hobbs: "Re: TKTable 2.8 - building with MinGW (cross compilation) ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Mar 2004 15:05:38 -0500
I am attempting to cross compiler and build the tktable 2.8 distro on
FreeBSD using MingW for the Windows environment ... to link into a C based
(mktclapp) executable.
Has anyone built the Tktable 2.8 distro using mingw? It seems that I can
produce the static library, and all the .o files correctly
(libTktable2.8.a), but I need to load the shared library -- on linux/bsd,
I guess that would be the libTktable2.8.so.x, though I guess I'm trying to
build the .dll version. Has anyone had any joy in this?
When using configure without the --enable-shared, I get the .a file
created.
I'm using the following ../configure parameters ...
../configure --prefix=/usr/local/mingw --target=mingw32
When I use the --enable-shared flag, the linker used is the native one
(ld), and of course, the .o's are not recognized in the .dll creation.
cc1: warning: -fPIC ignored for target (all code is position independent)
rm -f libTktable2.8.so
ld -Bshareable -x -o libTktable2.8.so tkTable.o tkTableWin.o tkTableTag.o
tkTableEdit.o tkTableCell.o tkTableCellSort.o tkTableCmds.o tkTableUtil.o
-L/usr/X11R6/lib -lX11 -L/usr/local/lib -ltclstub8.4 -L/usr/local/lib
-ltkstub8.4
tkTable.o: file not recognized: File format not recognized
gmake: *** [libTktable2.8.so] Error 1
seems also to be doing a native (FreeBSD) link against X, and
/usr/local/lib rather than /usr/local/mingw/ ...
Any pointers would be deeply appreciated ... likely, I'm just omitting
something critical on the ../configure stage ...
Cheers,
Rob.
- Next message: miguel sofer: "Re: % operator incompatibility..."
- Previous message: Darren New: "Re: % operator incompatibility..."
- Next in thread: Jeff Hobbs: "Re: TKTable 2.8 - building with MinGW (cross compilation) ..."
- Reply: Jeff Hobbs: "Re: TKTable 2.8 - building with MinGW (cross compilation) ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|