Changeset 799


Ignore:
Timestamp:
01/10/2011 12:27:49 PM (10 years ago)
Author:
lmalek
Message:

Extended Linux instlation instruction

Location:
libs/SAMGAR/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libs/SAMGAR/trunk/INSTALL_Linux.txt

    r795 r799  
    9797sudo cp FindYARP.cmake /usr/share/cmake-2.8/Modules/ 
    9898 
    99 than go to module directory   
     99If your version of cmake is not 2.8 please fix the above liene so it will fit to your system. 
     100Than go to module directory   
    100101 
    101 cd ../SAMGAR/Modules/Examles 
     102cd ../SAMGAR/Modules 
    102103 
    103104to prevent making mess in code this time I suggest to build outside the source, so we have to create a new directory 
     
    107108ccmake ../ 
    108109 
     110If you want to compile Examples please select EXAMPLES_ENABLE to ON. 
     111If you want to compile other projects you have to select {ProjectName}_ENABLE to ON. 
    109112Type [c] two times and then [g]. After creating makefile compile the example module 
    110113 
    111114make 
     115 
     116After succesfull compilation if you have selected EXAMPLES_ENABLE to ON then exacutable example binary files can be found in 
     117 
     118SAMGAR/Modules/build/Examples  
     119 
     120You should find there following executable file: 
     121 
     122SamExamples   
     123 
     124if you have OpenCV installed then you will also find there files: 
     125 
     126VideoGet  VideoSend 
    112127 
    1131287. To make example working first start  
     
    121136Aster starting SamExample in yarpserver3 GUI appropriate elements should appear. You can connect modules ports by clicking  
    122137left mouse button on the desired ports. 
     138 
     139 
     140------------------------------------------------------------------------------------ 
     141ADDINT NEW MODULE 
     142------------------------------------------------------------------------------------ 
     143 
     144To add your own new module you should go to 
     145 
     146cd SAMGAR_DIR/Modules 
     147 
     148create new directory 
     149 
     150mkdir MyNewModule 
     151cd MyNewModule 
     152 
     153create there files in the similar way that they are created in SAMGAR/Modules/Examples direcotry. Finally you should modify 
     154 
     155SAMGAR_DIR/Modules/CMakeLists.txt 
     156 
     157by adding similar lines to those that are there for Examples module.  
     158 
    123159 
    124160------------------------------------------------------------------------------------ 
  • libs/SAMGAR/trunk/Modules/Examples/CMakeLists.txt

    r796 r799  
    99 
    1010# find OpenCV 
    11 pkg_check_modules(OpenCV REQUIRED opencv) 
     11pkg_check_modules(OpenCV opencv) 
    1212 
    1313# add YARP include directories 
    1414include_directories(${YARP_INCLUDE_DIRS}) 
    15 include_directories(${OpenCV_INCLUDE_DIRS}) 
    1615include_directories(${SAMGARMODULE_DIR}) 
     16if (OpenCV_FOUND) 
     17        include_directories(${OpenCV_INCLUDE_DIRS}) 
     18endif (OpenCV_FOUND) 
     19 
    1720 
    1821# set up our program 
    1922add_executable(SamExamples SamExample.cpp ExampleOne.cpp) 
    20 add_executable(VideoSend VideoSend.cpp) 
    21 add_executable(VideoGet  VideoGet.cpp) 
     23if (OpenCV_FOUND) 
     24        add_executable(VideoSend VideoSend.cpp) 
     25        add_executable(VideoGet  VideoGet.cpp) 
     26endif (OpenCV_FOUND) 
    2227 
    2328# link with YARP libraries 
    2429target_link_libraries(SamExamples SamgarModule ${YARP_LIBRARIES} ACE) 
    25 target_link_libraries(VideoSend SamgarModule ${YARP_LIBRARIES} ${OpenCV_LIBRARIES} ACE) 
    26 target_link_libraries(VideoGet SamgarModule ${YARP_LIBRARIES} ${OpenCV_LIBRARIES} ACE) 
     30if (OpenCV_FOUND) 
     31        target_link_libraries(VideoSend SamgarModule ${YARP_LIBRARIES} ${OpenCV_LIBRARIES} ACE) 
     32        target_link_libraries(VideoGet SamgarModule ${YARP_LIBRARIES} ${OpenCV_LIBRARIES} ACE) 
     33endif (OpenCV_FOUND) 
Note: See TracChangeset for help on using the changeset viewer.