What is in a default /etc/ld.so.conf these days? (9.0)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm back to trying to figure out why the example 'cube' from _C++_GUI_Programming_With_Qt_3_, chapter 8, refuses to compile. I just did a complete replacement of every QT and KDE related RPM I know of, and it still refuses to compile for me. I'm wondering if it might be something weird with the ld.so.conf. I tend to modify mine from time to time, and I'm not really sure what SuSE would put in it by default. Does anybody have a 9.0 box with most of the developer stuff installed, as well as all the KDE and QT stuff, and a pristine /etc/ld.so.conf they would like to share? I'd be grateful. Mine is very simple at present cat /etc/ld.so.conf /usr/X11R6/lib/Xaw3d /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/gnome/lib STH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAK0fyH2SF0i7rrGwRAvbCAJ4kiZ1xFHWpEYzE60RGT5j4OEiAvgCeIYTJ dQSHyb08uO4FhaO74Cv+X4M= =DmRD -----END PGP SIGNATURE-----
Does anybody have a 9.0 box with most of the developer stuff installed, as well as all the KDE and QT stuff, and a pristine /etc/ld.so.conf they would like to share? I'd be grateful.
/usr/X11R6/lib/Xaw95 /usr/X11R6/lib/Xaw3d /usr/X11R6/lib /usr/i486-linux/lib /usr/i486-linux-libc5/lib=libc5 /usr/i486-linux-libc6/lib=libc6 /usr/i486-linuxaout/lib /usr/i386-suse-linux/lib /usr/local/lib /usr/openwin/lib /opt/kde/lib /opt/kde2/lib /opt/kde3/lib /opt/gnome/lib /opt/gnome2/lib -- James Ogley, Webmaster, Rubber Turnip james@rubberturnip.org.uk http://www.rubberturnip.org.uk Jabber: riggwelter@myjabber.net Using Free Software since 1994, running GNU/Linux (SuSE 9.0) GNOME updates for SuSE: http://www.usr-local-bin.org
On Thu, 2004-02-12 at 04:31 -0500, Steven T. Hatton wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I'm back to trying to figure out why the example 'cube' from _C++_GUI_Programming_With_Qt_3_, chapter 8, refuses to compile. I just did a complete replacement of every QT and KDE related RPM I know of, and it still refuses to compile for me. I'm wondering if it might be something weird with the ld.so.conf. I tend to modify mine from time to time, and I'm not really sure what SuSE would put in it by default. Does anybody have a 9.0 box with most of the developer stuff installed, as well as all the KDE and QT stuff, and a pristine /etc/ld.so.conf they would like to share? I'd be grateful.
Mine is very simple at present cat /etc/ld.so.conf /usr/X11R6/lib/Xaw3d /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/gnome/lib
I suspect you'd get more useful answers if you posted the actual errors you get. Oh well, here's my conf: /usr/X11R6/lib/Xaw95 /usr/X11R6/lib/Xaw3d /usr/X11R6/lib /usr/i486-linux/lib /usr/i486-linux-libc5/lib=libc5 /usr/i486-linux-libc6/lib=libc6 /usr/i486-linuxaout/lib /usr/i386-suse-linux/lib /usr/local/lib /usr/openwin/lib /opt/kde/lib /opt/kde2/lib /opt/kde3/lib /opt/gnome/lib /opt/gnome2/lib /opt/mozilla/lib
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 12 February 2004 04:49 am, Anders Johansson wrote:
On Thu, 2004-02-12 at 04:31 -0500, Steven T. Hatton wrote:
I suspect you'd get more useful answers if you posted the actual errors you get.
Oh well, here's my conf:
I did post this to the QT list, and also sent it to someone at SuSE who said he was able to get it to compile. As you probably already know, I also sent the code to you. Here's what happens: Thu Feb 12 05:04:07:> ls cube.cpp cube.h main.cpp Thu Feb 12 05:04:08:> qmake -project Thu Feb 12 05:11:10:> ls cube.cpp cube.h cube.pro main.cpp Thu Feb 12 05:11:47:> cat cube.pro ###################################################################### # Automatically generated by qmake (1.07a) Thu Feb 12 05:11:10 2004 ###################################################################### TEMPLATE = app INCLUDEPATH += . # Input HEADERS += cube.h SOURCES += cube.cpp main.cpp Thu Feb 12 05:12:11:> qmake Thu Feb 12 05:12:51:> ls Makefile cube.cpp cube.h cube.pro main.cpp Thu Feb 12 05:17:13:> make > make.log 2>&1 Thu Feb 12 05:17:13:> cat make.log g++ -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -W -O2 - -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -DQT_NO_DEBUG -DQT_SHARED - -DQT_TABLET_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I. -I/usr/include - -I/usr/lib/qt3/include -o cube.o cube.cpp g++ -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -W -O2 - -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -DQT_NO_DEBUG -DQT_SHARED - -DQT_TABLET_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I. -I/usr/include - -I/usr/lib/qt3/include -o main.o main.cpp g++ -o cube cube.o main.o -L/usr/lib/ -L/usr/lib/qt3/lib/ -L/usr/X11R6/lib/ - -lqt -lXext -lX11 -lm cube.o(.text+0x39): In function `Cube::Cube[not-in-charge](QWidget*, char const*)': : undefined reference to `QGLWidget::QGLWidget[not-in-charge](QWidget*, char const*, QGLWidget const*, unsigned)' cube.o(.text+0xad): In function `Cube::Cube[not-in-charge](QWidget*, char const*)': : undefined reference to `QGLFormat::QGLFormat[in-charge](int, int)' cube.o(.text+0xb9): In function `Cube::Cube[not-in-charge](QWidget*, char const*)': : undefined reference to `QGLWidget::setFormat(QGLFormat const&)' cube.o(.text+0x17c): In function `Cube::Cube[not-in-charge](QWidget*, char const*)': : undefined reference to `QGLWidget::~QGLWidget [not-in-charge]()' cube.o(.text+0x1c9): In function `Cube::Cube[in-charge](QWidget*, char const*)': : undefined reference to `QGLWidget::QGLWidget[not-in-charge](QWidget*, char const*, QGLWidget const*, unsigned)' cube.o(.text+0x23d): In function `Cube::Cube[in-charge](QWidget*, char const*)': : undefined reference to `QGLFormat::QGLFormat[in-charge](int, int)' cube.o(.text+0x249): In function `Cube::Cube[in-charge](QWidget*, char const*)': : undefined reference to `QGLWidget::setFormat(QGLFormat const&)' cube.o(.text+0x30c): In function `Cube::Cube[in-charge](QWidget*, char const*)': : undefined reference to `QGLWidget::~QGLWidget [not-in-charge]()' cube.o(.text+0x345): In function `Cube::initializeGL()': : undefined reference to `QGLWidget::qglClearColor(QColor const&) const' cube.o(.text+0x351): In function `Cube::initializeGL()': : undefined reference to `glShadeModel' cube.o(.text+0x35d): In function `Cube::initializeGL()': : undefined reference to `glEnable' cube.o(.text+0x369): In function `Cube::initializeGL()': : undefined reference to `glEnable' cube.o(.text+0x3b8): In function `Cube::resizeGL(int, int)': : undefined reference to `glViewport' cube.o(.text+0x3c4): In function `Cube::resizeGL(int, int)': : undefined reference to `glMatrixMode' cube.o(.text+0x3c9): In function `Cube::resizeGL(int, int)': : undefined reference to `glLoadIdentity' cube.o(.text+0x414): In function `Cube::resizeGL(int, int)': : undefined reference to `glFrustum' cube.o(.text+0x420): In function `Cube::resizeGL(int, int)': : undefined reference to `glMatrixMode' cube.o(.text+0x45a): In function `Cube::paintGL()': : undefined reference to `glClear' cube.o(.text+0x48c): In function `Cube::draw()': : undefined reference to `glMatrixMode' cube.o(.text+0x491): In function `Cube::draw()': : undefined reference to `glLoadIdentity' cube.o(.text+0x4ad): In function `Cube::draw()': : undefined reference to `glTranslatef' cube.o(.text+0x4d0): In function `Cube::draw()': : undefined reference to `glRotatef' cube.o(.text+0x4ed): In function `Cube::draw()': : undefined reference to `glRotatef' cube.o(.text+0x50a): In function `Cube::draw()': : undefined reference to `glRotatef' cube.o(.text+0x54c): In function `Cube::draw()': : undefined reference to `glLoadName' cube.o(.text+0x558): In function `Cube::draw()': : undefined reference to `glBegin' cube.o(.text+0x56a): In function `Cube::draw()': : undefined reference to `QGLWidget::qglColor(QColor const&) const' cube.o(.text+0x597): In function `Cube::draw()': : undefined reference to `glVertex3f' cube.o(.text+0x59f): In function `Cube::draw()': : undefined reference to `glEnd' cube.o(.text+0x80c): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `glGetIntegerv' cube.o(.text+0x822): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `glSelectBuffer' cube.o(.text+0x82e): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `glRenderMode' cube.o(.text+0x833): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `glInitNames' cube.o(.text+0x83f): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `glPushName' cube.o(.text+0x84b): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `glMatrixMode' cube.o(.text+0x850): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `glPushMatrix' cube.o(.text+0x855): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `glLoadIdentity' cube.o(.text+0x889): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `gluPickMatrix' cube.o(.text+0x8ef): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `glFrustum' cube.o(.text+0x906): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `glMatrixMode' cube.o(.text+0x90b): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `glPopMatrix' cube.o(.text+0x917): In function `Cube::faceAtPosition(QPoint const&)': : undefined reference to `glRenderMode' cube.o(.gnu.linkonce.d._ZTV4Cube+0xc): undefined reference to `QGLWidget::className() const' cube.o(.gnu.linkonce.d._ZTV4Cube+0x10): undefined reference to `QGLWidget::qt_cast(char const*)' cube.o(.gnu.linkonce.d._ZTV4Cube+0x14): undefined reference to `QGLWidget::qt_invoke(int, QUObject*)' cube.o(.gnu.linkonce.d._ZTV4Cube+0x18): undefined reference to `QGLWidget::qt_emit(int, QUObject*)' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1c): undefined reference to `QGLWidget::qt_property(int, int, QVariant*)' cube.o(.gnu.linkonce.d._ZTV4Cube+0xac): undefined reference to `QGLWidget::setMouseTracking(bool)' cube.o(.gnu.linkonce.d._ZTV4Cube+0x108): undefined reference to `QGLWidget::reparent(QWidget*, unsigned, QPoint const&, bool)' cube.o(.gnu.linkonce.d._ZTV4Cube+0x148): undefined reference to `QGLWidget::paintEvent(QPaintEvent*)' cube.o(.gnu.linkonce.d._ZTV4Cube+0x150): undefined reference to `QGLWidget::resizeEvent(QResizeEvent*)' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1c0): undefined reference to `QGLWidget::makeCurrent()' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1c4): undefined reference to `QGLWidget::swapBuffers()' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1c8): undefined reference to `QGLWidget::setFormat(QGLFormat const&)' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1cc): undefined reference to `QGLWidget::setContext(QGLContext*, QGLContext const*, bool)' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1d0): undefined reference to `QGLWidget::renderPixmap(int, int, bool)' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1d4): undefined reference to `QGLWidget::grabFrameBuffer(bool)' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1d8): undefined reference to `QGLWidget::makeOverlayCurrent()' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1dc): undefined reference to `QGLWidget::updateGL()' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1e0): undefined reference to `QGLWidget::updateOverlayGL()' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1f0): undefined reference to `QGLWidget::initializeOverlayGL()' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1f4): undefined reference to `QGLWidget::resizeOverlayGL(int, int)' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1f8): undefined reference to `QGLWidget::paintOverlayGL()' cube.o(.gnu.linkonce.d._ZTV4Cube+0x1fc): undefined reference to `QGLWidget::glInit()' cube.o(.gnu.linkonce.d._ZTV4Cube+0x200): undefined reference to `QGLWidget::glDraw()' cube.o(.gnu.linkonce.t._ZNK9QGLWidget10metaObjectEv+0x13): In function `QGLWidget::metaObject() const': : undefined reference to `QGLWidget::staticMetaObject()' cube.o(.gnu.linkonce.t._ZN4CubeD1Ev+0x33): In function `Cube::~Cube [in-charge]()': : undefined reference to `QGLWidget::~QGLWidget [not-in-charge]()' cube.o(.gnu.linkonce.t._ZN4CubeD0Ev+0x37): In function `Cube::~Cube [in-charge deleting]()': : undefined reference to `QGLWidget::~QGLWidget [not-in-charge]()' cube.o(.gnu.linkonce.d._ZTI4Cube+0x8): undefined reference to `typeinfo for QGLWidget' main.o(.text+0x3a): In function `main': : undefined reference to `QGLFormat::hasOpenGL()' main.o(.text+0x13c): In function `main': : undefined reference to `QGLWidget::~QGLWidget [not-in-charge]()' main.o(.text+0x19c): In function `main': : undefined reference to `QGLWidget::~QGLWidget [not-in-charge]()' collect2: ld returned 1 exit status make: *** [cube] Error 1
/usr/X11R6/lib/Xaw95 /usr/X11R6/lib/Xaw3d /usr/X11R6/lib /usr/i486-linux/lib /usr/i486-linux-libc5/lib=libc5 /usr/i486-linux-libc6/lib=libc6 /usr/i486-linuxaout/lib /usr/i386-suse-linux/lib /usr/local/lib /usr/openwin/lib /opt/kde/lib /opt/kde2/lib /opt/kde3/lib /opt/gnome/lib /opt/gnome2/lib /opt/mozilla/lib
Thanks, that's what I started with. I'll bet a lot of that is pinting into thin air on your box. I'll try again with what you provided, but I suspect that will not change the results. It was just a shot in the dark. STH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAK1ScH2SF0i7rrGwRAl8tAJ0WyKoZy6YMgfQjVRcr8AHoeXphvACcCf0w 3qisgKaKz4gQhCf8ZtzBSNA= =q7fi -----END PGP SIGNATURE-----
On Thu, 2004-02-12 at 05:25 -0500, Steven T. Hatton wrote:
cube.o(.text+0x39): In function `Cube::Cube[not-in-charge](QWidget*, char const*)': : undefined reference to `QGLWidget::QGLWidget[not-in-charge](QWidget*, char const*, QGLWidget const*, unsigned)'
Add -lGL and -lGLU to the compiler flags (I assume you have OpenGL installed on your system). Also, for some reason, libqt in the supplementary 3.3 doesn't have any gl functions but the multi threaded version does, I'm not sure if this is intended or just a build error, but to get this to compile, change -lqt to -lqt-mt
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 12 February 2004 05:34 am, Anders Johansson wrote:
On Thu, 2004-02-12 at 05:25 -0500, Steven T. Hatton wrote:
cube.o(.text+0x39): In function `Cube::Cube[not-in-charge](QWidget*, char
const*)': : undefined reference to `QGLWidget::QGLWidget[not-in-charge](QWidget*, : char
const*, QGLWidget const*, unsigned)'
Add -lGL and -lGLU to the compiler flags (I assume you have OpenGL installed on your system). Also, for some reason, libqt in the supplementary 3.3 doesn't have any gl functions but the multi threaded version does, I'm not sure if this is intended or just a build error, but to get this to compile, change -lqt to -lqt-mt
Yup!! :) After I removed all the stuff pointing to my efforts at building OpenGL and GLUT, I edited the Makefile so the LIBS looks like this: LIBS = $(SUBLIBS) -L/usr/lib/ -L$(QTDIR)/lib/ -L/usr/X11R6/lib/ -lqt-mt\ - -lXext -lX11 -lm -lGLU -lGL It is rather strange that SuSE seem to have compiled the lib called 'qt' as the non-mt lib. If you list the RPMs, you will see what I mean. Thank you very much. Now let me go to the QT list and share the wealth. STH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAK2SFH2SF0i7rrGwRAqSfAJ9MXuyqsy2e2G8o0JANAJkY6RYSjwCfY10F MEcbTLq982ojVoDY2bDGeE4= =JJZO -----END PGP SIGNATURE-----
participants (3)
-
Anders Johansson
-
James Ogley
-
Steven T. Hatton