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

Hitman

The exception is probably unrelated to the "missing" lrs file. The debugger should point you to where the exception was thrown from.

I just tested it here and it works on both linux and windows without crashing (after removing the {$I ...} line).

mitchel

I got error on multiloglaz...

SVNluipackmultilogmultilog.pas(813,28) Error: Illegal type conversion: "LongInt" to "TObject"
SVNluipackmultilogmultilog.pas(838,32) Error: Illegal type conversion: "LongInt" to "TObject"
SVNluipackmultilogmultilog.pas(863,32) Error: Illegal type conversion: "LongInt" to "TObject"

hmm...

Hitman

Are you sure, you have the correct versions?
A recent short "guide" to get CentrED compiled can be found here.

Edit: I guess you try to compile for 64bit. As it seems, multilog is not ready for 64bit, although the necessary changes should be small. For these particular errors you posted, the solution is probably along the lines of replacing TObject(j); with TObject(PtrInt(j));

mitchel

Yes with 64bit... thanks for very useful information!!

AsY!um-

Seems i can't install VirtualTreeView_New component.

So far i have installed:

fpc-2.4.2.i386-win32
lazarus-0.9.28.2-fpc-2.2.4-win32

http://luipack.googlecode.com/svn/trunk/lclextensions/
http://luipack.googlecode.com/svn/trunk/multilog/
lNet
lazOpenGLContext

and i have VirtualTree from SVN (https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/virtualtreeview-new/)

but when i try to install package i get error: 'C:\lazarus\components\VirtualTreeView\include\intf\win32\vtgraphicsi.inc(308,44) Error: Identifier not found "OBJ_BITMAP" '

I can't figure out what am i missing here ;)
<uninitialized object>

Hitman

You don't need a separate FPC installation if you use the Lazarus installers which come with a bundled FPC.
That said, you now probably use FPC 2.2.4 which is pretty outdated. I personally work with snapshot version of both, FPC and Lazarus, and they work pretty well. You can get a recent snapshot from here. In case you come "too late" (they are daily snapshots, so tomorrow that link will not be valid anymore), you can always grab the current snapshots here. Pick the one with the naming pattern "Lazarus-0.9.31-[...]-fpc-2.5.1-[...]-win32.exe".

With the recent versions, VirtualTreeView should work fine, although instead of trunk, you should try the 4.8 Branch instead: https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/virtualtreeview-new/branches/4.8/

Since I haven't compiled CentrED in some time, I'll check tomorrow if there are any conflicts. But in any way, I can (and want) only support recent Lazarus versions, since that's what I always work with.

(The soon-to-be-released Lazarus 0.9.30 with FPC 2.4.2 might work too, but I probably will not test it :D)

AsY!um-

Yup it looks like it works with current snapshot. Thanks ;)

Now i'll try to compile Ced source code. ;)
<uninitialized object>