Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2013-01-27 Thread Asmodehn Shade
Hello,

Hmmm this is interesting...
I didn't think building for iphone was considered cross compiling, since
Xcode takes care of everything, but it makes sense...

I am currently using a custom-made toolchain file, more or less, as all
these variables are set in the main cmakelists.txt.

However, only setting CMAKE_OSX_SYSROOT is enough to confuse cmake paths,
so I wouldn't think the problem is in the toolchain file.

Anyway, I reverted to cmake2.8.9 ( on macports ) so that my project works
properly.

Testing cmake with a publicly available toolchain like
http://code.google.com/p/ios-cmake/ could also be a good step to see if
there is any difference between cmake 2.8.9 and cmake 2.8.10.

And as mobile development is becoming more ubiquitous for everyone, having
a list of tested toolchain for cross compiling as part of cmake release
would be something i will be happy to see :-)

Sadly, I don't think I'll have more time to invest in this right now...

Thanks a lot for the help !
--
AlexV

2013/1/24 Brad King 

> On 01/21/2013 08:59 PM, Asmodehn Shade wrote:
> > Is there any news on that ?
>
> Sorry, I had this on my todo list to try to reproduce and it slipped
> through the cracks.
>
> > From what I understand the CMAKE_OSX_SYSROOT variable is mandatory
> > to specify the base SDK, and therefore to be able to build a project...
>
> It shouldn't be necessary to build native OS X apps, but is for iphoneos.
> In order to cross-compile for iphone one must use a toolchain file:
>
>  http://www.cmake.org/Wiki/CMake_Cross_Compiling
>
> Are you using one?  Search the web for "cmake iphone toolchain file"
> to find some examples.
>
> -Brad
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2013-01-23 Thread Brad King
On 01/21/2013 08:59 PM, Asmodehn Shade wrote:
> Is there any news on that ?

Sorry, I had this on my todo list to try to reproduce and it slipped
through the cracks.

> From what I understand the CMAKE_OSX_SYSROOT variable is mandatory
> to specify the base SDK, and therefore to be able to build a project...

It shouldn't be necessary to build native OS X apps, but is for iphoneos.
In order to cross-compile for iphone one must use a toolchain file:

 http://www.cmake.org/Wiki/CMake_Cross_Compiling

Are you using one?  Search the web for "cmake iphone toolchain file"
to find some examples.

-Brad
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2013-01-21 Thread Asmodehn Shade
Hello,

Is there any news on that ?
Any way to fix it, or work around or even a hack I can try ?
>From what I understand the CMAKE_OSX_SYSROOT variable is mandatory to
specify the base SDK, and therefore to be able to build a project...

Or should I just revert to using cmake 2.8.9 ?

Thank you,
--
AlexV

2013/1/15 Asmodehn Shade 

> Hello,
>
> I managed to reproduce the problem with the simple HelloWorld given by
> Nicholas a bit earlier in this thread, with a slight modification.
> The problem seems to come from : *set(CMAKE_OSX_SYSROOT iphoneos6.0)*
>
> Just add this line to the CMakeLists.txt, and you will see that the path
> for the build changes from Debug/ to Debug-iphoneos/
> This seems to confuse cmake 2.8.10 paths ( but is fine with cmake 2.8.9 )
>
> Let me know if you need anything else,
> --
> AlexV
>
> 2013/1/15 Brad King 
>
>> On 01/13/2013 09:37 PM, Asmodehn Shade wrote:
>> > bash-3.2$ xcodebuild Tutorial.xcodeproj/
>> > === BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH
>> THE DEFAULT CONFIGURATION (Debug) ===
>> > Check dependencies
>> > unsupported build action 'Tutorial.xcodeproj'
>>
>> The xcodebuild command does not take the .xcodeproj as an argument.
>> You need to use "-project $proj" if there is more than one project
>> in a directory.  Otherwise you do not need to specify it at all.
>>
>> > 2) cmake --build . --config Debug works too :
>> > /** BUILD SUCCEEDED **/
>> >
>> > => Does cmake --build . --config Debug does something special ?
>>
>> It runs a valid xcodebuild command line.
>>
>> > => Another thing to consider is that my original project fails to
>> > build *in the IDE*, with the same error as Nicholas previously stated
>> > in this thread :
>> [snip]
>> > make[1]: *** No rule to make target
>> `/Users/alexandre.vincent/Projects/my_project/prj/iOS/CMakeFiles/2.8.10/CMakeCCompiler.cmake',
>> needed by `CMakeFiles/cmake.check_cache'.
>> [snip]
>> > So is it possible that the Tutorial sample problem may not match the
>> > actual cause of the original problem ?
>>
>> Yes.  The tutorial build does work as seen with "cmake --build".
>> There must be something about the project itself that is different
>> from the tutorial example and triggers the problem.
>>
>> Can you provide a small example project that does reproduce the
>> problem?
>>
>> -Brad
>>
>
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2013-01-14 Thread Asmodehn Shade
Hello,

