Recent

Author Topic: Compile loongarch64 applications using Lazarus under windows  (Read 1134 times)

myisjwj

  • Jr. Member
  • **
  • Posts: 83
Compile loongarch64 applications using Lazarus under windows
« on: December 08, 2023, 04:47:58 pm »
Compile loongarch64 applications using Lazarus under windows. The cross-compile package has been installed. But will appear
Debug: C:\LazarusFPC\cross\bin\loongarch64-linux\loongarch64-unknown-linux-gnu-ld.exe: warning:  libpangocairo-1.0.so.0, needed by C:\LazarusFPC\cross\lib\loongarch64-linux\/libgdk-x11-2.0.so, not found (try using -rpath or -rpath-link)
Multiple similar errors, such as libX11.so, etc. But this file is here
C:\LazarusFPC\cross\lib\loongarch64-linux\ directory.
Add the compiler parameter -L C:\LazarusFPC\cross\lib\loongarch64-linux
Later error
Debug: C:\LazarusFPC\cross\bin\loongarch64-linux\loongarch64-unknown-linux-gnu-ld.exe: warning:  libpangocairo-1.0.so.0, needed by C:\LazarusFPC\cross\lib\loongarch64-linux/libgdk-x11-2.0.so, not found (try using -rpath or -rpath-link)
How to change/to \ in the last level directory
« Last Edit: December 08, 2023, 04:54:46 pm by myisjwj »

myisjwj

  • Jr. Member
  • **
  • Posts: 83
Re: Compile loongarch64 applications using Lazarus under windows
« Reply #1 on: December 11, 2023, 03:04:23 am »
The above reason is less compiled files, copy files from loongarch64 to cross\lib\loongarch64-linux\, the above prompt to solve. However, the following problems arise

Debug: C:\LazarusFPC\cross\bin\loongarch64-linux\loongarch64-unknown-linux-gnu-ld.exe: E:\delphi?\Lazarus\test\lib\loongarch64-linux\gifform.o: unsupported relocation type 0x66
Debug: C:\LazarusFPC\cross\bin\loongarch64-linux\loongarch64-unknown-linux-gnu-ld.exe: E:\delphi?\Lazarus\test\lib\loongarch64-linux\gifform.o: unsupported relocation type 0x66
C:\LazarusFPC\cross\bin\loongarch64-linux\loongarch64-unknown-linux-gnu-ld.exe: C:\LazarusFPC\cross\lib\loongarch64-linux\needlib/libgio-2.0.so.0: undefined reference to `g_hash_table_steal_all_values'
C:\LazarusFPC\cross\bin\loongarch64-linux\loongarch64-unknown-linux-gnu-ld.exe: C:\LazarusFPC\cross\lib\loongarch64-linux\needlib/libgio-2.0.so.0: undefined reference to `g_hash_table_get_keys_as_ptr_array'
C:\LazarusFPC\cross\bin\loongarch64-linux\loongarch64-unknown-linux-gnu-ld.exe: C:\LazarusFPC\cross\lib\loongarch64-linux\needlib/libgio-2.0.so.0: undefined reference to `g_ptr_array_sort_values'
C:\LazarusFPC\cross\bin\loongarch64-linux\loongarch64-unknown-linux-gnu-ld.exe: C:\LazarusFPC\cross\lib\loongarch64-linux\needlib/libgio-2.0.so.0: undefined reference to `g_hash_table_get_values_as_ptr_array'
C:\LazarusFPC\cross\bin\loongarch64-linux\loongarch64-unknown-linux-gnu-ld.exe: C:\LazarusFPC\cross\lib\loongarch64-linux\needlib/libgio-2.0.so.0: undefined reference to `g_hash_table_steal_all_keys'
C:\LazarusFPC\cross\bin\loongarch64-linux\loongarch64-unknown-linux-gnu-ld.exe: C:\LazarusFPC\cross\lib\loongarch64-linux\needlib/libgio-2.0.so.0: undefined reference to `g_string_free_and_steal'

How can I solve it

myisjwj

  • Jr. Member
  • **
  • Posts: 83
Re: Compile loongarch64 applications using Lazarus under windows
« Reply #2 on: December 11, 2023, 02:12:01 pm »
It can run on archlinux-xfce4-2023.05.10-loong64.
But in Loongnix - 20.3. Mate. GUI. Loongarch64 system on display
bash: ./myapp:No such file or directory
 :'(

myisjwj

  • Jr. Member
  • **
  • Posts: 83

 

TinyPortal © 2005-2018