[Insight-users] ITK + FLTK compile error

Alex Houston ahouston_29@yahoo.com
Thu May 20 16:46:09 EDT 2004


--0-1583112906-1085067969=:49205
Content-Type: text/plain; charset=us-ascii

Hi
 
I am trying to run the program  InsightApplications/RegionGrowingSegmentation
 
I have ITK version 1.6 , FLTK 1.1.4 and cmake 1.8 patch 3 and I am using .net
 
I get the error "unknow command ADD_GUI_EXCUTABLE"
 
All the directories and lib files are set correctly in cmake window { 4 FLTK lib, fluid executable and fltk include are all set coorectly}
 
below is CMakeLists.txt
 
PROJECT( RegionGrowingSegmentation )
 
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
   INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
   MESSAGE(FATAL_ERROR
           "Cannot build without ITK.  Please set ITK_DIR.")
ENDIF(ITK_FOUND)

FIND_PACKAGE(FLTK)
IF(FLTK_FOUND)
   INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
ELSE(FLTK_FOUND)
   MESSAGE(FATAL_ERROR
         "Cannot build without FLTK.  Please set FLTK components.")
ENDIF(FLTK_FOUND)

SET(RegionGrowingSegmentation_SRCS
RegionGrowingSegmentationBase.cxx
RegionGrowingSegmentation.cxx
)
SET(RegionGrowingSegmentation_GUI_SRCS
RegionGrowingSegmentationGUI.fl
)
ADD_GUI_EXECUTABLE(RegionGrowingSegmentation "${RegionGrowingSegmentation_SRCS}")
FLTK_WRAP_UI( RegionGrowingSegmentation ${RegionGrowingSegmentation_GUI_SRCS} )
 
 
Thanks
A. Houston
 
PS: is it Anything to do with TARGET_LINK_LIBRARIES or INCLUDE_DIRECTORIES
 
 


		
---------------------------------
Do you Yahoo!?
Yahoo! Domains - Claim yours for only $14.70/year
--0-1583112906-1085067969=:49205
Content-Type: text/html; charset=us-ascii

<DIV>
<DIV>Hi</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am trying to run the program&nbsp; InsightApplications/RegionGrowingSegmentation</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have ITK version 1.6 , FLTK 1.1.4 and cmake 1.8 patch 3 and I am using .net</DIV>
<DIV>&nbsp;</DIV>
<DIV>I get the error "unknow command ADD_GUI_EXCUTABLE"</DIV>
<DIV>&nbsp;</DIV>
<DIV>All the directories and lib files are set correctly in cmake window { 4 FLTK lib, fluid executable and fltk include are all set coorectly}</DIV>
<DIV>&nbsp;</DIV>
<DIV>below is CMakeLists.txt</DIV>
<DIV>&nbsp;</DIV>
<DIV>PROJECT( RegionGrowingSegmentation )</DIV>
<DIV>&nbsp;</DIV>
<DIV>FIND_PACKAGE(ITK)<BR>IF(ITK_FOUND)<BR>&nbsp;&nbsp; INCLUDE(${ITK_USE_FILE})<BR>ELSE(ITK_FOUND)<BR>&nbsp;&nbsp; MESSAGE(FATAL_ERROR<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Cannot build without ITK.&nbsp; Please set ITK_DIR.")<BR>ENDIF(ITK_FOUND)</DIV>
<DIV><BR>FIND_PACKAGE(FLTK)<BR>IF(FLTK_FOUND)<BR>&nbsp;&nbsp; INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<BR>ELSE(FLTK_FOUND)<BR>&nbsp;&nbsp; MESSAGE(FATAL_ERROR<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Cannot build without FLTK.&nbsp; Please set FLTK components.")<BR>ENDIF(FLTK_FOUND)</DIV>
<DIV><BR>SET(RegionGrowingSegmentation_SRCS<BR>RegionGrowingSegmentationBase.cxx<BR>RegionGrowingSegmentation.cxx<BR>)</DIV>
<DIV>SET(RegionGrowingSegmentation_GUI_SRCS<BR>RegionGrowingSegmentationGUI.fl<BR>)</DIV>
<DIV>ADD_GUI_EXECUTABLE(RegionGrowingSegmentation "${RegionGrowingSegmentation_SRCS}")</DIV>
<DIV>FLTK_WRAP_UI( RegionGrowingSegmentation ${RegionGrowingSegmentation_GUI_SRCS} )</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks</DIV>
<DIV>A. Houston</DIV>
<DIV>&nbsp;</DIV>
<DIV>PS: is it Anything to do with TARGET_LINK_LIBRARIES or INCLUDE_DIRECTORIES</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></DIV><p>
		<hr size=1><font face=arial size=-1>Do you Yahoo!?<br>Yahoo! Domains - <a href="http://us.rd.yahoo.com/evt=23613/*http://smallbusiness.promotions.yahoo.com/offer">Claim yours for only $14.70/year</a>
--0-1583112906-1085067969=:49205--



More information about the Insight-users mailing list