GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » TPC: Problem in CMakeList.txt (r 11638)
TPC: Problem in CMakeList.txt (r 11638) [message #11684] Wed, 20 April 2011 09:13 Go to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

after updating svn I have the error:

Quote:

CMake Error: Error in cmake code at
/home/turany/fairsoft_jan11/pandaroot/tpc/CMakeLists.txt:234:
Parse error. Function missing ending ")". Instead found left paren with text "(".

....
-- Configuring done
make: *** [cmake_check_build_system] Error 1



the problem comes from the new part which should check for the GL libraries.

Quote:

If(NOT (TEvePath AND OPENGL_FOUND AND OPENGL_GLU_FOUND))
############### install without TpcEve ##################
install(TARGETS Tpc TpcBase DESTINATION ${CMAKE_BINARY_DIR}/lib)
EndIf(NOT (TEvePath AND OPENGL_FOUND AND OPENGL_GLU_FOUND))





instead of this you can use ELSE. i.e:



Quote:


If(TEvePath AND OPENGL_FOUND AND OPENGL_GLU_FOUND)
Message("Found TEve, OpenGL and OpenGL GLU so PndTpcClustVis will be compiled.")

SET(TPC_EVE_SOURCES
TestBench/PndTpcClustVis.cxx
)

CHANGE_FILE_EXTENSION(*.cxx *.h TPC_EVE_HEADERS "${TPC_EVE_SOURCES}")

set(TPC_EVE_LINKDEF tpcEveLinkDef.h)

set(TPC_EVE_DICTIONARY ${CMAKE_CURRENT_BINARY_DIR}/tpcEveDict.cxx)

ROOT_GENERATE_DICTIONARY("${TPC_EVE_HEADERS}" "${TPC_EVE_LINKDEF}" "${TPC_EVE_DICTIONARY}" "${INCLUDE_DIRECTORIES}")

SET(TPC_EVE_SOURCES ${TPC_EVE_SOURCES} ${TPC_EVE_DICTIONARY})

add_library(TpcEve SHARED ${TPC_EVE_SOURCES})
target_link_libraries(TpcEve ${ROOT_LIBRARIES})
set_target_properties(TpcEve PROPERTIES ${FAIRROOT_LIBRARY_PROPERTIES})

################ install with TpcEve ###################
install(TARGETS Tpc TpcBase TpcEve DESTINATION ${CMAKE_BINARY_DIR}/lib)

Else(TEvePath AND OPENGL_FOUND AND OPENGL_GLU_FOUND)

install(TARGETS Tpc TpcBase DESTINATION ${CMAKE_BINARY_DIR}/lib)


EndIf (TEvePath AND OPENGL_FOUND AND OPENGL_GLU_FOUND)






can you please correct this?


regards,

Mohammad


Re: TPC: Problem in CMakeList.txt (r 11638) [message #11685 is a reply to message #11684] Wed, 20 April 2011 10:31 Go to previous message
Johannes Rauch is currently offline  Johannes Rauch
Messages: 41
Registered: September 2010
Location: TUM
continuous participant
From: *natpool.mwn.de
Hi Mohammad,

I changed this, thanks for the hint!

regards,

Johannes
Previous Topic: [FIXED] Crash from libTpcReco
Next Topic: TPC compilation error
Goto Forum:
  


Current Time: Thu Oct 03 19:45:39 CEST 2024

Total time taken to generate the page: 0.00602 seconds