compile error of ZComponent

In this forum you may discuss all issues concerning the Lazarus IDE and Freepascal (both running on Windows or Linux).

Moderators: gto, cipto_kh, EgonHugeist

onionsjk
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 06.12.2007, 13:57

compile error of ZComponent

Postby onionsjk » 06.12.2007, 18:07

Hi,

To install ZEOS in ubuntu Feisty-lazarus 0.9.24beta , I have tried to follow the above quick manual. The result is :

Upto zdbc.lpk compiling is fine.
zcore.lpk -> ok
zparsesql.lpk -> ok
zplain.lpk -> ok
zdbc.lpk -> ok
zcomponent.lpk -> NG

error file : ZAbstractRODataset
error message :
---------------------------------------------------------------------------------------------------------
ftBlob, ftBlob, ftVariant, ftInterface, ftInterface, ftString, ftTimeStamp,ftFMTBcd);
---------------------------------------------------------------------------------------------------------
Fatal: Syntax error, "," expected but ")" found.

I am lost at this point. Any help will be appreciated.
Thanks .

onioinsjk

User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Postby mdaems » 06.12.2007, 23:39

What version did you install? Use latest snapshots from http://zeosdownloads.firmos.at/downloads/snapshots/ . This bug has been fixed since 6.6.1 release. It's caused by a fpc change.

Mark

onionsjk
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 06.12.2007, 13:57

Postby onionsjk » 09.12.2007, 12:50

System Environment)
O/S : ubuntu Feisty
System Laugage Set : Korean
fpc : 2.2.0
lazarus : 0.9.24
user : not root
===================================================
start guide 1)
If you're reinstalling/updating: Make sure any old Zeos versions where
removed. If you plan to use different versions with different development
tools, make sure that the Library Path they use are not shared.And that the
windows path isn't pointing to the folder of zeos.
Action)
uninstall fp-*, fpc, lazarus
rm -rf $HOME/.lazarus
reinstall fp-*, fpc, lazarus
===================================================
start guide 2)
Define an folder to Zeos. This folder cannot be changed in the future,
without reinstalling /linking it again into the development tool.
Normally people have a folder to keep their installed components. If you
don't have, I suggest you to create one.
Action)
$> mkdir $HOME/component
===================================================
start guide 3)
Extract the contens of the downloaded packages into the folder. If you get
the folder through SVN, you may want to clean the folder content, deleting
the .svn folders and other temporary files.
Action)
download ZEOSDBO-6.6.1-beta.zip
cp it to $HOME/component
cd to $HOME/component
unzip ZEOSDBO-6.6.1-beta.zip
===================================================
start guide 4)
Edit the folder_of_Zeos\src\Zeos.inc file. It's a main code configuration on
how it should be compiled. The mais options, for users, are which database
system will be avaliable and the language of Zeos messages.
Action)
nothing done
===================================================
start guide 5)
Open your development tool, then locate the library dialog. ...
Once the library path is found, add the folder where you put Zeos in,
plus the folders packages\your_develop_tool\build.
Action)
put "$HOME/component/ZEOSDBO-6.6.1-beta/" and
"$HOME/component/ZEOSDBO-6.6.1-beta/packages/lazarus/build/" to
Project | Compiler Options | Path tab | Library.
Question)
is this right place for library path ?
===================================================
start guide 6)
In your tool, select File -> Open, then open and compile only the following
packages, in the writed order:
Action)
* ZCore ---> OK
* ZParseSQL ---> OK
* ZPlain ---> OK
* ZDbc ---> OK
* ZComponent ---> NG
Message)
$HOME/component/ZEOSDBO-6.6.1-beta/src/component/ZAbstractRODataset.pas
(3006,89) Fatal:Syntax error,"," expected but ")" found
===================================================
start guide 7)
In the same folder, Open and then Compile and Install the package
ZComponentDesign
Action)
nothing done
Question)
there is no ZComponentDesign for lazarus ?
===================================================

Finally It is solved.
I have installed all fp-* packages and tried again and it worked.
Thank you.


Question)
How can I make the change permanent ? Next time when I start lazarus
zeos tab is gone.

onionsjk

User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Postby mdaems » 09.12.2007, 21:28

I don't know why the zeos tab is gone... Should stay available as you have to rebuild your lazarus executable after installing zeos. Maybe you still use the original Lazarus build when you start Lazarus later on?

No componentdesign package for lazarus. The reason is that Lazarus statically links all components. An extra package has no use. In Delphi we added this package to allow using bpl files. For more details about this search the forum. Conclusion : on systems which have no ComponentDesign Package : install Component package.

Is issue 6 solved by using a recent version?

Mark


Return to “Lazarus / Freepascal”

Who is online

Users browsing this forum: No registered users and 1 guest