[cmake-developers] nvidia nsight tegra set vcxproj properties (Ant Build) in cmake file

Peter List pem.list at gmail.com
Fri Aug 28 00:50:44 EDT 2015


vs2010 works for my CMakeLists.txt:

> cmake -G"Visual Studio 10 2010" -DCMAKE_SYSTEM_NAME="Android"  ..\pemDemos
-- The C compiler identification is GNU 4.9.0
-- The CXX compiler identification is GNU 4.9.0
-- Check for working C compiler using: Visual Studio 10 2010
-- Check for working C compiler using: Visual Studio 10 2010 -- 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 using: Visual Studio 10 2010
-- Check for working CXX compiler using: Visual Studio 10 2010 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMAKE_SYSTEM_NAMEAndroid
-- Configuring done
-- Generating done
-- Build files have been written to:
H:/Pem_Code/hobby/grfxdemossdl2015/pemDemos/build-android-vs2010

However, vs2013 does not:

> cmake -G"Visual Studio 12 2013" -DCMAKE_SYSTEM_NAME="Android"  ..\pemDemos
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:1 (project):
  No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:1 (project):
  No CMAKE_CXX_COMPILER could be found.

This is with the stable release of cmake 3.1.1

I also tried a nightly build ( http://www.cmake.org/files/dev/?C=M;O=D ) ->
cmake-3.3.20150826-g566f1-win32-x86, and it gives the same error.

best regards,
Peter




On Thu, Aug 27, 2015 at 12:52 PM, Dmitry Polyanitsa <dpolyanitsa at nvidia.com>
wrote:

> I’m glad you like it J BTW generating for VS2013 + Nsight Tegra should
> already be supported in CMake. Support for VS2015 will be added to Nsight
> Tegra in the next release.
>
>
>
> -Dmitry
>
>
>
> *From:* Peter List [mailto:pem.list at gmail.com]
> *Sent:* Thursday, August 27, 2015 1:36 AM
> *To:* Dmitry Polyanitsa <dpolyanitsa at nvidia.com>
> *Cc:* cmake-developers at cmake.org
> *Subject:* Re: [cmake-developers] nvidia nsight tegra set vcxproj
> properties (Ant Build) in cmake file
>
>
>
> Awesome - in that case I'll use this built-in support instead of spending
> time on writing a python script to call from add_custom_command().
>
>
>
> It's not officially documented yet ( http://bit.ly/1MOzB0S ), but I can
> use the link you sent ( http://bit.ly/1UdL3nc ) for documentation.
>
>
>
> I'm not sure whether this is in the CMake 3.3.1 release, but if not then I
> can try a nightly build:
>
>
>
> http://www.cmake.org/download/ -> http://www.cmake.org/files/dev/?C=M;O=D
> -> cmake-3.3.20150824-ga3d05-win32-x86.exe
>
>
>
> Or if that doesn't work, then maybe I'll wait a few days and try a newer
> nightly build :-)
>
>
>
> thank you,
>
> Peter
>
>
>
> PS: I love this built-in (nvidia tegra nsight + visual studio 2010)
> support...  Some similar things that would also be awesome as built-in
> support are...  nvidia tegra nsight + visual studio 2013, 2015.  nmake +
> Android Studio (Windows, Mac, Linux).  iOS + XCode.
>
>
>
>
>
>
>
>
>
> On Wed, Aug 26, 2015 at 7:15 AM, Dmitry Polyanitsa <dpolyanitsa at nvidia.com>
> wrote:
>
> Hi Peter,
>
>
>
> Note the commit Brad mentioned in another thread:
>
> > VS: Add more Nsight Tegra generator Android property settings
>
> > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8c0afaf4
>
>
>
> It adds the ability to set both Native Library Directories and Native
> Library Dependencies, among other things. Thanks for the link to the forum
> post, by the way – we forgot to update it and will do that now.
>
>
>
> -Dmitry
>
>
>
> *From:* cmake-developers [mailto:cmake-developers-bounces at cmake.org] *On
> Behalf Of *Peter List
> *Sent:* Wednesday, August 26, 2015 5:06 AM
> *To:* cmake-developers at cmake.org
> *Subject:* [cmake-developers] nvidia nsight tegra set vcxproj properties
> (Ant Build) in cmake file
>
>
>
> I have a working hello world cmake + built-in Android using nvidia nsight
> tegra.  It uses SDL2.
>
>
>
> Unfortunately, after I run cmake I have to manually edit the following in
> my vcxproj to add SDL2:
>
>
>
> Configuration Properties > Ant Build > Native Library Directories, Native
> Library Dependencies
>
>
>
> I found this post ( http://bit.ly/1NTgTE3 ) from May 5th (3 months 20
> days ago) describing the same issue.  Is there an ETA on this?
>
>
>
> Since this isn't out yet, is there a work-around I can do instead?  So far
> my best idea is to have cmake use add_custom_command() as a post-build step
> to call a python script that edits the vcxproj file XML.
>
>
>
>     <AntBuild>
>
>       <AntBuildPath>[path]\build-android\android-project</AntBuildPath>
>
>
> <AndroidManifestLocation>[path]\build-android\android-project\AndroidManifest.xml</AndroidManifestLocation>
>
>
> <NativeLibDirectories>../../../SDL2-2.0.3/libs/armeabi-v7a</NativeLibDirectories>
>
>       <NativeLibDependencies>SDL2</NativeLibDependencies>
>
>     </AntBuild>
>
>
>
> thank you
>
>
> ------------------------------
>
> This email message is for the sole use of the intended recipient(s) and
> may contain confidential information.  Any unauthorized review, use,
> disclosure or distribution is prohibited.  If you are not the intended
> recipient, please contact the sender by reply email and destroy all copies
> of the original message.
> ------------------------------
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150827/dca11639/attachment.html>


More information about the cmake-developers mailing list