[ 
https://issues.apache.org/jira/browse/PROTON-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Irina Boverman updated PROTON-1547:
-----------------------------------
    Description: 
examples directory contains CMakeLists.txt. I was expecting to be able to build 
all examples and execute them using these commands:

cmake .
make
ctest -v
make 
This is what happens when I try the above:

# cmake .
-- The C compiler identification is GNU 7.1.1
-- The CXX compiler identification is GNU 7.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at c/proactor/CMakeLists.txt:26 (find_package):
  By not providing "FindLibuv.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Libuv", but
  CMake did not find one.

  Could not find a package configuration file provided by "Libuv" with any of
  the following names:

    LibuvConfig.cmake
    libuv-config.cmake

  Add the installation prefix of "Libuv" to CMAKE_PREFIX_PATH or set
  "Libuv_DIR" to a directory containing one of the above files.  If "Libuv"
  provides a separate development package or SDK, be sure it has been
  installed.


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.9)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /root/rh-qpid-proton/examples

# make
Scanning dependencies of target send-async
[  8%] Building C object c/messenger/CMakeFiles/send-async.dir/send-async.o
[ 16%] Linking C executable send-async
[ 16%] Built target send-async
Scanning dependencies of target recv-async
[ 25%] Building C object c/messenger/CMakeFiles/recv-async.dir/recv-async.o
[ 33%] Linking C executable recv-async
[ 33%] Built target recv-async
Scanning dependencies of target recv
[ 41%] Building C object c/messenger/CMakeFiles/recv.dir/recv.o
[ 50%] Linking C executable recv
[ 50%] Built target recv
Scanning dependencies of target send
[ 58%] Building C object c/messenger/CMakeFiles/send.dir/send.o
[ 66%] Linking C executable send
[ 66%] Built target send
Scanning dependencies of target sender
[ 75%] Building C object c/reactor/CMakeFiles/sender.dir/sender.o
[ 83%] Linking C executable sender
[ 83%] Built target sender
Scanning dependencies of target receiver
[ 91%] Building C object c/reactor/CMakeFiles/receiver.dir/receiver.o
[100%] Linking C executable receiver
[100%] Built target receiver

Only "c" examples were built, but not "cpp".

ctest -v
Test project /root/rh-qpid-proton/examples
No tests were found!!!


  was:
examples directory contains CMakeLists.txt. I was expecting to be able to build 
all examples and execute them using these commands:

cmake .
make
ctest -v

This is what happens when I try the above:

# cmake .
-- The C compiler identification is GNU 7.1.1
-- The CXX compiler identification is GNU 7.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at c/proactor/CMakeLists.txt:26 (find_package):
  By not providing "FindLibuv.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Libuv", but
  CMake did not find one.

  Could not find a package configuration file provided by "Libuv" with any of
  the following names:

    LibuvConfig.cmake
    libuv-config.cmake

  Add the installation prefix of "Libuv" to CMAKE_PREFIX_PATH or set
  "Libuv_DIR" to a directory containing one of the above files.  If "Libuv"
  provides a separate development package or SDK, be sure it has been
  installed.


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.9)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /root/rh-qpid-proton/examples

# make
Scanning dependencies of target send-async
[  8%] Building C object c/messenger/CMakeFiles/send-async.dir/send-async.o
[ 16%] Linking C executable send-async
[ 16%] Built target send-async
Scanning dependencies of target recv-async
[ 25%] Building C object c/messenger/CMakeFiles/recv-async.dir/recv-async.o
[ 33%] Linking C executable recv-async
[ 33%] Built target recv-async
Scanning dependencies of target recv
[ 41%] Building C object c/messenger/CMakeFiles/recv.dir/recv.o
[ 50%] Linking C executable recv
[ 50%] Built target recv
Scanning dependencies of target send
[ 58%] Building C object c/messenger/CMakeFiles/send.dir/send.o
[ 66%] Linking C executable send
[ 66%] Built target send
Scanning dependencies of target sender
[ 75%] Building C object c/reactor/CMakeFiles/sender.dir/sender.o
[ 83%] Linking C executable sender
[ 83%] Built target sender
Scanning dependencies of target receiver
[ 91%] Building C object c/reactor/CMakeFiles/receiver.dir/receiver.o
[100%] Linking C executable receiver
[100%] Built target receiver

Only "c" examples were built, but not "cpp".

ctest -v
Test project /root/rh-qpid-proton/examples
No tests were found!!!



> Proton examples
> ---------------
>
>                 Key: PROTON-1547
>                 URL: https://issues.apache.org/jira/browse/PROTON-1547
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 0.17.0
>         Environment: Fedora 26, RHEL 
>            Reporter: Irina Boverman
>
> examples directory contains CMakeLists.txt. I was expecting to be able to 
> build all examples and execute them using these commands:
> cmake .
> make
> ctest -v
> make 
> This is what happens when I try the above:
> # cmake .
> -- The C compiler identification is GNU 7.1.1
> -- The CXX compiler identification is GNU 7.1.1
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - 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
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> CMake Warning at c/proactor/CMakeLists.txt:26 (find_package):
>   By not providing "FindLibuv.cmake" in CMAKE_MODULE_PATH this project has
>   asked CMake to find a package configuration file provided by "Libuv", but
>   CMake did not find one.
>   Could not find a package configuration file provided by "Libuv" with any of
>   the following names:
>     LibuvConfig.cmake
>     libuv-config.cmake
>   Add the installation prefix of "Libuv" to CMAKE_PREFIX_PATH or set
>   "Libuv_DIR" to a directory containing one of the above files.  If "Libuv"
>   provides a separate development package or SDK, be sure it has been
>   installed.
> CMake Warning (dev) in CMakeLists.txt:
>   No cmake_minimum_required command is present.  A line of code such as
>     cmake_minimum_required(VERSION 3.9)
>   should be added at the top of the file.  The version specified may be lower
>   if you wish to support older CMake versions for this project.  For more
>   information run "cmake --help-policy CMP0000".
> This warning is for project developers.  Use -Wno-dev to suppress it.
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /root/rh-qpid-proton/examples
> # make
> Scanning dependencies of target send-async
> [  8%] Building C object c/messenger/CMakeFiles/send-async.dir/send-async.o
> [ 16%] Linking C executable send-async
> [ 16%] Built target send-async
> Scanning dependencies of target recv-async
> [ 25%] Building C object c/messenger/CMakeFiles/recv-async.dir/recv-async.o
> [ 33%] Linking C executable recv-async
> [ 33%] Built target recv-async
> Scanning dependencies of target recv
> [ 41%] Building C object c/messenger/CMakeFiles/recv.dir/recv.o
> [ 50%] Linking C executable recv
> [ 50%] Built target recv
> Scanning dependencies of target send
> [ 58%] Building C object c/messenger/CMakeFiles/send.dir/send.o
> [ 66%] Linking C executable send
> [ 66%] Built target send
> Scanning dependencies of target sender
> [ 75%] Building C object c/reactor/CMakeFiles/sender.dir/sender.o
> [ 83%] Linking C executable sender
> [ 83%] Built target sender
> Scanning dependencies of target receiver
> [ 91%] Building C object c/reactor/CMakeFiles/receiver.dir/receiver.o
> [100%] Linking C executable receiver
> [100%] Built target receiver
> Only "c" examples were built, but not "cpp".
> ctest -v
> Test project /root/rh-qpid-proton/examples
> No tests were found!!!



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to