Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Pages: 1 [2] 3 4 ... 8

Author Topic: Compiling With CodeBlocks(on Windows)  (Read 32086 times)

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Compiling With CodeBlocks(on Windows)
« Reply #15 on: May 04, 2006, 09:35:29 PM »

Ok, thanks I'll try getting the dependencies up tommorrow, and hopefully I'll get more time so I can work on WGE  :wink:
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #16 on: May 05, 2006, 02:31:35 PM »

Well, since I've been playing around with CB alot on Linux, and I am very impressed.

I will begin working on the WGE Linux port, using CB instead of a makefile/configure system.. As, WGE does not really need to be installed to a system path anyway :)

I'll keep the Linux CB files different from the Win32 ones, since it simplifies the number of targets in the project ;)
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #17 on: May 05, 2006, 03:20:52 PM »

Well, this is becoming almost unmnageable... With windows, it is easy to provide the dependency download, and that is that...

Not so easy with Linux, I think.. Perhaps it is time to include a dependency directory to WGE's source tree.. What do you think?

btw, not for big things (or things not allowable).. ie. Ogre, OIS, are easy enough to download and build and install. So, no need to waste bandwidth there. However, all the little things (ptypes, theora, squirrel..).
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #18 on: May 05, 2006, 04:36:30 PM »

Quote from: "mysterycoder"
I'm almost there  :D, I have libogg, libvorbis, libtheora, OgreNewt, ptypes, and Ogre all working. I just need to link newton, and build OIS.

I've noticed that the CodeBlocks project for OIS is missing quite a few files, which folders should I add them from?


You are using MinGW as the CodeBlocks compiler? As, I have had to make numerous changes to (attempt) to get OgreNewt and Newton to build cleanly under gcc on linux.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #19 on: May 05, 2006, 04:53:53 PM »

I created a patch to build OgreNewt on Linux: http://www.wreckedgames.com/files/ogrenewt.CB_Linux_patch.tar.gz

Havn't tested it yet though to see if it runs.. Though, I think OgreNewt was the last major dpends..
ptypes - check
theora - check
ogg & vorbis - standard libs already installed
OgreNewt - check
Ogre - check
OIS - check

Is that all of em?
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Compiling With CodeBlocks(on Windows)
« Reply #20 on: May 05, 2006, 04:58:14 PM »

Yeah, I'm using MinGW, all I had to do was add
Code: [Select]
#include <stddef.h>
to newton.h.

Sure, I've already made up a workspace to build the small dependencies under codeblocks, this includes ptypes, libogg,  libtheora, and libvorbis. I can add squirrel too if you want, then I'll set them up so they build the .a files into the dependencies directories  :D

Oh yeah, I'm using ptypes as a dll as you requested.
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Compiling With CodeBlocks(on Windows)
« Reply #21 on: May 05, 2006, 04:59:48 PM »

Nope not all of them, you forgot SqPlus. With the new version of SqPlus that is out make sure you replace the headers too or you'll get errors.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #22 on: May 05, 2006, 05:04:09 PM »

Well, I had more issues than just that :)

I am planning on keeping the Win32 CB and Linux CB projects seperate.. But, they can share the common depends.. Ok, we should add a directory under wge (not under trunk) called:
etc

So it will be
Code: [Select]

wge
  |-etc
  | |-ptypes
  | |-theora
  | |-squirrel
  |-trunk
    |-scripts


Bascially, put them all there, and setup the projects to build those, and copy them all to the wge->trunk->depends->includes->(whatever project)/ directory. And the same for the libs.
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Compiling With CodeBlocks(on Windows)
« Reply #23 on: May 05, 2006, 07:22:25 PM »

Should I apply the patch to my OgreNewt copy too?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #24 on: May 05, 2006, 07:33:59 PM »

Don't worry about patching OgreNewt, unless we keep it in a local repository of our own, (which we might later). For now, the Windows version nees no patch applied.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #25 on: May 05, 2006, 07:36:22 PM »

Ah, I'm getting some wierd errors with Squirrel bindings and function calls.. I've fixed a couple/ And have just committed. Have you experienced anything like that yet?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #26 on: May 05, 2006, 09:52:02 PM »

Well, this is the reason why I hate templates and crazy define.. Even though SqPlus can save time, it can also cause issues.. I'm not really sure of the reason why it works under Visual C++, and not gcc.. But, I was haivng some issues, where the Push template call (created from SquirrelFunction in OISManager), was not finding the right tempalte function to call (as created by the DeclareTypeInstance macro).. Anyway, i created a nasty little work around, and committed it. Basically, I just make an inline function in OisManager.cpp that can call the right template as was created right above it...

Anyway, since we don't call Squirrel functions too much from c++, this workaround is not soo bad. Though, i would like to figure out the issue... Must be something about partial template spacilization or something like that. I am not a template/compiler zen master :/

Anyway, it now compiles fine.. I will leave testing for another day. Oh, and I still need to make the Game and plugin binaries.
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Compiling With CodeBlocks(on Windows)
« Reply #27 on: May 06, 2006, 02:18:57 PM »

Did you try the newest release of SqPlus, I think it is 117 or something? I heard they fixed some template stuff in it
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #28 on: May 06, 2006, 02:27:43 PM »

I downloaded the latest release from the download location.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #29 on: May 06, 2006, 03:33:57 PM »

How is your progress with CB going? Everything is building/running here now.

I made a simple entry point function for non windows builds:
bascially, instead of "Game entry Something.nut" it is "Game Something.nut" on Non Windows builds.. Just a hack, but simple.

Only problems, the only methods that appear to have bided successfully is getSingletonPtr().. Evry other method in script is causing a squirrel not found exception .. oO
Logged
Pages: 1 [2] 3 4 ... 8