I managed to reproduce the problem with the simple HelloWorld given by
Nicholas a bit earlier in this thread, with a slight modification.
The problem seems to come from : *set(CMAKE_OSX_SYSROOT iphoneos6.0)*

Just add this line to the CMakeLists.txt, and you will see that the path
for the build changes from Debug/ to Debug-iphoneos/
This seems to confuse cmake 2.8.10 paths ( but is fine with cmake 2.8.9 )

Let me know if you need anything else,
--
AlexV

2013/1/15 Brad King 

> On 01/13/2013 09:37 PM, Asmodehn Shade wrote:
> > bash-3.2$ xcodebuild Tutorial.xcodeproj/
> > === BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH
> THE DEFAULT CONFIGURATION (Debug) ===
> > Check dependencies
> > unsupported build action 'Tutorial.xcodeproj'
>
> The xcodebuild command does not take the .xcodeproj as an argument.
> You need to use "-project $proj" if there is more than one project
> in a directory.  Otherwise you do not need to specify it at all.
>
> > 2) cmake --build . --config Debug works too :
> > /** BUILD SUCCEEDED **/
> >
> > => Does cmake --build . --config Debug does something special ?
>
> It runs a valid xcodebuild command line.
>
> > => Another thing to consider is that my original project fails to
> > build *in the IDE*, with the same error as Nicholas previously stated
> > in this thread :
> [snip]
> > make[1]: *** No rule to make target
> `/Users/alexandre.vincent/Projects/my_project/prj/iOS/CMakeFiles/2.8.10/CMakeCCompiler.cmake',
> needed by `CMakeFiles/cmake.check_cache'.
> [snip]
> > So is it possible that the Tutorial sample problem may not match the
> > actual cause of the original problem ?
>
> Yes.  The tutorial build does work as seen with "cmake --build".
> There must be something about the project itself that is different
> from the tutorial example and triggers the problem.
>
> Can you provide a small example project that does reproduce the
> problem?
>
> -Brad
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2013-01-14 Thread Brad King
On 01/13/2013 09:37 PM, Asmodehn Shade wrote:
> bash-3.2$ xcodebuild Tutorial.xcodeproj/
> === BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH THE 
> DEFAULT CONFIGURATION (Debug) ===
> Check dependencies
> unsupported build action 'Tutorial.xcodeproj'

The xcodebuild command does not take the .xcodeproj as an argument.
You need to use "-project $proj" if there is more than one project
in a directory.  Otherwise you do not need to specify it at all.

> 2) cmake --build . --config Debug works too : 
> /** BUILD SUCCEEDED **/
> 
> => Does cmake --build . --config Debug does something special ?

It runs a valid xcodebuild command line.

> => Another thing to consider is that my original project fails to
> build *in the IDE*, with the same error as Nicholas previously stated
> in this thread :
[snip]
> make[1]: *** No rule to make target 
> `/Users/alexandre.vincent/Projects/my_project/prj/iOS/CMakeFiles/2.8.10/CMakeCCompiler.cmake',
>  needed by `CMakeFiles/cmake.check_cache'.
[snip]
> So is it possible that the Tutorial sample problem may not match the
> actual cause of the original problem ?

