<div dir="ltr"><div class="gmail_extra"><span class="im" style="font-family:arial,sans-serif;font-size:13px">On Tue, Sep 16, 2014 at 4:05 PM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Folks,<br><br>This topic introduces support for generating VS project files<br>for the NVIDIA Nsight Tegra Visual Studio Edition, which then<br>builds for Android.  I've merged it to 'next' for testing:<br></blockquote><div><br></div></span><div style="font-family:arial,sans-serif;font-size:13px">Hi Brad,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am really excited to see Nsight Tegra VS support being added to CMake, it will certainly help me (and others for sure) save so much some configuring manually my Android projects.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Actually, few days ago I gave the patches you sent to the developer list back in July [1] a try. I had to make some dirty tweaks into the CMake code to make it build an Android application (java + native).</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">So, today I tried the next branch with the new NSight stuff. It seems more accomplished than [1], but still doesn't work for me out of the box: I get an error when trying to link to an android "system" library (like GLESv1_CM , android, etc..). To reproduce the problem :</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">target_link_libraries(myAndroidProject GLESv1_CM)</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I get this error when trying to build my Android application :</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">1>  (...)/arm-linux-androideabi/bin/ld.bfd.exe: cannot find -l-lGLESv1_CM<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Please note the double "-l" in front of the library name. I took a look to the VS project properties, and found that in Linker>Input tab, in the "Additional Dependencies" the library name is prefixed by '-l' :</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">-lGLESv1_CM<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Obviously, removing the leading '-l' in the VS project property window solves the problem (until the project gets generated again by CMake).</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Minor considerations: </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">By comparing the generated vcxproj files with the manually configured ones I noticed these minor differences (I can't tell whether these have any consequences on the build)   </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">* Java files are declared using JCompile xml tags instead of None tags (using cmake)</div><div style="font-family:arial,sans-serif;font-size:13px">* some special files are declared using AndroidBuild xml tags (AndroidManifest.xml, build.xml, project.properties, proguard.cfg, res\values\strings.xml ...)</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">My 2 cents, keep up the good work.</div><div style="font-family:arial,sans-serif;font-size:13px">Mourad </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">[1] <a href="http://public.kitware.com/pipermail/cmake-developers/2014-July/010811.html" target="_blank">http://public.kitware.com/pipermail/cmake-developers/2014-July/010811.html</a></div></div></div>