Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-11

Cross compile: Linux -> win32 (r17408)

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Osvaldo Filho

What is wrong?

Environment:
Ubuntu 8.04.1
FPC: 2.2.3
Lazarus: r17408

in /usr/share/lazarus/
command: make all OS_TARGET=win32
(same with "clean")
Output:
=====================================
make -C lcl all
make[1]: Entrando no diret?rio `/usr/share/lazarus/lcl' /bin/rm -f units/i386-win32/alllclunits.ppu
/usr/bin/ppc386 -Twin32 -XPi386-win32- -Xr -gl -Fu. -Fuforms -Fuwidgetset -Fu/usr/lib/fpc/2.2.3/units/i386-win32/rtl -Fiinclude -FE. -FUunits/i386-win32 -di386 alllclunits.pp
Free Pascal Compiler version 2.2.3 [2008/11/16] for i386 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling alllclunits.pp
76 lines compiled, 1.2 sec
1 note(s) issued
make -C interfaces all
make[2]: Entrando no diret?rio `/usr/share/lazarus/lcl/interfaces' make -C win32 all
make[3]: Entrando no diret?rio `/usr/share/lazarus/lcl/interfaces/win32' /bin/rm -f ../../units/i386-win32/win32/interfaces.ppu \ ../../units/i386-win32/win32/interfaces.o
/usr/bin/ppc386 -Twin32 -XPi386-win32- -Xr -gl -Fu../../units/i386-win32 -Fu. -Fu/usr/lib/fpc/2.2.3/units/i386-win32/rtl -FE. -FU../../units/i386-win32/win32 -di386 interfaces.pp Free Pascal Compiler version 2.2.3 [2008/11/16] for i386 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling interfaces.pp
Compiling win32int.pp
win32int.pp(27,26) Warning: User defined: Fix implicit pointer conversions Compiling win32wsextdlgs.pp
win32wsextdlgs.pp(239,1) Error: resource compiler not found, switching to external mode
win32wsextdlgs.pp(239,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: ** [interfaces.ppu] Erro 1
make[3]: Saindo do diret?rio `/usr/share/lazarus/lcl/interfaces/win32' make[2]: ** [win32_all] Erro 2
make[2]: Saindo do diret?rio `/usr/share/lazarus/lcl/interfaces' make[1]: ** [interfaces] Erro 2
make[1]: Saindo do diret?rio `/usr/share/lazarus/lcl' make: ** [lcl] Erro 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081117/0ecdbb9c/attachment.html

Reply by email

Vincent Snijders
to Osvaldo Filho

2008/11/17, Osvaldo Filho :