Yes.  The tutorial build does work as seen with "cmake --build".
There must be something about the project itself that is different
from the tutorial example and triggers the problem.

Can you provide a small example project that does reproduce the
problem?

-Brad
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2013-01-13 Thread Asmodehn Shade
2013/1/14 Asmodehn Shade 

> 2013/1/11 Bill Hoffman 
>
>> On 1/11/2013 2:09 AM, Asmodehn Shade wrote:
>>
>>> Hello,
>>>
>>> I just had this happening with CMake 2.8.10 ( from a recent macports )
>>> and with XCode 4.5.2.
>>> I built the step1 tutorial in its source dir :
>>>
>>> bash-3.2$ cmake -G XCode .^M
>>> -- The C compiler identification is Clang 4.1.0^M
>>> -- The CXX compiler identification is Clang 4.1.0^M
>>> -- Check for working C compiler using: Xcode^M
>>> -- Check for working C compiler using: Xcode -- works^M
>>> -- Detecting C compiler ABI info^M
>>> -- Detecting C compiler ABI info - done^M
>>> -- Check for working CXX compiler using: Xcode^M
>>> -- Check for working CXX compiler using: Xcode -- works^M
>>> -- Detecting CXX compiler ABI info^M
>>> -- Detecting CXX compiler ABI info - done^M
>>> -- Configuring done^M
>>> -- Generating done^M
>>> -- Build files have been written to:
>>> /Users/alexandre.vincent/**Projects/cmake-2.8.10.2/Tests/**
>>> Tutorial/Step1^M
>>> bash-3.2$ xcodebuild Tuto^Grial.xcodeproj/^M
>>> === BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH THE
>>> DEFAULT CONFIGURATION (Debug) ===^M
>>> Check dependencies^M
>>> unsupported build action 'Tutorial.xcodeproj'^M
>>> ^M
>>> ^M
>>> ** BUILD FAILED **^M
>>> ^M
>>> ^M
>>> The following build commands failed:^M
>>>  Check dependencies^M
>>> (1 failure)^M
>>> bash-3.2$ exit^M
>>>
>>>  What happens if you load the project into the IDE and build?  What is
>> the output of
>> cmake --build . --config Debug
>>
>> -Bill
>>
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/**
>> opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/**CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/**listinfo/cmake
>>
>
> Hi Bill,
>
> 1) Loading Project in the IDE works indeed :
>
> *Build target ZERO_CHECK*
> *
> *
> *PhaseScriptExecution "CMake Rules"
> Tutorial.build/Debug/ZERO_CHECK.build/Script-F3123F2894624D989F3E8A02.sh*
> *cd
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
> */bin/sh -c
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/ZERO_CHECK.build/Script-F3123F2894624D989F3E8A02.sh
> *
> *
> *
> *echo ""*
> *
> *
> *make -f
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/CMakeScripts/ReRunCMake.make
> *
> *make[1]: `CMakeFiles/cmake.check_cache' is up to date.*
> *
> *
> *
> *
> *Build target Tutorial*
> *
> *
> *CompileC
> Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.o
> tutorial.cxx normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
> *
> *cd
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
> *setenv LANG en_US.US-ASCII*
> *
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
> -x c++ -arch x86_64 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -O0
> -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type
> -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors
> -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function
> -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value
> -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow
> -Wno-four-char-constants -Wno-conversion -Wno-shorten-64-to-32
> -Wno-newline-eof -Wno-c++11-extensions "-DCMAKE_INTDIR=\"Debug\"" -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
> -fasm-blocks -Wdeprecated-declarations -Winvalid-offsetof
> -mmacosx-version-min=10.7 -g -Wno-sign-conversion
> -I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug/include
> -I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1
> -I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/DerivedSources/x86_64
> -I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/DerivedSources
> -Wmost -Wno-four-char-constants -Wno-unknown-pragmas
> -F/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug
> -MMD -MT dependencies -MF
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.d
> --serialize-diagnostics
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.dia
> -c
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/tutorial.cxx
> -o
> /Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tu

Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2013-01-13 Thread Asmodehn Shade
2013/1/11 Bill Hoffman 

> On 1/11/2013 2:09 AM, Asmodehn Shade wrote:
>
>> Hello,
>>
>> I just had this happening with CMake 2.8.10 ( from a recent macports )
>> and with XCode 4.5.2.
>> I built the step1 tutorial in its source dir :
>>
>> bash-3.2$ cmake -G XCode .^M
>> -- The C compiler identification is Clang 4.1.0^M
>> -- The CXX compiler identification is Clang 4.1.0^M
>> -- Check for working C compiler using: Xcode^M
>> -- Check for working C compiler using: Xcode -- works^M
>> -- Detecting C compiler ABI info^M
>> -- Detecting C compiler ABI info - done^M
>> -- Check for working CXX compiler using: Xcode^M
>> -- Check for working CXX compiler using: Xcode -- works^M
>> -- Detecting CXX compiler ABI info^M
>> -- Detecting CXX compiler ABI info - done^M
>> -- Configuring done^M
>> -- Generating done^M
>> -- Build files have been written to:
>> /Users/alexandre.vincent/**Projects/cmake-2.8.10.2/Tests/**
>> Tutorial/Step1^M
>> bash-3.2$ xcodebuild Tuto^Grial.xcodeproj/^M
>> === BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH THE
>> DEFAULT CONFIGURATION (Debug) ===^M
>> Check dependencies^M
>> unsupported build action 'Tutorial.xcodeproj'^M
>> ^M
>> ^M
>> ** BUILD FAILED **^M
>> ^M
>> ^M
>> The following build commands failed:^M
>>  Check dependencies^M
>> (1 failure)^M
>> bash-3.2$ exit^M
>>
>>  What happens if you load the project into the IDE and build?  What is
> the output of
> cmake --build . --config Debug
>
> -Bill
>
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/**CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake
>

Hi Bill,

1) Loading Project in the IDE works indeed :

*Build target ZERO_CHECK*
*
*
*PhaseScriptExecution "CMake Rules"
Tutorial.build/Debug/ZERO_CHECK.build/Script-F3123F2894624D989F3E8A02.sh*
*cd
/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
*/bin/sh -c
/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/ZERO_CHECK.build/Script-F3123F2894624D989F3E8A02.sh
*
*
*
*echo ""*
*
*
*make -f
/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/CMakeScripts/ReRunCMake.make
*
*make[1]: `CMakeFiles/cmake.check_cache' is up to date.*
*
*
*
*
*Build target Tutorial*
*
*
*CompileC
Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.o
tutorial.cxx normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler*
*cd
/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
*setenv LANG en_US.US-ASCII*
*
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x c++ -arch x86_64 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -O0
-Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type
-Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors
-Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function
-Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value
-Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow
-Wno-four-char-constants -Wno-conversion -Wno-shorten-64-to-32
-Wno-newline-eof -Wno-c++11-extensions "-DCMAKE_INTDIR=\"Debug\"" -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
-fasm-blocks -Wdeprecated-declarations -Winvalid-offsetof
-mmacosx-version-min=10.7 -g -Wno-sign-conversion
-I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug/include
-I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1
-I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/DerivedSources/x86_64
-I/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/DerivedSources
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas
-F/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Debug
-MMD -MT dependencies -MF
/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.d
--serialize-diagnostics
/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.dia
-c
/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/tutorial.cxx
-o
/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1/Tutorial.build/Debug/Tutorial.build/Objects-normal/x86_64/tutorial.o
*
*
*
*Ld Debug/Tutorial normal x86_64*
*cd
/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1*
*setenv MACOSX_DEPLOYMENT_T

Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2013-01-11 Thread Bill Hoffman

