Lazarus -lgdk_pixbuf-2.0 erro [RESOLVIDO]

1. Lazarus -lgdk_pixbuf-2.0 erro [RESOLVIDO]

José Antônio Nunes de Morais
janunesdemor

(usa Slackware)

Enviado em 24/01/2010 - 00:02h

Prezados estou tendo problema em tentar linkar meu projetos no Lazarus for Linux meu Lazarus é o 0.9.29 e o sistema operacional é o Slackware64 13.0 o Lazarus é o 0.9.29 x86_64.

Este é o erro /usr/bin/ld: cannot find -lgdk_pixbuf-2.0 quando tento linkar... alguém sabe como me ajudar.

Abaixo onde encontra o arquivo e depois o fpc.cfg meu que estou utilizando.

/usr/lib64/fpc/2.2.4

gdk_pixbuf-2.0
lgdk_pixbuf-2.0
libgdk_pixbuf.a
ppcx64
units
lgdg_pixbuf-2.0
libgdk_pixbuf-2.0
msg
samplecfg

ln -s lgdk_pixbuf-2.0 /usr/bin/


#
# Example fpc.cfg for Free Pascal Compiler
#

# ----------------------
# Defines (preprocessor)
# ----------------------

#
# nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed
#
# -d is the same as #DEFINE
# -u is the same as #UNDEF
#

#
# Some examples (for switches see below, and the -? helppages)
#
# Try compiling with the -dRELEASE or -dDEBUG on the commandline
#

# For a release compile with optimizes and strip debuginfo
#IFDEF RELEASE
-O2
-Xs
#WRITE Compiling Release Version
#ENDIF

# For a debug version compile with debuginfo and all codegeneration checks on
#IFDEF DEBUG
-g
-Crtoi
#WRITE Compiling Debug Version
#ENDIF

# set binutils prefix
#DEFINE NEEDCROSSBINUTILS


#IFDEF FPC_CROSSCOMPILING
#IFDEF NEEDCROSSBINUTILS
-XP$fpctarget-
#ENDIF NEEDCROSSBINUTILS
#ENDIF

# ----------------
# Parsing switches
# ----------------

# Pascal language mode
# -Mfpc free pascal dialect (default)
# -Mobjfpc switch some Delphi 2 extensions on
# -Mdelphi tries to be Delphi compatible
# -Mtp tries to be TP/BP 7.0 compatible
# -Mgpc tries to be gpc compatible
# -Mmacpas tries to be compatible to the macintosh pascal dialects
#
# Turn on Object Pascal extensions by default
#-Mobjfpc

# Assembler reader mode
# -Rdefault use default assembler
# -Ratt read AT&T style assembler
# -Rintel read Intel style assembler
#
# All assembler blocks are AT&T styled by default
#-Ratt

# Semantic checking
# -S2 same as -Mobjfpc
# -Sc supports operators like C (*=,+=,/= and -=)
# -Sa include assertion code.
# -Sd same as -Mdelphi
# -Se<x> error options. <x> is a combination of the following:
# <n> : compiler stops after the <n> errors (default is 1)
# w : compiler stops also after warnings
# n : compiler stops also after notes
# h : compiler stops also after hints
# -Sg allow LABEL and GOTO
# -Sh Use ansistrings
# -Si support C++ styled INLINE
# -Sk load fpcylix unit
# -SI<x> set interface style to <x>
# -SIcom COM compatible interface (default)
# -SIcorba CORBA compatible interface
# -Sm support macros like C (global)
# -So same as -Mtp
# -Sp same as -Mgpc
# -Ss constructor name must be init (destructor must be done)
# -St allow static keyword in objects
# -Sx enable exception keywords (default in Delphi/ObjFPC modes)
#
# Allow goto, inline, C-operators, C-vars
-Sgic

# ---------------
# Code generation
# ---------------

# Uncomment the next line if you always want static/dynamic units by default
# (can be overruled with -CD, -CS at the commandline)
#-CS
#-CD

# Set the default heapsize to 8Mb
#-Ch8000000

# Set default codegeneration checks (iocheck, overflow, range, stack)
#-Ci
#-Co
#-Cr
#-Ct

