[Jderobot-dev] MAKE no encuentra colorspacesmm.h

jgandia jaimerodriguezgandia en gmail.com
Vie Abr 19 19:01:36 CEST 2013


bueno retomando el proyecto quiero compilar mi componente que es similar al
cameraviewer. Tengo aqui mi CMakeLists.txtÇ


cmake_minimum_required(VERSION 2.8)


SET (DEPS_DIR /home/jaime/Escritorio/jderobot/trunk/Deps/)
SET( SOURCE_FILES micomponenteviewer.cpp viewer.cpp)

add_definitions(-DGLADE_DIR="${gladedir}")
include(${DEPS_DIR}/ice/CMakeLists.txt)

include_directories(
    ${INTERFACES_CPP_DIR}
    ${LIBS_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}
	
)

add_executable (micomponenteviewer ${SOURCE_FILES})

TARGET_LINK_LIBRARIES(micomponenteviewer 
    	${OpenCV_LIBRARIES}
	${gtkmm_LIBRARIES}
	${LIBS_DIR}/colorspaces/libcolorspacesmm.so
    	${libglademm_LIBRARIES}
    	${INTERFACES_CPP_DIR}/jderobot/libJderobotInterfaces.so
   	${ZeroCIce_LIBRARIES}
)

que problema hay que no me encuentra colorspacesmm.h?

#/build> cmake ..

- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
*** ICE ok
-- Configuring done
-- Generating done

#/build> make 

Scanning dependencies of target micomponenteviewer
[ 50%] Building CXX object
CMakeFiles/micomponenteviewer.dir/micomponenteviewer.cpp.o
/home/jaime/Escritorio/mirepositorio/pfc-itis/trunk/micomponenteCLient/micomponenteviewer.cpp:5:39:
error fatal: colorspaces/colorspacesmm.h: No existe el archivo o el
directorio
compilación terminada.
make[2]: *** [CMakeFiles/micomponenteviewer.dir/micomponenteviewer.cpp.o]
Error 1
make[1]: *** [CMakeFiles/micomponenteviewer.dir/all] Error 2
make: *** [all] Error 2

si se lo incluyo en el CMakeLists.txt en el include_DIRS se queja de otro
archivo.h y si se lo incluyo asi sucesivamente con muchos archivos, ¿que
ocurre? el ultimo archivo donde me quede fue el siguiente:

cc1plus: aviso: /usr/include/glibmm-2.4/glibmm.h: not a directory [activado
por defecto]
In file included from
/home/jaime/Escritorio/mirepositorio/pfc-itis/trunk/micomponenteCLient/viewer.h:25:0,
                 from
/home/jaime/Escritorio/mirepositorio/pfc-itis/trunk/micomponenteCLient/micomponenteviewer.cpp:6:
/usr/include/gtkmm-2.4/gtkmm.h:89:19: error fatal: gdkmm.h: No existe el
archivo o el directorio
compilación terminada.
make[2]: *** [CMakeFiles/micomponenteviewer.dir/micomponenteviewer.cpp.o]
Error 1
make[1]: *** [CMakeFiles/micomponenteviewer.dir/all] Error 2
make: *** [all] Error 2

mi CMakeLists a quedado asi...

cmake_minimum_required(VERSION 2.8)


SET (DEPS_DIR /home/jaime/Escritorio/jderobot/trunk/Deps/)
SET( SOURCE_FILES micomponenteviewer.cpp viewer.cpp)
SET(COLOR_SPACES /home/jaime/Escritorio/jderobot/trunk/src/libs/)
SET (GTK_DIRS /usr/include/gtkmm-2.4)
SET( GLIB_DIR /usr/include/glibmm-2.4)
SET (GLIBMM_DIR /usr/lib/i386-linux-gnu/glibmm-2.4/include)
SET(GLIBB_USR /usr/include/glib-2.0)
SET(A2 /usr/lib/i386-linux-gnu/glib-2.0/include)
SET(A3 /usr/include/sigc++-2.0/sigc++)
SET(A4 /usr/include)
SET(A5 /usr/include/sigc++-2.0/)
SET (A6 /usr/lib/i386-linux-gnu/sigc++-2.0/include)
SET (A7 /usr/include/giomm-2.4)




add_definitions(-DGLADE_DIR="${gladedir}")
include(${DEPS_DIR}/ice/CMakeLists.txt)

include_directories(
    ${INTERFACES_CPP_DIR}
    ${LIBS_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${COLOR_SPACES} 
    ${GLIB_DIR}
    ${GTK_DIRS}
    ${GLIBMM_DIR}
    ${INCLUDE_USR}
    ${A2}
    ${A3}
    ${A4}
    ${A5}
    ${A6}
    ${A7}
    ${GLIBB_USR}
   
	
/usr/include/glibmm-2.4/glibmm.h

	
)

add_executable (micomponenteviewer ${SOURCE_FILES})

TARGET_LINK_LIBRARIES(micomponenteviewer 
    	${OpenCV_LIBRARIES}
	${gtkmm_LIBRARIES}
	${LIBS_DIR}/colorspaces/libcolorspacesmm.so
    	${libglademm_LIBRARIES}
    	${INTERFACES_CPP_DIR}/jderobot/libJderobotInterfaces.so
   	${ZeroCIce_LIBRARIES}
)








--
View this message in context: http://jderobot-developer-list.2315034.n4.nabble.com/MAKE-no-encuentra-colorspacesmm-h-tp4641248.html
Sent from the Jderobot Developer List mailing list archive at Nabble.com.


More information about the Jde-developers mailing list