我compile後會出來以下錯誤
Code: Select all
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -o fashionclock -R /usr/kde/3.2/lib -R /usr/qt/3/lib -R /usr/X11R6/lib -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib main.o fashionclock.o fashionclockview.o pref.o fashionclockiface_skel.o ../../src/styleclockwidget/libstyleclockwidget.la -lkio -lkdeprint
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0xceb): In function `ClockPaintView::loadTexture(QString)':
: undefined reference to `glGenTextures'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0xcfe): In function `ClockPaintView::loadTexture(QString)':
: undefined reference to `glBindTexture'
../../src/styleclockwidget/.libs/libstyleclockwidget.a(clockpaintview.o)(.text+0xd1c): In function `ClockPaintView::loadText
.
.
.
但是我已經把 qt compile成opengl支援了
Code: Select all
su:scsihome profile # emerge qt -pv
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] x11-libs/qt-3.3.2 +cups -doc -firebird +gif -icc -ipv6 +mysql -nas -odbc +opengl -postgres -sqlite -xinerama +zlib 14,096 kB [1]