Trouble installing BlitzMax

BlitzMax Forums/MaxGUI Module/Trouble installing BlitzMax

julianbury(Posted 2009) [#1]
I bought Blitz Basic and then BlitzPlus and then BlitzMax in 2005.
It worked fine and I did a few small apps.
But I spent most time with BlitzPlus because it was easier than BlitzMax and did everything I needed.
Now, I NEED to use BlitzMax and downloaded the latest version, BlitzMax133rc5_win32x86.exe, including MaxGui132_win32x86.zip
I really need it for Ubuntu 9.04 but I need to learn it in a familiar environment - Windows - as I am a newbie in Linux.

I installed it with a double-click, opened MaxGui132_win32x86.zip and dragged maxgui.mod into C:\Program Files\BlitzMax\mod\

But it doesn't work.

I get this message when the IDE configures ...

Rebuilding documentation...
Error: Unable to open 'C:/Program Files/BlitzMax/mod/maxgui.mod/fltkmaxgui.mod/fltkmaxgui.bmx'
Building: MaxGUI
Building: MaxGUI.Drivers
Error: Unable to resolve link 'MaxGUI.Win32MaxGUIEx'
Error: Unable to resolve link 'MaxGUI.Win32MaxGUIEx'
Error: Unable to resolve link 'MaxGUI.FLTKMaxGUI'

I didn't notice this at first.

I tried compiling this code ...

======================================================
'CenteredWindow
SuperStrict
Import maxgui
Global wide:Int = 800
Global high:Int = 600
Global xres:Int = GadgetWidth(Desktop:TGadget())
Global yres:Int = GadgetHeight(Desktop:TGadget())
Global px:Int = (xres/2) - (wide/2)
Global py:Int = (yres/2) - (high/2)
Global window:TGadget=CreateWindow("Centered Window", px, py, wide, high, Null, 3|WINDOW_ACCEPTFILES)
Repeat
WaitEvent()
If EventID() = EVENT_WINDOWCLOSE End
Forever
======================================================
and this is what I get:

Building CenteredWindow
Compiling:CenteredWindow.bmx
Compile Error: Can't find interface for module 'maxgui'
[G:/Coding/BlitzMax/#CenteredWindow/CenteredWindow.bmx;3;1]

What must I do to set things straight?


xlsior(Posted 2009) [#2]
does the fltkmaxgui.bmx that you receive the error about look OK?
for example, can you open it in notepad, or do you also get a permission error or blank file that way?


Zeke(Posted 2009) [#3]
use import maxgui.drivers


julianbury(Posted 2009) [#4]
Hey, Zeke :-)

That Did it!

Thank you

(-_-)


SebHoll(Posted 2009) [#5]
Btw, the new WINDOW_CENTER window style flag can be used as shorthand for what you are wanting to do. :-)