Recent

Author Topic: almost got lazurus working on ubuntu  (Read 6068 times)

supertappy

  • Newbie
  • Posts: 1
almost got lazurus working on ubuntu
« on: October 23, 2009, 02:57:11 am »
I've almost got lazarus going on ubuntu. The IDE is there, as is the shortcut in the applications  - programming shortcut.

I can see a default form and put controls on it, but say i try to create a click method on a button i get errors such as

/usr/lib/lazarus/lcl/forms.pp(44,19) Error: unit not found: gettext
and a messagebox saying
the component editor of class TDefaultComponentEditor has created the error unable to find method please fix the error shown in the error in the message window (the one above)

if i just compile an empty project i get the error message

/tmp/project1.lpr(1,1) Fatal: Can't find unit contnrs used by Masks

I'm a bit of a linux noob but it looks like a path thing, lazarus cant find the source or FPC

any help is apreciated

FPC .2.2.2
lazarus IDE v0.9.26.2 beta

jt


tk

  • Sr. Member
  • ****
  • Posts: 386
Re: almost got lazurus working on ubuntu
« Reply #1 on: October 23, 2009, 09:58:10 am »
That message with contnrs I got several times before I installed FPC properly.

I had to download the debs from Lazarus downloads - fpc-2.2.4-3.i386.deb.tar. Don't use FPC downloads or any other because AFAIK Lazarus expects certain structure for FPC directories which is not kept in other FPC distributions. Install all of the debs contained (why is it not a single package to make life easy??). After I installed all those debs I had already the correct paths in my Lazarus Environment options dialog. But if you haven't these, try these settings:

compiler path: /usr/bin/fpc
fpc source directory: /usr/share/fpcsrc/$(FPCVER)/

I hope you can compile then :)
TK

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1226
    • Burdjia
Re: almost got lazurus working on ubuntu
« Reply #2 on: October 23, 2009, 10:40:42 am »
You can read this thread. It may help you. :)
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

 

TinyPortal © 2005-2018