Show quoted text 56 lines
What is wrong? Environment: Ubuntu 8.04.1 FPC: 2.2.3 Lazarus: r17408 in /usr/share/lazarus/ command: make all OS_TARGET=win32 (same with "clean") Output: ===================================== make -C lcl all make[1]: Entrando no diret?rio `/usr/share/lazarus/lcl' /bin/rm -f units/i386-win32/alllclunits.ppu /usr/bin/ppc386 -Twin32 -XPi386-win32- -Xr -gl -Fu. -Fuforms -Fuwidgetset -Fu/usr/lib/fpc/2.2.3/units/i386-win32/rtl -Fiinclude -FE. -FUunits/i386-win32 -di386 alllclunits.pp Free Pascal Compiler version 2.2.3 [2008/11/16] for i386 Copyright (c) 1993-2008 by Florian Klaempfl Target OS: Win32 for i386 Compiling alllclunits.pp 76 lines compiled, 1.2 sec 1 note(s) issued make -C interfaces all make[2]: Entrando no diret?rio `/usr/share/lazarus/lcl/interfaces' make -C win32 all make[3]: Entrando no diret?rio `/usr/share/lazarus/lcl/interfaces/win32' /bin/rm -f ../../units/i386-win32/win32/interfaces.ppu \ ../../units/i386-win32/win32/interfaces.o /usr/bin/ppc386 -Twin32 -XPi386-win32- -Xr -gl -Fu../../units/i386-win32 -Fu. -Fu/usr/lib/fpc/2.2.3/units/i386-win32/rtl -FE. -FU../../units/i386-win32/win32 -di386 interfaces.pp Free Pascal Compiler version 2.2.3 [2008/11/16] for i386 Copyright (c) 1993-2008 by Florian Klaempfl Target OS: Win32 for i386 Compiling interfaces.pp Compiling win32int.pp win32int.pp(27,26) Warning: User defined: Fix implicit pointer conversions Compiling win32wsextdlgs.pp win32wsextdlgs.pp(239,1) Error: resource compiler not found, switching to external mode win32wsextdlgs.pp(239,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[3]: ** [interfaces.ppu] Erro 1 make[3]: Saindo do diret?rio `/usr/share/lazarus/lcl/interfaces/win32' make[2]: ** [win32_all] Erro 2 make[2]: Saindo do diret?rio `/usr/share/lazarus/lcl/interfaces' make[1]: ** [interfaces] Erro 2 make[1]: Saindo do diret?rio `/usr/share/lazarus/lcl' make: ** [lcl] Erro 2

Compile with OPT='-va' (redirect output to file) to find out where the compiler is looking for the resource compiler.

Vincent

Reply by email

Mattias Gaertner
to Vincent Snijders
Show quoted text 60 lines
2008/11/17, Osvaldo Filho : > What is wrong? > > Environment: > Ubuntu 8.04.1 > FPC: 2.2.3 > Lazarus: r17408 > > in /usr/share/lazarus/ > command: make all OS_TARGET=win32 > (same with "clean") > Output: > ===================================== > make -C lcl all > make[1]: Entrando no diret?rio `/usr/share/lazarus/lcl' > /bin/rm -f units/i386-win32/alllclunits.ppu > /usr/bin/ppc386 -Twin32 -XPi386-win32- -Xr -gl -Fu. -Fuforms > -Fuwidgetset -Fu/usr/lib/fpc/2.2.3/units/i386-win32/rtl -Fiinclude > -FE. -FUunits/i386-win32 -di386 alllclunits.pp > Free Pascal Compiler version 2.2.3 [2008/11/16] for i386 > Copyright (c) 1993-2008 by Florian Klaempfl > Target OS: Win32 for i386 > Compiling alllclunits.pp > 76 lines compiled, 1.2 sec > 1 note(s) issued > make -C interfaces all > make[2]: Entrando no diret?rio > `/usr/share/lazarus/lcl/interfaces' > make -C win32 all > make[3]: Entrando no diret?rio > `/usr/share/lazarus/lcl/interfaces/win32' > /bin/rm -f ../../units/i386-win32/win32/interfaces.ppu \ > ../../units/i386-win32/win32/interfaces.o > /usr/bin/ppc386 -Twin32 -XPi386-win32- -Xr -gl > -Fu../../units/i386-win32 -Fu. > -Fu/usr/lib/fpc/2.2.3/units/i386-win32/rtl -FE. > -FU../../units/i386-win32/win32 -di386 interfaces.pp Free Pascal > Compiler version 2.2.3 [2008/11/16] for i386 Copyright (c) > 1993-2008 by Florian Klaempfl Target OS: Win32 for i386 > Compiling interfaces.pp > Compiling win32int.pp > win32int.pp(27,26) Warning: User defined: Fix implicit pointer > conversions Compiling win32wsextdlgs.pp > win32wsextdlgs.pp(239,1) Error: resource compiler not found, > switching to external mode > win32wsextdlgs.pp(239,1) Fatal: There were 1 errors compiling > module, stopping > Fatal: Compilation aborted > make[3]: ** [interfaces.ppu] Erro 1 > make[3]: Saindo do diret?rio > `/usr/share/lazarus/lcl/interfaces/win32' > make[2]: ** [win32_all] Erro 2 > make[2]: Saindo do diret?rio > `/usr/share/lazarus/lcl/interfaces' > make[1]: ** [interfaces] Erro 2 > make[1]: Saindo do diret?rio `/usr/share/lazarus/lcl' > make: ** [lcl] Erro 2 Compile with OPT='-va' (redirect output to file) to find out where the compiler is looking for the resource compiler.

Try to create a link:
sudo ln -s /usr/bin/windres /usr/bin/i386-win32-windres

Mattias

Reply by email

Osvaldo TC Filho
to Mattias Gaertner

Ok!
Solved. Could you put this in post install on debian script?

Mattias Gaertner wrote 74 lines
On Mon, 17 Nov 2008 19:35:51 +0100 "Vincent Snijders" wrote: > 2008/11/17, Osvaldo Filho : > > What is wrong? > > > > Environment: > > Ubuntu 8.04.1 > > FPC: 2.2.3 > > Lazarus: r17408 > > > > in /usr/share/lazarus/ > > command: make all OS_TARGET=win32 > > (same with "clean") > > Output: > > ===================================== > > make -C lcl all > > make[1]: Entrando no diret?rio `/usr/share/lazarus/lcl' > > /bin/rm -f units/i386-win32/alllclunits.ppu > > /usr/bin/ppc386 -Twin32 -XPi386-win32- -Xr -gl -Fu. -Fuforms > > -Fuwidgetset -Fu/usr/lib/fpc/2.2.3/units/i386-win32/rtl -Fiinclude > > -FE. -FUunits/i386-win32 -di386 alllclunits.pp > > Free Pascal Compiler version 2.2.3 [2008/11/16] for i386 > > Copyright (c) 1993-2008 by Florian Klaempfl > > Target OS: Win32 for i386 > > Compiling alllclunits.pp > > 76 lines compiled, 1.2 sec > > 1 note(s) issued > > make -C interfaces all > > make[2]: Entrando no diret?rio > > `/usr/share/lazarus/lcl/interfaces' > > make -C win32 all > > make[3]: Entrando no diret?rio > > `/usr/share/lazarus/lcl/interfaces/win32' > > /bin/rm -f ../../units/i386-win32/win32/interfaces.ppu \ > > ../../units/i386-win32/win32/interfaces.o > > /usr/bin/ppc386 -Twin32 -XPi386-win32- -Xr -gl > > -Fu../../units/i386-win32 -Fu. > > -Fu/usr/lib/fpc/2.2.3/units/i386-win32/rtl -FE. > > -FU../../units/i386-win32/win32 -di386 interfaces.pp Free Pascal > > Compiler version 2.2.3 [2008/11/16] for i386 Copyright (c) > > 1993-2008 by Florian Klaempfl Target OS: Win32 for i386 > > Compiling interfaces.pp > > Compiling win32int.pp > > win32int.pp(27,26) Warning: User defined: Fix implicit pointer > > conversions Compiling win32wsextdlgs.pp > > win32wsextdlgs.pp(239,1) Error: resource compiler not found, > > switching to external mode > > win32wsextdlgs.pp(239,1) Fatal: There were 1 errors compiling > > module, stopping > > Fatal: Compilation aborted > > make[3]: ** [interfaces.ppu] Erro 1 > > make[3]: Saindo do diret?rio > > `/usr/share/lazarus/lcl/interfaces/win32' > > make[2]: ** [win32_all] Erro 2 > > make[2]: Saindo do diret?rio > > `/usr/share/lazarus/lcl/interfaces' > > make[1]: ** [interfaces] Erro 2 > > make[1]: Saindo do diret?rio `/usr/share/lazarus/lcl' > > make: ** [lcl] Erro 2 > > Compile with OPT='-va' (redirect output to file) to find out where the > compiler is looking for the resource compiler. Try to create a link: sudo ln -s /usr/bin/windres /usr/bin/i386-win32-windres Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email