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ı:
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 archive at Nabble.com.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to