June 25, 2018, 02:59:39 AM

Author Topic: [Blitzmax NG] can't compile using brl.freeaudioaudio  (Read 295 times)

Offline fielder

  • Jr. Member
  • **
  • Posts: 25
[Blitzmax NG] can't compile using brl.freeaudioaudio
« on: March 14, 2018, 11:05:58 AM »
i tried to compile (Win 64bit build) just this:
Code: [Select]
Strict
Framework  brl.freeaudioaudio
and i receive this:

---------------------------
MaxIDE 1.44 beta [ng]
---------------------------
Compile Error

 Overriding method does not match any overridden method. (Detail: Return type is "Void", expected "Int".)
---------------------------
OK   
---------------------------


the freeaudioaudio.bmx method is:
Code: [Select]
Method Stop()
fa_StopChannel fa_channel
fa_channel=0
End Method

i downloaded Bmax modules from Github (latest versions)

i tried to do some math .. an read/write files form my BlitzmaxNg.. using a notify  .. and compilation goes right.. no issues with simple tests.


Offline Holzchopf

  • Jr. Member
  • **
  • Posts: 63
Re: [Blitzmax NG] can't compile using brl.freeaudioaudio
« Reply #1 on: March 14, 2018, 02:17:57 PM »
What's the overwritten methods return type (the Stop method in the Extends type)? Is the base type in the same file? If not, is strict on in both? I'm surprised it says return type is "Void", I thought in non-strict mode "no return type specification" equals "Int" and in strict "no return type specification" equals "Compiler telling you it won't compile your untidy code". From the Compile Error I'd guess, your problem should be solved when you replace the Stop method by
Code: [Select]
Method Stop:Int()
fa_StopChannel fa_channel
fa_channel=0
Return 0
End Method

Not 100% sure tho.

Offline markcwm

  • Sr. Member
  • ****
  • Posts: 276
Re: [Blitzmax NG] can't compile using brl.freeaudioaudio
« Reply #2 on: March 14, 2018, 04:02:57 PM »
If the error is about overriding types it should be ignored by enabling the overload warning option -w in bmk command line.

Offline Brucey

  • Jr. Member
  • **
  • Posts: 52
Re: [Blitzmax NG] can't compile using brl.freeaudioaudio
« Reply #3 on: March 14, 2018, 07:19:56 PM »
Method Stop() is correct.

The brl.audio module is now superstrict and is also without a a return type for Stop().

If you have an error with this, you don't have the latest modules.

The latest release ( https://github.com/bmx-ng/bmx-ng/releases - released yesterday) was clean-building - I really need some kind of CI going on, as it takes ages to get everything together and tested for a release... ho hum.


Offline Derron

  • Hero Member
  • *****
  • Posts: 1094
Re: [Blitzmax NG] can't compile using brl.freeaudioaudio
« Reply #4 on: March 14, 2018, 07:49:23 PM »
git hooks.

You could add hooks returning back to some kind of home-server-ip. So if you commit something to bmx-ng/brl.mod or pub.mod ... then it triggers "bruceyHomeIP.to.us/service.php" which rebuilds the whole thing and then renews a somehwere located "bmx-ng.dev.win32.7z".
As cross-compilation is a bit tricky I assume your building slave needs to be your old mac mini you put into your cellar cave :p

And once you put that building slave up, you add a "derron.php" too, so it fetches my stuff and does the same for my stuff.


bye
Ron

Offline fielder

  • Jr. Member
  • **
  • Posts: 25
Re: [Blitzmax NG] can't compile using brl.freeaudioaudio
« Reply #5 on: March 15, 2018, 10:16:43 AM »
Method Stop() is correct.

The brl.audio module is now superstrict and is also without a a return type for Stop().

If you have an error with this, you don't have the latest modules.

The latest release ( https://github.com/bmx-ng/bmx-ng/releases - released yesterday) was clean-building - I really need some kind of CI going on, as it takes ages to get everything together and tested for a release... ho hum.
oh!! very tahnk you brucey!!! probably i was using some (old) fork on GITHUB....

well... now i 've found another issue.. but probably can't be resolved because this is a Win32 feature.

compiling "commdlg.bmx" on PUB.MOD - Win32.mod

i receive this:
---------------------------
MaxIDE 1.44 beta [ng]
---------------------------
Compile Error

 Unable to convert from Byte Array to Int.
---------------------------


the method is:
Code: [Select]
Method Driver$()
Local strptr:Byte Ptr = Varptr( buf ) + PeekShort( bank, 1 )
'Print Int(buf)
'Print Varptr buf
'Print Int(strptr)
Return String.FromCString( strptr )
End Method



Offline Brucey

  • Jr. Member
  • **
  • Posts: 52
Re: [Blitzmax NG] can't compile using brl.freeaudioaudio
« Reply #6 on: March 15, 2018, 05:22:44 PM »
I don't appear to have that "Driver()" method in my NG commdlg.bmx.

I'm not sure what bits of things you are trying to build, but it seems that your files are not all up-to-date, or you are mixing stuff from different versions, or ... ?

Offline fielder

  • Jr. Member
  • **
  • Posts: 25
Re: [Blitzmax NG] can't compile using brl.freeaudioaudio
« Reply #7 on: March 16, 2018, 07:24:02 PM »
very strange.. i've just downloaded sources from https://github.com/bmx-ng/bmx-ng/releases

[EDIT]ops.. sorry.. just found that the error was from its.printing module!!!!
https://sourceforge.net/projects/itsprinting/
[/EDIT]