Modules: Query
BlitzMax Forums/BlitzMax Beginners Area/Modules: Query
Hi,
I'd like to experement with this module ..
http://www.blitzbasic.com/codearcs/codearcs.php?code=1511How do I go about adding the module to blitzmax ? There is no step by step guide to adding modules.
Thanks in advance.
create a folder called Deps in your mod folder
create a folder called osxspeech in that folder
create a file called osxspeech.bmx inside that and put the module source in it.
and create a file called speechmod.c and put the appropriate source in that.
Build modules and then that should be that.
thanks mate, just what I needed.
did as suggested above:
Next problem :( :
Identifier 'speech_init' not found.
when I compile the following
Strict
' Init text to speech
If Not speech_init() Then
Notify "Unable to init text to speech."
End
EndIf
' Talk
speak_string("Hello Macintosh users.")
' Wait until the mac is done talking.
wait_for_speech()
]
The speech_init() function is included within speechmod.c.I've build and rebuilt all modules but it still gets stuck above.
try adding
import Deps.osxspeech
tried but got :
Compile Error
Can't find interface for module 'deps.osxspeech'
So to recap:
BlitzMax-->mod-->Deps-->osxspeech--> contains osxspeech.bmx & speechmod.c
tried but got :
Compile Error
Can't find interface for module 'deps.osxspeech'
So to recap:
BlitzMax-->mod-->Deps-->osxspeech--> contains osxspeech.bmx & speechmod.c
ok, change all folders and filenames to lowercase and change the module declaration (Module Deps.osxspeech) to lowercase as well.
Thanks but same thing:
Identifier 'speech_init' not found.
I think it's getting to the .c file but stopping there .
Ok. Didn't have the module since I reformated my mac not long ago. But I downloaded my old source and gave it a try.
Here is what you have to do:
1) Rename the Deps folder in mod/ to Deps.mod
2) Rename the osxspeech folder in mod/Deps.mod/ to osxspeech.mod
3) Look in the codearchive again, I have updated the bmx file so it compiles under blitzmax 1.14
4) Build modules.
5) Remember to Import Deps.osxspeech in your code
Hope you have fun with the module.
oops, yeah .mod :)
When you make a mod.. Will the IDE Highlight the functions of the module or not? What is the benefit of making modules vise just including BMX files?
Modules are compiled by GCC which is higher optimized than the blitz compiler.
Additionally, you can create documentation for it following the DocMods rules ... this then would create the needed entries for the highlight file as well
oh ok thanks for the help. :)
Everything working just fine now, thanks everyone.