how to compile a pascal module from command line

Usage of the framework, compiler and tools
crisUnipv
Posts: 10
Joined: Sun Feb 14, 2016 5:41 pm

how to compile a pascal module from command line

Post 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.
HansKlaver
Posts: 16
Joined: Sun Oct 13, 2013 10:46 pm
Location: Aerdenhout, The Netherlands

Re: how to compile a pascal module from command line

Post 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
User avatar
Ivan Denisov
Posts: 362
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Re: how to compile a pascal module from command line

Post 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
crisUnipv
Posts: 10
Joined: Sun Feb 14, 2016 5:41 pm

Re: how to compile a pascal module from command line

Post by crisUnipv »

Thank you very much for the help.
Cristiana
crisUnipv
Posts: 10
Joined: Sun Feb 14, 2016 5:41 pm

Re: how to compile a pascal module from command line

Post 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.
User avatar
Ivan Denisov
Posts: 362
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Re: how to compile a pascal module from command line

Post 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.
crisUnipv
Posts: 10
Joined: Sun Feb 14, 2016 5:41 pm

Re: how to compile a pascal module from command line

Post 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.
User avatar
Ivan Denisov
Posts: 362
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Re: how to compile a pascal module from command line

Post 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.
crisUnipv
Posts: 10
Joined: Sun Feb 14, 2016 5:41 pm

Re: how to compile a pascal module from command line

Post 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.
Attachments
trap99-1.txt
(5.43 KiB) Downloaded 540 times
crisUnipv
Posts: 10
Joined: Sun Feb 14, 2016 5:41 pm

Re: how to compile a pascal module from command line

Post 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.
Attachments
devCPM_error.txt
(25.5 KiB) Downloaded 538 times
Post Reply