Bernard,
Thanks very much for testing the console build! I'm glad that
everything worked for you too. ^_^
Yes, even though the musical results are not the most impressive, the
fact that grammar derivation, polymetric expansion, and time setting all
appear to be working correctly is very exciting. And, as far as my
tests have shown, they work both with the 32-bit and the 64-bit builds.
I'm sorry if you were delayed in pursuing your goal of making a PHP
front end due to the lack of a way to compile BP console for Linux. The
code has been at the stage where I hoped it would compile on Linux and
Windows except there was no appropriate make/build file.
Tonight though, I created a make file and am very happy to report that
it can be used to compile BP console on both OS X and Linux! I checked
out the code on the Linux server that hosts my websites and it compiled
wonderfully (ignoring warnings which are present on OS X also). The
resulting executable appears to work as well as the program does on my
Mac too. So, Bol Processor is now officially "cross-platform"! That is
pretty exciting. ^_^
It will probably work best if you can recompile a Linux binary on your
target machine. So, I hope that your web server has development tools
installed. (GCC and Make should be enough). But let me know if that is
not possible and I can send you the binary I compiled.
The make file is available from:
http://www.anthonykozar.net/files/BolProcessor/Makefile
Put that file into the top-level "bolprocessor" folder. Then just type
the command "make". It will compile a program called simply "bp" unless
you change the Makefile.
Good luck and let me know if you run into problems.
Anthony
On 7/4/20, 4:29 AM, Bernard Bel wrote:
> Dear colleagues,
>
> Back to this discussion after almost a year!
> (Apologies in my previous message on the discussion list.)
>
> I did all tests as indicated below. Everything worked as announced with
> a minor detail: since the console was pointing to the "bolprocessor"
> folder, commands required one period less in the beginning, which means
> "./bp32 --version" instead of "../bp32 --version".
>
> I am impressed to see that all complicated processes are taken care of
> in this early version. Even the unmusical AIFF files proved that time
> setting is working perfectly. So, development (on my part) should focus
> on how we envisage input/output commands taking care of the user's work
> environment.
>
> I am now planning to run the demo via a real on-line device. To this
> effect I copied the "bolprocessor" folder to a website and installed a
> "test.php" file. The link is:
>
> https://leti.lt/bolprocessor/test.php
>
> I am approaching this in a very naive manner, so I need your expertise.
>
> In order to launch the application from PHP, we may use the exec() or
> system() command as explained on
> https://www.poftut.com/execute-shell-commands-php-exec-examples/. But
> indeed this does not work since "bp32" is a MacOS executable file, not
> Linux.
>
> My naive question is: can it be compiled for Linux without rewriting
> plenty of code lines?
>
> Or should I install a MacOS virtual machine, for instance DARLING:
> https://www.maketecheasier.com/run-mac-apps-on-linux/
>
> If we think about long term (as I always did) it might be wise to opt
> for a Linux compilation so that instances of bolprocessor can be
> installed on many servers. However, to start experimenting we should go
> for a solution with minimum development time invested.
>
> Sorry for this beginner's approach to the problem! I am keen to learn…
>
> Warm regards
>
> Bernard Bel
|