silvioprog / brookframework

Microframework which helps to develop web Pascal applications.
https://github.com/risoflora/brookframework
GNU Lesser General Public License v3.0
170 stars 37 forks source link

Add a step by step guide in the README.md for total newbies? #131

Closed w-k-s closed 5 years ago

w-k-s commented 7 years ago

Hi guys,

I'm interested in trying out the Brook Framework but I'm having trouble getting started. I downloaded a zipped version of the project and what I'm trying to do is to compile the hello world demo located in demos/simple/helloworld/cgi. I used the following command:

fpc cgi.lpr

This gave me the error

cgi1.lpr(6,3) Fatal: Can't find unit BrookApplication used by cgi1 Fatal: Compilation aborted

I then tried to include the required units by adding include directives in the cgi.lpr file:

program cgi1;

{$mode objfpc}{$H+}
{$I ../../../../core/brookapplication.pas}

uses
  BrookApplication, Unit1, brokers;

begin
  BrookApp.Run;
end.

This resulted in:

Compiling cgi1.lpr
brookapplication.pas(14,5) Fatal: Syntax error, "BEGIN" expected but "UNIT" found

I'm very new to fpc; there's plenty I don't know but I'm quite lost because I don't know what exactly it is that I don't know. Could someone please guide me on how to setup the framework?

Thank you

silvioprog commented 7 years ago

Hello @waqqas-abdulkareem , you should try Lazarus IDE: http://www.lazarus-ide.org . It's the best way for starting in FPC. :-)

silvioprog commented 5 years ago

Closing due to no activity in the issue. Thank you!