On 1/11/2013 2:09 AM, Asmodehn Shade wrote:

Hello,

I just had this happening with CMake 2.8.10 ( from a recent macports )
and with XCode 4.5.2.
I built the step1 tutorial in its source dir :

bash-3.2$ cmake -G XCode .^M
-- The C compiler identification is Clang 4.1.0^M
-- The CXX compiler identification is Clang 4.1.0^M
-- Check for working C compiler using: Xcode^M
-- Check for working C compiler using: Xcode -- works^M
-- Detecting C compiler ABI info^M
-- Detecting C compiler ABI info - done^M
-- Check for working CXX compiler using: Xcode^M
-- Check for working CXX compiler using: Xcode -- works^M
-- Detecting CXX compiler ABI info^M
-- Detecting CXX compiler ABI info - done^M
-- Configuring done^M
-- Generating done^M
-- Build files have been written to:
/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1^M
bash-3.2$ xcodebuild Tuto^Grial.xcodeproj/^M
=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH THE
DEFAULT CONFIGURATION (Debug) ===^M
Check dependencies^M
unsupported build action 'Tutorial.xcodeproj'^M
^M
^M
** BUILD FAILED **^M
^M
^M
The following build commands failed:^M
 Check dependencies^M
(1 failure)^M
bash-3.2$ exit^M

