home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Compiling under Codeblocks = masses of problems

by Nixot on 06/27/2010 13:05, 8 messages, last message: 07/01/2010 06:25, 1290 views, last view: 04/29/2024 10:30

Hey all..
I've compiled Sauerbraten under Code::Blocks using the version of MinGW suggested by the wiki, but there have been lots of problems so far:

1) Instead of showing messages (like talks and console messages) in the cmd.exe window, it puts it in a file called "stdout.txt".

2) Stereo sound effects are played in entirely the wrong position. Like, someone shoots and the sound comes from the opposite direction.

3) No music will play at all. Not even ogg files. I've tried all extensions (ogg, mp3, wav, mid, mod, xm, s3m, it) and with each one, nothing.

What am I doing wrong and how do I fix these problems?

   Board Index   

#1: Message censored by administrator

by Q009 on 06/27/2010 19:45

#2: Re: ..

by tempest on 06/27/2010 23:45, refers to #1

"you need to close it manually by closing process in task manager "

What about Ctrl+C ?

reply to this message

#3: ..

by SheeEttin on 06/28/2010 00:51

1 is the fault of mingw, not Code::Blocks or Cube 2. I believe there's something you have to #define to change that behavior. (Google it.)

reply to this message

#4: Re: ..

by Quin on 06/28/2010 01:11, refers to #3

NO_STDIO_REDIRECT

reply to this message

#5: Re: ..

by Nixot on 06/28/2010 09:30, refers to #3

I found it! I put this under the SDL_init command:

freopen( "CON", "w", stdout );
freopen( "CON", "w", stderr );

Thanks for that .
I have sort-of fixed problem 3 by using FMOD for music and SDL_mixer for sound effects, but do you know of a solution for problem 2?

reply to this message

#6: Re: ..

by Q009 on 06/30/2010 19:22, refers to #3

actually i dont have this problem when i compile sauer with VC++ with the same MinGW...

reply to this message

#7: Message censored by administrator

by SheeEttin on 07/01/2010 06:23, refers to #6

#8: Re: ..

by SheeEttin on 07/01/2010 06:25, refers to #6

VC++ probably defines it. (Would be compiler option -DNO_STDIO_REDIRECT.)

Also, I find that feature very useful...

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53871526 visitors requested 71646728 pages
page created in 0.015 seconds using 10 queries
hosted by Boost Digital