TKTable 2.8 - building with MinGW (cross compilation) ...

From: Robert S. Sciuk (rob_at_ControlQ.com)
Date: 03/29/04


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.



Relevant Pages

  • Re: Commercial Distribution?
    ... A Linux distro vendor basically collects components from disparate ... because FreeBSD _is_ the distro itself ... Any distro maker who wishes to fork off something from FreeBSD, ... Ports are great, because you could even include diffs to the ...
    (freebsd-questions)
  • Re: Hello
    ... A bittorrent of the distros seems to ... me to go along with the community nature of FreeBSD and I am sure ... > I decide to install FreeBSD 5.2.1 because I want to install definetely ... > distro and then installs something like SUSE, ...
    (freebsd-newbies)
  • Re: FreeBSDs Visual Identity: Outdated?
    ... Sam wrote: ... The distro - vs - core release relationship is one of BSD's greatest ... hell' like there is in linux. ... When you download FreeBSD, you get the ...
    (freebsd-arch)
  • Re: FreeBSDs Visual Identity: Outdated?
    ... Sam wrote: ... The distro - vs - core release relationship is one of BSD's greatest ... hell' like there is in linux. ... When you download FreeBSD, you get the ...
    (freebsd-arch)
  • Re: Beta testers for faster win32 distro wanted
    ... and offer it as an unofficial distro). ... cop out but)--the extensions compiled with VC6 and mingw are binary ... (consistently gets these speeds). ... (like -e is broken if you have quotes within quotes), ...
    (comp.lang.ruby)