Soqt configuration aborting error: cannot link with Qt

Create issue
Issue #113 resolved
bhuvaneshwaran created an issue

compiling on x64 win 8pro, GCC compiler. QTDIR set env variable point to qtbase. help me resolve this error..Qt version 5.6.0 alpha skipped some modules. I explored qt bin folder. and tried to start open an app-designer. dialog popup -app not able to open correctly. so I checked with dependency walker and found libpng-61.dll and zlib.dll missing. Anyhow I don't have x64 type libpng and zlib dll. help me get this to make it work soqt


checking for X11/extensions/XInput.h... no checking if the Win32 API is available... yes checking for GetEnvironmentVariable() function... yes checking for windows.h... (cached) yes checking whether the Win32 LoadLibrary() method is available... yes checking for GetClassName() function... yes checking if fink is available... no checking whether -R must be followed by a space... neither works checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... no checking for gethostbyname in -lnsl... no checking for gethostbyname in -lbsd... no checking for connect... no checking for connect in -lsocket... no checking for remove... yes checking for shmat... no checking for shmat in -lipc... no checking for IceConnectionNumber in -lICE... no checking how to include gl.h... #include <GL/gl.h> checking for coin-config... /usr/local/bin/coin-config checking if we can compile and link with the Coin library... true checking if X11 linkage is ready... false checking whether we can link against X11... no checking whether the X11 extension device library is available... no checking whether GLX is on the system... false checking if X11 linkage is ready... (cached) false checking if the Open Inventor SoPolygonOffset node is available... true checking if the Open Inventor SoVRMLMaterial VRML node is available... true checking if the Open Inventor SoVRMLViewpoint VRML node is available... true checking if the Open Inventor SoVRMLBackground VRML node is available... true checking if the Open Inventor SoVRMLFog VRML node is available... true checking for SoContextHandler class... true checking for SoKeyboardEvent::DELETE enum... true checking for SoMouseButtonEvent::BUTTON5 enum... true checking for SoCamera::setStereoMode() method... true checking for SoGLRenderAction::SORTED_LAYERS_BLEND transparency mode... true checking for SbImage::addReadImageCB... true checking whether the X11 miscellaneous utilities library is available... maybe checking for cygpath... false checking for moc... /b/xt/wt/qtbase/bin/moc configure: WARNING: header file qglobal.h not found, can not compile Qt code

Could not find any way to build against the Qt library. If you are sure Qt is properly installed on your system, see the file config.log to find out what went wrong.

One common way to solve this problem is to set up the environment variable QTDIR to the base of the Qt installation directory. Or if it was already set up, double check to see that it is pointing at the correct directory.

Note that it is possible to override the combinations of Qt libraries configure tries to link against by setting up the environment variable CONFIG_QTLIBS. This might be necessary if you have installed the Qt library in a manner that is not compatible with any of the known configurations, for instance by changing the name of the library or the Qt library having more dependencies on other libraries that we are aware of.

If you for instance know the correct set of libraries to be qt304.lib, qtmain.lib and gdi32.lib (this would be on an MSWindows system), then set CONFIG_QTLIBS to the string ''-lqt304 -lqtmain -lgdi32'' before re-running configure.

If you still can't get the configure script to detect the presence of and how to use the Qt library, please mail the config.log file to coin-support@coin3d.org and ask for help.

configure: error: aborting

ASUS X555L@ASUS-BHUVANESH /b/Soqt/Soqt $ export QTDIR=/b/xt/wt/qtbase

ASUS X555L@ASUS-BHUVANESH /b/Soqt/Soqt $ export INCLUDE=/usr/local/include:/b/xt/strawberry-perl/c/include

ASUS X555L@ASUS-BHUVANESH /b/Soqt/Soqt $ export INCLUDE=/b/xt/wt/qtbase/include

ASUS X555L@ASUS-BHUVANESH /b/Soqt/Soqt $ export PATH=$QTDIR/bin:$PATH tra

ASUS X555L@ASUS-BHUVANESH /b/Soqt/Soqt $ export QMAKESPEC=$QTDIR/mkspecs/win32-g++

ASUS X555L@ASUS-BHUVANESH /b/Soqt/Soqt $ ./configure --disable-msvc --enable-debug=no --enable-symbols=no --with-qt=/b /xt/wt/qtbase--build=x86_64-w64-mingw32 --enable-pkgconfig=no CPPFLAGS="-I/b/xt /wt/qtbase/include/QtCore -I/b/xt/wt/qtbase/include/QtGui -I/b/xt/wt/qtbase/inc lude/QtWidgets -I/b/xt/wt/qtbase/include/QtOpenGL " LDFLAGS="-L/b/xt/wt/qtbase/ lib" CONFIG_QTLIBS="-lQt5Core -lQt5Gui -lQt5Widgets -lQt5OpenGL" checking build system type... i686-pc-mingw32 checking host system type... i686-pc-mingw32 checking target system type... i686-pc-mingw32 checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ld used by gcc... c:/TDM-GCC-64/x86_64-w64-mingw32/bin/ld.exe checking if the linker (c:/TDM-GCC-64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld.. . yes checking for c:/TDM-GCC-64/x86_64-w64-mingw32/bin/ld.exe option to reload object files... -r checking for BSD-compatible nm... /c/TDM-GCC-64/bin/nm checking whether ln -s works... yes checking how to recognize dependent libraries... file_magic ^x86 archive import| ^x86 DLL checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... no checking dlfcn.h presence... no checking for dlfcn.h... no checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for xlf95... no checking for f95... no checking for fort... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 8192 checking command to parse /c/TDM-GCC-64/bin/nm output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -DDLL_EXPORT checking if gcc PIC flag -DDLL_EXPORT works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (c:/TDM-GCC-64/x86_64-w64-mingw32/bin/ld.exe) su pports shared libraries... yes checking whether -lc should be explicitly linked in... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... c:/TDM-GCC-64/x86_64-w64-mingw32/bin/ld.exe checking if the linker (c:/TDM-GCC-64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld.. . yes checking whether the g++ linker (c:/TDM-GCC-64/x86_64-w64-mingw32/bin/ld.exe) su pports shared libraries... yes checking for g++ option to produce PIC... -DDLL_EXPORT checking if g++ PIC flag -DDLL_EXPORT works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (c:/TDM-GCC-64/x86_64-w64-mingw32/bin/ld.exe) su pports shared libraries... yes checking dynamic linker characteristics... Win32 ld.exe (cached) (cached) checking how to hardcode library paths into programs... immedi ate appending configuration tag "F77" to libtool checking windows.h usability... yes checking windows.h presence... yes checking for windows.h... yes checking for unistd.h... (cached) yes checking for sys/types.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking netinet/in.h usability... no checking netinet/in.h presence... no checking for netinet/in.h... no checking for tlhelp32.h... yes checking X11/extensions/SGIMisc.h usability... no checking X11/extensions/SGIMisc.h presence... no checking for X11/extensions/SGIMisc.h... no checking X11/Xproto.h usability... no checking X11/Xproto.h presence... no checking for X11/Xproto.h... no checking X11/extensions/XInput.h usability... no checking X11/extensions/XInput.h presence... no checking for X11/extensions/XInput.h... no checking if the Win32 API is available... yes checking for GetEnvironmentVariable() function... yes checking for windows.h... (cached) yes checking whether the Win32 LoadLibrary() method is available... yes checking for GetClassName() function... yes checking if fink is available... no checking whether -R must be followed by a space... neither works checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... no checking for gethostbyname in -lnsl... no checking for gethostbyname in -lbsd... no checking for connect... no checking for connect in -lsocket... no checking for remove... yes checking for shmat... no checking for shmat in -lipc... no checking for IceConnectionNumber in -lICE... no checking how to include gl.h... #include <GL/gl.h> checking for coin-config... /usr/local/bin/coin-config checking if we can compile and link with the Coin library... true checking if X11 linkage is ready... false checking whether we can link against X11... no checking whether the X11 extension device library is available... no checking whether GLX is on the system... false checking if X11 linkage is ready... (cached) false checking if the Open Inventor SoPolygonOffset node is available... true checking if the Open Inventor SoVRMLMaterial VRML node is available... true checking if the Open Inventor SoVRMLViewpoint VRML node is available... true checking if the Open Inventor SoVRMLBackground VRML node is available... true checking if the Open Inventor SoVRMLFog VRML node is available... true checking for SoContextHandler class... true checking for SoKeyboardEvent::DELETE enum... true checking for SoMouseButtonEvent::BUTTON5 enum... true checking for SoCamera::setStereoMode() method... true checking for SoGLRenderAction::SORTED_LAYERS_BLEND transparency mode... true checking for SbImage::addReadImageCB... true checking whether the X11 miscellaneous utilities library is available... maybe checking for cygpath... false checking for moc... /b/xt/wt/qtbase/bin/moc configure: WARNING: header file qglobal.h not found, can not compile Qt code

Could not find any way to build against the Qt library. If you are sure Qt is properly installed on your system, see the file config.log to find out what went wrong.

One common way to solve this problem is to set up the environment variable QTDIR to the base of the Qt installation directory. Or if it was already set up, double check to see that it is pointing at the correct directory.

Note that it is possible to override the combinations of Qt libraries configure tries to link against by setting up the environment variable CONFIG_QTLIBS. This might be necessary if you have installed the Qt library in a manner that is not compatible with any of the known configurations, for instance by changing the name of the library or the Qt library having more dependencies on other libraries that we are aware of.

If you for instance know the correct set of libraries to be qt304.lib, qtmain.lib and gdi32.lib (this would be on an MSWindows system), then set CONFIG_QTLIBS to the string ''-lqt304 -lqtmain -lgdi32'' before re-running configure.

If you still can't get the configure script to detect the presence of and how to use the Qt library, please mail the config.log file to coin-support@coin3d.org and ask for help.

configure: error: aborting

ASUS X555L@ASUS-BHUVANESH /b/Soqt/Soqt $

Comments (2)

  1. bhuvaneshwaran reporter
    • edited description

    I explored qt bin folder. and tried to start open an app-designer. dialog popup -app not able to open correctly. so I checked with dependency walker and found libpng-61.dll and zlib.dll missing. Anyhow I don't have x64 type libpng and zlib dll. help me get this to make it work qt and soqt

  2. Volker Enderlein

    The following configure command works on my Ubuntu box: ./configure --with-coin=/home/coin3d --with-qt=/usr/lib/x86_64-linux-gnu/qt5 Or try to use CMake to build the current version of the repository. This is known to work.

    I am closing this issue for now. Feel free to reopen it, if your issue has not been properly addressed or you have further information.

  3. Log in to comment