<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Am 25.08.2013 17:03, schrieb Zafrullah
      Syed:<br>
    </div>
    <blockquote
cite="mid:CAAGt+t0Ff3VAeZGXZv3tqB1DNgmeeBa73uAfKHbQFGLOU8tqOg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Stefan,
        <div><br>
        </div>
        <div>I updated my recipe:</div>
        <div><br>
        </div>
        <div>
          <div>DESCRIPTION = "cameracapture application" </div>
          <div>SECTION = "examples" </div>
          <div>LICENSE = "CLOSED" </div>
          <div>PR = "r0" </div>
          <div><br>
          </div>
          <div>DEPENDS = "opencv"<br>
          </div>
          <div><br>
          </div>
          <div>SRC_URI = "git://<a moz-do-not-send="true"
              href="http://github.com/zafrullahsyed/cameracapture.git"
              target="_blank">github.com/zafrullahsyed/cameracapture.git</a>;protocol=https;tag=v0.1"<br>
          </div>
          <div><br>
          </div>
          <div>S = "${WORKDIR}/git"<br>
          </div>
          <div>inherit pkgconfig cmake<br>
          </div>
        </div>
        <div><br>
        </div>
        <div>I have my source file and CMakeLists.txt as tar on github.
          tar is not getting downloaded.</div>
      </div>
    </blockquote>
    The tar should be in the "${WORKDIR}/git" directory but it will not
    work as you don't tell bitbake to unpack it.<br>
    <br>
    You repository with tag "v0.1" contains only a README.md!<br>
    <br>
    The common use case is to put all sources into the git repository.
    Why you want to save a tar in a git repository?<br>
    <br>
    <blockquote
cite="mid:CAAGt+t0Ff3VAeZGXZv3tqB1DNgmeeBa73uAfKHbQFGLOU8tqOg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>--> If I remove tar and keep just source file and
          CMakeLists.txt, then also it is not getting downloaded.</div>
      </div>
    </blockquote>
    Have you check the content of the
    /home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/git
    directory?<br>
    <br>
    <blockquote
cite="mid:CAAGt+t0Ff3VAeZGXZv3tqB1DNgmeeBa73uAfKHbQFGLOU8tqOg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div> I am getting </div>
        <div><br>
        </div>
        <div>CMake Error: The source directory
          "/home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/cameracapture-0.1"
          does not appear to contain CMakeLists.txt.</div>
      </div>
    </blockquote>
            ^^^<br>
    Are you sure you have change the S variable? The error still
    reference the common directory ("${WORKDIR}/${PN}-${PV}").
    <blockquote
cite="mid:CAAGt+t0Ff3VAeZGXZv3tqB1DNgmeeBa73uAfKHbQFGLOU8tqOg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>--> I copied my CMakeLists.txt file in ${WORKDIR}/git
          and tried the build, got this following error:</div>
        <div><br>
        </div>
        <div>
          <div>
            <div>ERROR: Function failed: do_configure (see
              /home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/temp/log.do_configure.10784
              for further information)</div>
            <div>ERROR: Logfile of failure stored in:
/home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/temp/log.do_configure.10784</div>
            <div>Log data follows:</div>
            <div>| DEBUG: Executing python function sysroot_cleansstate</div>
            <div>| DEBUG: Python function sysroot_cleansstate finished</div>
            <div>| DEBUG: SITE files ['endian-little', 'bit-32',
              'arm-common', 'common-linux', 'common-glibc', 'arm-linux',
              'arm-linux-gnueabi', 'common']</div>
            <div>| DEBUG: Executing shell function
              autotools_preconfigure</div>
            <div>| DEBUG: Shell function autotools_preconfigure finished</div>
            <div>| DEBUG: Executing shell function do_configure</div>
            <div>| CMake Error at
              /home/siguser/yocto/build/tmp/sysroots/x86_64-linux/usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:95
              (MESSAGE):</div>
            <div>|   Could not find toolchain file:</div>
            <div>|  
/home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/toolchain.cmake</div>
          </div>
        </div>
      </div>
    </blockquote>
    It looks as something went wrong. Please clear the old package and
    try again or increment the PR number.<br>
    bitbake -c cleansstate cameracapture && bitbake
    cameracapture<br>
    <br>
    <blockquote
cite="mid:CAAGt+t0Ff3VAeZGXZv3tqB1DNgmeeBa73uAfKHbQFGLOU8tqOg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>| Call Stack (most recent call first):</div>
            <div>
              |   CMakeLists.txt:2 (project)</div>
            <div>| </div>
            <div>| </div>
            <div>| CMake Error: Error required internal CMake variable
              not set, cmake may be not be built correctly.</div>
            <div>| Missing variable is:</div>
            <div>| CMAKE_C_COMPILER_ENV_VAR</div>
            <div>| CMake Error: Error required internal CMake variable
              not set, cmake may be not be built correctly.</div>
            <div>| Missing variable is:</div>
            <div>| CMAKE_C_COMPILER</div>
            <div>| CMake Error: Could not find cmake module
<a class="moz-txt-link-freetext" href="file:/home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/git/CMakeFiles/CMakeCCompiler.cmake">file:/home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/git/CMakeFiles/CMakeCCompiler.cmake</a></div>
            <div>| CMake Error: Error required internal CMake variable
              not set, cmake may be not be built correctly.</div>
            <div>| Missing variable is:</div>
            <div>| CMAKE_CXX_COMPILER_ENV_VAR</div>
            <div>| CMake Error: Error required internal CMake variable
              not set, cmake may be not be built correctly.</div>
            <div>| Missing variable is:</div>
            <div>| CMAKE_CXX_COMPILER</div>
            <div>| CMake Error: Could not find cmake module
<a class="moz-txt-link-freetext" href="file:/home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/git/CMakeFiles/CMakeCXXCompiler.cmake">file:/home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/git/CMakeFiles/CMakeCXXCompiler.cmake</a></div>
            <div>| CMake Error: CMAKE_C_COMPILER not set, after
              EnableLanguage</div>
            <div>| CMake Error: CMAKE_CXX_COMPILER not set, after
              EnableLanguage</div>
            <div>| -- Configuring incomplete, errors occurred!</div>
            <div>| ERROR: Function failed: do_configure (see
              /home/siguser/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/cameracapture-0.1-r0/temp/log.do_configure.10784
              for further information)</div>
            <div>ERROR: Task 6
              (/home/siguser/yocto/poky/meta-bebot/recipes-bebot/cameracapture/<a
                moz-do-not-send="true"
                href="http://cameracapture_0.1.bb" target="_blank">cameracapture_0.1.bb</a>,
              do_configure) failed with exit code '1'</div>
          </div>
        </div>
        <div><br>
        </div>
        <div>Do I need to set CXX Compiler in my CMakeLists.txt?</div>
      </div>
    </blockquote>
    No, this are subsequent errors of the missing toolchain.cmake.<br>
    <br>
    <blockquote
cite="mid:CAAGt+t0Ff3VAeZGXZv3tqB1DNgmeeBa73uAfKHbQFGLOU8tqOg@mail.gmail.com"
      type="cite">
      <div dir="ltr">My CmakeLists.txt file:
        <div><br>
        </div>
        <div>
          <div>cmake_minimum_required(VERSION 2.8)</div>
          <div>project(cameracapture)</div>
          <div>find_package( OpenCV REQUIRED )</div>
          <div>add_executable( cameracapture cameracapture.cpp )</div>
          <div>target_link_libraries( cameracapture ${OpenCV_LIBS} )</div>
        </div>
      </div>
    </blockquote>
    This looks okay.<br>
    <br>
  </body>
</html>