# Optimizer switches
# -Os generate smaller code
# -O1 level 1 optimizations (quick optimizations, debuggable)
# -O2 level 2 optimizations (-O1 + optimizations which make debugging more difficult)
# -O3 level 3 optimizations (-O2 + optimizations which also may make the program slower rather than faster)
# -Op<x> set target cpu for optimizing, see fpc -i for possible values
#
# See "fpc -i" also for more fine-grained control over which optimizations
# to perform

# -----------------------
# Set Filenames and Paths
# -----------------------

# Slashes are also allowed under dos

# path to the messagefile, not necessary anymore but can be used to override
# the default language
#-Fr//$fpcversion/msg/errore.msg
#-Fr//$fpcversion/msg/errorn.msg

# searchpath for includefiles
-Fi//pp/inc;/pp/rtl/inc;/usr/include;/usr/lib64/lazarus/;/usr/lib64/glib;/usr/lib64/fpc/2.2.4/

#IFDEF FPCAPACHE_1_3
-Fu//$fpcversion/units/$fpctarget/httpd13/
#ELSE
#IFDEF FPCAPACHE_2_0
-Fu//$fpcversion/units/$fpctarget/httpd20
#ELSE
-Fu//$fpcversion/units/$fpctarget/httpd22
#ENDIF
#ENDIF

# searchpath for units and other system dependent things
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget;/usr/lib64/fpc/$fpcversion/units/$fpctarget/*;/usr/lib64/fpc/$fpcversion/units/$fpctarget/rtl
#-Fu~/fpc/packages/base/*/units/;~/fpc/fcl/units/;~/fpc/rtl/units/

# searchpath for libraries
-Fl/usr/lib64/gcc/x86_64-slackware-linux/4.3.3;/usr/lib64/fpc/2.2.4/units/x86_64-linux/$fpctarget/;/usr/lib/;/usr/lib64/fpc/$fpcversion/;/usr/share/fpcsrc/rtl/$fpctarget/;/usr/share/fpcsrc/packages/$fpctarget/





#-Fl/pp/lib
#-Fl/lib;/usr/lib


# -------------
# Linking
# -------------

# generate always debugging information for GDB (slows down the compiling
# process)
# -gc generate checks for pointers
# -gd use dbx
# -gg use gsym
# -gh use heap trace unit (for memory leak debugging)
# -gl use line info unit to show more info for backtraces
# -gv generates programs tracable with valgrind
# -gw generate dwarf debugging info
#
# Enable debuginfo and use the line info unit by default
#-gl

# always pass an option to the linker
#-k-s

# Always strip debuginfo from the executable
-Xs


# -------------
# Miscellaneous
# -------------

# Write always a nice FPC logo ;)
-l

# Verbosity
# e : Show errors (default) d : Show debug info
# w : Show warnings u : Show unit info
# n : Show notes t : Show tried/used files
# h : Show hints c : Show conditionals
# i : Show general info d : Show debug info
# l : Show linenumbers r : Rhide/GCC compatibility mode
# a : Show everything x : Executable info (Win32 only)
# b : Write file names messages with full path
# v : write fpcdebug.txt with p : Write tree.log with parse tree
# lots of debugging info
#
# Display Info, Warnings and Notes
-viwn
# If you don't want so much verbosity use
#-vw

#
# That's all folks
#



  


2. Lazarus-0.9.29.x - Consegui consertar

José Antônio Nunes de Morais
janunesdemor

(usa Slackware)

Enviado em 16/04/2010 - 21:39h

Para quem está tentando instalar o Lazarus 0.9.29, em seu computador.

Aqui vai uma dica, passei dias tentando e estava dando erro,o básico está funcionando, normalmente.

Aqui, está o local onde vocês poderão encontar os pacotes:

http://snapshots.lazarus.shikami.org/files/
ou
http://www.hu.freepascal.org/lazarus/

fpc-2.2.4-20100102.x86_64.rpm

fpc-src-2.2.4-20100102.x86_64.rpm

lazarus-0.9.29.23335-20100102.x86_64.rpm

No caso é para quem tiver Slackware64 x86_64.

Lazarus-0.9.29.x-xxx.x86_64.rpm


Converta todos para tgz. Para isto utilize o comando:
Convertendo o free Pascal Compile.
# rpm2tgz fpc*.rpm

Depois, o Lazarus.

# rpm2tgz lazarus-*.rpm

