Recent

Author Topic: problem with lazarus  (Read 23245 times)

RGB

  • Guest
AccessViolation
« Reply #15 on: November 30, 2005, 10:03:45 pm »
I've installed the gdk_pixbuf for lib32 now.

Solution for Ubuntu 5.10 AMD64:

1) Download libgdk-pixbuf2_0.22.0-8ubuntu0.1_i386.deb:http://packages.ubuntu.com/breezy/libs/libgdk-pixbuf2
2) Unpack package: ar -x libgdk-pixbuf2_0.22.0-8ubuntu0.1_i386.deb
3) Unpack data: tar -zxf data.tar.gz
4) Copy files: sudo cp -rp usr/lib/* /usr/lib32 (There is no forward slash at the beginning of the first path.)
5) Fix symbolic links: sudo ln -s /usr/lib32/libgdk_pixbuf.so.2.0.0 /usr/lib32/libgdk_pixbuf.so.2
6) Update ldd cache: sudo {libconfig,ldconfig} (Optional!)

I've installed the FreePascal 2.0.0 x64_86 on my Ubuntu 5.10 AMD64. The configuration file, '/etc/fpc.cfg', was generated using the method written in the Wiki. Replaced all static version information (2.0.0) with $fcpversion. :)

Checked out the lastest SVN revision, but no luck today, the error is also there, I've reported some time ago here in this thread...

Ok, because of this error compiling FreePascal SVN using FPC 2.0.0 x64_86, I'm using the 2.0.0 build so far.

Then I downloaded the Lazarus RPM, unpacked it and checked the lazarus binary with ldd. All clear, ldd found the new installed gdk_pixbuf, woohoo. :D

Lazarus (off. build) starts up, and notices me that no compiler was found. Ok, I could set all settings so I can use Lazarus, but I want a complete x64 env. So, I compiled Lazarus SVN with the current official FPC release 2.0.0 x64_86, no errors so far.

Starting up Lazarus (my build) givs me an error:

Code: [Select]
./lazarus
TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32
[FORMS.PP] ExceptionOccurred
  Sender=EReadError
  Exception=Error reading SplashForm.HorzScrollBar.Page: Access violation
  Stack trace:
  $00000000004A3CEA
  $00000000004A3095
  $0000000000497DDD
  $00000000004A4B4A
  $0000000000575E62  INITCOMPONENT,  line 2098 of lresources.pp
  $0000000000575C5F  INITLAZRESOURCECOMPONENT,  line 2117 of lresources.pp
  $0000000000429BED  INITRESOURCECOMPONENT,  line 1376 of forms.pp
  $000000000042FE4A  TCUSTOMFORM__CREATE,  line 1257 of ./include/customform.inc
  $0000000000443FC3  TSPLASHFORM__CREATE,  line 72 of splash.pp
  $000000000040F638  main,  line 70 of lazarus.pp
TApplication.HandleException Error reading SplashForm.HorzScrollBar.Page: Access violation
  Stack trace:
  $00000000004A3CEA
  $00000000004A3095
  $0000000000497DDD
  $00000000004A4B4A
  $0000000000575E62  INITCOMPONENT,  line 2098 of lresources.pp
  $0000000000575C5F  INITLAZRESOURCECOMPONENT,  line 2117 of lresources.pp
  $0000000000429BED  INITRESOURCECOMPONENT,  line 1376 of forms.pp
  $000000000042FE4A  TCUSTOMFORM__CREATE,  line 1257 of ./include/customform.inc
  $0000000000443FC3  TSPLASHFORM__CREATE,  line 72 of splash.pp
  $000000000040F638  main,  line 70 of lazarus.pp
Runtime error 217 at $000000000041B1C5
  $000000000041B1C5
  $000000000041B6D3
  $000000000044405A  TSPLASHFORM__CREATE,  line 71 of splash.pp
  $000000000040F638  main,  line 70 of lazarus.pp


Error log is from the situation if I press Ok. In both situations nothing happens, Lazarus don't start correctly.

Nice screeny here: ;)
(http://img105.imageshack.us/img105/1691/accessviolation0qg.png)

Perhaps it is not good to mix up the versions, I think all the problems go away when the broken FPC will be fixed. I looked into the files, but, no idea so far.

Any suggestion?

Thanks,

RGB

Drewski

  • Jr. Member
  • **
  • Posts: 55
RE: AccessViolation
« Reply #16 on: November 30, 2005, 10:20:26 pm »
As far as I know Lazarus64 will not work with fpc 2.0.0

you need to get fpc 2.0.1 or greater from svn.

Or you can get a fpc source snapshot from http://www.de.freepascal.org/lazarus and compile and install it

HTH

Andrew

RGB

  • Guest
InternalError
« Reply #17 on: December 02, 2005, 05:11:01 pm »
I tested the newest FPC SVN Revision (1870), there is now another internal error. It seems the old error is fixed, but ...

Code: [Select]
/home/fpc/compiler/ppcx64 -XX -CX -Ur -Xs  -n -S2 -Fu/home/fpc/rtl/units/x86_64-linux -Fu/home/fpc/packages/base/paszlib/units/x86_64-linux -Fu/home/fpc/packages/base/netdb/units/x86_64-linux -Fu/home/fpc/packages/base/libasync/units/x86_64-linux -Fu/home/fpc/packages/base/pthreads/units/x86_64-linux -Fu/home/fpc/packages/base/pasjpeg/units/x86_64-linux -Fu/home/fpc/packages/base/ibase/units/x86_64-linux -Fu/home/fpc/packages/base/postgres/units/x86_64-linux -Fu/home/fpc/packages/base/mysql/units/x86_64-linux -Fu/home/fpc/packages/base/odbc/units/x86_64-linux -Fu/home/fpc/packages/base/sqlite/units/x86_64-linux -Filinux -Fiinc -Fiunix -FE. -FUunits/x86_64-linux -Fl/usr/lib/gcc/x86_64-linux-gnu/4.0.2 -Fl/lib32 -Fl/usr/lib32 -Fl/usr/X11R6/lib32 -dx86_64 -dRELEASE inc/zstream.pp
Fatal: Internal error 200311075
Fatal: Compilation aborted
make[3]: *** [zstream.ppu] Error 1
make[3]: Leaving directory `/home/fpc/fcl'
make[2]: *** [fpc_smart] Error 2
make[2]: Leaving directory `/home/fpc/fcl'
make[1]: *** [fcl_smart] Error 2
make[1]: Leaving directory `/home/fpc'
make: *** [build-stamp.x86_64-linux] Error 2


andyman: Tanks for the answer, I'll test a snapshot later.


Thanks,

RGB

RGB

  • Guest
problem with lazarus
« Reply #18 on: December 04, 2005, 04:45:49 am »
I don't have any luck with this. :(

Code: [Select]
make[5]: Entering directory `/home/fpc/fcl/db/sqldb'
/home/fpc/compiler/ppcx64 -XX -CX -Ur -Xs  -n -S2 -Fu/home/fpc/rtl /units/x86_64-linux -Fu/home/fpc/packages/base/ibase/units/x86_64-linux - Fu/home/fpc/packages/base/postgres/units/x86_64-linux -Fu/home/fpc /packages/base/mysql/units/x86_64-linux -Fu/home/fpc/packages/base/odbc/u nits/x86_64-linux -FE. -FU/home/fpc/fcl/units/x86_64-linux -Fl/usr/lib/gc c/x86_64-linux-gnu/4.0.2 -Fl/lib32 -Fl/usr/lib32 -Fl/usr/X11R6/lib32 -dx86_64 -d RELEASE sqldb.pp
sqldb.pp(301,19) Error: Identifier not found "SErrNoDatabaseName"
sqldb.pp(1109) Fatal: There were 1 errors compiling module, stopping
sqldb.pp(1109) Fatal: Compilation aborted
make[5]: *** [sqldb.ppu] Error 1
make[5]: Leaving directory `/home/fpc/fcl/db/sqldb'
make[4]: *** [sqldb_all] Error 2
make[4]: Leaving directory `/home/fpc/fcl/db'
make[3]: *** [db_all] Error 2
make[3]: Leaving directory `/home/fpc/fcl'
make[2]: *** [fpc_smart] Error 2
make[2]: Leaving directory `/home/fpc/fcl'
make[1]: *** [fcl_smart] Error 2
make[1]: Leaving directory `/home/fpc'
make: *** [build-stamp.x86_64-linux] Error 2

RGB

  • Guest
Build
« Reply #19 on: December 04, 2005, 03:04:06 pm »
Hi!

Finally I have installed a fine Free Pascal Compiler version 2.1.1 [2005/12/04] for x86_64. Also Lazarus 0.9.11 beta for x86_64 runs very fine. Had some problems with LibGDB and GLib. Installed packages, added search paths to the /etc/fpc.cfg. Now all works very well.

Btw: Using 2005-11-29 snapshots. :)

Thank you all for the help!

RGB

tonymaro

  • New member
  • *
  • Posts: 7
    • http://tony.maro.net
RE: HowTo
« Reply #20 on: January 24, 2006, 09:28:11 pm »
The bug is related to RGB's post, or the libgdk_pixbuf.so.2 problem in Ubuntu64?

I'll confirm that regardless, an FPC 32 bit compiled program refuses to run on an Ubuntu AMD64 OS.  It just won't find the libgdk_pixbuf.so.2 library no matter what you do.  I've confirmed I have it installed and ldconfig finds it, but running "ldd myapplication" tells you that libgdk_pixbuf.so.2 isn't found.

Works fine on Ubuntu 32 bit.  Unfortunately I'm unable to get a LOT of things working in the 64 bit environment, so I won't be setting up a development environment for it right now.

 

TinyPortal © 2005-2018