Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Cannot compile GLC_player

  1. #11
    Join Date
    Jul 2013
    Beans
    12

    Re: Cannot compile GLC_player

    Quote Originally Posted by spjackson View Post
    And did the make complete successfully?

    qmake creates a Makefile which has no target called release, i.e. it contains no line beginning with
    Code:
    release:
    The instruction to do "make release" is either out of date or has always been wrong on Linux platforms.

    If "make" has built the program successfully, there is nothing more to do unless you want to copy the resulting program (and any .so files) to a particular location.
    There is a result:

    Code:
    ~/Downloads/GLC_Player_src_2.3.0$ make
    g++ -c -m64 -pipe -g -Wall -W -D_REENTRANT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/local/include/GLC_lib -I/usr/X11R6/include -IBuild -IBuild -o Build/OpenglView.o opengl_view/OpenglView.cpp
    opengl_view/OpenglView.cpp: In constructor ‘OpenglView::OpenglView(QWidget*)’:
    opengl_view/OpenglView.cpp:79:25: error: no matching function for call to ‘GLC_Viewport::GLC_Viewport(OpenglView*)’
     , m_CurrentLightIndex(-1)
                             ^
    In file included from /usr/local/include/GLC_lib/GLC_Viewport:1,
                     from opengl_view/OpenglView.h:28,
                     from opengl_view/OpenglView.cpp:24:
    /usr/local/include/GLC_lib/viewport/glc_viewport.h:72:2: note: candidate: ‘GLC_Viewport::GLC_Viewport()’
      GLC_Viewport();
      ^~~~~~~~~~~~
    /usr/local/include/GLC_lib/viewport/glc_viewport.h:72:2: note:   candidate expects 0 arguments, 1 provided
    opengl_view/OpenglView.cpp: In member function ‘virtual void OpenglView::paintGL()’:
    opengl_view/OpenglView.cpp:516:11: error: ‘class GLC_Light’ has no member named ‘enable’; did you mean ‘disable’?
       m_Light.enable();
               ^~~~~~
               disable
    opengl_view/OpenglView.cpp:525:22: error: ‘class GLC_Light’ has no member named ‘enable’; did you mean ‘disable’?
         m_UserLights[i]->enable();
                          ^~~~~~
                          disable
    opengl_view/OpenglView.cpp: In member function ‘virtual void OpenglView::mousePressEvent(QMouseEvent*)’:
    opengl_view/OpenglView.cpp:705:10: warning: enumeration value ‘VE_NORMAL’ not handled in switch [-Wswitch]
       switch (m_ViewEnterState)
              ^
    In file included from /usr/include/qt4/QtGui/qbrush.h:47,
                     from /usr/include/qt4/QtGui/qpalette.h:47,
                     from /usr/include/qt4/QtGui/qwidget.h:50,
                     from /usr/include/qt4/QtOpenGL/qgl.h:45,
                     from /usr/include/qt4/QtOpenGL/QGLWidget:1,
                     from /usr/local/include/GLC_lib/viewport/glc_viewport.h:27,
                     from /usr/local/include/GLC_lib/GLC_Viewport:1,
                     from opengl_view/OpenglView.h:28,
                     from opengl_view/OpenglView.cpp:24:
    /usr/include/qt4/QtCore/qvector.h: In instantiation of ‘void QVector<T>::realloc(int, int) [with T = GLC_Matrix4x4]’:
    /usr/include/qt4/QtCore/qvector.h:337:3:   required from ‘void QVector<T>::detach_helper() [with T = GLC_Matrix4x4]’
    /usr/include/qt4/QtCore/qvector.h:147:45:   required from ‘void QVector<T>::detach() [with T = GLC_Matrix4x4]’
    /usr/include/qt4/QtCore/qstack.h:73:31:   required from ‘T& QStack<T>::top() [with T = GLC_Matrix4x4]’
    /usr/local/include/GLC_lib/viewport/../sceneGraph/../glc_context.h:81:105:   required from here
    /usr/include/qt4/QtCore/qvector.h:503:25: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘QVector<GLC_Matrix4x4>::Data’ {aka ‘struct QVectorTypedData<GLC_Matrix4x4>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
                     ::memcpy(x.p, p, sizeOfTypedData() + (qMin(aalloc, d->alloc) - 1) * sizeof(T));
                     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/include/qt4/QtGui/qbrush.h:47,
                     from /usr/include/qt4/QtGui/qpalette.h:47,
                     from /usr/include/qt4/QtGui/qwidget.h:50,
                     from /usr/include/qt4/QtOpenGL/qgl.h:45,
                     from /usr/include/qt4/QtOpenGL/QGLWidget:1,
                     from /usr/local/include/GLC_lib/viewport/glc_viewport.h:27,
                     from /usr/local/include/GLC_lib/GLC_Viewport:1,
                     from opengl_view/OpenglView.h:28,
                     from opengl_view/OpenglView.cpp:24:
    /usr/include/qt4/QtCore/qvector.h:94:8: note: ‘QVector<GLC_Matrix4x4>::Data’ {aka ‘struct QVectorTypedData<GLC_Matrix4x4>’} declared here
     struct QVectorTypedData : private QVectorData
            ^~~~~~~~~~~~~~~~
    make: *** [Makefile:875: Build/OpenglView.o] Fehler 1
    There were some error. But are they important? Or maybe they are only warnings?

    Where can I find a result binary (and *.so files) and to which location should I put them?

  2. #12
    Join Date
    Jul 2013
    Beans
    12

    Re: Cannot compile GLC_player

    Quote Originally Posted by spjackson View Post
    For Linux, probably not unless Dassault's player works under wine. https://en.wikipedia.org/wiki/3DXML
    I have also tried to install 3DXML Player under the Wine but with no success. The installation runs, but after 1 sec stops and rolls back. Folders are created:

    Code:
    ~/.wine/drive_c/Program Files/Dassault Systemes/3D XML Player$
    but content is empty.

  3. #13
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,472
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Cannot compile GLC_player

    Quote Originally Posted by davidnr View Post
    Code:
    ~/Downloads/GLC_Player_src_2.3.0$ make
    g++ -c -m64 -pipe -g -Wall -W -D_REENTRANT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/local/include/GLC_lib -I/usr/X11R6/include -IBuild -IBuild -o Build/OpenglView.o opengl_view/OpenglView.cpp
    opengl_view/OpenglView.cpp: In constructor ‘OpenglView::OpenglView(QWidget*)’:
    opengl_view/OpenglView.cpp:79:25: error: no matching function for call to ‘GLC_Viewport::GLC_Viewport(OpenglView*)’
     , m_CurrentLightIndex(-1)
                             ^
    In file included from /usr/local/include/GLC_lib/GLC_Viewport:1,
                     from opengl_view/OpenglView.h:28,
                     from opengl_view/OpenglView.cpp:24:
    /usr/local/include/GLC_lib/viewport/glc_viewport.h:72:2: note: candidate: ‘GLC_Viewport::GLC_Viewport()’
      GLC_Viewport();
      ^~~~~~~~~~~~
    /usr/local/include/GLC_lib/viewport/glc_viewport.h:72:2: note:   candidate expects 0 arguments, 1 provided
    opengl_view/OpenglView.cpp: In member function ‘virtual void OpenglView::paintGL()’:
    opengl_view/OpenglView.cpp:516:11: error: ‘class GLC_Light’ has no member named ‘enable’; did you mean ‘disable’?
       m_Light.enable();
               ^~~~~~
               disable
    opengl_view/OpenglView.cpp:525:22: error: ‘class GLC_Light’ has no member named ‘enable’; did you mean ‘disable’?
         m_UserLights[i]->enable();
                          ^~~~~~
                          disable
    opengl_view/OpenglView.cpp: In member function ‘virtual void OpenglView::mousePressEvent(QMouseEvent*)’:
    opengl_view/OpenglView.cpp:705:10: warning: enumeration value ‘VE_NORMAL’ not handled in switch [-Wswitch]
       switch (m_ViewEnterState)
              ^
    In file included from /usr/include/qt4/QtGui/qbrush.h:47,
                     from /usr/include/qt4/QtGui/qpalette.h:47,
                     from /usr/include/qt4/QtGui/qwidget.h:50,
                     from /usr/include/qt4/QtOpenGL/qgl.h:45,
                     from /usr/include/qt4/QtOpenGL/QGLWidget:1,
                     from /usr/local/include/GLC_lib/viewport/glc_viewport.h:27,
                     from /usr/local/include/GLC_lib/GLC_Viewport:1,
                     from opengl_view/OpenglView.h:28,
                     from opengl_view/OpenglView.cpp:24:
    /usr/include/qt4/QtCore/qvector.h: In instantiation of ‘void QVector<T>::realloc(int, int) [with T = GLC_Matrix4x4]’:
    /usr/include/qt4/QtCore/qvector.h:337:3:   required from ‘void QVector<T>::detach_helper() [with T = GLC_Matrix4x4]’
    /usr/include/qt4/QtCore/qvector.h:147:45:   required from ‘void QVector<T>::detach() [with T = GLC_Matrix4x4]’
    /usr/include/qt4/QtCore/qstack.h:73:31:   required from ‘T& QStack<T>::top() [with T = GLC_Matrix4x4]’
    /usr/local/include/GLC_lib/viewport/../sceneGraph/../glc_context.h:81:105:   required from here
    /usr/include/qt4/QtCore/qvector.h:503:25: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘QVector<GLC_Matrix4x4>::Data’ {aka ‘struct QVectorTypedData<GLC_Matrix4x4>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
                     ::memcpy(x.p, p, sizeOfTypedData() + (qMin(aalloc, d->alloc) - 1) * sizeof(T));
                     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /usr/include/qt4/QtGui/qbrush.h:47,
                     from /usr/include/qt4/QtGui/qpalette.h:47,
                     from /usr/include/qt4/QtGui/qwidget.h:50,
                     from /usr/include/qt4/QtOpenGL/qgl.h:45,
                     from /usr/include/qt4/QtOpenGL/QGLWidget:1,
                     from /usr/local/include/GLC_lib/viewport/glc_viewport.h:27,
                     from /usr/local/include/GLC_lib/GLC_Viewport:1,
                     from opengl_view/OpenglView.h:28,
                     from opengl_view/OpenglView.cpp:24:
    /usr/include/qt4/QtCore/qvector.h:94:8: note: ‘QVector<GLC_Matrix4x4>::Data’ {aka ‘struct QVectorTypedData<GLC_Matrix4x4>’} declared here
     struct QVectorTypedData : private QVectorData
            ^~~~~~~~~~~~~~~~
    make: *** [Makefile:875: Build/OpenglView.o] Fehler 1
    There were some error. But are they important? Or maybe they are only warnings?
    There are 3 fatal errors which I have marked in red. Because of these, make stops and does not produce an executable. The implication is that the GLC Player source that you are using is incompatible with the GLC_lib source that you are using. GLC Player is using aspects of the interface to GLC_lib which the latter does not provide.

    I would personally be concerned about the warnings but the warnings do not prevent the build - they may potentially give rise to problems at runtime, or they may be OK.

  4. #14
    Join Date
    Jun 2007
    Beans
    17,075

    Re: Cannot compile GLC_player

    The whole project is stagnant, was & is a mess in many ways.
    You'd need to match your qt verion with GLC_lib version & that with the GLC_player version. Plus in all cases there are some errors in the .pro or code.

    So the 3.0.1 lib will build with the next branch of the player (git) & produce a binary in 16.04. However the binary segfaults so useless.

    The 2.5 lib will build with the 2.3.0 version of player and can work, though only in 14.04 it seems. (screens 1 & 2
    (- in the lib build example 11 needs an edit as in gedit screen
    After installing lib one must run
    sudo ldconfig

    Doesn't appear any combo will build or run in 18.04.

    To see what a mess ck. the github issues on both sources.
    https://github.com/laumaya/GLC_lib/issues
    https://github.com/laumaya/GLC_Player/issues

  5. #15
    Join Date
    Jul 2013
    Beans
    12

    Re: Cannot compile GLC_player

    OK, So I understand, that I can forget about GLC_Player on 18.10.
    But what about installing 3DXML Player under the Wine?

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •