bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Mingw32 cross-compilation


From: Vyacheslav V. Yurkov
Subject: Re: [Bug-gnubg] Mingw32 cross-compilation
Date: Tue, 12 Jan 2010 15:28:00 +0700
User-agent: Thunderbird 2.0.0.23 (X11/20090820)

Christian Anthon wrote:
Sometimes the creation of the _y.[ch] and _l.[ch] files goes wrong.
You should be able to work around the problem by copying the files
from non-src to the toplevel dir.

Christian.
Yes, I found this workaround too.
I was doing it in this way:
1. Removed external_y.y line from Makefile.am and ran autogen.sh.
2. Ran make and got the following linking errors:
/bin/sh ./libtool --tag=CC --mode=link i386-mingw32-gcc -mms-bitfields -UDATADIR -mms-bitfields -L/home/uvv/mingw32/lib -lwinmm -o gnubg.exe analysis.o bearoff.o bearoffgammon.o boardpos.o copying.o credits.o dbprovider.o dice.o drawboard.o evallock.o eval.o export.o external.o external_l.o file.o format.o formatgs.o gnubg.o gnubgmodule.o html.o htmlimages.o import.o latex.o matchequity.o matchid.o mec.o multithread.o openurl.o osr.o play.o positionid.o progress.o record.o relational.o render.o renderprefs.o rollout.o set.o sgf.o sgf_l.o sgf_y.o show.o simpleboard.o sound.o speed.o text.o timer.o util.o gtkboard.o gtkgame.o gtkfile.o gtkprefs.o gtk-multiview.o gtktheory.o gtkexport.o gtkcube.o gtkchequer.o gtkrace.o gtkmovefilter.o gtkmet.o gtksplash.o gtkrolls.o gtktempmap.o gtkoptions.o gtktoolbar.o gtkgamelist.o gtkpanels.o gtkmovelist.o gtkmovelistctrl.o gtkwindows.o gtkrelational.o gnubgstock.o -L./lib lib/libevent.la -L/home/uvv/mingw32/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -L/home/uvv/mingw32/lib -lpng12 -L/home/uvv/mingw32/lib -lcairo -L/home/uvv/mingw32/lib -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -L/home/uvv/mingw32/lib -lgthread-2.0 -lglib-2.0 -lintl -L/home/uvv/mingw32/lib -lfreetype -L/home/uvv/mingw32/lib -lglib-2.0 -lintl -L/home/uvv/mingw32/lib -lpng12 -L/home/uvv/mingw32/lib -lsqlite3 -lm i386-mingw32-gcc -mms-bitfields -UDATADIR -mms-bitfields -o gnubg.exe analysis.o bearoff.o bearoffgammon.o boardpos.o copying.o credits.o dbprovider.o dice.o drawboard.o evallock.o eval.o export.o external.o external_l.o file.o format.o formatgs.o gnubg.o gnubgmodule.o html.o htmlimages.o import.o latex.o matchequity.o matchid.o mec.o multithread.o openurl.o osr.o play.o positionid.o progress.o record.o relational.o render.o renderprefs.o rollout.o set.o sgf.o sgf_l.o sgf_y.o show.o simpleboard.o sound.o speed.o text.o timer.o util.o gtkboard.o gtkgame.o gtkfile.o gtkprefs.o gtk-multiview.o gtktheory.o gtkexport.o gtkcube.o gtkchequer.o gtkrace.o gtkmovefilter.o gtkmet.o gtksplash.o gtkrolls.o gtktempmap.o gtkoptions.o gtktoolbar.o gtkgamelist.o gtkpanels.o gtkmovelist.o gtkmovelistctrl.o gtkwindows.o gtkrelational.o gnubgstock.o -L/home/uvv/mingw32/lib -L/home/uvv/C/GTK+/gnubg/lib lib/.libs/libevent.a -lwinmm -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lfreetype -lglib-2.0 -lintl -lpng12 -lsqlite3
external_l.o:external_l.c:(.text+0x258): undefined reference to `_extlval'
external_l.o:external_l.c:(.text+0x33f): undefined reference to `_extlval'
external_l.o:external_l.c:(.text+0x368): undefined reference to `_extlval'
external_l.o:external_l.c:(.text+0x3a9): undefined reference to `_extlval'
external_l.o:external_l.c:(.text+0x186b): undefined reference to `_extparse'
gnubg.o:gnubg.c:(.text+0x7b6d): undefined reference to `_CreateMutex'
collect2: ld returned 1 exit status
make[2]: *** [gnubg.exe] Error 1
make[2]: Leaving directory `/home/uvv/C/GTK+/gnubg'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/uvv/C/GTK+/gnubg'
make: *** [all] Error 2

I thought it should deal somehow with previous bison/lex errors.
P.S. You can notice -UDATADIR parameter. It's one more workaround, since w32api package already has this macro defined.

--
Vyacheslav V. Yurkov <address@hidden>     Senior Software Engineer
Norilsk                                         Tel: +79069001870

Software Development Department
Joint Stock Company "Channel-7", ISP





reply via email to

[Prev in Thread] Current Thread [Next in Thread]