installing fung-calc on ubuntu

Paul King sciguy-Ja3L+HSX0kI at public.gmane.org
Fri Feb 29 04:37:49 UTC 2008


I have a little problem with compiling the fung-calc source. Fung-calc
is an online open-source graphing calculator.

I do a ./configure, and I get the following message after it runs
autoconf:

checking for Qt... configure: error: Qt (>= Qt 3.0) (headers and
libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.

Let it be said that I have Ubuntu recently recommended an update which I
followed, regarding installing version 4 and version 4 of the "dev"
package. There are files present under /usr/lib/Qt, and /usr/include/Qt
also.

So, checking config.log doesn't seem to be of much help. Doing as I am
told and "looking at the end of config.log" gets me:

------8<-----SNIP-----8<----------

-bash (10) tail config.log 
#define SIZEOF_INT 4
#define SIZEOF_LONG 4
#define STDC_HEADERS 1
#define VERSION "1.3.2b"
#define ksize_t socklen_t
#endif
#ifdef __cplusplus
#include <stdlib.h>

configure: exit 1

------8<-----SNIP-----8<----------
It looks to me like it just "kind of dies" during the configuration.
If you require all of this file to troubleshoot this, let me know, but I
don't believe that there is anything impressive, although there was the
following interesting passage:

------8<-----SNIP-----8<----------
conftest.cc:2:21: error: qglobal.h: No such file or directory
conftest.cc:3:26: error: qapplication.h: No such file or directory
conftest.cc:4:21: error: qcursor.h: No such file or directory
conftest.cc:5:27: error: qstylefactory.h: No such file or directory
conftest.cc:6:34: error: private/qucomextra_p.h: No such file or
directory
conftest.cc:7:8: warning: "QT_VERSION" is not defined
conftest.cc:8:2: error: #error 1
conftest.cc: In function 'int main()':
conftest.cc:12: error: 'QStyleFactory' was not declared in this scope
conftest.cc:12: error: expected `;' before '::' token
conftest.cc:13: error: 'QCursor' was not declared in this scope
conftest.cc:13: error: expected `;' before 'c'
configure:22153: $? = 1
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qcursor.h>
#include <qstylefactory.h>
#include <private/qucomextra_p.h>
#if ! (QT_VERSION >= 300)
#error 1
------8<-----SNIP-----8<----------

And doing a "locate" on these missing files yielded:

------8<-----SNIP-----8<----------
-bash (13) $ locate qglobal.h
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/src/tools/qglobal.h
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/include/qglobal.h
/usr/include/qt4/Qt/qglobal.h
/usr/include/qt4/QtCore/qglobal.h
-bash (14) $ locate qapplication.h
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/src/kernel/qapplication.h
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/doc/html/qapplication.html
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/include/qapplication.h
/usr/include/qt4/Qt/qapplication.h
/usr/include/qt4/QtGui/qapplication.h
-bash (15) $ locate qcursor.h
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/src/kernel/qcursor.h
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/doc/html/qcursor.html
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/include/qcursor.h
/usr/include/qt4/Qt/qcursor.h
/usr/include/qt4/QtGui/qcursor.h
-bash (16) $ locate qstylefactory.h
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/src/styles/qstylefactory.h
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/doc/html/qstylefactory.html
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/include/qstylefactory.h
/usr/include/qt4/Qt/qstylefactory.h
/usr/include/qt4/QtGui/qstylefactory.h
-bash (18) $ locate qucomextra_p.h
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/src/kernel/qucomextra_p.h
/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/include/private/qucomextra_p.h

------8<-----SNIP-----8<----------

In other words I have several copies of all of the files.

This was after running the commands in the form of:
./configure

and

sudo sh ./configure --with-qt-dir=/usr/lib/qt4
--with-qt-includes=/usr/include/qt4

and also with version 3 libs:

sudo sh ./configure
--with-qt-dir=/usr/local/src/qt-3.3.4/qt-x11-free-3.3.4/include
--with-qt-incdes=/usr/include/qt3

any help would be appreciated.

Paul King


--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list