[Fixed][r4375] Source uses undefined #defines and objects

Bugs that have been fixed.

[Fixed][r4375] Source uses undefined #defines and objects

Postby BondEar » 07 Mar 2011 06:15

When I tried to compile the source I get these errors:
[code]CMakeFiles/vavoom-dedicated.dir/pr_cmds.o: In function `VObject::execStopAllSounds()':
pr_cmds.cpp:(.text+0x23): undefined reference to `GAudio'
BondEar
 
Posts: 28
Joined: 04 Mar 2011 07:26

Re: [r4375] Source uses undefined #defines and objects

Postby Firebrand » 07 Mar 2011 15:57

Could you please try to compile with the following patch?

My guess with the MikMod error you are getting is that you are using an old version, I'm using MikMod 3.2.2, can you tell me what version of MikMod you are using? It could be an unimplemented feat
Attachments
diff.zip
Patch file.
(522 Bytes) Downloaded 331 times
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico

Re: [r4375] Source uses undefined #defines and objects

Postby mnk » 07 Mar 2011 16:50

This diff won't fix the undefined reference part - that probably needs the fix I described it the feature suggestion topic.
User avatar
mnk
 
Posts: 77
Joined: 27 Mar 2008 10:50
Location: Ełk, Poland

Re: [r4375] Source uses undefined #defines and objects

Postby BondEar » 07 Mar 2011 16:51

I think I'm using a 3.1.x version of Mikmod. The version of Mikmod used in the latest SDL mixer library (1.2.11) is 3.1.12.
BondEar
 
Posts: 28
Joined: 04 Mar 2011 07:26

Re: [r4375] Source uses undefined #defines and objects

Postby mnk » 07 Mar 2011 18:04

BondEar wrote:I think I'm using a 3.1.x version of Mikmod. The version of Mikmod used in the latest SDL mixer library (1.2.11) is 3.1.12.

Actually, it's far more tricky than that.
Effectively, as of now the only thin
User avatar
mnk
 
Posts: 77
Joined: 27 Mar 2008 10:50
Location: Ełk, Poland

Re: [r4375] Source uses undefined #defines and objects

Postby Firebrand » 07 Mar 2011 19:11

Well, I think that the best choice here is to remove the features that aren't supported by that version of MikMod, I'll try to look for source code of it to check the differences, besides, those don't really make a big difference in sound quality for what
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico

Re: [r4375] Source uses undefined #defines and objects

Postby BondEar » 08 Mar 2011 05:16

GCC compiled the patched snd_mikmod.cpp without any errors, so you might want to keep it. However it's still giving me an error with the "undefined reference to GAudio."
BondEar
 
Posts: 28
Joined: 04 Mar 2011 07:26

Re: [r4375] Source uses undefined #defines and objects

Postby Firebrand » 09 Mar 2011 18:45

Were you able to compile with the latest revision? I would like to know if it's finally fixed or not.
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico

Re: [r4375] Source uses undefined #defines and objects

Postby BondEar » 10 Mar 2011 05:35

With revision 4383 I can't even cmake the Makefile. It gives me this error:
[code]CMake Error in source/gme/src/CMakeLists.txt:
Cannot find source file "Blip_Buffer.cpp". Tried extensions .c .C .c++ .
BondEar
 
Posts: 28
Joined: 04 Mar 2011 07:26

Re: [r4375] Source uses undefined #defines and objects

Postby mnk » 10 Mar 2011 10:58

Given the way those gme sources were simply pushed in, I wouldn't be surprised if parallel make choked on it.
Most likely, after libgme was built on the first run, executables could link to it, so it didn't choke on subsequent runs.

Still, what you need
User avatar
mnk
 
Posts: 77
Joined: 27 Mar 2008 10:50
Location: Ełk, Poland

Re: [r4375] Source uses undefined #defines and objects

Postby BondEar » 11 Mar 2011 10:21

OK I tried compiling the modified source with make -j1. That gave no errors, but it still wouldn't run for me (see the other thread).
BondEar
 
Posts: 28
Joined: 04 Mar 2011 07:26

Re: [r4375] Source uses undefined #defines and objects

Postby Firebrand » 11 Mar 2011 16:12

Good to hear that it compiles now, it's fixed then.
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests

cron