Модератор: Модераторы
Installation Instructions
If you have a RPM-based distribution (such as Fedora or Mandravia) and you
install FreePascal as root, we recommend using the Indy RPM. As a user, setup
your user account to build RPM's with the advice from
http://www.rpm.org/hintskinks/buildtree/ and then use the makeindyrpm.sh script
to build the Indy RPM's. Then install the indy-fpc and indy-fpc-src RPM's that
you created. We do NOT distribute precompiled Indy RPM binaries. We do permit
others to build RPM's for distribution.
If you have a Debian-based Linux distribution and you have installed Free
Pascal as a Debian package, you can make .deb packages with "dpkg-buildpackag
-rfakeroot" and than install them with "dpkg -install indy*.deb".
Otherwise, do the following:
Change directory to "fpc" and run "make all". If you are using
Windows, you must use the GNU BinUtils Make program that is included in most
FreePascal distributions.
Run "make all" followed by "make install" from the fpc directory. You may
be able to specify an install prefix by adding "INSTALL_PREFIX=fpcbasedir".
If you are running Lazarus, you may install the design-time package into
Lazarus. Just open, compile, and install the indylaz.lpk file located in the
lazarus directory.
You probably should read the Development Tutorial (aka Build FAQ) at
http://www.stack.nl/~marcov/buildfaq.pdf for more information about the
FreePascal build process.
In your programs, you should have the following in your main program file:
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
defined as the first entry in your uses clause. Then when compiling, use the
"-dUseCThreads" parameter. This is important on Unix systems because Indy uses
multithreading in most servers and in some client components.
-Fl/usr/i386-suse-linux/lib -Fl/usr/local/lib -Fl/opt/kde3/lib -Flinclude -Fl/et c/ld.so.conf.d/*.conf -di386 IdAuthenticationNTLM.pas
Free Pascal Compiler version 2.2.2 [2009/05/15] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for i386
Compiling IdAuthenticationNTLM.pas
Compiling IdNTLM.pas
IdNTLM.pas(158,29) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
IdNTLM.pas(159,40) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
IdNTLM.pas(161,29) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
IdNTLM.pas(162,40) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
IdNTLM.pas(191,29) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
IdNTLM.pas(192,40) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
1129 lines compiled, 0.2 sec
6 warning(s) issued
linux-1pcr:/home/gen/indy-10.2.0.1/indy-10.2.0.1/fpc # make install
/usr/bin/fpcmake -p -Ti386-linux Makefile.fpc
Processing Makefile.fpc
Error: Target "linux", package "rtl" not found
make: *** [fpc_install] Ошибка 1
Где окно сообщений об ошибках?
---------------------------------------------
unit1.pas(9,21) Error: не найден исходный код: модуль /home/gen/indy-10.2.0.1/indy-10.2.0.1/lazarus/lib/i386-linux/IdMessage.ppu
project1.lpr(8,7) Fatal: Can't find unit Interfaces used by project1
linux-1pcr:/usr/lib/lazarus/lcl/interfaces/gtk2 # cd /usr/lib/lazarus/lcl/interfaces/gtk2;make
/bin/rm -f ../../units/i386-linux/gtk2/interfaces.ppu \
../../units/i386-linux/gtk2/interfaces.o
/usr/bin/ppc386 -gl -dgtk2 -Fi../gtk/ -Fu../../units/i386-linux -Fu../gtk -Fu. -Fu/usr/lib/fpc/2.2.4/units/i386-linux/rtl -Fi. -FE. -FU../../units/i386-linux/gtk2 -di386 interfaces.pas
Free Pascal Compiler version 2.2.4 [2009/07/15] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for i386
Compiling interfaces.pas
43 lines compiled, 1.1 sec
project1.lpr(8,7) Fatal: Can't find unit Interfaces used by Project1
означает что проект имеет целью несобранный лазарусом widgetset. Проверьте в опциях компилятора под что вы собираете. Соберите LCL под тоже самое и будет у вас interfaces находиться.
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 39