thanks Richard Crowder,you are right !  now i build the project with Xcode  
,but  i got some errors  .

the following code is wrong   . the error is : comparison of integers different 
signs :’const unsigned long and const int ‘  i tried to find the reason , but i 
failed , did someone get the same question  with me ?

template <typename T1, typename T2>
AssertionResult CmpHelperEQ(const char* expected_expression,
                            const char* actual_expression,
                            const T1& expected,
                            const T2& actual) {
#ifdef _MSC_VER
# pragma warning(push)          // Saves the current warning state.
# pragma warning(disable:4389)  // Temporarily disables warning on
                                // signed/unsigned mismatch.
#endif

  if (expected == actual) { //the error is : comparison of integers different 
signs :’const unsigned long and const int '
    return AssertionSuccess();
  }

#ifdef _MSC_VER
# pragma warning(pop)          // Restores the warning state.
#endif

  return EqFailure(expected_expression,
                   actual_expression,
                   FormatForComparisonFailureMessage(expected, actual),
                   FormatForComparisonFailureMessage(actual, expected),
                   false);
}

> 在 2015年7月31日,上午1:02,Richard Crowder <[email protected]> 写道:
> 
> If you don't specify a generator option to cmake the default is to make Unix 
> Makefiles. This is then remembered by cmake somewhere in the CMakeFiles sub 
> directory. 
> 
> It looks like you need to change your initial cmake configuration settings 
> (the missing generator option). Easiest way is to delete / 'rm -rf' the 
> CMakeFiles directory. Then use 'cmake –GXcode $NUPIC_CORE/src' to get the 
> right project files. I don't have a Mac to test this on, so beware.
> 
> 
> On Thu, Jul 30, 2015 at 3:46 PM, wanghouzhi-1986 <[email protected] 
> <mailto:[email protected]>> wrote:
> thanks for Richard Crowder and Matt Taylor,  i just follow the introduction 
> of the  nupic_core. as following:
>  * Open CMake executable.
>  * Specify the source folder (`$NUPIC_CORE/src`).
>  * Specify the build system folder (`$NUPIC_CORE/build/scripts`), i.e. where 
> IDE solution will be created.
>  * Click `Generate`.
>  * Choose the IDE that interest you (remember that IDE choice is limited to 
> your OS, i.e. Visual Studio is available only on CMake for Windows).
> 
> #### Build:
> 
>  * Open `nupic_core.*proj` solution file generated on 
> `$NUPIC_CORE/build/scripts`.
>  * Run `ALL_BUILD` project from your IDE.
> 
> #### Run the tests:
> 
>  * Run any `tests_*` project from your IDE (check `output` panel to see the 
> results).
> 
> everything is done , and cmake shows  generation done but i can not find 
> nupic_core.xcodeproj .
> by the way i have already builded the old version of the nupic_core. should i 
> delete the old version? 
> 
>> 在 2015年7月30日,下午6:59,Richard Crowder <[email protected] 
>> <mailto:[email protected]>> 写道:
>> 
>> Infrequently seen warnings such as these are usually ignored. But they can 
>> also mask issues that may need addressing, such as depreciating CMake 
>> variables. Thankfully CMake allows for a mix of old and new behaviors.
>> 
>> I've added a issue to nupic.core here 
>> https://github.com/numenta/nupic.core/issues/519 
>> <https://github.com/numenta/nupic.core/issues/519> A change that can be 
>> labelled with 'newbie' and 'type:toolin' (?). A simple change that can be 
>> made locally too.
>> 
>> Regards, Richard.
>> 
>> 
>> On Wed, Jul 29, 2015 at 5:16 PM, Matthew Taylor <[email protected] 
>> <mailto:[email protected]>> wrote:
>> This is just a compiler warning, isn't it? It doesn't look like it is
>> preventing you from building. Is there an actual error in the build
>> output?
>> ---------
>> Matt Taylor
>> OS Community Flag-Bearer
>> Numenta
>> 
>> 
>> On Wed, Jul 29, 2015 at 9:08 AM, wanghouzhi-1986
>> <[email protected] <mailto:[email protected]>> wrote:
>> > hello everyone :
>> >        i  have a trouble . When i build nupic.core from sources  with cmake
>> > ,   I get the following warning , that is why  and  how can i
>> >
>> > figure out this problem.  thank you  for your help !
>> >
>> >
>> > whzdeMacBook-Pro:scripts whz$ cmake $NUPIC_CORE/src
>> > doing local build
>> > doing local build
>> > fatal: Not a git repository (or any of the parent directories): .git
>> > -- Configuring done
>> > CMake Warning (dev) at CMakeLists.txt:507 (add_dependencies):
>> >   Policy CMP0046 is not set: Error on non-existent dependency in
>> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
>> >   Use the cmake_policy command to set the policy and suppress this warning.
>> >
>> >   The dependency target
>> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libcapnp.a" of
>> > target
>> >   "helloregion" does not exist.
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> > CMake Warning (dev) at CMakeLists.txt:507 (add_dependencies):
>> >   Policy CMP0046 is not set: Error on non-existent dependency in
>> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
>> >   Use the cmake_policy command to set the policy and suppress this warning.
>> >
>> >   The dependency target
>> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libkj.a" of target
>> >   "helloregion" does not exist.
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> > CMake Warning (dev) at CMakeLists.txt:507 (add_dependencies):
>> >   Policy CMP0046 is not set: Error on non-existent dependency in
>> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
>> >   Use the cmake_policy command to set the policy and suppress this warning.
>> >
>> >   The dependency target "c++abi" of target "helloregion" does not exist.
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> > CMake Warning (dev) at CMakeLists.txt:519 (add_dependencies):
>> >   Policy CMP0046 is not set: Error on non-existent dependency in
>> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
>> >   Use the cmake_policy command to set the policy and suppress this warning.
>> >
>> >   The dependency target
>> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libcapnp.a" of
>> > target
>> >   "prototest" does not exist.
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> > CMake Warning (dev) at CMakeLists.txt:519 (add_dependencies):
>> >   Policy CMP0046 is not set: Error on non-existent dependency in
>> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
>> >   Use the cmake_policy command to set the policy and suppress this warning.
>> >
>> >   The dependency target
>> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libkj.a" of target
>> >   "prototest" does not exist.
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> > CMake Warning (dev) at CMakeLists.txt:519 (add_dependencies):
>> >   Policy CMP0046 is not set: Error on non-existent dependency in
>> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
>> >   Use the cmake_policy command to set the policy and suppress this warning.
>> >
>> >   The dependency target "c++abi" of target "prototest" does not exist.
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> > CMake Warning (dev) at CMakeLists.txt:529 (add_dependencies):
>> >   Policy CMP0046 is not set: Error on non-existent dependency in
>> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
>> >   Use the cmake_policy command to set the policy and suppress this warning.
>> >
>> >   The dependency target
>> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libcapnp.a" of
>> > target
>> >   "hello_sp_tp" does not exist.
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> > CMake Warning (dev) at CMakeLists.txt:529 (add_dependencies):
>> >   Policy CMP0046 is not set: Error on non-existent dependency in
>> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
>> >   Use the cmake_policy command to set the policy and suppress this warning.
>> >
>> >   The dependency target
>> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libkj.a" of target
>> >   "hello_sp_tp" does not exist.
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> > CMake Warning (dev) at CMakeLists.txt:529 (add_dependencies):
>> >   Policy CMP0046 is not set: Error on non-existent dependency in
>> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
>> >   Use the cmake_policy command to set the policy and suppress this warning.
>> >
>> >   The dependency target "c++abi" of target "hello_sp_tp" does not exist.
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> > CMake Warning (dev) at CMakeLists.txt:585 (add_dependencies):
>> >   Policy CMP0046 is not set: Error on non-existent dependency in
>> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
>> >   Use the cmake_policy command to set the policy and suppress this warning.
>> >
>> >   The dependency target
>> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libcapnp.a" of
>> > target
>> >   "unit_tests" does not exist.
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> > CMake Warning (dev) at CMakeLists.txt:585 (add_dependencies):
>> >   Policy CMP0046 is not set: Error on non-existent dependency in
>> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
>> >   Use the cmake_policy command to set the policy and suppress this warning.
>> >
>> >   The dependency target
>> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libkj.a" of target
>> >   "unit_tests" does not exist.
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> > CMake Warning (dev) at CMakeLists.txt:585 (add_dependencies):
>> >   Policy CMP0046 is not set: Error on non-existent dependency in
>> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
>> >   Use the cmake_policy command to set the policy and suppress this warning.
>> >
>> >   The dependency target "c++abi" of target "unit_tests" does not exist.
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> > -- Generating done
>> > -- Build files have been written to: /Users/whz/nupic-2.core-master/src
>> >
>> >
>> >
>> >
>> >
>> 
>> 
> 
> 

Reply via email to