Hi all,

I've been listening this mail-list months ago, but it's my first posting
(sorry by my English).

These days I've worked on Catalan language addition to quackle.

Aproach:
Catalan language has 3 digraphs on its tile distribution: L·L, NY and QU (
the Q tile is always played as QU).

As far as I know, there isn't digraphs support on quackle, right? So I've
replaced the digraphs by a single char in wordlist and tile distribution. In
Catalan I've done this changes:
L·L ---> W
NY ---> Y
QU ---> Q

Note: the original Catalan tile distribution lacks on K,W and Y tile, so I
can reuse these chars.
With this aproach I want a good computer Catalan Scrabbler player. It's a
pain for a human player to play a game with W instead of L·L and Y instead
as NY (QU is played as Q in real board games, then this tile isn't a
problem). The next step will be to study quacker GUI to hide the trick to
human player.

What's done:
I've created the following files:

catalan.quackle_alphabet
danosc.raw (a good enough Catalan wordlist with the digraphs replaced)
danosc.dawg

And I've added "danosc" and "catalan" to the settings.cpp

I was able to compile quackle, quackle/quackleio and quackle/quacker
directories only after change g++ form 4.3 to 4.2 on Debina Lenny. But I was
unable to compile quackle/makeminidawg and quackle/makeminigaddag. The
danosc.dawg was made thanks to Windows binary port link of makeminidawg
avaiable on this mail-list.


Results:
All works well... but validation words. I can create games with Catalan
alfabet and danosc lexicon at quacker, but the validated words are not
correct. And neither the robot played words. So, I think it's a problem with
danosc.dawg

Any help to compile makeminidawg and makeminigaddag? Or any hint where is
the problem?

Take in account that I'm not programmer. So, please, patient.

System: GNU/Linux Debian Lenny, g++ 4.2

Current used files:
http://www.montane.cat/quackle/settings.cpp
http://www.montane.cat/quackle/catalan.quackle_alphabet
http://www.montane.cat/quackle/danosc.dawg
http://www.montane.cat/quackle/danosc.raw (plaint-txt utf8 file, digraphs
replaced)
http://www.montane.cat/quackle/danosc.txt (plaint-txt utf8 file, but with
digraphs L·L, NY and QU)

make command output on makeminidawg directory:

g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB
-DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I.. -I. -I. -o
obj/release/minidawgmaker.o minidawgmaker.cpp
minidawgmaker.cpp: In member function 'int
MiniDawgMaker::executeFromArguments()':
minidawgmaker.cpp:517: warning: control reaches end of non-void function
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB
-DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I.. -I. -I. -o
obj/release/makeminidawgmain.o makeminidawgmain.cpp
g++  -o makeminidawg obj/release/minidawgmaker.o
obj/release/makeminidawgmain.o    -L/usr/lib -L.. -L../quackleio -lquackle
-lquackleio -lQtGui -lQtCore -lpthread
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::DictImplementation()':
dictimplementation.cpp:(.text+0x16c): undefined reference to
`Quackle::Generator::Generator()'
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::DictImplementation()':
dictimplementation.cpp:(.text+0x1bc): undefined reference to
`Quackle::Generator::Generator()'
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::~DictImplementation()':
dictimplementation.cpp:(.text+0x20c): undefined reference to
`Quackle::Generator::~Generator()'
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::~DictImplementation()':
dictimplementation.cpp:(.text+0x26c): undefined reference to
`Quackle::Generator::~Generator()'
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::~DictImplementation()':
dictimplementation.cpp:(.text+0x2cc): undefined reference to
`Quackle::Generator::~Generator()'
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::isBritish(Quackle::FixedLengthString
const&)':
dictimplementation.cpp:(.text+0x392): undefined reference to
`Quackle::Generator::storeWordInfo(Quackle::WordWithInfo*)'
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::query(QString const&, int)':
dictimplementation.cpp:(.text+0x5bd): undefined reference to
`Quackle::Generator::anagramLetters(Quackle::FixedLengthString const&, int)'
dictimplementation.cpp:(.text+0x722): undefined reference to
`Quackle::Generator::storeWordInfo(Quackle::WordWithInfo*)'
dictimplementation.cpp:(.text+0x740): undefined reference to
`Quackle::Generator::storeExtensions(Quackle::WordWithInfo*)'
collect2: ld returned 1 exit status
make: *** [makeminidawg] Error 1
_________________________________________________

make command output on makegaddag directory:
g++  -o makegaddag obj/release/makegaddag.o    -L/usr/lib -L..
-L../quackleio -lquackle -lquackleio -lQtGui -lQtCore -lpthread
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::DictImplementation()':
dictimplementation.cpp:(.text+0x16c): undefined reference to
`Quackle::Generator::Generator()'
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::DictImplementation()':
dictimplementation.cpp:(.text+0x1bc): undefined reference to
`Quackle::Generator::Generator()'
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::~DictImplementation()':
dictimplementation.cpp:(.text+0x20c): undefined reference to
`Quackle::Generator::~Generator()'
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::~DictImplementation()':
dictimplementation.cpp:(.text+0x26c): undefined reference to
`Quackle::Generator::~Generator()'
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::~DictImplementation()':
dictimplementation.cpp:(.text+0x2cc): undefined reference to
`Quackle::Generator::~Generator()'
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::isBritish(Quackle::FixedLengthString
const&)':
dictimplementation.cpp:(.text+0x392): undefined reference to
`Quackle::Generator::storeWordInfo(Quackle::WordWithInfo*)'
../quackleio/libquackleio.a(dictimplementation.o): In function
`QuackleIO::DictImplementation::query(QString const&, int)':
dictimplementation.cpp:(.text+0x5bd): undefined reference to
`Quackle::Generator::anagramLetters(Quackle::FixedLengthString const&, int)'
dictimplementation.cpp:(.text+0x722): undefined reference to
`Quackle::Generator::storeWordInfo(Quackle::WordWithInfo*)'
dictimplementation.cpp:(.text+0x740): undefined reference to
`Quackle::Generator::storeExtensions(Quackle::WordWithInfo*)'
collect2: ld returned 1 exit status
make: *** [makegaddag] Error 1



Thanks in advance, Joan Montané

Reply via email to