Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] how i solve no member named error

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] how i solve no member named error


Chronological Thread 
  • From: Servenaz <>
  • To:
  • Subject: Re: [cgal-discuss] how i solve no member named error
  • Date: Fri, 18 Aug 2017 02:50:10 -0700 (PDT)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
  • Ironport-phdr: 9a23:yxiqOB2Fb/Hbj58jsmDT+DRfVm0co7zxezQtwd8ZsesTI/ad9pjvdHbS+e9qxAeQG96Eu7QZ06L/iOPJZy8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tLw6annrn5jEbHlDzNBF+O//uMo/UlcW+ke6oqLPJZAAdvzenf750JQf++Q/YvMAVgYJkK+AqlErhrX5BeuAQzmRtcwHA1y3g79u9qcYwux9bvOgsopZN

you are right i use qt5
this is cmakelist.txt:

# This is the CMake script for compiling the AABB tree demo.

project( AABB_tree_Demo )

# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
cmake_minimum_required(VERSION 2.8.11)
if(POLICY CMP0053)
cmake_policy(SET CMP0053 OLD)
endif()

if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()

# Include this package's headers first
include_directories( BEFORE ./ ./include ../../include )

# Find CGAL and CGAL Qt5
find_package(CGAL COMPONENTS Qt5)

# Find Qt5 itself
find_package(Qt5 QUIET COMPONENTS Xml Script OpenGL Gui Svg)

include( ${CGAL_USE_FILE} )

# Find OpenGL
find_package(OpenGL)

# Find QGLViewer
if(Qt5_FOUND)
find_package(QGLViewer)
endif(Qt5_FOUND)

if(CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND
QGLVIEWER_FOUND)

include_directories ( ${QGLVIEWER_INCLUDE_DIR} )

qt5_wrap_ui( UI_FILES MainWindow.ui )

include(AddFileDependencies)

qt5_generate_moc( "MainWindow.h"
"${CMAKE_CURRENT_BINARY_DIR}/MainWindow_moc.cpp" )
add_file_dependencies( MainWindow_moc.cpp
"${CMAKE_CURRENT_SOURCE_DIR}/MainWindow.h" )

qt5_generate_moc( "Viewer.h" "${CMAKE_CURRENT_BINARY_DIR}/Viewer_moc.cpp"
)
add_file_dependencies( Viewer_moc.cpp
"${CMAKE_CURRENT_SOURCE_DIR}/Viewer.h" )

qt5_generate_moc( "Scene.h" "${CMAKE_CURRENT_BINARY_DIR}/Scene_moc.cpp" )
add_file_dependencies( Scene_moc.cpp "${CMAKE_CURRENT_SOURCE_DIR}/Scene.h"
)

qt5_add_resources ( CGAL_Qt5_RESOURCE_FILES AABB_demo.qrc )

add_file_dependencies( AABB_demo.cpp
"${CMAKE_CURRENT_BINARY_DIR}/MainWindow_moc.cpp"

"${CMAKE_CURRENT_BINARY_DIR}/Viewer_moc.cpp"

"${CMAKE_CURRENT_BINARY_DIR}/Scene_moc.cpp" )

add_executable ( AABB_demo AABB_demo.cpp ${UI_FILES}
${CGAL_Qt5_RESOURCE_FILES} ${CGAL_Qt5_MOC_FILES})
qt5_use_modules(AABB_demo Gui OpenGL Xml Script Svg )
# Link with Qt libraries
target_link_libraries( AABB_demo ${QT_LIBRARIES} )

# Link with CGAL
target_link_libraries( AABB_demo ${CGAL_LIBRARIES}
${CGAL_3RD_PARTY_LIBRARIES} )

# Link with libQGLViewer, OpenGL
target_link_libraries( AABB_demo ${QGLVIEWER_LIBRARIES}
${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})

add_to_cached_list( CGAL_EXECUTABLE_TARGETS AABB_demo )


else (CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND
QGLVIEWER_FOUND)

set(AABB_MISSING_DEPS "")

if(NOT CGAL_FOUND)
set(AABB_MISSING_DEPS "the CGAL library, ${AABB_MISSING_DEPS}")
endif()

if(NOT CGAL_Qt5_FOUND)
set(AABB_MISSING_DEPS "CGAL_Qt5, ${AABB_MISSING_DEPS}")
endif()

if(NOT Qt5_FOUND)
set(AABB_MISSING_DEPS "Qt5, ${AABB_MISSING_DEPS}")
endif()

if(NOT OPENGL_FOUND)
set(AABB_MISSING_DEPS "OpenGL, ${AABB_MISSING_DEPS}")
endif()

if(NOT QGLVIEWER_FOUND)
set(AABB_MISSING_DEPS "QGLViewer, ${AABB_MISSING_DEPS}")
endif()

message(STATUS "NOTICE: This demo requires ${AABB_MISSING_DEPS}and will
not be compiled.")

endif (CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND
QGLVIEWER_FOUND)


does qt version cause problem?




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/how-i-solve-no-member-named-error-tp4662922p4662946.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page