lcjava / angel-engine

Automatically exported from code.google.com/p/angel-engine
0 stars 0 forks source link

Input/Controller.cpp does not compile on Ubuntu #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm trying to compile on Ubuntu 12.10. I ran the nix-prereqs script but when 
compiling I get this error:
"Input/Controller.cpp: In member function ‘void Controller::Setup()’:
Input/Controller.cpp:264:16: error: ‘close’ was not declared in this scope
Input/Controller.cpp:270:14: error: ‘close’ was not declared in this scope
Input/Controller.cpp: In member function ‘void Controller::UpdateState()’:
Input/Controller.cpp:373:54: error: ‘read’ was not declared in this scope
Input/Controller.cpp: In member function ‘void 
Controller::SetLeftVibrationRaw(unsigned int)’:
Input/Controller.cpp:717:44: error: ‘write’ was not declared in this scope
Input/Controller.cpp: In member function ‘void 
Controller::SetRightVibrationRaw(unsigned int)’:
Input/Controller.cpp:743:44: error: ‘write’ was not declared in this scope
make: *** [Input/Controller.o] Error 1"

Anything I can do here?

Original issue reported on code.google.com by jvclem...@gmail.com on 1 Jan 2013 at 6:58

GoogleCodeExporter commented 8 years ago
What build of Angel are you trying to use? I just did a fresh install of Ubuntu 
(both 32 and 64 bit) and it compiled perfectly after running nix-prereqs. 

Original comment by lieseg...@gmail.com on 1 Jan 2013 at 3:00

GoogleCodeExporter commented 8 years ago
I also got this error on Linux Mint 14. The solution was to include unistd.h. 
It also needs to be included in Util/FileUtil.cpp for getcwd()

Original comment by billymay...@gmail.com on 4 Jan 2013 at 2:59

GoogleCodeExporter commented 8 years ago
Angel 3.0.1 btw

Original comment by billymay...@gmail.com on 4 Jan 2013 at 4:18

GoogleCodeExporter commented 8 years ago
OK, I'm assuming this is an older bug that's been fixed in the latest repo. A 
new release will be coming soon, so this won't exist in the downloadable 
version. 

Original comment by lieseg...@gmail.com on 4 Jan 2013 at 5:33

GoogleCodeExporter commented 8 years ago

Original comment by lieseg...@gmail.com on 4 Jan 2013 at 5:33