What happens if you load the project into the IDE and build?  What is 
the output of

cmake --build . --config Debug

-Bill

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2013-01-10 Thread Asmodehn Shade
Hello,

I just had this happening with CMake 2.8.10 ( from a recent macports ) and
with XCode 4.5.2.
I built the step1 tutorial in its source dir :

bash-3.2$ cmake -G XCode .^M
-- The C compiler identification is Clang 4.1.0^M
-- The CXX compiler identification is Clang 4.1.0^M
-- Check for working C compiler using: Xcode^M
-- Check for working C compiler using: Xcode -- works^M
-- Detecting C compiler ABI info^M
-- Detecting C compiler ABI info - done^M
-- Check for working CXX compiler using: Xcode^M
-- Check for working CXX compiler using: Xcode -- works^M
-- Detecting CXX compiler ABI info^M
-- Detecting CXX compiler ABI info - done^M
-- Configuring done^M
-- Generating done^M
-- Build files have been written to:
/Users/alexandre.vincent/Projects/cmake-2.8.10.2/Tests/Tutorial/Step1^M
bash-3.2$ xcodebuild Tuto^Grial.xcodeproj/^M
=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH THE DEFAULT
CONFIGURATION (Debug) ===^M
Check dependencies^M
unsupported build action 'Tutorial.xcodeproj'^M
^M
^M
** BUILD FAILED **^M
^M
^M
The following build commands failed:^M
Check dependencies^M
(1 failure)^M
bash-3.2$ exit^M

Script done on Fri Jan 11 16:09:08 2013

Let me know if you need any more information.

Cheers,
--
AlexV

2012/11/29 David Cole 