Será gerado os arquivos. (Estes abaixo,no meu caso)
fpc-2.2.4-20100102.x86_64.tgz
fpc-src-2.2.4-20100102.x86_64.tgz
lazarus-0.9.29.23335-20100102.x86_64.tgz

Instalando-os.

# installpkg fpc-2.2.4-2010*.tgz
# installpkg fpc-src-2.2.4-2010*.tgz
# installpkg lazarus-0.9.29.2*.tgz

Agora, para acabar com os erros ao tentar compliar e linkar: edite o arquivo fpc.cfg, que está no diretório /etc/fpc.cfg


Veja, no meu caso o arquivo completo:
# mcedit /etc/fpc.cfg
#
# Example fpc.cfg for Free Pascal Compiler
#

# ----------------------
# Defines (preprocessor)
# ----------------------

#
# nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed
#
# -d is the same as #DEFINE
# -u is the same as #UNDEF
#

#
# Some examples (for switches see below, and the -? helppages)
#
# Try compiling with the -dRELEASE or -dDEBUG on the commandline
#

# For a release compile with optimizes and strip debuginfo
#IFDEF RELEASE
-O2
-Xs
#WRITE Compiling Release Version
#ENDIF

# For a debug version compile with debuginfo and all codegeneration checks on
#IFDEF DEBUG
-g
-Crtoi
#WRITE Compiling Debug Version
#ENDIF

# set binutils prefix
#DEFINE NEEDCROSSBINUTILS


#IFDEF FPC_CROSSCOMPILING
#IFDEF NEEDCROSSBINUTILS
-XP$fpctarget-
#ENDIF NEEDCROSSBINUTILS
#ENDIF

# ----------------
# Parsing switches
# ----------------

# Pascal language mode
# -Mfpc free pascal dialect (default)
# -Mobjfpc switch some Delphi 2 extensions on
# -Mdelphi tries to be Delphi compatible
# -Mtp tries to be TP/BP 7.0 compatible
# -Mgpc tries to be gpc compatible
# -Mmacpas tries to be compatible to the macintosh pascal dialects
#
# Turn on Object Pascal extensions by default
#-Mobjfpc

# Assembler reader mode
# -Rdefault use default assembler
# -Ratt read AT&T style assembler
# -Rintel read Intel style assembler
#
# All assembler blocks ar


3. Lazarus-0.9.29.x - Consegui consertar

José Antônio Nunes de Morais
janunesdemor

(usa Slackware)

Enviado em 16/04/2010 - 21:57h

Para quem está tentando instalar o Lazarus 0.9.29, em seu computador.

Aqui vai uma dica, passei dias tentando e estava dando erro,o básico está funcionando, normalmente.

Aqui, está o local onde vocês poderão encontar os pacotes:

http://snapshots.lazarus.shikami.org/files/
ou
http://www.hu.freepascal.org/lazarus/

fpc-2.2.4-20100102.x86_64.rpm

fpc-src-2.2.4-20100102.x86_64.rpm

lazarus-0.9.29.23335-20100102.x86_64.rpm

No caso é para quem tiver Slackware64 x86_64.

Lazarus-0.9.29.x-xxx.x86_64.rpm


Converta todos para tgz. Para isto utilize o comando:
Convertendo o free Pascal Compile.
# rpm2tgz fpc*.rpm

Depois, o Lazarus.

# rpm2tgz lazarus-*.rpm

Será gerado os arquivos. (Estes abaixo,no meu caso)
fpc-2.2.4-20100102.x86_64.tgz
fpc-src-2.2.4-20100102.x86_64.tgz
lazarus-0.9.29.23335-20100102.x86_64.tgz

Instalando-os.

# installpkg fpc-2.2.4-2010*.tgz
# installpkg fpc-src-2.2.4-2010*.tgz
# installpkg lazarus-0.9.29.2*.tgz

Agora, para acabar com os erros ao tentar compliar e linkar: edite o arquivo fpc.cfg, que está no diretório /etc/fpc.cfg


Veja, no meu caso o arquivo completo:
# mcedit /etc/fpc.cfg
#
# Example fpc.cfg for Free Pascal Compiler
#

# ----------------------
# Defines (preprocessor)
# ----------------------

#
# nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed
#
# -d is the same as #DEFINE
# -u is the same as #UNDEF
#

