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 ... 8

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

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Compiling With CodeBlocks(on Windows)
« on: April 29, 2006, 07:26:32 PM »

As previously mentioned, I'm getting WGE to compile on CodeBlocks.
I'm using the MinGW + CodeBlocks RC2 SDK made by nfz.

I've gotten vorbis, and ogg to compile. I had some trouble with theora though. Do you have any prebuilt binaries for these libraries? I found a link to some that you built on  this thread, but the link is dead.

I got ptypes to build fine in codeblocks, as a static library.

So I'm linking WGE without theora right now, but I am getting some errors which I think are related to ptypes, they are linker errors.

Code: [Select]

:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:36: undefined reference to `pt::thread::thread(bool)'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:39: undefined reference to `pt::thread::~thread()'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:48: undefined reference to `pt::thread::waitfor()'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:59: undefined reference to `pt::thread::~thread()'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:59: undefined reference to `pt::thread::~thread()'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:48: undefined reference to `pt::thread::waitfor()'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:59: undefined reference to `pt::thread::~thread()'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:59: undefined reference to `pt::thread::~thread()'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:48: undefined reference to `pt::thread::waitfor()'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:59: undefined reference to `pt::thread::~thread()'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:59: undefined reference to `pt::thread::~thread()'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:113: undefined reference to `pt::thread::start()'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:226: undefined reference to `_ZN2pt6psleepEj@4'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:267: undefined reference to `_ZN2pt6psleepEj@4'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\OggCodec.cpp:272: undefined reference to `_ZN2pt6psleepEj@4'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:30: undefined reference to `theora_comment_init'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:31: undefined reference to `theora_info_init'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:38: undefined reference to `theora_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:39: undefined reference to `theora_comment_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:40: undefined reference to `theora_info_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:38: undefined reference to `theora_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:39: undefined reference to `theora_comment_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:40: undefined reference to `theora_info_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:38: undefined reference to `theora_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:39: undefined reference to `theora_comment_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:40: undefined reference to `theora_info_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:46: undefined reference to `theora_decode_header'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:72: undefined reference to `theora_decode_header'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:90: undefined reference to `theora_decode_init'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:104: undefined reference to `theora_decode_packetin'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\TheoraCodec.cpp:107: undefined reference to `theora_granule_time'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:34: undefined reference to `vorbis_info_init'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:35: undefined reference to `vorbis_comment_init'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:42: undefined reference to `vorbis_block_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:43: undefined reference to `vorbis_dsp_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:44: undefined reference to `vorbis_comment_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:45: undefined reference to `vorbis_info_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:42: undefined reference to `vorbis_block_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:43: undefined reference to `vorbis_dsp_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:44: undefined reference to `vorbis_comment_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:45: undefined reference to `vorbis_info_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:42: undefined reference to `vorbis_block_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:43: undefined reference to `vorbis_dsp_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:44: undefined reference to `vorbis_comment_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:45: undefined reference to `vorbis_info_clear'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:53: undefined reference to `vorbis_synthesis_headerin'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:74: undefined reference to `vorbis_synthesis_headerin'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:91: undefined reference to `vorbis_synthesis_init'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:92: undefined reference to `vorbis_block_init'
:D:\WGE_CB\WGE\trunk\scripts\WGE\..\..\src\Codecs\VorbisCodec.cpp:107: undefined reference to `vorbis_synthesis_pcmout'


Any ideas? or is there a certain order I have to link the libraries in that I should know of?(I know, stlport comes last)

Do you think there is a problem with building these other libraries without using STLPort?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #1 on: April 29, 2006, 07:30:54 PM »

Either, you built ptypes wrong, or you do not link against ptypes in WGE>

Theora should build easily with codeblocks, when I had problems before, it was from OGG, not theora. I don't think I have those files around anymore. Only issue I really had was CodeBlocks + MinGW (gcc) - libOgg headers had some preprocessor that needed fixing to recognize gcc on windows (MinGW). Theora built fine, post some errors for theora here.
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Compiling With CodeBlocks(on Windows)
« Reply #2 on: April 29, 2006, 07:38:06 PM »

Ok, I'll try this from scratch. I'm going to build ptypes, tehn libogg, then vorbis, then theora. I'll link them all against the version of STLPort that came with the Ogre SDK.
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Compiling With CodeBlocks(on Windows)
« Reply #3 on: April 29, 2006, 07:41:02 PM »

Should I make the project files from scratch, or try to import the VC6 ones?

edit: I'll make the project files from scratch for now.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #4 on: April 29, 2006, 07:42:29 PM »

The VC7 one is pretty old. Might as well make from scratch.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #5 on: April 29, 2006, 07:42:57 PM »

Or, err, are you reffering to ptypes and libogg.. Just import those.
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Compiling With CodeBlocks(on Windows)
« Reply #6 on: April 29, 2006, 08:22:08 PM »

I was referring to libogg, and ptypes, but too late  :wink:
I got ptypes working perfectly as a dll, onto libogg.

Also, please tell me your prefrence about static linking, should these all be static linked?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #7 on: April 29, 2006, 08:38:35 PM »

yeah,static linked. They are linked that way in the VC8 build. Plus they are all zlib or BSD. ptypes could be static linked, but it may be used in the openal plugin later on. So, dll for ptypes.
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Compiling With CodeBlocks(on Windows)
« Reply #8 on: April 30, 2006, 09:35:29 AM »

Ok, I got ogg, vorbis, and theora built as static, and ptypes built as a dll, and they all link successfully  :D

Now I just need to figure out what's wrong with my link options for Ogre  :(
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #9 on: April 30, 2006, 05:41:32 PM »

Woot! I just downloaded the latest SVN of CodeBlocks.. And after installing wxGtk on my linux box (yum install wxGtk-devel), and buuilding CodeBlocks (about ten minutes).. It starts up just fine!!

Wow, last time I checked it, there were some major hurdles to building on Linux.. This is a great boon to Linux productivity if it works well :) I tire of command line/gedit combination.
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Compiling With CodeBlocks(on Windows)
« Reply #10 on: April 30, 2006, 06:05:15 PM »

Sweet  :D

btw, do you know of any good wireless cards that work out-of-the-box on linux?(Fedora Core 5 64 Bit)
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #11 on: April 30, 2006, 08:05:47 PM »

Many wireless cards should work. Well, i've heard of problems with Broadcoms.. And, in fact, have a broadcom wireless (internal) NIC on my FC4 Laptop.. I had to installl ithe Windows binary Driver via ndiswrapper :) Go figure. You could google ndiswrapper, and see what cards they list as supported on their wiki.

Though, most cards when supported via ndiswrapper lose a bit of functionality (such of making network detection tools not work, but, that should not be an issue anyway ;) )However, I don't know of any good lists of supported cards. if you find one, please post it.
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Compiling With CodeBlocks(on Windows)
« Reply #12 on: April 30, 2006, 08:55:35 PM »

I just found a very good list: http://linux-wless.passys.nl/

Hopefully I'll get internet going with a new card soon(as long as I have money)
Logged

mysterycoder

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

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?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Compiling With CodeBlocks(on Windows)
« Reply #14 on: May 04, 2006, 08:32:51 PM »

The Files it needs are all the files (not subfolders) in ois/include, ois/src, and ois/src/Win32
Logged
Pages: [1] 2 3 ... 8