View unanswered posts | View active topics It is currently Wed Sep 22, 2021 2:10 pm



Reply to topic  [ 3 posts ] 
 making example08 is unsuccesful 
Author Message

Joined: Sun Apr 10, 2011 12:04 pm
Posts: 1
Post making example08 is unsuccesful
Hi,

I've just installed Qt SDK 1.1 Release Candidate and GLC_lib.
WHen I try to compile/make example08 of GLC lib it is not successful.
I'm using QTY creator 2.1.0 on Windows7 64bit.

The compiler/make output is here, pls help:

Running build steps for project Exemple08...
Starting: "c:\qtsdk\desktop\qt\4.7.3\mingw\bin\qmake.exe" C:\GLC_lib\examples_src\Exemple08\Exemple08.pro -r -spec win32-g++ QMLJSDEBUGGER_PATH=C:/QtSDK/QtCreator/share/qtcreator/qml/qmljsdebugger
The process "c:\qtsdk\desktop\qt\4.7.3\mingw\bin\qmake.exe" exited normally.
Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe" -w
mingw32-make: Entering directory `C:/GLC_lib/examples_src/Exemple08-build-desktop'
C:/QtSDK/mingw/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `C:/GLC_lib/examples_src/Exemple08-build-desktop'
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtCore" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtGui" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include" -I"..\..\include" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\ActiveQt" -I"release" -I"..\Exemple08" -I"." -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++" -o release\glwidget.o ..\Exemple08\glwidget.cpp
In file included from ..\..\include/geometry/../glc_ext.h:30,
from ..\..\include/geometry/glc_lod.h:31,
from ..\..\include/geometry/glc_meshdata.h:32,
from ..\..\include/geometry/glc_mesh.h:36,
from ..\..\include/geometry/glc_box.h:31,
from ..\..\include/glc_factory.h:39,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\glwidget.cpp:26:
..\..\include/geometry/../3rdparty/glext/glext.h:3545:1: warning: "GL_LINES_ADJACENCY_EXT" redefined
In file included from ..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/QtOpenGL:10,
from ..\..\include/glc_factory.h:31,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\glwidget.cpp:26:
..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/qglshaderprogram.h:107:1: warning: this is the location of the previous definition
In file included from ..\..\include/geometry/../glc_ext.h:30,
from ..\..\include/geometry/glc_lod.h:31,
from ..\..\include/geometry/glc_meshdata.h:32,
from ..\..\include/geometry/glc_mesh.h:36,
from ..\..\include/geometry/glc_box.h:31,
from ..\..\include/glc_factory.h:39,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\glwidget.cpp:26:
..\..\include/geometry/../3rdparty/glext/glext.h:3546:1: warning: "GL_LINE_STRIP_ADJACENCY_EXT" redefined
In file included from ..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/QtOpenGL:10,
from ..\..\include/glc_factory.h:31,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\glwidget.cpp:26:
..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/qglshaderprogram.h:108:1: warning: this is the location of the previous definition
In file included from ..\..\include/geometry/../glc_ext.h:30,
from ..\..\include/geometry/glc_lod.h:31,
from ..\..\include/geometry/glc_meshdata.h:32,
from ..\..\include/geometry/glc_mesh.h:36,
from ..\..\include/geometry/glc_box.h:31,
from ..\..\include/glc_factory.h:39,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\glwidget.cpp:26:
..\..\include/geometry/../3rdparty/glext/glext.h:3547:1: warning: "GL_TRIANGLES_ADJACENCY_EXT" redefined
In file included from ..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/QtOpenGL:10,
from ..\..\include/glc_factory.h:31,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\glwidget.cpp:26:
..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/qglshaderprogram.h:109:1: warning: this is the location of the previous definition
In file included from ..\..\include/geometry/../glc_ext.h:30,
from ..\..\include/geometry/glc_lod.h:31,
from ..\..\include/geometry/glc_meshdata.h:32,
from ..\..\include/geometry/glc_mesh.h:36,
from ..\..\include/geometry/glc_box.h:31,
from ..\..\include/glc_factory.h:39,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\glwidget.cpp:26:
..\..\include/geometry/../3rdparty/glext/glext.h:3548:1: warning: "GL_TRIANGLE_STRIP_ADJACENCY_EXT" redefined
In file included from ..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/QtOpenGL:10,
from ..\..\include/glc_factory.h:31,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\glwidget.cpp:26:
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtCore" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtGui" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include" -I"..\..\include" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\ActiveQt" -I"release" -I"..\Exemple08" -I"." -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++" -o release\main.o ..\Exemple08\main.cpp
..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/qglshaderprogram.h:110:1: warning: this is the location of the previous definition
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtCore" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtGui" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include" -I"..\..\include" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\ActiveQt" -I"release" -I"..\Exemple08" -I"." -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++" -o release\mainwindow.o ..\Exemple08\mainwindow.cpp
In file included from ..\..\include/geometry/../glc_ext.h:30,
from ..\..\include/geometry/glc_lod.h:31,
from ..\..\include/geometry/glc_meshdata.h:32,
from ..\..\include/geometry/glc_mesh.h:36,
from ..\..\include/geometry/glc_box.h:31,
from ..\..\include/glc_factory.h:39,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\mainwindow.cpp:26:
..\..\include/geometry/../3rdparty/glext/glext.h:3545:1: warning: "GL_LINES_ADJACENCY_EXT" redefined
In file included from ..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/QtOpenGL:10,
from ..\..\include/glc_factory.h:31,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\mainwindow.cpp:26:
..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/qglshaderprogram.h:107:1: warning: this is the location of the previous definition
In file included from ..\..\include/geometry/../glc_ext.h:30,
from ..\..\include/geometry/glc_lod.h:31,
from ..\..\include/geometry/glc_meshdata.h:32,
from ..\..\include/geometry/glc_mesh.h:36,
from ..\..\include/geometry/glc_box.h:31,
from ..\..\include/glc_factory.h:39,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\mainwindow.cpp:26:
..\..\include/geometry/../3rdparty/glext/glext.h:3546:1: warning: "GL_LINE_STRIP_ADJACENCY_EXT" redefined
In file included from ..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/QtOpenGL:10,
from ..\..\include/glc_factory.h:31,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\mainwindow.cpp:26:
..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/qglshaderprogram.h:108:1: warning: this is the location of the previous definition
In file included from ..\..\include/geometry/../glc_ext.h:30,
from ..\..\include/geometry/glc_lod.h:31,
from ..\..\include/geometry/glc_meshdata.h:32,
from ..\..\include/geometry/glc_mesh.h:36,
from ..\..\include/geometry/glc_box.h:31,
from ..\..\include/glc_factory.h:39,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\mainwindow.cpp:26:
..\..\include/geometry/../3rdparty/glext/glext.h:3547:1: warning: "GL_TRIANGLES_ADJACENCY_EXT" redefined
In file included from ..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/QtOpenGL:10,
from ..\..\include/glc_factory.h:31,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\mainwindow.cpp:26:
..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/qglshaderprogram.h:109:1: warning: this is the location of the previous definition
In file included from ..\..\include/geometry/../glc_ext.h:30,
from ..\..\include/geometry/glc_lod.h:31,
from ..\..\include/geometry/glc_meshdata.h:32,
from ..\..\include/geometry/glc_mesh.h:36,
from ..\..\include/geometry/glc_box.h:31,
from ..\..\include/glc_factory.h:39,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\mainwindow.cpp:26:
..\..\include/geometry/../3rdparty/glext/glext.h:3548:1: warning: "GL_TRIANGLE_STRIP_ADJACENCY_EXT" redefined
In file included from ..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/QtOpenGL:10,
from ..\..\include/glc_factory.h:31,
from ..\..\include/GLC_Factory:1,
from ..\Exemple08\/glwidget.h:31,
from ..\Exemple08\mainwindow.cpp:26:
C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtCore" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtGui" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include" -I"..\..\include" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\ActiveQt" -I"release" -I"..\Exemple08" -I"." -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++" -D__GNUC__ -DWIN32 ..\Exemple08\mainwindow.h -o release\moc_mainwindow.cpp
..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL/qglshaderprogram.h:110:1: warning: this is the location of the previous definition
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtCore" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtGui" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include" -I"..\..\include" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\ActiveQt" -I"release" -I"..\Exemple08" -I"." -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++" -o release\moc_mainwindow.o release\moc_mainwindow.cpp
c:\QtSDK\Desktop\Qt\4.7.3\mingw\bin\rcc.exe -threshold 0 -compress 9 -name application ..\Exemple08\application.qrc -o release\qrc_application.cpp
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtCore" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtGui" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtOpenGL" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include" -I"..\..\include" -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\include\ActiveQt" -I"release" -I"..\Exemple08" -I"." -I"..\..\..\QtSDK\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++" -o release\qrc_application.o release\qrc_application.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o release\Exemple08.exe release/glwidget.o release/main.o release/mainwindow.o release/moc_mainwindow.o release/qrc_application.o -L"c:\QtSDK\Desktop\Qt\4.7.3\mingw\lib" -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -lqtmain -LC:\GLC_lib/lib -lGLC_lib2 -lQtOpenGL4 -lQtGui4 -lQtCore4 -LC:\OpenSSL-Win32_full\lib
mingw32-make[1]: Leaving directory `C:/GLC_lib/examples_src/Exemple08-build-desktop'
mingw32-make: Leaving directory `C:/GLC_lib/examples_src/Exemple08-build-desktop'
release/glwidget.o:glwidget.cpp:(.text+0x560): undefined reference to `_imp___ZN20GLC_3DViewCollection11boundingBoxEv'
release/glwidget.o:glwidget.cpp:(.text+0x6ae): undefined reference to `_imp___ZN20GLC_3DViewCollection11boundingBoxEv'
release/glwidget.o:glwidget.cpp:(.text+0xa5b): undefined reference to `_imp___ZN20GLC_3DViewCollection11boundingBoxEv'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [release\Exemple08.exe] Error 1
mingw32-make: *** [release] Error 2
The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project Exemple08 (target: Desktop)
When executing build step 'Make'


Sun Apr 10, 2011 12:20 pm
Profile
Site Admin

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 390
Post Re: making example08 is unsuccesful
Hi,
It seems that linking failed...
Have you installed the library : http://www.glc-lib.net/help.php ?
Have you tried with another example ? Example01.
@+


Tue Apr 12, 2011 9:36 am
Profile

Joined: Tue Apr 19, 2011 3:35 pm
Posts: 5
Location: Bremen, Germany
Post Re: making example08 is unsuccesful
Hi,

when building the examples I get some similar errors on Mac OS X, eg. for Exemple04.
The problem seems to be a missing implementation of GLC_3DViewCollection::boundingBox() and GLC_3DViewInstance::boundingBox().
The declarations are in the header files, but there is no implementation to be found.

Code:
[...]
g++ -headerpad_max_install_names -o Exemple04.app/Contents/MacOS/Exemple04 glwidget.o main.o mainwindow.o moc_mainwindow.o   -F/Library/Frameworks -L/Library/Frameworks -lGLC_lib -framework QtOpenGL -L/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib -F/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib -framework QtGui -framework QtCore -framework OpenGL -framework AGL
Undefined symbols:
  "GLC_3DViewCollection::boundingBox(bool)", referenced from:
      GLWidget::initializeGL()      in glwidget.o
      GLWidget::mouseMoveEvent(QMouseEvent*)       in glwidget.o
      GLWidget::paintGL()     in glwidget.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [Exemple04.app/Contents/MacOS/Exemple04] Error 1


Tue Apr 19, 2011 3:43 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.