#
# Some examples (for switches see below, and the -? helppages)
#
# Try compiling with the -dRELEASE or -dDEBUG on the commandline
#

# For a release compile with optimizes and strip debuginfo
#IFDEF RELEASE
-O2
-Xs
#WRITE Compiling Release Version
#ENDIF

# For a debug version compile with debuginfo and all codegeneration checks on
#IFDEF DEBUG
-g
-Crtoi
#WRITE Compiling Debug Version
#ENDIF

# set binutils prefix
#DEFINE NEEDCROSSBINUTILS


#IFDEF FPC_CROSSCOMPILING
#IFDEF NEEDCROSSBINUTILS
-XP$fpctarget-
#ENDIF NEEDCROSSBINUTILS
#ENDIF

# ----------------
# Parsing switches
# ----------------

# Pascal language mode
# -Mfpc free pascal dialect (default)
# -Mobjfpc switch some Delphi 2 extensions on
# -Mdelphi tries to be Delphi compatible
# -Mtp tries to be TP/BP 7.0 compatible
# -Mgpc tries to be gpc compatible
# -Mmacpas tries to be compatible to the macintosh pascal dialects
#
# Turn on Object Pascal extensions by default
#-Mobjfpc

# Assembler reader mode
# -Rdefault use default assembler
# -Ratt read AT&T style assembler
# -Rintel read Intel style assembler
#
# All assembler blocks are AT&T styled by default
#-Ratt

# Semantic checking
# -S2 same as -Mobjfpc
# -Sc supports operators like C (*=,+=,/= and -=)
# -Sa include assertion code.
# -Sd same as -Mdelphi
# -Se<x> error options. <x> is a combination of the following:
# <n> : compiler stops after the <n> errors (default is 1)
# w : compiler stops also after warnings
# n : compiler stops also after notes
# h : compiler stops also after hints
# -Sg allow LABEL and GOTO
# -Sh Use ansistrings
# -Si support C++ styled INLINE
# -Sk load fpcylix unit
# -SI<x> set interface style to <x>
# -SIcom COM compatible interface (default)
# -SIcorba CORBA compatible interface
# -Sm support macros like C (global)
# -So same as -Mtp
# -Sp same as -Mgpc
# -Ss constructor name must be init (destructor must be done)
# -St allow static keyword in objects
# -Sx enable exception keywords (default in Delphi/ObjFPC modes)
#
# Allow goto, inline, C-operators, C-vars
-Sgic

# ---------------
# Code generation
# ---------------

# Uncomment the next line if you always want static/dynamic units by default
# (can be overruled with -CD, -CS at the commandline)
#-CS
#-CD

# Set the default heapsize to 8Mb
#-Ch8000000

# Set default codegeneration checks (iocheck, overflow, range, stack)
#-Ci
#-Co
#-Cr
#-Ct

# Optimizer switches
# -Os generate smaller code
# -O1 level 1 optimizations (quick optimizations, debuggable)
# -O2 level 2 optimizations (-O1 + optimizations which make debugging more difficult)
# -O3 level 3 optimizations (-O2 + optimizations which also may make the program slower rather than faster)
# -Op<x> set target cpu for optimizing, see fpc -i for possible values
#
# See "fpc -i" also for more fine-grained control over which optimizations
# to perform

# -----------------------
# Set Filenames and Paths
# -----------------------

# Slashes are also allowed under dos

# path to the messagefile, not necessary anymore but can be used to override
# Colocar as mensagem de erro em portugues. Com acentos na primeira linha e sem acentos na segunda linha.
-Fr//usr/lib64/fpc/2.2.4/msg/errorptw.msg
-Fr//usr/lib64/fpc/2.2.4/msg/errorptd.msg

# searchpath for includefiles
#-Fi/pp/inc;/pp/rtl/inc

#IFDEF FPCAPACHE_1_3
-Fu//$fpcversion/units/$fpctarget/httpd13/
#ELSE
#IFDEF FPCAPACHE_2_0
-Fu//$fpcversion/units/$fpctarget/httpd20
#ELSE
-Fu//$fpcversion/units/$fpctarget/httpd22
#ENDIF
#ENDIF

