Rabu, Agustus 30, 2006

qtlist.h > qtptrlist.h

Just wondering why my compile process of libqtpod failed, this is the error message:
$ make
cd src && make -f Makefile
make[1]: Entering directory `/usr/src/libqtpod-0.3.rc1/src'
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -o ipod.o ipod.cpp
In file included from itunesdb.h:34,
from ipod.h:31,
from ipod.cpp:25:
playlist.h:26:19: error: qlist.h: No such file or directory
make[1]: *** [ipod.o] Error 1
make[1]: Leaving directory `/usr/src/libqtpod-0.3.rc1/src'
make: *** [sub-src] Error 2
I tried to do googling and found an answer:
...
in qlist.h (has one):
--------------------
#include <qptrlist.h>

in qptrlist.h:
-------------
<QPtrList declarations>

#define QList QPtrList

As can be seen from the above, there is no difference except name between QList and QPtrList.
...
Yes, i replaced qtlist.h with qptrlist.h in some header files: playlist.h, smartplaylistrules.h, and track.h. It works.

If you want to know, i don't have any ipod yet but willing to include this device support via kio-slave for my project.