This project is read-only.

Build error

Jul 23, 2014 at 7:30 AM
I am unable to build on any platform - I tried on windows/linux and mac.

On Linux, I get this error -
home/kck/rxcpp/Rx/v2/test/test.cpp:2:21: fatal error: catch.hpp: No such file or directory
#include "catch.hpp"
compilation terminated.
make[2]: *** [CMakeFiles/rxcppv2_test.dir/home/kck/rxcpp/Rx/v2/test/test.cpp.o] Error 1
make[1]: *** [CMakeFiles/rxcppv2_test.dir/all] Error 2
make: *** [all] Error 2

On Mac, I get a huge dump of error messages - starting like this -

[ 3%] Built target println
[ 6%] Building CXX object CMakeFiles/pythagorian.dir/Users/kashyapck/Documents/dingo/rxcpp/Rx/v2/examples/pythagorian/main.cpp.o
In file included from /Users/kashyapck/Documents/dingo/rxcpp/Rx/v2/examples/pythagorian/main.cpp:1:
In file included from /Users/kashyapck/Documents/dingo/rxcpp/Rx/v2/src/rxcpp/rx.hpp:8:
In file included from /Users/kashyapck/Documents/dingo/rxcpp/Rx/v2/src/rxcpp/rx-includes.hpp:130:
In file included from /Users/kashyapck/Documents/dingo/rxcpp/Rx/v2/src/rxcpp/rx-operators.hpp:40:
/Users/kashyapck/Documents/dingo/rxcpp/Rx/v2/src/rxcpp/operators/rx-concat_map.hpp:120:17: error: 'rxcpp::operators::detail::concat_map<rxcpp::observable<int, rxcpp::sources::detail::range<int,
  rxcpp::identity_one_worker> >, <lambda at /Users/kashyapck/Documents/dingo/rxcpp/Rx/v2/examples/pythagorian/main.cpp:26:29>, <lambda at
  /Users/kashyapck/Documents/dingo/rxcpp/Rx/v2/examples/pythagorian/main.cpp:32:29>, rxcpp::identity_one_worker>::on_subscribe(rxcpp::subscriber<std::__1::tuple<int, int, int>,
  rxcpp::observer<std::__1::tuple<int, int, int>, rxcpp::dynamic_observer<std::__1::tuple<int, int, int> > >
  >)::concat_map_state_type::subscribe_to(source_value_type)::concat_map_state_type::collectionLifetime' is not a member of class 'concat_map_state_type'
            collectionLifetime = composite_subscription();

I am just cloning from and following the build steps using cmake - am I missing something?

Jul 23, 2014 at 6:15 PM
catch is a test library that Rxcpp uses to define and run the tests. Rxcpp depends on it via a git submodule.
There are at least two ways to get the git submodule initialized
  1. clone recursively to begin with. git clone --recursive <url>
  2. use git to init submodules in the existing clone. git submodule init and then git submodule update
Jul 23, 2014 at 6:24 PM
The pythagorian build error is different. I do not see this on my machine. I am using XCode 5.1.1 and XCode 6 beta and the commandline clang compiler on Osx 10.9.4
What is your environment? (FYI gcc on osx is not tested.)
Jul 28, 2014 at 9:42 AM
Thanks! ... I got it working with XCode 5.1.1 ....
Still struggling with Windows though -


Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation. All rights reserved.

-- RXCPP_DIR: C:/Users/labuser/Desktop/rxcpp/rxcpp
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/labuser/Desktop/rxcpp/rxcpp/projec
Scanning dependencies of target println
[ 3%] Building CXX object CMakeFiles/println.dir/C_/Users/labuser/Desktop/rxcpp
cl : Command line warning D9002 : ignoring unknown option '/EH;'
c:\users\labuser\desktop\rxcpp\rxcpp\rx\v2\src\rxcpp\rx-observer.hpp(43) : fatal
error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\cxx\dymto.c', line 20042)
To work around this problem, try simplifying or changing the program near the l
ocations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~3.0\VC\bin\cl.exe' : return code
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\nmake.exe"' : return code '0x2'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\nmake.exe"' : return code '0x2'