Qt + VS2010: moc: Too many input files specified - visual-studio-2010

Trying to compile my simple Qt app in visual studio with the VS-addin for Qt, I receive the following error:
1>------ Rebuild All started: Project: XXXXXXXXXXXXX, Configuration: Release Win32 ------
1>Build started 5/05/2012 6:57:33 PM.
1>_PrepareForClean:
1> Deleting file "release\XXXXXXXXXXXXX.lastbuildstate".
1>InitializeBuildStatus:
1> Touching "release\XXXXXXXXXXXXX.unsuccessfulbuild".
1>CustomBuild:
1> MOC XXXXXXXXXXXXXMainWidget.h
1> moc: Too many input files specified
1> Usage: moc [options] <header-file>
1> -o<file> write output to file rather than stdout
1> -I<dir> add dir to the include path for header files
1> -E preprocess only; do not generate meta object code
1> -D<macro>[=<def>] define macro, with optional definition
1> -U<macro> undefine macro
1> -i do not generate an #include statement
1> -p<path> path prefix for included file
1> -f[<file>] force #include, optional file name
1> -nn do not display notes
1> -nw do not display warnings
1> #<file> read additional options from file
1> -v display version of moc
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.05
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
What's the deal? I googled it, and the issue appeared to be a bug in 1.1.7. The solution was to rejigger the includes in the VS project. That said, I would prefer to stay with 1.1.10 - it is only a month old and I am sure that the issue is elsewhere.

This can happen if you have spaces in your filenames or paths.
There might be workarounds with some form of quoting, but the most sane (IMO) way of dealing with this is to simply avoid using spaces in your project path and filenames.

Related

getting errors when am building the cordova windows application

1>------ Build started: Project: InsightsGoApp, Configuration: Debug Windows-x86 ------
1> Your environment has been set up for using Node.js 8.11.3 (x64) and npm.
1> ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac
1> ------ Name from source package.json: vs-tac
1> ------ Version from source package.json: 1.0.42
1> ------ Package already installed globally at correct version.
1> ------ Cordova tools 6.1.1 already installed.
1> ------ Build Settings:
1> ------ Build Settings:
1> ------ platformConfigurationBldDir: C:\Aleem\Development\InsightsGoApp\InsightsGoApp\bld\Windows-x86\Debug
1> ------ platformConfigurationBinDir: C:\Aleem\Development\InsightsGoApp\InsightsGoApp\bin\Windows-x86\Debug
1> ------ buildCommand: build
1> ------ platform: Windows-x86
1> ------ cordovaPlatform: windows
1> ------ configuration: Debug
1> ------ cordovaConfiguration: Debug
1> ------ projectName: InsightsGoApp
1> ------ projectSourceDir: C:\Aleem\Development\InsightsGoApp\InsightsGoApp
1> ------ npmInstallDir: C:\Users\sheakbar\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9
1> ------ buildTarget: LocalMachine
1> ------ language: en-US
1> ------ Platform windows already exists
1> ------ Updating plugins
1> ------ Currently installed plugins: cordova-plugin-file#6.0.1,cordova-plugin-inappbrowser#3.0.0
1> ------ Currently installed dependent plugins: cordova-plugin-device#2.0.2,cordova-plugin-network-information#2.0.1,cordova-plugin-whitelist#1.3.3
1> ------ Currently configured plugins:
1> ------ Preparing platform: windows
1> Executing "before_prepare" hook for all plugins.
1> Executing "before_build" hook for all plugins.
1> Searching PlatformJson files for differences between project vs. platform installed plugins
1> No differences found between project and windows platform. Continuing...
1> Generating platform-specific config.xml from defaults for windows at C:\Aleem\Development\InsightsGoApp\InsightsGoApp\platforms\windows\config.xml
1> Merging project's config.xml into platform-specific windows config.xml
1> Found "merges/windows" folder. Copying its contents into the windows project.
1> Merging and updating files from [www, platforms\windows\platform_www, merges\windows] to platforms\windows\www
1> copy platforms\windows\platform_www\cordova-js-src\confighelper.js platforms\windows\www\cordova-js-src\confighelper.js (updated file)
1> copy platforms\windows\platform_www\cordova-js-src\exec.js platforms\windows\www\cordova-js-src\exec.js (updated file)
1> copy platforms\windows\platform_www\cordova-js-src\platform.js platforms\windows\www\cordova-js-src\platform.js (updated file)
1> copy platforms\windows\platform_www\cordova_plugins.js platforms\windows\www\cordova_plugins.js (updated file)
1> copy www\global_constants.js platforms\windows\www\global_constants.js (updated file)
1> copy www\global_data.js platforms\windows\www\global_data.js (updated file)
1> copy www\global_static.js platforms\windows\www\global_static.js (updated file)
1> copy www\global_variables.js platforms\windows\www\global_variables.js (updated file)
1> copy www\index.html platforms\windows\www\index.html (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-device\src\windows\DeviceProxy.js platforms\windows\www\plugins\cordova-plugin-device\src\windows\DeviceProxy.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-device\www\device.js platforms\windows\www\plugins\cordova-plugin-device\www\device.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\src\windows\FileProxy.js platforms\windows\www\plugins\cordova-plugin-file\src\windows\FileProxy.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\DirectoryEntry.js platforms\windows\www\plugins\cordova-plugin-file\www\DirectoryEntry.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\DirectoryReader.js platforms\windows\www\plugins\cordova-plugin-file\www\DirectoryReader.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\Entry.js platforms\windows\www\plugins\cordova-plugin-file\www\Entry.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\File.js platforms\windows\www\plugins\cordova-plugin-file\www\File.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileEntry.js platforms\windows\www\plugins\cordova-plugin-file\www\FileEntry.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileError.js platforms\windows\www\plugins\cordova-plugin-file\www\FileError.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileReader.js platforms\windows\www\plugins\cordova-plugin-file\www\FileReader.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileSystem.js platforms\windows\www\plugins\cordova-plugin-file\www\FileSystem.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileUploadOptions.js platforms\windows\www\plugins\cordova-plugin-file\www\FileUploadOptions.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileUploadResult.js platforms\windows\www\plugins\cordova-plugin-file\www\FileUploadResult.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\FileWriter.js platforms\windows\www\plugins\cordova-plugin-file\www\FileWriter.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\Flags.js platforms\windows\www\plugins\cordova-plugin-file\www\Flags.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\LocalFileSystem.js platforms\windows\www\plugins\cordova-plugin-file\www\LocalFileSystem.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\Metadata.js platforms\windows\www\plugins\cordova-plugin-file\www\Metadata.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\ProgressEvent.js platforms\windows\www\plugins\cordova-plugin-file\www\ProgressEvent.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\browser\isChrome.js platforms\windows\www\plugins\cordova-plugin-file\www\browser\isChrome.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\fileSystemPaths.js platforms\windows\www\plugins\cordova-plugin-file\www\fileSystemPaths.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\fileSystems.js platforms\windows\www\plugins\cordova-plugin-file\www\fileSystems.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\requestFileSystem.js platforms\windows\www\plugins\cordova-plugin-file\www\requestFileSystem.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-file\www\resolveLocalFileSystemURI.js platforms\windows\www\plugins\cordova-plugin-file\www\resolveLocalFileSystemURI.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-inappbrowser\src\windows\InAppBrowserProxy.js platforms\windows\www\plugins\cordova-plugin-inappbrowser\src\windows\InAppBrowserProxy.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-inappbrowser\www\inappbrowser.js platforms\windows\www\plugins\cordova-plugin-inappbrowser\www\inappbrowser.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-network-information\src\windows\NetworkInfoProxy.js platforms\windows\www\plugins\cordova-plugin-network-information\src\windows\NetworkInfoProxy.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-network-information\www\Connection.js platforms\windows\www\plugins\cordova-plugin-network-information\www\Connection.js (updated file)
1> copy platforms\windows\platform_www\plugins\cordova-plugin-network-information\www\network.js platforms\windows\www\plugins\cordova-plugin-network-information\www\network.js (updated file)
1> copy www\scripts\Common\common.css platforms\windows\www\scripts\Common\common.css (updated file)
1> copy www\scripts\Common\jquery-2.1.4.min.js platforms\windows\www\scripts\Common\jquery-2.1.4.min.js (updated file)
1> copy www\scripts\Common\underscore-min-new.js platforms\windows\www\scripts\Common\underscore-min-new.js (updated file)
1>MSBUILD : cordova-build warning : Warning: The following image was skipped because it has an unsupported size (24x24): res/icons/windows/icon-24.png
1>MDAVSCLI : warning : The following image was skipped because it has an unsupported size (24x24): res/icons/windows/icon-24.png
1>MSBUILD : cordova-build warning : Warning: The following image was skipped because it has an unsupported size (48x48): res/icons/windows/icon-48.png
1>MDAVSCLI : warning : The following image was skipped because it has an unsupported size (48x48): res/icons/windows/icon-48.png
1>MSBUILD : cordova-build warning : Warning: The following image was skipped because it has an unsupported size (55x55): res/icons/windows/icon-55.png
1>MDAVSCLI : warning : The following image was skipped because it has an unsupported size (55x55): res/icons/windows/icon-55.png
1> Updating icons and splash screens at platforms\windows\images
1> Prepared windows project successfully
1> Executing "pre_package" hook for all plugins.
1> Executing "after_prepare" hook for all plugins.
1> Discovered plugin "cordova-plugin-document-viewer" in config.xml. Installing to the project
1> Executing "before_plugin_add" hook for all plugins.
1> Calling plugman.fetch on plugin "git+https://github.com/sitewaerts/cordova-plugin-document-viewer.git"
1> Fetching plugin "git+https://github.com/sitewaerts/cordova-plugin-document-viewer.git" via git clone
1> ------ Copied C:\Aleem\Development\InsightsGoApp\InsightsGoApp\bin\Windows-x86\Debug\Microsoft.AppxPackage.Metadata.Overrides.props to platforms\windows\Microsoft.AppxPackage.Metadata.Overrides.props
1> ------ Building platform: windows
1> Debug
1> ------ Build configuration options: --debug
1> Executing "before_compile" hook for all plugins.
1> Reading build config file: C:\Aleem\Development\InsightsGoApp\InsightsGoApp\build.json
1> getLatestMatchingMSBuild
1> getLatestMSBuild
1> Searching for available MSBuild versions...
1> Running command: C:\WINDOWS\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\15.5 /v MSBuildToolsPath
1> Running command: C:\WINDOWS\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\15.0 /v MSBuildToolsPath
1> Running command: C:\WINDOWS\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0 /v MSBuildToolsPath
1> Running command: C:\WINDOWS\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0 /v MSBuildToolsPath
1> Running command: C:\WINDOWS\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0 /v MSBuildToolsPath
1> Command finished with error code 1: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\15.5,/v,MSBuildToolsPath
1> Command finished with error code 1: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\15.0,/v,MSBuildToolsPath
1> Command finished with error code 0: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0,/v,MSBuildToolsPath
1> Found MSBuild v12.0 at C:\Program Files (x86)\MSBuild\12.0\bin\amd64\
1> Command finished with error code 0: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0,/v,MSBuildToolsPath
1> Found MSBuild v14.0 at C:\Program Files (x86)\MSBuild\14.0\bin
1> Command finished with error code 0: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0,/v,MSBuildToolsPath
1> Found MSBuild v4.0 at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
1> Using MSBuild v14.0 from C:\Program Files (x86)\MSBuild\14.0\bin
1> Building project: C:\Aleem\Development\InsightsGoApp\InsightsGoApp\platforms\windows\CordovaApp.Windows10.jsproj
1> Configuration : debug
1> Platform : x86
1> Buildflags : /p:AppxBundle=Never
1> MSBuildTools : C:\Program Files (x86)\MSBuild\14.0\bin
1> Running command: C:\WINDOWS\system32\reg.exe query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows" /s /v InstallationFolder /reg:32
1> Command finished with error code 0: C:\WINDOWS\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows,/s,/v,InstallationFolder,/reg:32
1> buildProject spawn: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild [ 'C:\\Aleem\\Development\\InsightsGoApp\\InsightsGoApp\\platforms\\windows\\CordovaApp.Windows10.jsproj',
1> '/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal',
1> '/nologo',
1> '/p:Configuration=debug',
1> '/p:Platform=x86',
1> '/p:AppxBundle=Never' ] { stdio: 'inherit' }
1> Running command: "C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" C:\Aleem\Development\InsightsGoApp\InsightsGoApp\platforms\windows\CordovaApp.Windows10.jsproj /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /p:Configuration=debug /p:Platform=x86 /p:AppxBundle=Never
1> prebuild.js: Patching platform `10`
1> - Injected `base.js` reference to `/www/index.html`
1> - Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.WinJS.2.0\/js\/base.js">\s*<\/script>)(\s*)/ from /www/index.html
1> - Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.Phone.WinJS.2.1\/js\/base.js">\s*<\/script>)(\s*)/ from /www/index.html
1> CordovaApp.Windows10 -> C:\Aleem\Development\InsightsGoApp\InsightsGoApp\platforms\windows\AppPackages\CordovaApp.Windows10_0.0.1.1_x86_debug_Test\CordovaApp.Windows10_0.0.1.1_x86_debug.appx
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2748,5): error MSB3030: Could not copy the file "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Add-AppDevPackage.ps1" because it was not found. [C:\Aleem\Development\InsightsGoApp\InsightsGoApp\platforms\windows\CordovaApp.Windows10.jsproj]
1> Command finished with error code 1: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe C:\Aleem\Development\InsightsGoApp\InsightsGoApp\platforms\windows\CordovaApp.Windows10.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=debug,/p:Platform=x86,/p:AppxBundle=Never
1>MSBUILD : cordova-build error : code: Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1 No valid MSBuild was detected for the selected target: Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
1>code : error C: \Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1 No valid MSBuild was detected for the selected target: Error C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==`enter code here`========
I also had endless errors when trying to use the Windows 10 SDK, it's the worst SDK ever made. Try using the WP 8.1 SDK, you can create apps for both Windows Phone 8.1 and Windows 10 Mobile using it and VS2015, by selecting Windows Universal as target.
You may need to uninstall absolutely EVERYTHING and then install the 8.1 SDK from the VS setup program, if you don't have it already installed. You can also use the standalone SDK 8.1 Update 1 installer. You need to download the one labeled Windows Phone 8.1 Update and Emulators.
Last: If you decide to switch to VS2017, forget about WP8.1 compatibility, as it does not work with the 8.1 SDK, that's why I keep using VS2015 and the 8.1 SDK.

Google-Mobile-Ads-SDK - Can not create symbolic link : Access is denied

I am trying to embed ads on xamarin pcl project based on link
[for iOS][1]http://motzcod.es/post/154696375922/xamarinforms-google-admob-ads-in-ios
when I followed the instructions. and trying to build the following error occurs
>Done building target "ImplicitlyExpandDesignTimeFacades" in project "App1.iOS.csproj".: (TargetId:61)
1>Target "ResolveReferences: (TargetId:62)" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\App1\App1\App1.iOS\App1.iOS.csproj" (target "_UnpackLibraryResources" depends on it):
1>Done building target "ResolveReferences" in project "App1.iOS.csproj".: (TargetId:62)
1>Target "_CollectBundleResources" skipped. Previously built successfully.
1>Target "_XamarinBuildDownloadCore: (TargetId:63)" in file "C:\App1\packages\Xamarin.Build.Download.0.2.2\build\Xamarin.Build.Download.targets" from project "C:\App1\App1\App1.iOS\App1.iOS.csproj" (target "_XamarinBuildDownload" depends on it):
1>Task "Error" skipped, due to false condition; ('$(XamarinBuildDownloadDir)'=='') was evaluated as ('C:\App1\packages\Xamarin.Build.Download.0.2.2\build\..\..\.xbcache\'=='').
1>Using "XamarinDownloadArchives" task from assembly "C:\App1\packages\Xamarin.Build.Download.0.2.2\build\Xamarin.Build.Download.dll".
1>Task "XamarinDownloadArchives" (TaskId:40)
1> Task Parameter:
1> Archives=
1> Gmbladssdk-7.15.0
1> Kind=Tgz
1> Url=https://dl.google.com/dl/cpdc/7d719f8d49d44418-Google-Mobile-Ads-SDK-7.15.0.tar.gz (TaskId:40)
1> Task Parameter:DestinationBase=C:\App1\packages\Xamarin.Build.Download.0.2.2\build\..\..\.xbcache\ (TaskId:40)
1> Extracting C:\Users\cm\AppData\Local\XamarinBuildDownloadCache\Gmbladssdk-7.15.0.tgz to C:\App1\packages\.xbcache\Gmbladssdk-7.15.0 (TaskId:40)
1> Unpacking failure reason:
1> 7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
1>
1> Scanning the drive for archives:
1> 1 file, 17657943 bytes (17 MiB)
1>
1> Extracting archive: C:\\Users\\cm\\AppData\\Local\\XamarinBuildDownloadCache\\Gmbladssdk-7.15.0.tgz
1> --
1> Path = C:\\Users\\cm\\AppData\\Local\\XamarinBuildDownloadCache\\Gmbladssdk-7.15.0.tgz
1> Type = gzip
1> Headers Size = 107
1>
1> Everything is Ok
1>
1> Size: 38983680
1> Compressed: 17657943
1>
1> 7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
1>
1> Scanning the drive for archives:
1> 1 file, 38983680 bytes (38 MiB)
1>
1> Extracting archive: C:\\App1\\packages\\.xbcache\\Gmbladssdk-7.15.0\\Google-Mobile-Ads-SDK-7.15.0.tar
1> --
1> Path = C:\\App1\\packages\\.xbcache\\Gmbladssdk-7.15.0\\Google-Mobile-Ads-SDK-7.15.0.tar
1> Type = tar
1> Physical Size = 38983680
1> Headers Size = 46592
1> Code Page = UTF-8
1>
1> ERROR: Can not create symbolic link : Access is denied. : C:\\App1\\packages\\.xbcache\\Gmbladssdk-7.15.0\Frameworks\GoogleMobileAds.framework\GoogleMobileAds
1> ERROR: Can not create symbolic link : Access is denied. : C:\\App1\\packages\\.xbcache\\Gmbladssdk-7.15.0\Frameworks\GoogleMobileAds.framework\Headers
1> ERROR: Can not create symbolic link : Access is denied. : C:\\App1\\packages\\.xbcache\\Gmbladssdk-7.15.0\Frameworks\GoogleMobileAds.framework\Versions\Current
1>
1> Sub items Errors: 3
1>
1> Archives with Errors: 1
1>
1> Sub items Errors: 3
1> (TaskId:40)
1>C:\App1\packages\Xamarin.Build.Download.0.2.2\build\Xamarin.Build.Download.targets(25,3): error XBD002: Unpacking failed. Please download 'https://dl.google.com/dl/cpdc/7d719f8d49d44418-Google-Mobile-Ads-SDK-7.15.0.tar.gz' and extract it to the 'C:\App1\packages\.xbcache\Gmbladssdk-7.15.0' directory and create an empty file called 'C:\App1\packages\.xbcache\Gmbladssdk-7.15.0.unpacked'.
1>Done executing task "XamarinDownloadArchives" -- FAILED. (TaskId:40)
1>Done building target "_XamarinBuildDownloadCore" in project "App1.iOS.csproj" -- FAILED.: (TargetId:63)
1>
1>Project Performance Summary:
1> 4015 ms C:\App1\App1\App1.iOS\App1.iOS.csproj 1 calls
I am guessing due to permissions. so I tried to unzip the .tar file and places the unzipped files at .xbcache folder as stated. that didn't work too. is there anyway that I overcome this?
Thanks
If I had to guess, it's because of the way you're trying to extract the files. It's frustrating that it was compressed twice. I did it on Win10 using WinZip and first I extracted the gz, then went inside the extracted folder, located the tar and extracted it directly into the final location.

Visual studio cannot compile resources (C++)

I have a Win32 project and I needed some resource files. Specifically I have a Main.rc:
#include "Resources.hpp"
IDI_APP_ICON ICON "myappicon.ico"
and a Resources.hpp:
#define IDI_APP_ICON 101
My dir tree is:
├───res
│ myappicon.ico
│ myProject.rc
│
├───src (the files below are just samples except Resources.hpp)
│ a.cpp
| a.hpp
| b.hpp
| b.cpp
| Resources.hpp
Everything is encoded as ANSI.
When I try to build my project from visual studio I get this error:
1>------ Rebuild All started: Project: myProject, Configuration: Debug Win32 ------
1> TrayIcon.cpp
1> MainWindowData.cpp
1> PopupMenu.cpp
1> Main.cpp
1> KbdHook.cpp
1> Generating Code...
1>
1>..\..\res\myProject.rc(3): error RC2135: file not found: IDI_APP_ICON
1>
1>
1>..\..\res\myProject.rc(4): error RC2135: file not found: "MYAPPICO.ICO"
1>
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
I use Visual Studio Ultimate 2013.
What is the problem here? I can't think of anything?
Update:
I changed the myProject.rc encoding to Unicode and it works. Okay, what's going on here?
And I don't want it to be Unicode. Isn't there any possible way to have it as Utf-8 or ansi??

vs2012 doesn't pass /projectconfig to dependencies?

TLDR; devenv appears to build dependencies with whatever config/platform was last selected in the GUI, rather than what /projectconfig says. Ideas?
I have a Visual Studio 2012 solution that builds debug & release, win32 & x64. It has two projects
"common" produces a static library
"foo" produces a dll, and links with common.lib
Both projects output to $(SolutionDir)$(Configuration)_$(Platform), e.g. myTest/Release_Win32 so I can easily swap between configs.
The project foo depends on common, and when I explicitly build foo in the full GUI it properly builds common first, for whichever configuration/platform I'm currently targetting.
However, If I run the command line
devenv.exe myTest/myTest.sln /project foo /projectconfig "Release|x64" /build
Then it will fail because it can't find common.lib when linking. Indeed, there's no myTest/Release_x64/common.lib, but there IS myTest/Debug_Win32/common.lib. I can verify this is caused by that devenv command, it re-appears after removing all the directories.
It appears devenv is trying to build common as a dependency, but failing to specify the projectconfig and falling back to the default Debug & Win32.
I can work around this by manually building common before attempting to build foo, but I'd prefer it to happen automagically. Has anyone else encountered this, or have a workaround/solution?
Here's a solution that demonstrates the problem, and how I created it:
http://beanalby.net/stackExchange/vsDepends.zip
created "common" as Static Lib with new solution
created "foo" as Console App in that solution
added $(OutDir)common.lib as Additional Dependency under Linker/Input for all configurations on foo
marked "foo" depends on "common"
exited visual studio, saving projects & solution
running devenv myTest/myTest.sln /project foo /projectconfig "Release|x64" /build produces:
C:\Users\jason\Desktop>devenv myTest/myTest.sln /project foo /projectconfig "Release|x64" /build
Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.60610.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: common, Configuration: Debug Win32 ------
1>Build started 11/15/2013 13:15:22.
1>PrepareForBuild:
1> Creating directory "C:\Users\jason\Desktop\myTest\Debug\".
1>InitializeBuildStatus:
1> Creating "Debug\common.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1> stdafx.cpp
1>Lib:
1> common.vcxproj -> C:\Users\jason\Desktop\myTest\Debug\common.lib
1>FinalizeBuildStatus:
1> Deleting file "Debug\common.unsuccessfulbuild".
1> Touching "Debug\common.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.52
2>------ Build started: Project: foo, Configuration: Release x64 ------
2>Build started 11/15/2013 13:15:22.
2>PrepareForBuild:
2> Creating directory "C:\Users\jason\Desktop\myTest\x64\Release\".
2>InitializeBuildStatus:
2> Creating "x64\Release\foo.unsuccessfulbuild" because "AlwaysCreate" was specified.
2>ClCompile:
2> stdafx.cpp
2> foo.cpp
2>LINK : fatal error LNK1181: cannot open input file 'C:\Users\jason\Desktop\myTest\x64\Release\comm
on.lib'
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:00.56
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
If you open Visual Studio, change the platform/config to anything else, and exit (it won't ask to save), then common will build as THAT platform/config.
This happens with both the VS2012 x64 Cross Tools Command Prompt and VS2012 x86 Native Tools Command Prompt.
Confirming Hans Passant's comment, The docs for devenv say:
Note
For build-related tasks, it is now recommended that you use MSBuild
instead of devenv. For more information, see MSBuild Command-Line Reference.
Using MSBuild instead as
MSBuild.exe myTest/myTest.sln /t:foo /p:Configuration=Release;Platform=x64
lets it get the platform & config properly. This Q/A shall serve as a warning to those still using devenv on the command line. Repent & switch!

A Visual C++ Project for Linking Without Compiling

I'm trying to create a vc++ project that will link several libraries together, without first compiling anything.
I created an empty project, added Additional Dependencies in the Linker options, but when I try to build it I get the following:
1>------ Rebuild All started: Project: sde-mix-mt, Configuration: Release x64 ------
1>Build started 2/6/2013 11:32:49 PM.
1>_PrepareForClean:
1> Deleting file "x64\Release\sde-mix-mt.lastbuildstate".
1>InitializeBuildStatus:
1> Creating "x64\Release\sde-mix-mt.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>FinalizeBuildStatus:
1> Deleting file "x64\Release\sde-mix-mt.unsuccessfulbuild".
1> Touching "x64\Release\sde-mix-mt.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.04
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
Although it says Build succeeded it didn't actually build anything (check the time elapsed).

Resources