> I can't for the life of me reproduce this. I've tried on my own Mac with
> Xcode 4.2, and on a colleague's Mac with Xcode 4.5.2. I can't seem to find
> a 4.4.1 machine to try this out on...
>
> Is this a problem for anybody else using CMake 2.8.10 on a Mac with the
> Xcode generator?
>
> Can you send the full output of the configure step (in a clean build
> directory)?
>
> Also, the output of running "find CMakeFiles" after the configure is done?
> (What files exist in CMakeFiles after a fresh configure...?) The file
> that's missing should be generated during the first configure.
>
>   cd /Users/nicholas/temp/xcode
>   find CMakeFiles
>
>
> Very mysterious.
>
>
>
> On Thu, Nov 22, 2012 at 1:08 AM, Nicholas Yue wrote:
>
>> On 19/11/12 10:31 PM, David Cole wrote:
>>
>>> In the CMake source tree, can you try to build "Tests/Tutorial/Step1"
>>> with the Xcode generator and report the results?
>>>
>> $ xcodebuild Tutorial.xcodeproj
>> === BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH THE
>> DEFAULT CONFIGURATION (Debug) ===
>> Check dependencies
>> unsupported build action 'Tutorial.xcodeproj'
>>
>>
>>
>> ** BUILD FAILED **
>>
>>
>> The following build commands failed:
>> Check dependencies
>> (1 failure)
>>
>>
>>
>>> Can you send your simple CMakeLists.txt file and its single source here?
>>>
>> Files are attached
>>
>>
>>> What does your machine report when you run "xcode-select -print-path"?
>>>
>> $ xcode-select -print-path
>> /Applications/Xcode.app/**Contents/Developer
>>
>> Cheers
>>
>>
>> --
>> Nicholas Yue
>> Graphics - RenderMan, Visualization, OpenGL, HDF5
>> Custom Dev - C++ porting, OSX, Linux, Windows
>> http://au.linkedin.com/in/**nicholasyue
>> https://vimeo.com/channels/**naiadtools
>>
>>
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2012-11-28 Thread David Cole
I can't for the life of me reproduce this. I've tried on my own Mac with
Xcode 4.2, and on a colleague's Mac with Xcode 4.5.2. I can't seem to find
a 4.4.1 machine to try this out on...

Is this a problem for anybody else using CMake 2.8.10 on a Mac with the
Xcode generator?

Can you send the full output of the configure step (in a clean build
directory)?

Also, the output of running "find CMakeFiles" after the configure is done?
(What files exist in CMakeFiles after a fresh configure...?) The file
that's missing should be generated during the first configure.

  cd /Users/nicholas/temp/xcode
  find CMakeFiles


Very mysterious.



On Thu, Nov 22, 2012 at 1:08 AM, Nicholas Yue wrote:

> On 19/11/12 10:31 PM, David Cole wrote:
>
>> In the CMake source tree, can you try to build "Tests/Tutorial/Step1"
>> with the Xcode generator and report the results?
>>
> $ xcodebuild Tutorial.xcodeproj
> === BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH THE DEFAULT
> CONFIGURATION (Debug) ===
> Check dependencies
> unsupported build action 'Tutorial.xcodeproj'
>
>
>
> ** BUILD FAILED **
>
>
> The following build commands failed:
> Check dependencies
> (1 failure)
>
>
>
>> Can you send your simple CMakeLists.txt file and its single source here?
>>
> Files are attached
>
>
>> What does your machine report when you run "xcode-select -print-path"?
>>
> $ xcode-select -print-path
> /Applications/Xcode.app/**Contents/Developer
>
> Cheers
>
>
> --
> Nicholas Yue
> Graphics - RenderMan, Visualization, OpenGL, HDF5
> Custom Dev - C++ porting, OSX, Linux, Windows
> http://au.linkedin.com/in/**nicholasyue
> https://vimeo.com/channels/**naiadtools
>
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2012-11-21 Thread Nicholas Yue

On 19/11/12 10:31 PM, David Cole wrote:

In the CMake source tree, can you try to build "Tests/Tutorial/Step1" with the 
Xcode generator and report the results?

$ xcodebuild Tutorial.xcodeproj
=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH THE 
DEFAULT CONFIGURATION (Debug) ===

Check dependencies
unsupported build action 'Tutorial.xcodeproj'


** BUILD FAILED **


The following build commands failed:
Check dependencies
(1 failure)



Can you send your simple CMakeLists.txt file and its single source here?

Files are attached


What does your machine report when you run "xcode-select -print-path"?

$ xcode-select -print-path
/Applications/Xcode.app/Contents/Developer

Cheers

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools

ADD_EXECUTABLE ( nicholas main.cpp )
#include 

int main()
{
printf("Hello world\n");
return 0;
}

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2012-11-19 Thread David Cole
In the CMake source tree, can you try to build "Tests/Tutorial/Step1" with the 
Xcode generator and report the results?

Can you send your simple CMakeLists.txt file and its single source here?

What does your machine report when you run "xcode-select -print-path"?


On Nov 19, 2012, at 5:25 AM, Nicholas Yue  wrote:

> Hi,
> 
>I have a simple CMakeLists.txt file compiling a single source via the 
> generator Xcode
> 
>I have been following recent conversation about CMake 2.8.8/2.8.9 having 
> problem with Xcode 4.4.1 and read that the problem might be resolved in CMake 
> 2.8.10
> 
>I am on OS X 10.7.4, I have no problem building with the standard Makefile 
> generator or the Eclipse generator.
> 
>When I tried to build the generated project with xcodebuild, I get the 
> following
> 
> 
> === BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Project WITH THE DEFAULT 
> CONFIGURATION (Debug) ===
> Check dependencies
> 
> PhaseScriptExecution "CMake Rules" 
> Project.build/Debug/ZERO_CHECK.build/Script-88F80E18C3E647F2A9484A6C.sh
>cd /Users/nicholas/temp/xcode
>/bin/sh -c 
> /Users/nicholas/temp/xcode/Project.build/Debug/ZERO_CHECK.build/Script-88F80E18C3E647F2A9484A6C.sh
> echo ""
> 
> make -f /Users/nicholas/temp/xcode/CMakeScripts/ReRunCMake.make
> make[1]: *** No rule to make target 
> `/Users/nicholas/temp/xcode/CMakeFiles/2.8.10/CMakeCCompiler.cmake', needed 
> by `CMakeFiles/cmake.check_cache'.  Stop.
> make: *** [/Users/nicholas/temp/xcode/CMakeFiles/ZERO_CHECK] Error 2
> Command /bin/sh failed with exit code 2
> 
> 
> ** BUILD FAILED **
> 
> 
> The following build commands failed:
>PhaseScriptExecution "CMake Rules" 
> Project.build/Debug/ZERO_CHECK.build/Script-88F80E18C3E647F2A9484A6C.sh
> (1 failure)
> 
> 
> 
> Regards
> 
> -- 
> Nicholas Yue
> Graphics - RenderMan, Visualization, OpenGL, HDF5
> Custom Dev - C++ porting, OSX, Linux, Windows
> http://au.linkedin.com/in/nicholasyue
> https://vimeo.com/channels/naiadtools
> 
> --
> 
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CMake 2.8.10 with Xcode 4.4.1

2012-11-19 Thread Nicholas Yue

Hi,

I have a simple CMakeLists.txt file compiling a single source via 
the generator Xcode


I have been following recent conversation about CMake 2.8.8/2.8.9 
having problem with Xcode 4.4.1 and read that the problem might be 
resolved in CMake 2.8.10


I am on OS X 10.7.4, I have no problem building with the standard 
Makefile generator or the Eclipse generator.


When I tried to build the generated project with xcodebuild, I get 
the following



=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Project WITH THE 
DEFAULT CONFIGURATION (Debug) ===

Check dependencies

PhaseScriptExecution "CMake Rules" 
Project.build/Debug/ZERO_CHECK.build/Script-88F80E18C3E647F2A9484A6C.sh

cd /Users/nicholas/temp/xcode
/bin/sh -c 
/Users/nicholas/temp/xcode/Project.build/Debug/ZERO_CHECK.build/Script-88F80E18C3E647F2A9484A6C.sh

echo ""

make -f /Users/nicholas/temp/xcode/CMakeScripts/ReRunCMake.make
make[1]: *** No rule to make target 
`/Users/nicholas/temp/xcode/CMakeFiles/2.8.10/CMakeCCompiler.cmake', 
needed by `CMakeFiles/cmake.check_cache'.  Stop.

make: *** [/Users/nicholas/temp/xcode/CMakeFiles/ZERO_CHECK] Error 2
Command /bin/sh failed with exit code 2


** BUILD FAILED **


The following build commands failed:
PhaseScriptExecution "CMake Rules" 
Project.build/Debug/ZERO_CHECK.build/Script-88F80E18C3E647F2A9484A6C.sh

(1 failure)



Regards

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake