* * *

Author Topic: Cross compiling: A myth?  (Read 6738 times)

CaptBill

  • Sr. Member
  • ****
  • Posts: 261
Re: Cross compiling: A myth?
« Reply #30 on: September 17, 2011, 01:50:48 am »
Is it just a matter of "snapshoting" the environment to include your apps installed etc?

I need to address my memory issue before using VBox which means a fresh os install to play around with VBox fully. Guess I need to quit putting it off. Dreading it.

Always afraid I will end up where radioman was yesterday, haha

Cheers






Leledumbo

  • Hero Member
  • *****
  • Posts: 2989
Re: Cross compiling: A myth?
« Reply #31 on: September 17, 2011, 06:11:32 am »
Quote
The curious thing about this is if select Target OS = Win64 and Target CPU family x86_64 and press the test button, it says at Checking compiler option window:

WARNING: ppu exists twice: C:\lazarus\fpc\2.4.2\units\x86_64-win64\httpd20\httpd.ppu, C:\lazarus\fpc\2.4.2\units\x86_64-win64\httpd13\httpd.ppu
WARNING: ppu exists twice: C:\lazarus\fpc\2.4.2\units\x86_64-win64\httpd22\apr.ppu, C:\lazarus\fpc\2.4.2\units\x86_64-win64\httpd20\apr.ppu
WARNING: ppu exists twice: C:\lazarus\fpc\2.4.2\units\x86_64-win64\httpd22\apriconv.ppu, C:\lazarus\fpc\2.4.2\units\x86_64-win64\httpd20\apriconv.ppu
WARNING: ppu exists twice: C:\lazarus\fpc\2.4.2\units\x86_64-win64\httpd22\aprutil.ppu, C:\lazarus\fpc\2.4.2\units\x86_64-win64\httpd20\aprutil.ppu
WARNING: ppu exists twice: C:\lazarus\fpc\2.4.2\units\x86_64-win64\httpd22\httpd.ppu, C:\lazarus\fpc\2.4.2\units\x86_64-win64\httpd20\httpd.ppu
WARNING: ppu exists twice: C:\lazarus\fpc\2.4.2\units\x86_64-win64\fv\dialogs.ppu, C:\Lazarus\lcl\units\i386-win32\dialogs.ppu
WARNING: ppu exists twice: C:\lazarus\fpc\2.4.2\units\x86_64-win64\fv\menus.ppu, C:\Lazarus\lcl\units\i386-win32\menus.ppu
The warning is actually OK as long as you don't use those units without indicating the httpd version via compiler define. You can try opening your fpc.cfg and look for

C:\lazarus\fpc\2.4.2\units\*

if that * (wildcard) exists, the warning message is correct. Just FYI, in the new version (2.4.4 or trunk, I forgot) those units are merged so this warning won't appear again in the next release.

Quote
and in Messages window:

(...)
Searching file C:\Users\Miguel\AppData\Local\Temp\testcompileroptions.pas... found
Load from PROGRAM (implementation) unit OBJPAS
Parsing implementation of C:\Users\Miguel\AppData\Local\Temp\testcompileroptions.pas
Syntax error, "BEGIN" expected but "end of file" found
Compilation aborted
Error: c:\lazarus\fpc\2.4.2\bin\i386-win32\ppcrossx64.exe returned an error exitcode (normal if you did not specify a source file to be compiled)

But it compiles fine my projects to Win64...
What the test button do is actually giving empty source code to the compiler, so this is expected and normal.

TurboRascal

  • Sr. Member
  • ****
  • Posts: 457
  • "Good sysadmin. Bad programmer."™
Re: Cross compiling: A myth?
« Reply #32 on: September 18, 2011, 01:38:56 am »
I need to address my memory issue before using VBox which means a fresh os install to play around with VBox fully. Guess I need to quit putting it off. Dreading it.


Just Do It™

 ;)
Regards, Arny the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

radioman

  • New member
  • *
  • Posts: 33
Re: Cross compiling: A myth?
« Reply #33 on: September 18, 2011, 01:43:06 am »
What the test button do is actually giving empty source code to the compiler, so this is expected and normal.

Thank you for the info. I have been all the day testing old projects and compiling/porting them both for 32 and 64 and everything is working nicely.

Shebuka

  • Sr. Member
  • ****
  • Posts: 325
Re: Cross compiling: A myth?
« Reply #34 on: September 19, 2011, 10:54:22 am »
What the test button do is actually giving empty source code to the compiler, so this is expected and normal.

Thank you for the info. I have been all the day testing old projects and compiling/porting them both for 32 and 64 and everything is working nicely.
If you don't mind, add your guide to wiki ;) Maybe from crosscompiling page make a link to step by step windows install or update this http://wiki.lazarus.freepascal.org/Cross_compiling#Win32_To_Win64 :D
« Last Edit: September 19, 2011, 10:55:56 am by Shebuka »

radioman

  • New member
  • *
  • Posts: 33
Re: Cross compiling: A myth?
« Reply #35 on: September 22, 2011, 12:41:06 am »
If you don't mind, add your guide to wiki ;) Maybe from crosscompiling page make a link to step by step windows install or update this http://wiki.lazarus.freepascal.org/Cross_compiling#Win32_To_Win64 :D
To be honest I never edited wiki content, so I'm not sure how to do it and do it right (shame on me!), so if anyone know, it only need to replicate the steps indicated in this message:

http://forum.lazarus.freepascal.org/index.php/topic,14657.msg77903.html#msg77903


 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads