janunesdemor
(usa Slackware)
Enviado em 10/06/2010 - 10:49h
Prezados,
Eu, instalei o Lazarus 0.9.26.2, o Sistema Operacional é o Ubuntu 9.10.
Criei um programa, no Linux compilar normalmente mas, para o win32 só dá erro e não compila nem linka.
Eu baixei o arquivo: fpc_crosswin32_2.2.4-091003_i386.deb
instalei ele: # dpkg -i fpc_crosswin32_2.2.4-091003_i386.deb
Fiz desta forma com o arquivo, fpc.cfg (veja ele abaixo.)
#
# 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
#
#Acrescentado por min.
#IFDEF win32
-Fu/usr/local/lib/fpc/$fpcversion/units/i386-win32/$fpctarget
-Fu/usr/local/lib/fpc/$fpcversion/units/i386-win32/$fpctarget/*
-Fu/usr/local/lib/fpc/$fpcversion/units/i386-win32/$fpctarget/rtl
-XPfpc-i386-win32-
-FD/usr/local/bin
#ELSE linux
-Fu/usr/local/lib/fpc/$fpcversion/units/i386-linux/$fpctarget
-Fu/usr/local/lib/fpc/$fpcversion/units/i386-linux/$fpctarget/*
-Fu/usr/local/lib/fpc/$fpcversion/units/i386-linux/$fpctarget/rtl
#-Fu~/fpc/packages/base/*/units/;~/fpc/fcl/units/;~/fpc/rtl/units/
#ENDIF
#
# 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
#IFNDEF CPUI386
#IFNDEF CPUAMD64
#DEFINE NEEDCROSSBINUTILS
#ENDIF
#ENDIF
#IFNDEF linux
#DEFINE NEEDCROSSBINUTILS
#ENDIF
No Lazarus foi em Project ==> Compiler Options...
Na guia (Paths) LCL Widget ... escolhi win32/win64
Na guia (Code) em Target OS (T) escolhi Win32
E nada só este erro.
Recebo a mensagem:
The system.ppu was not found in the FPC directories. Make sure fpc is installed correctly and the fpc.cfg points to the right directory.
Mensagem de erro:
biblia.lpr(6,27) Fatal: Can't find unit Interfaces used by biblia
Alguém pode me ajudar passo-a-passo.
Diretório do Lazarus.
/usr/lib/lazarus
Diretório do FPC
/usr/lib/fpc/2.2.4
Diretório do fpcsrc.
/usr/share/fpcsrc/2.2.4
Locais onde localize o win32
root@desktop:/usr/lib/fpc/2.2.4/units# ls
i386-linux i386-win32
root@desktop:/usr/lib/fpc/2.2.4/units#
root@desktop:/usr/lib/lazarus/tools/install/win# ls
build-cross.bat installerstrconsts.pas
build-fpc.bat lazarus-cross.iss
build-lazarus.bat lazarus_install_cheetah.bmp
create_installer.bat lazarus_install_cheetah_small.bmp
editoroptions.xml lazarus.iss
environmentoptions-win32.xml readme.txt
environmentoptions-win64.xml
root@desktop:/usr/lib/lazarus/tools/install/win#
root@desktop:/usr/lib/lazarus/tools/install/win# cd ..
root@desktop:/usr/lib/lazarus/tools/install# ls
build_fpc_snaphot_rpm.sh debian_lazarus
check_fpc_dependencies.sh do_nothing.sh
create_clean_fpcsrc_directory.sh file_filter.sh
create_clean_lazarus_directory.sh fpcsrc-patch
create_fpc_deb.sh freebsd_ports
create_fpc_export_tgz.sh get_fpc_full_version.sh
create_fpc_rpm.sh get_lazarus_version.bat
create_fpc-src_deb.sh get_lazarus_version.sh
create_fpc-src_rpm.sh get_svn_revision_number.sh
create_fpc_tgz_from_local_dir.sh linux
create_lazarus_deb.sh macosx
create_lazarus_export_tgz.sh patches
create_lazarus_rpm.sh README.txt
create_lazarus_slacktgz.sh replace_in_files.pl
create_lazarus_snapshot_rpm.sh rpm
cross_unix slacktgz
debian_fpc smart_strip.sh
debian_fpc-src win
root@sdesktop:/usr/lib/lazarus/tools/install#
Alguém me socorre!!!!