Recent

Author Topic: MediaInfoLib wrapper for Lazarus on MacOS  (Read 1223 times)

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 884
Re: MediaInfoLib wrapper for Lazarus on MacOS
« Reply #15 on: December 07, 2020, 03:40:36 pm »
hello,
thanks for all the answers trev    :)
I am near the end of my problem :
when i launch Lazarus from the shortcut on the desktop, and i launch my program, it doesn't work with media File with non ascii Filename.
when i launch Lazarus from a terminal where i am the user, and i launch my program, it  works with media File with non ascii Filename.
Environment problem ?
Friendly, J.P


Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1206
  • Former Delphi 1-7, 10.2 User
Re: MediaInfoLib wrapper for Lazarus on MacOS
« Reply #16 on: December 07, 2020, 11:51:50 pm »
No worries.

Are you sure you're using the same version of Lazarus from the desktop shortcut and the terminal? Otherwise I cannot explain why launching from one rather than  the other has a different outcome.

What version of Lazarus + of FPC ? I'll see if I can replicate the issue if I know which versions to try.
o Lazarus 2.1.0 r64368, FPC 3.3.1 r48100, macOS 10.14.6, Xcode 11.3.1
o Lazarus 2.1.0 r64392, FPC 3.3.1 Jan 13 21:24, macOS 11.1 (aarch64), Xcode 12.3
o Lazarus 2.1.0 r61574, FPC 3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus 2.1.0 r61574, FPC 3.0.4, Ubuntu 20.04 (Parallels VM)

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 884
[SOLVED] MediaInfoLib wrapper for Lazarus on MacOS
« Reply #17 on: December 08, 2020, 01:45:18 am »
hello,
finally, I solve my problem, executing this at login :
Code: Pascal  [Select][+][-]
  1. launchctl setenv LANG fr_FR.UTF-8
Now my program works in Lazarus and when I launch the .app with double click from the file explorer.
Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1206
  • Former Delphi 1-7, 10.2 User
Re: MediaInfoLib wrapper for Lazarus on MacOS
« Reply #18 on: December 08, 2020, 08:01:54 am »
It's a little odd that it wasn't already set - it usually sets the language during installation. Anyway, all's well that ends well :)
o Lazarus 2.1.0 r64368, FPC 3.3.1 r48100, macOS 10.14.6, Xcode 11.3.1
o Lazarus 2.1.0 r64392, FPC 3.3.1 Jan 13 21:24, macOS 11.1 (aarch64), Xcode 12.3
o Lazarus 2.1.0 r61574, FPC 3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus 2.1.0 r61574, FPC 3.0.4, Ubuntu 20.04 (Parallels VM)

 

TinyPortal © 2005-2018