Page 1 of 2

how to compile a pascal module from command line

Posted: Sun Feb 14, 2016 6:01 pm
by crisUnipv
Is it possible to compile a pascal module outside BlackBox framework and after use it from BlackBox?
I usually compile by choosing the item "compile" from "Dev" menu, but now I need to compile by launching a script file and then run the compiled module from BlackBox.
I'have tried by compiling with CPcc 1.1.4 but it doesn't seem to work.

Re: how to compile a pascal module from command line

Posted: Sun Feb 14, 2016 10:27 pm
by HansKlaver
Maybe you should have a look at the Bb subsystem by Oleg N. Cher: https://github.com/Oleg-N-Cher/XDev
It consists of two modules, BbCmdLine and BbConsole, which provide access to and output to the Windows command line.

Hoping that might help,
Regards,

Hans Klaver

Re: how to compile a pascal module from command line

Posted: Mon Feb 15, 2016 3:26 am
by Ivan Denisov
You can make console version of BlackBox 1.6 by this tutorial:
http://www.youtube.com/watch?v=3zFBDRwUxdE
This is actual link to the repository: http://gitlab.molpit.org/oberon/blackbox-freenix

The second option is to use bbscript.exe from Center continuous integration system.
http://blackboxframework.org/makeapp/bbscript.exe
You can put compilation instructions to instructinos.txt file and then run

Code: Select all

bbscript.exe /PAR instructinos.txt

Re: how to compile a pascal module from command line

Posted: Mon Feb 15, 2016 5:15 am
by crisUnipv
Thank you very much for the help.
Cristiana

Re: how to compile a pascal module from command line

Posted: Thu Feb 25, 2016 6:24 am
by crisUnipv
Hello, by following your suggestion I've been able to compile blackbox 1.7 with bbscript.exe and include new pascal modules.
Unfortunately, I need to do the same thing with BlackBox 1.5. In fact, this is the version that I can use to include Winbugs1.4 and WBDev interface.
Is it possible to use bbscript.exe also with this version? In BlackBox 1.5 I don't have the "appbuild" folder, and the Sym and Code directories as in BlackBox 1.7.
Thanks for any help.

Re: how to compile a pascal module from command line

Posted: Thu Feb 25, 2016 9:13 am
by Ivan Denisov
crisUnipv wrote:Hello, by following your suggestion I've been able to compile blackbox 1.7 with bbscript.exe and include new pascal modules.
Unfortunately, I need to do the same thing with BlackBox 1.5. In fact, this is the version that I can use to include Winbugs1.4 and WBDev interface.
Is it possible to use bbscript.exe also with this version? In BlackBox 1.5 I don't have the "appbuild" folder, and the Sym and Code directories as in BlackBox 1.7.
Thanks for any help.
You can try to prepare bbscript for 1.5. There are necessary files:
https://github.com/BlackBoxCenter/black ... Script/Mod

Code: Select all

# to rebuild 'bbscript.exe' run:  bbscript.exe /PAR "newbbscript.txt"

# the result will be writen to 'newbbscript.exe'

^Q DevCompiler.CompileThis ScriptDevCPM ScriptConfig

^Q DevLinker.Link newbbscript.exe := Kernel$+ Files HostFiles StdLoader Math SMath Log Strings Dates Meta Dialog Services Fonts Ports Printers Stores Converters Sequencers Models Views Controllers Properties Printing Mechanisms Containers Documents Windows StdCFrames Controls StdInterpreter StdDialog StdApi StdCmds HostRegistry HostFonts HostPorts OleData HostMechanisms HostWindows HostPrinters HostClipboard HostCFrames HostDialog HostCmds HostMenus HostPictures TextModels TextRulers TextSetters TextViews TextControllers TextMappers StdLog TextCmds StdHeaders FormModels FormViews FormControllers FormGen FormCmds StdFolds StdLinks DevCommanders StdTables StdTabViews HostTabFrames StdViewSizer DevMarkers DevDebug DevHeapSpy DevSearch DevSubTool DevAlienTool HostPackedFiles DevPacker DevDependencies DevReferences DevCmds DevInspector HostTextConv HostBitmaps HostMail StdMenuTool StdClocks StdStamps StdLogos StdDebug StdCoder StdScrollers Out DevCPM DevCPT DevCPS DevCPB DevCPP DevCPE DevCPH DevCPL486 DevCPC486 DevCPV486 DevSelectors DevCompiler DevBrowser DevLinker DevRBrowser OleStorage OleServer OleClient CtlT CtlC OleViews StdETHConv In XYplane Init Integers DevTypeLibs DevComInterfaceGen DevComDebug DevProfiler DevLinkChk DevMsgSpy DevAnalyzer CommStreams CommTCP CommV24 Config 1 Applogo.ico 2 Doclogo.ico 3 SFLogo.ico 4 CFLogo.ico 5 DtyLogo.ico 6 folderimg.ico 7 openimg.ico 8 leafimg.ico 1 Move.cur 2 Copy.cur 3 Link.cur 4 Pick.cur 5 Stop.cur 6 Hand.cur 7 Table.cur

^Q DevCompiler.CompileThis DevCPM Config
^Q — means commander.

Re: how to compile a pascal module from command line

Posted: Fri Feb 26, 2016 2:45 pm
by crisUnipv
Thank you for the answer.

I have created the Script/Mod folder and copied in the three files (DevCPM Config and Build)
I have tried to run bbscript.exe /PAR newbbscript.txt, but I get an error.

The StdLog.txt reports the following error:

invoking DevCompiler.CompileThis
compiling "DevCPM" pos 20629, err 0
TRAP caught

Can it be caused by the BlackBox Version (1.5)?
To complete the information: in BlackBox 1.5 folder I have copied all the files necessary to run WinBugs1.4. (if necessary, I can also provide the WinBugs installation log file)

Thanks for the help.

Re: how to compile a pascal module from command line

Posted: Sun Feb 28, 2016 11:18 am
by Ivan Denisov
Please, compile from BlackBox 1.5 to see the error marks in the code.
Just copy the text I post above to BlackBox and replace ^Q to commanders.
Then push this commanders.

Please, provide links to 1.5 you are using and WinBugs1.4 for I can help you with some experiment.

Re: how to compile a pascal module from command line

Posted: Mon Feb 29, 2016 5:38 am
by crisUnipv
Please, you can find attached the content of the TRAP error window.
Regarding the links to BlackBox 1.5 and WinBUgs 1.4 I'll be able to provide them later.
Thank you for the help.

Re: how to compile a pascal module from command line

Posted: Mon Feb 29, 2016 4:33 pm
by crisUnipv
Here some other information:

link to BlackBox 1.5
http://www.oberon.ch/zip/SetupBlackBox15.exe

links to WinBUGS 1.4 (patch 1.4.3)
http://www.mrc-bsu.cam.ac.uk/software/b ... t-winbugs/ zip file for 64 bit version
Patch for 1.4.3: http://www.mrc-bsu.cam.ac.uk/wp-content ... ELEASE.txt
Key: http://www.mrc-bsu.cam.ac.uk/wp-content ... ty_key.txt

The compilation of ScriptDevCPM gives errors at lines 680, 740, 814 (see attached file):

Kernel.Utf8ToString(modName, name, res);
Kernel.Utf8ToString(modName, ObjFName, res);
Kernel.Utf8ToString(modName, ObjFName, res);

the errors are:
- Kernel.Utf8ToString undeclared identifier
- name called object is not a procedure
- ObjFName called object is not a procedure

Thanks for the help.