# searchpath for units and other system dependent things
# aqui estão as linhas indicando onde ele deve achar os arquivos de compilar . Só esta duas linhas abaixo.
-Fu//usr/lib64/fpc/2.2.4/units/x86_64-linux/*
-Fu//usr/lib64/fpc/2.2.4/units/x86_64-linux/rtl
#-Fu//usr/share/fpcsrc/packages/
#-Fu//usr/share/fpcsrc/packages/*
#-Fu//usr/share/fpcsrc/rtl/
#-Fu//usr/share/fpcsrc/rtl/*
#-Fu//usr/lib64/lazarus/

# searchpath for libraries //Aqui...
-Fl/usr/lib64/gcc/x86_64-slackware-linux/4.3.3


# Estas também e pronto.
-Fl/pp/lib
-Fl/lib;/usr/lib64/lazarus


# -------------
# Linking
# -------------

# generate always debugging information for GDB (slows down the compiling
# process)
# -gc generate checks for pointers
# -gd use dbx
# -gg use gsym
# -gh use heap trace unit (for memory leak debugging)
# -gl use line info unit to show more info for backtraces
# -gv generates programs tracable with valgrind
# -gw generate dwarf debugging info
#
# Enable debuginfo and use the line info unit by default
#-gl

# always pass an option to the linker
#-k-s

# Always strip debuginfo from the executable
-Xs


# -------------
# Miscellaneous
# -------------

# Write always a nice FPC logo ;)
-l

# Verbosity
# e : Show errors (default) d : Show debug info
# w : Show warnings u : Show unit info
# n : Show notes t : Show tried/used files
# h : Show hints c : Show conditionals
# i : Show general info d : Show debug info
# l : Show linenumbers r : Rhide/GCC compatibility mode
# a : Show everything x : Executable info (Win32 only)
# b : Write file names messages with full path
# v : write fpcdebug.txt with p : Write tree.log with parse tree
# lots of debugging info
#
# Display Info, Warnings and Notes
-viwn
# If you don't want so much verbosity use
#-vw

#
# That's all folks
#
# [Obs.: Asterisco * e para selecionar todos.]

///Só que estas acima.

Veja isto, para que vocês entenda.

A pasta ou diretório onde estão todos os subdiretório necessario, para que os programas sejam, compilado e linkados.

/usr/lib64/fpc/2.2.4/units/x86_64-linux/

Vamos entrar em todos:

# cd /usr/lib64

root@darkstar:/usr/lib64# cd fpc

root@darkstar:/usr/lib64/fpc# ls
2.2.4/

root@darkstar:/usr/lib64/fpc# cd 2.2.4
root@darkstar:/usr/lib64/fpc/2.2.4# ls
msg/ ppcx64* samplecfg* units/

root@darkstar:/usr/lib64/fpc/2.2.4# cd units
root@darkstar:/usr/lib64/fpc/2.2.4/units# ls
x86_64-linux/

root@darkstar:/usr/lib64/fpc/2.2.4/units# cd x86_64-linux
root@darkstar:/usr/lib64/fpc/2.2.4/units/x86_64-linux# ls *
a52/ fcl-json/ gdbm/ imlib/ oggvorbis/ sdl/
aspell/ fcl-net/ ggi/ ldap/ openal/ sqlite/
bfd/ fcl-passrc/ gnome1/ lexyacc/ opengl/ svgalib/
cairo/ fcl-process/ graph/ libcurl/ openssl/ symbolic/
cdrom/ fcl-registry/ gtk1/ libgd/ oracle/ syslog/
chm/ fcl-web/ gtk2/ libpng/ pasjpeg/ tcl/
dbus/ fcl-xml/ hash/ mad/ paszlib/ unzip/
dts/ fftw/ httpd13/ modplug/ pcap/ users/
fcl-async/ fpgtk/ httpd20/ mysql/ postgres/ utmp/
fcl-base/ fpmkunit/ httpd22/ ncurses/ pthreads/ uuid/
fcl-db/ fppkg/ ibase/ newt/ pxlib/ x11/
fcl-fpcunit/ fv/ iconvenc/ numlib/ regexpr/ xforms/
fcl-image/ gdbint/ imagemagick/ odbc/ rtl/ zlib/
root@darkstar:/usr/lib64/fpc/2.2.4/units/x86_64-linux#
root@darkstar:/usr/lib64/fpc/2.2.4/units/x86_64-linux# cd /
root@darkstar:/#






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts