-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation trouble under code::blocks #9
Comments
I'm also having the same problem in Windows 7, CodeBlocks 12.11 with MinGW and OF v.0.8.0 :( I've tried to link the VS2008/OIS_static.lib and also VS2010/OIS_vs2010_static.lib but it doesn't work |
Hi. The problem is that the addon currently only has compiled OIS libraries for visual studio. Those won't work with Code::Blocks. You can try to compile OIS yourself by downloading it from here: http://sourceforge.net/projects/wgois/ from what I can see it has a codeblocks project file included in the zip. I don't have a windows development environement atm so I can't do it. But I can try to help if you run into any problems... |
That makes sense... I've downloaded it and tried to compile it but it throw some errors: ||=== OIS, Release ===| |
dammit... :) But I just had an idea. afaik OIS is included with ogre. it is probably a part of this download. http://sourceforge.net/projects/ogre/files/ogre/1.8/1.8.1/OgreSDK_MinGW_v1-8-1.exe/download |
We are getting close... After downloading Ogre, I got the "libOIS.dll.a" file and placed it in the "lib folder of ofxGamepad. Then I moved the "OIS.dll" file into the "data" folder of my app. Then run the app and I got the following error: I've downloaded the "libstdc++-6.dll" file from the Internet and placed it in the "data" folder. Now the app runs but crashes right away if I use ofxGamepadHandler::get() in the setup method. If I leave the setup method empty, the app runs okay. Any idea? void testApp::setup(){
ofxGamepadHandler::get()->enableHotplug();
//CHECK IF THERE EVEN IS A GAMEPAD CONNECTED
if(ofxGamepadHandler::get()->getNumPads()>0){
ofxGamepad* pad = ofxGamepadHandler::get()->getGamepad(0);
ofAddListener(pad->onAxisChanged, this, &testApp::axisChanged);
ofAddListener(pad->onButtonPressed, this, &testApp::buttonPressed);
ofAddListener(pad->onButtonReleased, this, &testApp::buttonReleased);
}
} |
Hi, how is the behavior with code::blocks ? because I get those compilations troubles and I do not find something to link at specific to code::blocks.
obj\Release\addons\ofxGamePad\src\ofxGamepadHandler.o:ofxGamepadHandler.cpp|| undefined reference to
OIS::InputManager::createInputSystem(std::multimap<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >&)'| obj\Release\addons\ofxGamePad\src\ofxGamepadHandler.o:ofxGamepadHandler.cpp|| undefined reference to
OIS::InputManager::getNumberOfDevices(OIS::Type)'|obj\Release\addons\ofxGamePad\src\ofxGamepadHandler.o:ofxGamepadHandler.cpp|| undefined reference to
OIS::InputManager::createInputObject(OIS::Type, bool, std::string const&)'| obj\Release\addons\ofxGamePad\src\ofxGamepadHandler.o:ofxGamepadHandler.cpp|| undefined reference to
OIS::InputManager::destroyInputSystem(OIS::InputManager*)'|obj\Release\addons\ofxGamePad\src\ofxGamepadOIS.o:ofxGamepadOIS.cpp|| undefined reference to
OIS::JoyStick::getNumberOfComponents(OIS::ComponentType) const'| obj\Release\addons\ofxGamePad\src\ofxGamepadOIS.o:ofxGamepadOIS.cpp|| undefined reference to
OIS::JoyStick::getNumberOfComponents(OIS::ComponentType) const'|obj\Release\addons\ofxGamePad\src\ofxGamepadOIS.o:ofxGamepadOIS.cpp|| undefined reference to
OIS::ForceFeedback::getSupportedEffects() const'| obj\Release\addons\ofxGamePad\src\ofxGamepadOIS.o:ofxGamepadOIS.cpp|| undefined reference to
OIS::Effect::getEffectTypeName(OIS::Effect::EType)'|obj\Release\addons\ofxGamePad\src\ofxGamepadOIS.o:ofxGamepadOIS.cpp|| undefined reference to `OIS::InputManager::createInputObject(OIS::Type, bool, std::string const&)'|
||=== Build finished: 9 errors, 21 warnings (3 minutes, 58 seconds) ===|
The text was updated successfully, but these errors were encountered: