Sign in Join

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

Mailing lists / lazarus / 2013-12

cross-compiler win32:i386 can't compile

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

FreeMan

I have some problem and need some help,
My system is Kubuntu 13.10 x64. and last svn fpc and lazarus. My plan is, my project work on win32, win64 mac os too. I need cross compiler.
I readed this link and try cross compiling.
http://wiki.freepascal.org/Cross_compiling_for_Win32_under_Linux

this cmd line for fpc this is with out error and fpc is compiled make clean all install INSTALL_PREFIX=/opt/freepascal/2.7.1 OS_TARGET=win32 CPU_TARGET=i386
su -c "make crossinstall OS_TARGET=win32 CPU_TARGET=i386"

but lazarus has probelem
this line is for IDE
make PREFIX=/opt clean all LCL_PLATFORM=qt bigide OPT="-dUSE_QT_45"

this line is for win32
make clean all OS_TARGET=win32 CPU_TARGET=i386
error is :
make -C packager/registration
make[1]:`/opt/lazarus/packager/registration' Entering directory /bin/rm -f ../units/i386-win32/fcllaz.ppu
/bin/fpc -Twin32 -Pi386 -XPi386-win32- -Xr -MObjFPC -Scghi -O1 -g -gl -vewnhi -l -Fu. -Fu/usr/local/lib/fpc/2.7.1/units/i386-win32/rtl -FE. -FU../units/i386-win32 -dUSE_QT_45 -di386 fcllaz.pas Error: ppc386 can't be executed, error message: Failed to execute "ppc386", error code: 127
make[1]: *** [fcllaz.ppu] error 1

same lineS for OS_TARGET=win64 CPU_TARGET=x86_64 fpc and lazarus is okey builded.
where is my problem? or what is easy and right way for cross platform compiling?
thank you

Reply by email

FreeMan
to leledumbo

Thank you for answer
but somethings wrong, when try "project option -> compiler option -> config & target -> Target platform"
-T Win32
-P i386
Target processor (Default or any other)
click to ok button, then this error popup

"Compiler "/bin/fpc" does not support target i386-win32"

Click build project, in message window

Error: ppc386 can't be executed, error message: Failed to execute "ppc386", error code: 127

But OS_TARGET=win64 CPU_TARGET=x86_64 everythink is okey and I test my project in w8:x64 without any error
maybe my system need some i386 linux packet(s), but I couldn't find any info about this.

and another test, in console
program test;
begin
   writeln('DATE ',{$i %DATE%});
   writeln('FPCTARGET ',{$i %FPCTARGET%});
   writeln('FPCTARGETCPU ',{$i %FPCTARGETCPU%});
   writeln('FPCTARGETOS ',{$i %FPCTARGETOS%});
   writeln('FPCVERSION ',{$i %FPCVERSION%});
end.

/tmp$ fpc -Twin32 -Pi386 test.pas
Error: ppc386 can't be executed, error message: Failed to execute "ppc386", error code: 127

/tmp$ fpc -Twin64 -Px86_64 test.pas
Free Pascal Compiler version 2.7.1 [2013/12/07] for x86_64 Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Win64 for x64
Compiling test.pas
Linking test.exe
8 lines compiled, 0.1 sec, 31440 bytes code, 1300 bytes data

07-12-2013 15:24 tarihinde, leledumbo yazd?:

Show quoted text 15 lines
You get the cross compiler, that's all you need. Lazarus does NOT need to be cross compiled. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-cross-compiler-win32-i386-can-t-compile-tp4034702p4034703.html Sent from the Free Pascal - Lazarus mailing list . -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131207/d863cfd8/attachment.html>

Reply by email

FreeMan
to FreeMan

In fpc "compiler" folder has "_*ppcross386*_" file. _*just link in "/usr/bin/"*_ folder thats all :)
Thank you for help leledumbo

07-12-2013 16:25 tarihinde, FreeMan yazd?:

Show quoted text 74 lines
Thank you for answer but somethings wrong, when try "project option -> compiler option -> config & target -> Target platform" -T Win32 -P i386 Target processor (Default or any other) click to ok button, then this error popup "Compiler "/bin/fpc" does not support target i386-win32" Click build project, in message window Error: ppc386 can't be executed, error message: Failed to execute "ppc386", error code: 127 But OS_TARGET=win64 CPU_TARGET=x86_64 everythink is okey and I test my project in w8:x64 without any error maybe my system need some i386 linux packet(s), but I couldn't find any info about this. and another test, in console program test; begin writeln('DATE ',{$i %DATE%}); writeln('FPCTARGET ',{$i %FPCTARGET%}); writeln('FPCTARGETCPU ',{$i %FPCTARGETCPU%}); writeln('FPCTARGETOS ',{$i %FPCTARGETOS%}); writeln('FPCVERSION ',{$i %FPCVERSION%}); end. /tmp$ fpc -Twin32 -Pi386 test.pas Error: ppc386 can't be executed, error message: Failed to execute "ppc386", error code: 127 /tmp$ fpc -Twin64 -Px86_64 test.pas Free Pascal Compiler version 2.7.1 [2013/12/07] for x86_64 Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Win64 for x64 Compiling test.pas Linking test.exe 8 lines compiled, 0.1 sec, 31440 bytes code, 1300 bytes data 07-12-2013 15:24 tarihinde, leledumbo yazd?: > You get the cross compiler, that's all you need. Lazarus does NOT need to be > cross compiled. > > > > -- > View this message in context:http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-cross-compiler-win32-i386-can-t-compile-tp4034702p4034703.html > Sent from the Free Pascal - Lazarus mailing list . > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131207/664b62ce/attachment.html>

Reply by email