[Qgis-developer] not being installed to path specifed with --prefix
during configure
nitin quick
quick.nitin at gmail.com
Fri Sep 22 05:56:10 EDT 2006
Here is a list of steps i took while installing QGIS preview 2 on FC4
intel box.
To generate configure i did and got
> autoconf
configure.in:47: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:65: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.in:66: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.in:277: error: possibly undefined macro: AM_CONDITIONAL
configure.in:293: error: possibly undefined macro: AM_PROG_LEX
configure.in:418: error: possibly undefined macro: AM_PATH_GSL
I am not aware of its reasons. So as other way i did
> ./autogen.sh --with-qtdir=/usr/local/Trolltech/Qt-4.1.2/
--with-postgresql=/usr/local/pgsql/bin/pg_config
--with-grass=/home1/grass-6.0.2/dist.i686-pc-linux-gnu/ --enable-debug
--prefix=/home1/qgisPreview2Install
Things went fine and got makefiles.
then for building
>make
g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -g -O2 -I/usr/local/include
-DQT3_SUPPORT -I/usr/local/Trolltech/Qt-4.1.2//mkspecs/default
-I/usr/local/Trolltech/Qt-4.1.2//include/Qt3Support
-I/usr/local/Trolltech/Qt-4.1.2//include/QtCore
-I/usr/local/Trolltech/Qt-4.1.2//include/QtDesigner
-I/usr/local/Trolltech/Qt-4.1.2//include/QtGui
-I/usr/local/Trolltech/Qt-4.1.2//include/QtNetwork
-I/usr/local/Trolltech/Qt-4.1.2//include/QtOpenGL
-I/usr/local/Trolltech/Qt-4.1.2//include/QtSql
-I/usr/local/Trolltech/Qt-4.1.2//include/QtXml
-I/usr/local/Trolltech/Qt-4.1.2//include
-I/usr/local/Trolltech/Qt-4.1.2//include/QtSvg
-I/usr/local/Trolltech/Qt-4.1.2//include/QtTest
-I/usr/local/Trolltech/Qt-4.1.2//include/QtDesigner -D_REENTRANT
-DQT_THREAD_SUPPORT -I -I../../gui -I../../ui -I../../core -g -O2 -MT
spitplugin_la-qgsspit.lo -MD -MP -MF .deps/spitplugin_la-qgsspit.Tpo
-c qgsspit.cpp -fPIC -DPIC -o .libs/spitplugin_la-qgsspit.o
qgsspit.cpp:31:23: error: qgspgutil.h: No such file or directory
In file included from qgsspit.cpp:33:
qgsconnectiondialog.h:24:21: error: qgisgui.h: No such file or directory
qgsspit.cpp:35:30: error: qgsmessageviewer.h: No such file or directory
qgsconnectiondialog.h:31: error: 'QgisGui' has not been declared
qgsconnectiondialog.h:31: error: 'ModalDialogFlags' was not declared
in this scope
qgseditreservedwordsdialog.h:12: error: 'QgisGui' has not been declared
qgseditreservedwordsdialog.h:12: error: 'ModalDialogFlags' was not
declared in this scope
qgsspit.cpp: In member function 'void QgsSpit::addFile()':
qgsspit.cpp:234: error: 'QgsPgUtil' was not declared in this scope
qgsspit.cpp:234: error: 'pgu' was not declared in this scope
qgsspit.cpp:234: error: 'QgsPgUtil' is not a class or namespace
qgsspit.cpp:234: error: 'instance' was not declared in this scope
qgsspit.cpp:303: error: 'QgsMessageViewer' was not declared in this scope
qgsspit.cpp:303: error: 'e' was not declared in this scope
qgsspit.cpp:303: error: expected type-specifier before 'QgsMessageViewer'
qgsspit.cpp:303: error: expected `;' before 'QgsMessageViewer'
qgsspit.cpp: In member function 'void QgsSpit::helpInfo()':
qgsspit.cpp:399: error: 'QgsMessageViewer' was not declared in this scope
qgsspit.cpp:399: error: 'e' was not declared in this scope
qgsspit.cpp:399: error: expected type-specifier before 'QgsMessageViewer'
qgsspit.cpp:399: error: expected `;' before 'QgsMessageViewer'
qgsspit.cpp: In member function 'void QgsSpit::editColumns(int, int,
int, const QPoint&)':
qgsspit.cpp:767: error: 'QgsPgUtil' was not declared in this scope
qgsspit.cpp:767: error: 'pgu' was not declared in this scope
qgsspit.cpp:767: error: 'QgsPgUtil' is not a class or namespace
qgsspit.cpp:767: error: 'instance' was not declared in this scope
make[5]: *** [spitplugin_la-qgsspit.lo] Error 1
make[5]: Leaving directory
`/home1/qgis_Release-0_8-preview-2/src/plugins/spit'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/home1/qgis_Release-0_8-preview-2/src/plugins/spit'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home1/qgis_Release-0_8-preview-2/src/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home1/qgis_Release-0_8-preview-2/s
After providing exact location to qgspgutil.h in
/plugin/spit/makefie, it build .
but when i tried to install that i became nuts
make[5]: Leaving directory `/home1/qgis_Release-0_8-preview-2/src/composer'
make[4]: Leaving directory `/home1/qgis_Release-0_8-preview-2/src/composer'
make[3]: Leaving directory `/home1/qgis_Release-0_8-preview-2/src/composer'
Making install in widgets
make[3]: Entering directory `/home1/qgis_Release-0_8-preview-2/src/widgets'
Making install in projectionselector
make[4]: Entering directory
`/home1/qgis_Release-0_8-preview-2/src/widgets/projectionselector'
make install-am
make[5]: Entering directory
`/home1/qgis_Release-0_8-preview-2/src/widgets/projectionselector'
make[6]: Entering directory
`/home1/qgis_Release-0_8-preview-2/src/widgets/projectionselector'
make[6]: Nothing to be done for `install-exec-am'.
test -z "/home1/qgisPreview2Install//lib/qgis" || mkdir -p --
"/home1/qgisPreview2Install//lib/qgis"
/bin/sh ../../../libtool --mode=install /usr/bin/install -c
'libqgsprojectionselector.la'
'/home1/qgisPreview2Install//lib/qgis/libqgsprojectionselector.la'
libtool: install: error: cannot install `libqgsprojectionselector.la'
to a directory not ending in /usr/lib/qgis
make[6]: *** [install-selectorLTLIBRARIES] Error 1
make[6]: Leaving directory
`/home1/qgis_Release-0_8-preview-2/src/widgets/projectionselector'
make[5]: *** [install-am] Error 2
make[5]: Leaving directory
`/home1/qgis_Release-0_8-preview-2/src/widgets/projectionselector'
make[4]: *** [install] Error 2
make[4]: Leaving directory
`/home1/qgis_Release-0_8-preview-2/src/widgets/projectionselector'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/home1/qgis_Release-0_8-preview-2/src/widgets'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home1/qgis_Release-0_8-preview-2/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home1/qgis_Release-0_8-preview-2'
make: *** [install] Error 2
i have given this path as prefix argument to autogen.sh as shown above.
quickNitin
More information about the Qgis-developer
mailing list