jkuhlmann / gainput

Cross-platform C++ input library supporting gamepads, keyboard, mouse, touch
http://gainput.johanneskuhlmann.de/
MIT License
857 stars 103 forks source link

waf needs admin rights #4

Closed minecrawler closed 10 years ago

minecrawler commented 10 years ago

Hey everyone! I just wanted to compile GAInput, but I got an error (see below). I used the following command: waf build_release. Building debug worked perfectly fine.

As you can see, I use Windows 8.1 x64 with VS12:

[...]
[62/71] cxx: samples\sync\syncsample.cpp -> build\release\samples\sync\syncsampl
e.cpp.1.o
SampleFramework.cpp
E:\GAInput\samples\samplefw\SampleFramework.cpp : fatal error C1083: Cannot open
 compiler generated file: 'samples\samplefw\SampleFramework.cpp.1.o': Permission
 denied
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30501 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

SampleFramework.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30501 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

recordingsample.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30501 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

syncsample.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30501 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

Waf: Leaving directory `E:\GAInput\build\release'
Build failed
 -> task in 'listenersample' failed (exit status 1):
        {task 48915064: cxx SampleFramework.cpp -> SampleFramework.cpp.1.o}
['L:\\opt\\Microsoft Visual Studio 12.0\\VC\\BIN\\amd64\\CL.exe', '-O2', '/IE:\\
GAInput\\build\\release\\lib\\include', '/IE:\\GAInput\\lib\\include', '/IL:\\op
t\\Microsoft Visual Studio 12.0\\VC\\INCLUDE', '/IL:\\opt\\Microsoft Visual Stud
io 12.0\\VC\\ATLMFC\\INCLUDE', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\in
clude\\shared', '/IC:\\Program Files (x86)\\Windows Kits\\8.1\\include\\um', '/I
C:\\Program Files (x86)\\Windows Kits\\8.1\\include\\winrt', '/DGAINPUT_LIB_BUIL
D=1', '/DNDEBUG=1', '', '..\\..\\samples\\samplefw\\SampleFramework.cpp', '/FC',
 '/c', '/Fo', 'samples\\samplefw\\SampleFramework.cpp.1.o']

E:\GAInput>

"Permission Denied" got me a strange feeling, so I started cmd as admin and reconfigured and rebuild release. As a result, the builkd was successful So I want to suggest adding this useful piece of information to the description. 'build_release' finished successfully (0.917s)

jkuhlmann commented 10 years ago

I suppose this is a problem with Waf. In any case, I've added a note about it to the building instructions in the API documentation. Thank you!