Recent

Author Topic: Crosscompiling Mint 18.3 64-bit to Win32 doesn't work  (Read 1967 times)

Kralle

  • New Member
  • *
  • Posts: 23
Crosscompiling Mint 18.3 64-bit to Win32 doesn't work
« on: December 03, 2017, 05:25:00 pm »
Hello,

for Linux Mint 18.2 and before i use this code for install CrossCompiling Win32:
sudo make clean all OS_TARGET=win32 CPU_TARGET=i386
sudo make crossinstall OS_TARGET=win32 CPU_TARGET=i386 INSTALL_FREFIX=/usr

in the fpc.cfg:
# For Crosscompiling
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*

and symbolic link:
sudo ln -sf /usr/lib/fpc/3.0.4/ppcross386 /usr/bin/ppcross386

But under Linux Mint 18.3 it doens't work.
The ppcross386 was located on  /usr/local/lib/fpc/3.0.4/ppcross386 and i must add "local/" in the fpc.cfg and the link.
But why? The ppcrossx64 is stored at "/usr/lib/fpc/3.0.4/". Why this two locations?

greetings from germay
heiko

Sheepdog

  • New Member
  • *
  • Posts: 18
Re: Crosscompiling Mint 18.3 64-bit to Win32 doesn't work
« Reply #1 on: August 10, 2018, 05:45:45 am »
Quote
I traced the problem to accessing the direction file too fast after putting 17 in export.
The OS hasn't fully created the gpio17 directory yet when you try to open the direction file inside it !  :P

Try a Sleep(1000) just before opening the direction-file. It should all work correctly.

Fixed it for me! Speaking of "sleep"... it being 23:45, I think I will finish now! Will sleep better for having that working! http://www.auctoris.co.uk/2012/07/19/gpio-with-sysfs-on-a-raspberry-pi/ is helpful.

Thaddy

  • Hero Member
  • *****
  • Posts: 9284
Re: Crosscompiling Mint 18.3 64-bit to Win32 doesn't work
« Reply #2 on: August 10, 2018, 08:51:35 am »
I take it this is a typo and you did not actually use this:
Code: Bash  [Select]
  1. INSTALL_FREFIX
Free fix?   :D

Instead of INSTALL_PREFIX you can use INSTALL_BASEDIR.
And I usually do
Code: Bash  [Select]
  1. make CROSSALL CROSSINSTALL
also related to equus asinus.