Repeat compilation of constant "minib3d.bmx"?

BlitzMax Forums/MiniB3D Module/Repeat compilation of constant "minib3d.bmx"?

Happy Sammy(Posted 2009) [#1]
Hi all,

Each time I run "flag.bmx"
blitzMax repeat compiling the following c++ files? Why?
Compiling:std.cpp
Compiling:misc.cpp
Compiling:collision.cpp
Compiling:tree.cpp
Compiling:geom.cpp
Compiling:minib3d.bmx

minib3d.bmx was not modified. Is it possible to skip this compilation?

(I remembered unmodified C/C++ modules are needed to be compilied ONCE)

Thanks in advance


Brucey(Posted 2009) [#2]
Because you don't have quick-build enabled?


plash(Posted 2009) [#3]
Well, the code your running probably imports minib3d directly, instead of actually importing the module.

Have you installed the module to '...BlitzMax\mod\sidesign.mod\minib3d.mod'?
After putting the module in it's proper location and building it, you can change the sample code to import 'sidesign.minib3d', instead of 'minib3d.bmx'.


Happy Sammy(Posted 2009) [#4]
@Brucey:Hello, how to ensure the 'quick-build' enabled?

@Plash:Sorry.
I tried to replace
Import "../../minib3d.bmx

with
Import sidesign.minib3d


My result is:
Compile Error: Can't find interface for module 'sidesign.minib3d'
[C:/minib3d/demos/flag/flag.bmx;4;1]
Build Error: failed to compile C:/minib3d/demos/flag/flag.bmx


Any idea?


Brucey(Posted 2009) [#5]
how to ensure the 'quick-build' enabled?

Program -> Build Options -> Quick Build

Have you installed the module to '...BlitzMax\mod\sidesign.mod\minib3d.mod'?

No.


Happy Sammy(Posted 2009) [#6]
@Brucey: It works! Thanks. However, are there any reasons why this is not set by default?


Brucey(Posted 2009) [#7]
are there any reasons why this is not set by default?

Not that I'm aware of.

Sometimes I turn it on. Sometimes I turn it off. It depends what I'm working on.


plash(Posted 2009) [#8]
@Happy Sammy: Did you copy the 'sidesign.mod' folder from the zip package (I'm currently looking at minib3d v053) to 'BlitzMax\mod'? Then build modules?


Happy Sammy(Posted 2009) [#9]
@Plash: I did copy that sidesign.mod into blitzmax\mod. :(
Proof:



plash(Posted 2009) [#10]
..And did you build modules? (Ctrl+D in MaxIDE)

EDIT: Blargh. The ModuleInfo lines are commented out in the module's header.
Comment out the ModuleInfo lines in 'sidesign.mod\minib3d.mod\minib3d.bmx' and try building modules again.


Brucey(Posted 2009) [#11]
And then of course, you will need to import the module, rather than the .bmx file :-)


Happy Sammy(Posted 2009) [#12]
Sorry, I am new to minib3d. I changed the contents as mentioned above.

In "minib3d.bmx" (removing comment '),
Rem
bbdoc: minib3d
End Rem

Module sidesign.minib3d
ModuleInfo "Version: 0.53"
ModuleInfo "Main Author: Simon Harrison (simonh@...). Includes routines by various authors."
ModuleInfo "License: You are free to use this code as you please"
ModuleInfo "Please see readme.txt for more details"

Strict

Import BRL.GLMax2D
Import BRL.GLGraphics
...


In "flag.bmx" (import module instead),
'Import "../../minib3d.bmx"
Import sidesign.minib3d

Graphics3D 640,480,16,0

Const segs=128,width#=4,depth#=.125

mesh=CreateMesh()
surf=CreateSurface( mesh )
...


When I compile without quick build, I get:
Compile Error

Can't find interface for module 'sidesign.minib3d'



What's wrong?
:(


simonh(Posted 2009) [#13]
Have you read the readme that comes with MiniB3D? It explains what to do to get the module working.


Happy Sammy(Posted 2009) [#14]
Thank you all of you.
I did not press CTRL+D
:D