I'm getting DirectXTK errors when compiling the samples - xbox-live

I'm attempting to build the Xbox Live samples and running into DirectXTK errors. This happens irrespective of whether I'm using the Creator's Program or ID#Xbox samples. These are the samples at https://github.com/Microsoft/xbox-live-samples
For example, when opening the Leaderboard sample I see "DirectXTK (unavailable)" in the Solution Explorer.
When trying to build, I get the following output
1>------ Build started: Project: Leaderboards, Configuration: Debug Win32 ------
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1611,5): warning : The referenced project '..\..\..\..\Kits\DirectXTK\DirectXTK_Windows10.vcxproj' does not exist.
1> pch.cpp
1>c:\users\rigu\xsapi\github\test\xbox-live-samples\samples\creatorssdk\leaderboards\uwp\cpp\pch.h(32): fatal error C1083: Cannot open include file: 'GamePad.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
Any ideas on how I can get the sample building & running?

The DirectXTK is a submodule in the Xbox Live samples git repo. There are two ways to make sure you get DirectXTK.
When initially cloning, make sure you use the "--recursive" option. IE:
git clone --recursive https://github.com/Microsoft/xbox-live-samples.git
If you already cloned the samples directory, you can initialize submodules with:
git submodule update --init
Then you can update them with:
git submodule update

Related

Getting errors while trying to build istio source on mac

I'm a newbie in Istio and I’m trying to build the Istio source locally in mac but somehow when I run "make build" I get the following errors.
...
Downloading envoy: https://storage.googleapis.com/istio-build/proxy/envoy-alpha-74393cf764c167b545f32eb895314e624186e5b6.tar.gz to
real 0m5.288s
user 0m0.707s
sys 0m0.685s
cp: cannot create regular file '': No such file or directory
Unexpected failure
make[1]: *** [Makefile.core.mk:230: /work/out/darwin_amd64/istio_is_init] Error 1
...
These are the following env variables that I have set.
export HUB="docker.io/shriramsharma"
export TAG="shriramsharma"
export GOOS=darwin
export USE_LOCAL_PROXY=1
export BUILD_WITH_CONTAINER=1
Is there something I’m missing? any help would be appreciated
Version: I ran make build on the master branch of the source. I did not checkout any release version tag.
Docs: I followed the steps in the docs here. https://github.com/istio/istio/wiki/Preparing-for-Development-Mac

VSTS - Error MSB3202: The project file "..\Master\Master.sqlproj" was not found

All,
I set up MS Build TASK on VSTS that would work on a Git Repo containing a SSDT project.
When I run this task, I get the below error:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets(283,5): Error MSB3202: The project file "..\Master\Master.sqlproj" was not found.
Process 'msbuild.exe' exited with code '1'.
ANy idea what this error could be?
Gopi

No object generated while building MS Casablanca library for c++

Trying to build Microsoft REST SDK. Got errorious output:
1>d:\lb\cpprestsdk\release\include\cpprest\json.h(1386): error C2220: warning treated as error - no 'object' file generated
1>d:\lb\cpprestsdk\release\include\cpprest\json.h(1386): warning C4702: unreachable code
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
What is wrong there? Why there is no object file generated and how to fix it?
The project is set up to treat warnings as errors. To turn this off, go to the project properties page, Properties - General, and switch Treat Warnings as Errors from Yes (/WX) to No(/WX-).
This will allow the binaries to build. A better solution would be to amend the code to remove the warning but I haven't looked at the code long enough to propose a change.

Yocto bitbake task for meta-raspberrypi fails with firmware download

I'm following an approach described in JumpNow Technologies to build a Yocto image for a Raspberry PI. These steps utilize the Yocto meta-raspberrypi layer.
The bitbake process fails when doing a git fetch from git://github.com/raspberrypi/firmware.git. The relevant part of the log is below.
bcm2835-bootfiles-20170303-r42 do_fetch: Failed to fetch URL git://github.com/raspberrypi/firmware.git;protocol=git;branch=master, attempting MIRRORS if available
ERROR: bcm2835-bootfiles-20170303-r42 do_fetch: Fetcher failure: Unable to find revision 78bcdeae6bda4ecbc599af8c75e16c2ddd392d3a in branch master even from upstream
ERROR: bcm2835-bootfiles-20170303-r42 do_fetch: Fetcher failure for URL: 'git://github.com/raspberrypi/firmware.git;protocol=git;branch=master'. Unable to fetch URL from any source.
ERROR: bcm2835-bootfiles-20170303-r42 do_fetch: Function failed: base_do_fetch
This step takes close to an hour or more. I'm assuming it's timing out somewhere and hence it fails. This is happening because it's pulling down several GB.
I can fetch this repository manually separate to bitbake. Is there a way to insert the repo contents downloaded manually? e.g. into the downloads or tmp directly?
Alternatively, does anyone have a suggestion for dealing with this download?
The issue was with meta-rpi as identified by #jku. I'm told jumpnow has fixed the issue.

error installing package on a branch with install_github

I've forked a package from github have made some changes. I'm trying to install the version of the package to which I've made changes with install_github(), but am getting an error message. Any suggestions?
The forked version: https://github.com/embruna/refnet
The edited version on the branch: https://github.com/embruna/refnet/tree/proposed-updates
I can install the forked version with:
install_github("embruna/refnet", subdir="pkg")
I tried to install the version on the branch with the following:
install_github("embruna/refnet#proposed-updates", subdir="pkg")
But then get this error:
** help
*** installing help indices
** building package indices
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
line 1 did not have 6 elements
ERROR: installing package indices failed
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/refnet’
Error: Command failed (1)
Thanks for any suggestions.
EDIT: There were two problems: 1) the install_github syntax I used incorrect and 2) there was a folder in "pkg" that was throwing an error even after correcting the syntax. See below for details.
I'm guessing that specifying the branch with # but the subdirectory with the subdir argument is confusing devtools.
This works for me (specifying both subdir and branch in the repo argument):
install_github("embruna/refnet/pkg#proposed-updates",
So does this (specifying both branch and subdir as separate arguments):
devtools::install_github("embruna/refnet",
ref = "proposed-updates", subdir = "pkg")
The output starts this way ...
Using GitHub PAT from envvar GITHUB_PAT
Downloading GitHub repo embruna/refnet#proposed-updates
from URL https://api.github.com/repos/embruna/refnet/zipball/proposed-updates
Installing refnet
This is with devtools 1.12.0
I was able to install your proposed-updates branch with this:
install_github("embruna/refnet", branch = "proposed-updates", subdir = "pkg")
I get a bunch of warnings, but no error messages.