Recent

Author Topic: Why Can't I compile Lazarus??  (Read 18845 times)

naums

  • New Member
  • *
  • Posts: 21
  • Der Großen Liebe Wegrennen
Why Can't I compile Lazarus??
« on: October 03, 2009, 05:12:59 pm »
I tried several times to compile Lazarus but it never works on Linux. On Windows it works properly, but not on Linux. The error, which is FPC put out is:
Quote
/usr/lib/lazarus/examples/hello.pp(31,1) Error: Can't create object file: units/i386-linux/hello.o
/usr/lib/lazarus/examples/hello.pp(31,1) Error: Can't create object units/i386-linux/hello.o

help me compile Lazarus with qt... (here I tried with GTK2)

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Why Can't I compile Lazarus??
« Reply #1 on: October 03, 2009, 06:49:40 pm »
Hi,
I have Kubuntu 9.04 (64bit) and Lazarus+FPC works well with both GTK2 and Qt.
My Lazarus is from SVN.
As I remember, there was no problem with GTK2, you can compile it with command:
Code: [Select]
make clean all and it works.
For Qt you need follow wiki http://wiki.lazarus.freepascal.org/Qt_Interface and links on this page.
When you have it, you can compile with command:
Code: [Select]
make PREFIX=/usr clean all LCL_PLATFORM=qt OPT="-dUSE_QT_45"OPT="-dUSE_QT_45" depends on your Qt version.
B.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933
Re: Why Can't I compile Lazarus??
« Reply #2 on: October 03, 2009, 06:52:09 pm »
Do you have the rights to write to /usr/lib/lazarus/... ?

naums

  • New Member
  • *
  • Posts: 21
  • Der Großen Liebe Wegrennen
Re: Why Can't I compile Lazarus??
« Reply #3 on: October 04, 2009, 01:50:42 pm »
I think so. Do you think I have to chmod 777 this?

I don't wanna cimpile it with the console but with the GUI of the Lazarus IDE. I don't know why, but the Source Code might be false? Is a new Installation of that senseful?


theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933
Re: Why Can't I compile Lazarus??
« Reply #4 on: October 04, 2009, 05:24:55 pm »
I think so. Do you think I have to chmod 777 this?
Yes or start lazarus as root (sudo or whatever).
Or install lazarus under your home dir.  (Ex. SVN version).

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Why Can't I compile Lazarus??
« Reply #5 on: October 04, 2009, 07:21:46 pm »
Quote
I don't wanna cimpile it with the console but with the GUI of the Lazarus IDE. I don't know why, but the Source Code might be false? Is a new Installation of that senseful?

Lazarus compiled from source works well. I also think that the best way is download it to /home/username . You avoid all troubles with rigths (sudo etc.). Of course first time you have to compile from console. Once you have it installed, you can recompile it from GUI, for example when you update source code from SVN.

Here is a link http://wiki.lazarus.freepascal.org/Getting_Lazarus.

B.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

naums

  • New Member
  • *
  • Posts: 21
  • Der Großen Liebe Wegrennen
Re: Why Can't I compile Lazarus??
« Reply #6 on: October 07, 2009, 05:32:32 pm »
I'll first try it with chmod then I can get the "SVN" Version. What does SVN stands for? Source........????

naums

  • New Member
  • *
  • Posts: 21
  • Der Großen Liebe Wegrennen
Re: Why Can't I compile Lazarus??
« Reply #7 on: October 07, 2009, 05:55:19 pm »
okay. it doesn't work. Where can I get the SVN Version and how can I compile and install it?

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933

naums

  • New Member
  • *
  • Posts: 21
  • Der Großen Liebe Wegrennen
Re: Why Can't I compile Lazarus??
« Reply #9 on: October 07, 2009, 08:52:49 pm »
And how can I compile it?

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Why Can't I compile Lazarus??
« Reply #10 on: October 07, 2009, 11:05:26 pm »
Use command "make clean all" in .../lazarus directory.
This will create executable binary "startlazarus".
Default widgetset is gtk2.
B.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

naums

  • New Member
  • *
  • Posts: 21
  • Der Großen Liebe Wegrennen
Re: Why Can't I compile Lazarus??
« Reply #11 on: October 09, 2009, 06:54:56 pm »
so I have to do:

Quote
cd /usr....(i dont know)/lazarus
make clean all

naums

  • New Member
  • *
  • Posts: 21
  • Der Großen Liebe Wegrennen
Re: Why Can't I compile Lazarus??
« Reply #12 on: October 10, 2009, 12:14:52 am »
Quote
Compiling gtk2cellrenderer.pas
gtk2memostrings.inc(84,31) Error: Identifier not found "gtk_text_buffer_select_range"
gtk2wsstdctrls.pp(2067) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [interfaces.ppu] Fehler 1
make[3]: Verlasse Verzeichnis '/home/stefan/Desktop/Lazarus/lazarus/lcl/interfaces/gtk2'
make[2]: *** [gtk2_all] Fehler 2
make[2]: Verlasse Verzeichnis '/home/stefan/Desktop/Lazarus/lazarus/lcl/interfaces'
make[1]: *** [interfaces] Fehler 2
make[1]: Verlasse Verzeichnis '/home/stefan/Desktop/Lazarus/lazarus/lcl'
make: *** [lcl] Fehler 2

This are the errors that have been outputed.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1933
Re: Why Can't I compile Lazarus??
« Reply #13 on: October 10, 2009, 11:09:43 am »
You need a newer FPC version. I think 2.2.4 at least.
http://sourceforge.net/projects/lazarus/files/

naums

  • New Member
  • *
  • Posts: 21
  • Der Großen Liebe Wegrennen
Re: Why Can't I compile Lazarus??
« Reply #14 on: October 10, 2009, 01:55:08 pm »
I think I have 2.2.8

I'll try it with yours.

 

TinyPortal © 2005-2018