News:

Huge spam cleanup. I hope, everything important is still in place. :-)

Main Menu

Getting To Compiling...

Started by Sharlenwar, August 06, 2008, 02:51:08 AM

Previous topic - Next topic

Sharlenwar

Well, I got the code downloaded to my computer. Got that Free Pascal stuff installed. Now I'm looking at how to load up the code into a project and compile it. Any detailed instructions?

Thanks a bunch.

Hitman

Apart from FreePascal, you also need Lazarus (http://www.lazarus.freepascal.org) as well as any package mentioned in the README. A detailed tutorial (or SDK, who knows :D) will follow, once FPC 2.2.2 and Lazarus 0.9.26 are released.

Sharlenwar

Well, I got those installed. Now I'm just trying to figure out how to get it to compile into the actual program. Is it similar to how C++ compilers work? Mostly just some pointers at getting it to compile now. Like I installed the Lazarus, Free Pascal, and have gotten the source code pulled down. Now I'm at that point where how to get the Lazarus to compile the code.

Sharlenwar

Man, I'm an idiot! You already have instructions! SORRY!

Sharlenwar

I guess now I'm running into a snag, I have to install that treeview package, and I can't seem to find one that installs correctly? Do you have a link to the exact virtualtree to install into Lazarus?

Thanks!

Hitman

#5
I recommend using recent FPC and Lazarus versions (I think the snapshots using FPC 2.2.2 should do fine).
Regarding VirtualTrees. MultiLog and LCLextensions, I think the svn versions work best:
http://luipack.googlecode.com/svn/trunk/lclextensions/
http://luipack.googlecode.com/svn/trunk/multilog/
https://lazarus-ccr.svn.sourceforge.net ... eview-new/

Don't forget to also install lNet and the lazOpenGLContext (this one is already included with lazarus, you just have to pick it into the install list :-))

Tare

Where can I get a working virtualtreeview_package>=4.5.1?
I installed LclExtension and MultiLog from the SVN and using Lazarus0.9.26 with FPC2.2.2

Hitman

From the last link in the post right above :)
At least that's the one I'm successfully using with recent Lazarus revisions.

Tare

well, thanks ^^ Thought its the link to the Lazarus-svn and didnt clicked it. But now appears another problem. The file ...ClientUOpenGLUI.pas wasnt found. Have I to load it from an other directory?

Hitman

Damn, seems the project file got out of sync during my many merges :-/
I fixed it now. You can simply 'pull' and 'update' through mercurial and it should work :)
Thanks for reporting.

Tare

I have problems again... I tried to setup the project, but the lclextensions gives an error at the install.

I use:
-'lazarus-0.9.26.2-fpc-2.2.2-win32.exe' for the installation of lazarus
-'https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/virtualtreeview-new' for the virtualtreeview
-'http://svn.freepascal.org/svn/fpcprojects/lnet' for lnet
-'http://luipack.googlecode.com/svn/trunk' for multilog and lclextensions

Have I used a wrong version or source?

Hitman

Lazarus 0.9.26 and also FPC 2.2.2 are rather old. I would recommend a recent daily snapshot of Lazarus 0.9.29 together with FPC 2.3.1.
http://www.hu.freepascal.org/lazarus/

Tare

Next problem:

begin
  {$I CentrED.lrs}
  Application.Initialize;
  Application.CreateForm(TdmNetwork, dmNetwork);
  Application.Run;
end.

But there is no CentrED.lrs on the repository. A missing file on the repository?

Hitman

Lazarus generates this file during the build process. If it does not, it's probably still too old ... that bug was fixed 4 days ago.
A workaround (if you don't want to update) is to toggle the "Include manifest" option in the project settings twice (enable and then disable). That should also cause Lazarus to rebuild the lrs.

Tare

I have installed from Lazarus-0.9.29-21829-fpc-2.3.1-20090923-win32.exe, so should be the daily snapshot from 23.09.
I dont know if I have correctly used the workaround.
I have the german interface:
Projekt > Projekteinstellungen ... > Anwendung > Themen mit Manifest-Datei einschalten (nur in Windows)
I enabled it, clicked 'Ok' went again to the option, disabled it and clicked 'Ok' again. The '{$I CentrED.lrs}' disappered from the code and starting the project gives an popup after start: Project CentrED raised exception class 'External: SIGSEGV'.
Bringing '{$I CentrED.lrs}' back to the code just gives the old error at compiling: CentrED.lpr(47,4) Fatal: Can't open include file "CentrED.lrs"
Have you any advise what I can try next, or what I'm doing wrong?