B3D sdk and 'threaded build"

BlitzMax Forums/BlitzMax Programming/B3D sdk and 'threaded build"

John Pickford(Posted 2010) [#1]
When I switch on 'threaded build' I get an error on the line:

Import blitz3d.blitz3dsdk


The error is:

"Compile Error

Can't find interface for module 'blitz3d.blitz3dsdk' "


Any idea?


rs22(Posted 2010) [#2]
If you want to use a module in threaded mode, I think you have to build it while in threaded mode.


Tommo(Posted 2010) [#3]
This is because threaded version of blitz3dsdk module is not built.
I have no idea whether it comes with source code. If so, you can use the command:
bmk makemods -h blitz3d

to build threaded version up.


John Pickford(Posted 2010) [#4]
Obviously I'm the least technical programmer ever but I know nothing of this command line stuff. I don't think I've ever built a module.

Where do I type that?


rs22(Posted 2010) [#5]
You can just set BlitzMax to 'Threaded Mode' and then 'Build Modules' or 'Rebuild All Modules'.


John Pickford(Posted 2010) [#6]
Those options are greyed out for me.


Brucey(Posted 2010) [#7]
Those options are greyed out for me.

You need MinGW installed. (for C/C++ compilation of the modules)

If you have MinGW installed and it is still greyed out, you need to set up the Environment variables + path, which Mark mentions in this post.


John Pickford(Posted 2010) [#8]
That did the trick. Cheers Brucey (and everyone else).


Dreamora(Posted 2010) [#9]
just keep in mind that not more than your main thread can access the SDK or it will just blow up


John Pickford(Posted 2010) [#10]
Right. So does that mean I can't load textures in the background?


xlsior(Posted 2010) [#11]
Right. So does that mean I can't load textures in the background?


Kind of... but you can have a thread in the background pre-load textures into a memory bank, which can then be accessed by the main thread to load them in.


John Pickford(Posted 2010) [#12]
Hmm.. Probably not worth the effort for my current project. Cheers.


Difference(Posted 2010) [#13]
@JP : http://www.naked-war.com sends me to "lunarpages.com"


Robert Cummings(Posted 2010) [#14]
Have you considered seeing if something like naked war is a good fit for a mobile phone market or facebook ? :)