my project tree is<div><br></div><div><div>.</div><div>|-- Bin</div><div>| |-- oh yeah.aac</div><div>| `-- oh yeah.h264</div><div>|-- CMakeCache.txt</div><div>|-- CMakeFiles</div><div>| |-- CMakeCCompiler.cmake</div>
<div>| |-- cmake.check_cache</div><div>| |-- CMakeCXXCompiler.cmake</div><div>| |-- CMakeDetermineCompilerABI_C.bin</div><div>| |-- CMakeDetermineCompilerABI_CXX.bin</div><div>| |-- CMakeDirectoryInformation.cmake</div>
<div>| |-- CMakeOutput.log</div><div>| |-- CMakeSystem.cmake</div><div>| |-- CMakeTmp</div><div>| | `-- CMakeFiles</div><div>| | `-- cmTryCompileExec.dir</div><div>| |-- CompilerIdC</div><div>| | |-- a.out</div>
<div>| | `-- CMakeCCompilerId.c</div><div>| |-- CompilerIdCXX</div><div>| | |-- a.out</div><div>| | `-- CMakeCXXCompilerId.cpp</div><div>| |-- main.dir</div><div>| | |-- build.make</div><div>| | |-- cmake_clean.cmake</div>
<div>| | |-- DependInfo.cmake</div><div>| | |-- depend.internal</div><div>| | |-- depend.make</div><div>| | |-- flags.make</div><div>| | |-- link.txt</div><div>| | `-- progress.make</div><div>| |-- Makefile2</div>
<div>| |-- Makefile.cmake</div><div>| |-- Progress</div><div>| | |-- 1</div><div>| | |-- 10</div><div>| | |-- 11</div><div>| | |-- 12</div><div>| | |-- 13</div><div>| | |-- 14</div><div>| | |-- 15</div>
<div>| | |-- 16</div><div>| | |-- 2</div><div>| | |-- 3</div><div>| | |-- 4</div><div>| | |-- 5</div><div>| | |-- 6</div><div>| | |-- 7</div><div>| | |-- 8</div><div>| | |-- 9</div><div>
| | `-- count.txt</div><div>| |-- progress.marks</div><div>| |-- rtspservice.dir</div><div>| | |-- build.make</div><div>| | |-- cmake_clean.cmake</div><div>| | |-- DependInfo.cmake</div><div>| | |-- depend.internal</div>
<div>| | |-- depend.make</div><div>| | |-- flags.make</div><div>| | |-- link.txt</div><div>| | `-- progress.make</div><div>| |-- RtspService.dir</div><div>| | |-- build.make</div><div>| | |-- cmake_clean.cmake</div>
<div>| | |-- DependInfo.cmake</div><div>| | |-- depend.make</div><div>| | |-- flags.make</div><div>| | |-- link.txt</div><div>| | `-- progress.make</div><div>| `-- TargetDirectories.txt</div><div>|-- cmake_install.cmake</div>
<div>|-- CMakeLists.txt</div><div>|-- cmd.txt</div><div>|-- Include</div><div>| |-- cmd.h</div><div>| |-- string_t.h</div><div>| |-- TLock.h</div><div>| |-- VBuffer.h</div><div>| `-- VBufferT.h</div><div>|-- main.c</div>
<div>|-- Makefile</div><div>|-- Network</div><div>| |-- CMakeFiles</div><div>| | |-- CMakeDirectoryInformation.cmake</div><div>| | |-- Network.dir</div><div>| | | |-- build.make</div><div>| | | |-- cmake_clean.cmake</div>
<div>| | | |-- cmake_clean_target.cmake</div><div>| | | |-- CXX.includecache</div><div>| | | |-- DependInfo.cmake</div><div>| | | |-- depend.internal</div><div>| | | |-- depend.make</div><div>
| | | |-- flags.make</div><div>| | | |-- link.txt</div><div>| | | |-- progress.make</div><div>| | | |-- Rtp.cpp.o</div><div>| | | |-- Socket.cpp.o</div><div>| | | |-- Tcp.cpp.o</div><div>
| | | `-- Udp.cpp.o</div><div>| | `-- progress.marks</div><div>| |-- cmake_install.cmake</div><div>| |-- CMakeLists.txt</div><div>| |-- libNetwork.a</div><div>| |-- Makefile</div><div>| |-- Rtp.cpp</div>
<div>| |-- Rtp.h</div><div>| |-- Socket.cpp</div><div>| |-- Socket.h</div><div>| |-- Tcp.cpp</div><div>| |-- Tcp.h</div><div>| |-- Udp.cpp</div><div>| `-- Udp.h</div><div>|-- Rtsp</div><div>| |-- BaseEncoder.h</div>
<div>| |-- Bitstream.cpp</div><div>| |-- Bitstream.h</div><div>| |-- CMakeCache.txt</div><div>| |-- CMakeFiles</div><div>| | |-- CMakeCCompiler.cmake</div><div>| | |-- cmake.check_cache</div><div>| | |-- CMakeCXXCompiler.cmake</div>
<div>| | |-- CMakeDetermineCompilerABI_C.bin</div><div>| | |-- CMakeDetermineCompilerABI_CXX.bin</div><div>| | |-- CMakeDirectoryInformation.cmake</div><div>| | |-- CMakeOutput.log</div><div>| | |-- CMakeSystem.cmake</div>
<div>| | |-- CMakeTmp</div><div>| | | `-- CMakeFiles</div><div>| | | `-- cmTryCompileExec.dir</div><div>| | |-- CompilerIdC</div><div>| | | |-- a.out</div><div>| | | `-- CMakeCCompilerId.c</div>
<div>| | |-- CompilerIdCXX</div><div>| | | |-- a.out</div><div>| | | `-- CMakeCXXCompilerId.cpp</div><div>| | |-- Makefile2</div><div>| | |-- Makefile.cmake</div><div>| | |-- progress.marks</div>
<div>| | |-- Rtsp.dir</div><div>| | | |-- Bitstream.cpp.o</div><div>| | | |-- build.make</div><div>| | | |-- cmake_clean.cmake</div><div>| | | |-- cmake_clean_target.cmake</div><div>| | | |-- CXX.includecache</div>
<div>| | | |-- DependInfo.cmake</div><div>| | | |-- depend.internal</div><div>| | | |-- depend.make</div><div>| | | |-- flags.make</div><div>| | | |-- link.txt</div><div>| | | |-- MediaSession.cpp.o</div>
<div>| | | |-- MediaStream.cpp.o</div><div>| | | |-- MediaStreamH264.cpp.o</div><div>| | | |-- MediaStreamTransport.cpp.o</div><div>| | | |-- progress.make</div><div>| | | |-- RtpTransport.cpp.o</div>
<div>| | | |-- Rtsp.cpp.o</div><div>| | | |-- RtspResponse.cpp.o</div><div>| | | |-- RtspSession.cpp.o</div><div>| | | `-- RtspTransport.cpp.o</div><div>| | |-- RTSP.dir</div><div>| | | |-- build.make</div>
<div>| | | |-- DependInfo.cmake</div><div>| | | |-- depend.internal</div><div>| | | |-- depend.make</div><div>| | | |-- flags.make</div><div>| | | `-- progress.make</div><div>| | `-- TargetDirectories.txt</div>
<div>| |-- cmake_install.cmake</div><div>| |-- CMakeLists.txt</div><div>| |-- libRtsp.a</div><div>| |-- Makefile</div><div>| |-- MediaSession.cpp</div><div>| |-- MediaSession.h</div><div>| |-- MediaStream.cpp</div>
<div>| |-- MediaStream.h</div><div>| |-- MediaStreamH264.cpp</div><div>| |-- MediaStreamH264.h</div><div>| |-- MediaStreamTransport.cpp</div><div>| |-- MediaStreamTransport.h</div><div>| |-- RtpTransport.cpp</div>
<div>| |-- RtpTransport.h</div><div>| |-- Rtsp.cpp</div><div>| |-- Rtsp.h</div><div>| |-- RtspResponse.cpp</div><div>| |-- RtspResponse.h</div><div>| |-- RtspSession.cpp</div><div>| |-- RtspSession.h</div><div>
| |-- RtspTransport.cpp</div><div>| `-- RtspTransport.h</div><div>|-- RtspClient</div><div>| |-- ReadMe.txt</div><div>| |-- RtspClient.cpp</div><div>| |-- StdAfx.cpp</div><div>| `-- StdAfx.h</div><div>|-- RtspService</div>
<div>| |-- aac.h</div><div>| |-- CMakeFiles</div><div>| | |-- CMakeDirectoryInformation.cmake</div><div>| | |-- progress.marks</div><div>| | `-- RtspService.dir</div><div>| | |-- build.make</div><div>
| | |-- cmake_clean.cmake</div><div>| | |-- cmake_clean_target.cmake</div><div>| | |-- CXX.includecache</div><div>| | |-- DependInfo.cmake</div><div>| | |-- depend.internal</div><div>
| | |-- depend.make</div><div>| | |-- flags.make</div><div>| | |-- link.txt</div><div>| | |-- progress.make</div><div>| | |-- RtspService_t.cpp.o</div><div>| | `-- StdAfx.cpp.o</div>
<div>| |-- cmake_install.cmake</div><div>| |-- CMakeLists.txt</div><div>| |-- h264.h</div><div>| |-- h264_slice.h</div><div>| |-- h264_sps.h</div><div>| |-- libRtspService.a</div><div>| |-- Makefile</div><div>
| |-- ReadMe.txt</div><div>| |-- Rtsp.cpp.bak</div><div>| |-- rtspservice</div><div>| |-- RtspService.h</div><div>| |-- rtspservice.strace</div><div>| |-- RtspService_t.cpp</div><div>| |-- RtspService_t.h</div>
<div>| |-- StdAfx.cpp</div><div>| |-- StdAfx.h</div><div>| |-- type.h</div><div>| |-- vlc_bits.h</div><div>| |-- yeah.aac</div><div>| `-- yeah.h264</div><div>|-- tags</div><div>`-- tree.txt</div><div><br></div>
<div>28 directories, 206 files</div><div><br></div><div>and . CmakeList.txt is</div><div><br></div><div>PROJECT(main)</div><div>CMAKE_MINIMUM_REQUIRED(VERSION 2.6)</div><div>SET(CMAKE_CXX_COMPILER g++)</div><div>AUX_SOURCE_DIRECTORY(. DIR_SRCS)</div>
<div>#ADD_SUBDIRECTORY(${DIR_SRCS}/../Include)</div><div>ADD_SUBDIRECTORY(./Rtsp)</div><div>ADD_SUBDIRECTORY(./Network)</div><div>ADD_SUBDIRECTORY(./RtspService)</div><div>INCLUDE_DIRECTORIES(./Rtsp)</div><div>INCLUDE_DIRECTORIES(./Network)</div>
<div>INCLUDE_DIRECTORIES(./RtspService)</div><div>INCLUDE_DIRECTORIES(./Include)</div><div>INCLUDE(./Rtsp)</div><div>INCLUDE(./Network)</div><div>INCLUDE(./RtspService)</div><div>INCLUDE(./Include)</div><div>SET(CMAKE_CXX_FLAGS -std=gnu++0x -lpthread -lrt)</div>
<div>#ADD_SUBDIRECTORY(${DIR_SRCS}/../RtspClient)</div><div>ADD_EXECUTABLE(main .)</div><div>#TARGET_LINK_LIBRARIES(main Rtsp Network RtspService)</div><div>TARGET_LINK_LIBRARIES(main Rtsp Network RtspService)</div><div><br>
</div><div>./Rtsp/CmakeList.txt is</div><div><div>AUX_SOURCE_DIRECTORY(. DIR_Rtsp_SRCS)</div><div>INCLUDE_DIRECTORIES(../Rtsp/)</div><div>INCLUDE_DIRECTORIES(../Network)</div><div>INCLUDE_DIRECTORIES(../RtspService)</div>
<div>INCLUDE_DIRECTORIES(../Include)</div><div>INCLUDE(../Rtsp)</div><div>INCLUDE(../Network)</div><div>INCLUDE(../RtspService)</div><div>INCLUDE(../Include)</div><div>INCLUDE(.)</div><div>SET(CMAKE_CXX_FLAGS -std=gnu++0x)</div>
<div>ADD_LIBRARY(Rtsp ${DIR_Rtsp_SRCS})</div></div><div><br></div><div>./Network/CmakeList.txt</div><div><div>AUX_SOURCE_DIRECTORY(. DIR_Network_SRCS)</div><div>INCLUDE_DIRECTORIES(../Rtsp)</div><div>INCLUDE_DIRECTORIES(../Network)</div>
<div>INCLUDE_DIRECTORIES(../RtspService)</div><div>INCLUDE_DIRECTORIES(../Include)</div><div>ADD_LIBRARY(Network ${DIR_Network_SRCS})</div></div><div><br></div><div>./RtspService/CmakeList.txt is</div><div><div>AUX_SOURCE_DIRECTORY(. DIR_RtspService_SRCS)</div>
<div>INCLUDE_DIRECTORIES(../Rtsp)</div><div>INCLUDE_DIRECTORIES(../Network)</div><div>INCLUDE_DIRECTORIES(../RtspService)</div><div>INCLUDE_DIRECTORIES(../Include)</div><div>SET(CMAKE_CXX_FLAGS -std=gnu++0x)</div><div>ADD_LIBRARY(RtspService ${DIR_RtspService_SRCS})</div>
</div><div><br></div><div>cmake .</div><div>and make</div><div>there are have librtsp libnetwork librtspservice</div><div><br></div><div>but at last</div><div>it show</div><div><br></div><div><div>-- Configuring done</div>
<div>-- Generating done</div><div>-- Build files have been written to: /home/nishizawa23/MyFile/8180/rtsp_linux_v5</div><div>[ 25%] Built target Network</div><div>[ 87%] Built target Rtsp</div><div>[100%] Built target RtspService</div>
<div>Linking CXX executable main</div><div>/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start':</div><div>(.text+0x20): undefined reference to `main'</div><div>collect2: ld returned 1 exit status</div>
<div>make[2]: *** [main] Error 1</div><div>make[1]: *** [CMakeFiles/main.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div><div><br></div><div>i have main.c at .</div>-- <br>pete_doherty<br>
</div>