Repeat compilation of constant "minib3d.bmx"?
BlitzMax Forums/MiniB3D Module/Repeat compilation of constant "minib3d.bmx"?
| ||
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 |
| ||
Because you don't have quick-build enabled? |
| ||
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'. |
| ||
@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? |
| ||
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. |
| ||
@Brucey: It works! Thanks. However, are there any reasons why this is not set by default? |
| ||
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. |
| ||
@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? |
| ||
@Plash: I did copy that sidesign.mod into blitzmax\mod. :( Proof: ![]() |
| ||
..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. |
| ||
And then of course, you will need to import the module, rather than the .bmx file :-) |
| ||
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? :( |
| ||
Have you read the readme that comes with MiniB3D? It explains what to do to get the module working. |
| ||
Thank you all of you. I did not press CTRL+D :D |