howto BMK GUI app from commandline?

BlitzMax Forums/BlitzMax Beginners Area/howto BMK GUI app from commandline?

Difference(Posted 2005) [#1]
When using bmk from the commandline, how do I specify that i'm making a gui app, and dont want a console in the final exe?


LarsG(Posted 2005) [#2]
in the build menu->gui application (or something along those lines.. I don't have BMax where I'm at)


Difference(Posted 2005) [#3]
"howto BMK GUI app from commandline?" :)
"When using bmk from the commandline" :)


Difference(Posted 2005) [#4]
Found it out, sorry - you just type bmk from the command line and it says how - thanks Drago


LarsG(Posted 2005) [#5]
sorry about that.. I misunderstood your question.. :p


alain(Posted 2009) [#6]
Sorry to re-up an old thread, but I have the exact same question than the original poster?

When using bmk from the commandline, how do I specify that i'm making a gui app, and dont want a console in the final exe?

I tried to type just bmk to get the "usage" text, but it displays nothing...

So how do we create a gui app from the command line please?


Brucey(Posted 2009) [#7]
I tried to type just bmk to get the "usage" text, but it displays nothing...

Yes, the "official" bmk isn't very friendly at all.

This is what mine says :
C:\Program Files\BlitzMax\bin>bmk
Command line error : Not enough parameters

Usage: bmk <operation> [options] source

Operations :
        makeapp
                Builds an application from a single root source file.

        makemods
                Builds a set of modules.

Options :
        -a
                Recompile all source/modules regardless of timestamp. By default, only those modified
                since the last build are recompiled.

        -b <custom appstub module>
                Builds an app using a custom appstub (i.e. not BRL.Appstub).
                This can be useful when you want more control over low-level application state.

        -d
                Builds a debug version. (This is the default for makeapp).

        -h
                Build multithreaded version. (By default, the single threaded version is built.)

        -i
                Creates a Universal build on Mac x86 systems.
                (see documentation for full list of requirements)

        -l <target platfom>
                Cross-compiles to the specific target platform.
                Currently, only win32 is supported as a target platform on Mac and Linux systems.
                (see documentation for full list of requirements)

        -o <output file>
                Specify output file. (makeapp only)
                By default, the output file is placed into the same directory as the root source file.

        -q
                Quiet build.

        -r
                Builds a release version.

        -t <app type>
                Specify application type. (makeapp only)
                Should be either 'console' or 'gui' (without single quote!).
                The default is console.

        -v
                Verbose (noisy) build.

        -x
                Execute built application. (makeapp only)

Of course, you should ignore -i and -l options for yours... otherwise I think everything else applies.

If you can't see what you want in all those options, try :
-t gui



alain(Posted 2009) [#8]
Thanks Brucey!