Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: CodeBlocks...OIS, on Linux ?  (Read 1789 times)

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
CodeBlocks...OIS, on Linux ?
« on: May 02, 2006, 08:58:04 PM »

I have been playing around with CodeBlocks under linux tonitght, and have begun adding a Linux CodeBlocks file :) It will more then likely reside in the root ois directory (as with the standard autotools build platform)..

I may or may not commit this, but I find it cool that I compiled OIS with codeblocks with little effort.. Though, I havn't tried the resulting lib, I am sure their are some wrinkles.. Though, I'll import some of the other demos into the CB solution, and see about getting them to build. Though, I don't know if codeblocks can do the whole package install thing.
Logged

CaseyB

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 31
    • View Profile
CodeBlocks...OIS, on Linux ?
« Reply #1 on: May 02, 2006, 09:00:49 PM »

I, for one, would greatly appreciate the codeblocks file!
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
CodeBlocks...OIS, on Linux ?
« Reply #2 on: May 02, 2006, 09:40:51 PM »

Well, ok, then :)

I've managed to get OIS building as two targets... 1) A debug shared .so file (has debuggin info, and profiling info) 2) Release shared lib .so (has no debuggin info, and -03 flag).

Also, I've managed to get the OIS Console Demo building and linking fine. Heck it even works :) !!!

Next step, will be getting the slightly more complex build files setup for the CEGUI/Ogre demos. All that should be need, is adding the link directories, and a default /usr/local/lib/OGRE & CEGUi (since, that is where they default for install).
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
CodeBlocks...OIS, on Linux ?
« Reply #3 on: May 04, 2006, 09:37:37 AM »

Well, I managed to compile OIS, OISConsole Demo, and OISActionMap (Ogre Demo) via codeblocks.

Of course, there are some gotchas right now:
OIS does not install to /usr/local/lib when using the CodeBlocks project. It builds to ois/libs/

Since, to install to the usr directory, you need root privledges, and I don't know if CodeBlocks would ask :/
Anyway, this means that the local demos link directly to the ois/lib/OIS.so location. Which, is fine, I suppose.

Also, with the ./bootstrap, ./configure, make, make install..
Everything builds and runs fine. With the codeblocks generated binary demos (Ogre/CEGUI), you have to tweak your ld cache (via /etc/ld.so.conf and ldconfig) for the binary to find the shared Ogre and CEGUI libs... Not sure why. Anyway, the make install way is probably preferred way to do it.. But, I like having an IDE, so I will probably be using the new CodeBlock project mostly on linux now :) I'll commit the changes, and it will be in OIS 0.7.0 ;)
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
CodeBlocks...OIS, on Linux ?
« Reply #4 on: May 04, 2006, 10:04:49 AM »

Ok, quick workaround.. OIS.so and OIS_s.so (contains debugging symbols, and DEBUG defined) will install to ~/libs (you /home/whateveruser/libs) this way, it is not a system wide install, but works for the local users. not an optimal solution, but good enough for now. The prefferred method is to install to /usr/local/lib for all users on the system to share.. But, for testing and debuging, the home location is fine. But, normally, one should just ./bootstrap ./configure make && make isntall.. As, that will be the place in which things (such as Ogre) will look for OIS.
Logged