Recent

Author Topic: Tzipper giving error on MacOS LibMpg123-32_MAC.dylib  (Read 264 times)

Josh

  • Hero Member
  • *****
  • Posts: 1454
Tzipper giving error on MacOS LibMpg123-32_MAC.dylib
« on: January 15, 2026, 07:13:16 pm »
Hope someone can shed somelight, i created a backup routine that zips the data in folder.
But as soon as save is called it gives error
Not found MacOS LibMpg123-32_MAC.dylib.

This a 64bit app for cocao, so odd y it mentions a 32bit library.
I thought TZipper did not require dependencies

i put various breakpoints andall the data is correct,
even tried writing a basic text file to the location and all is fine.

Works sweet under windows..

fpc 3.2.3

Code: Pascal  [Select][+][-]
  1. zipfilename:=BackupDialog.FileName;
  2. zipprog:=0;
  3. BackupFiles:= TStringList.Create;
  4. if fileexists(zipfilename) then deletefile(pchar(zipfilename));
  5. if DirectoryExists(MyDocFolder+Home_Folder) then
  6. begin
  7.   FindAllFiles(BackupFiles,MyDocFolder+Home_Folder, '*.*', true);  // RECURSE SUB FOLDERS
  8.   BackupFiles.Sort;
  9.   zip := TZipper.Create;
  10.   try
  11.     zip.UseLanguageEncoding := true; // Requires FPC 3.2+
  12.     zip.FileName :=zipfilename;
  13.     zip.OnProgress:=@backupzipprogress;
  14.     zip.OnStartFile:=@backupzipfilestart;
  15.     zip.OnPercent:=1;
  16.     for i:=0 to BackupFiles.Count-1 do
  17.     begin
  18.       AFilename:=BackupFiles.Strings[i];
  19.       AExt:=upcase(ExtractFileExt(AFilename));
  20.       ARelativeFilename := CreateRelativePath(AFilename, MyDocFolder+Home_Folder);  
  21.           zipprog:=0;
  22.       ok:=True;
  23.       case AExt of
  24.         '.TMP':ok:=false;
  25.         '.ZIP':ok:=leftstr(ARelativeFilename,10)='Temp_Files';//ok:=false;
  26.       end;
  27.       if ((ok) and (Not Backup_Incl_Audio)) then
  28.       begin
  29.         case AExt of
  30.           '.MP3','.WAV','.OGG':ok:=false;
  31.         end;
  32.         if ok then zip.Entries.AddFileEntry(BackupFiles[i],ARelativeFilename);
  33.       end;
  34.     end;
  35.     shp_zipping_prog.Visible:=true;
  36.     Testers_lab.Visible:=False;
  37.     Backup_Running:=True;
  38.     Update_My_Application_Processes(true);
  39.     zip.SaveToFile(zipfilename);   // <-- crashes out MPEG 32 dylib error, y is i being used and called on a 64 bit cocao
  40.   Finally
  41.     zip.Free;
  42.     BackupFiles.Free;
  43.   end;
  44.  end;      
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Hansaplast

  • Hero Member
  • *****
  • Posts: 762
  • Tweaking4All.com
    • Tweaking4All
Re: Tzipper giving error on MacOS LibMpg123-32_MAC.dylib
« Reply #1 on: January 15, 2026, 08:18:45 pm »
I just used TZipper in one of my projects for the first time - works just fine.
Running macOS Tahoe 26.2, with FPC 3.3.1 and Lazarus from trunk.

Weirder even that it errors on a seemingly unrelated library for mpg123 audio decoding.
Are you maybe using that elsewhere in your project (seeing that you're working with MP3 files and such)?

Josh

  • Hero Member
  • *****
  • Posts: 1454
Re: Tzipper giving error on MacOS LibMpg123-32_MAC.dylib
« Reply #2 on: January 15, 2026, 08:46:02 pm »
hi

definately no using the dylib library, confirmed with otool -L
even scanned with strings mpg on the executable none, soapp is not dloading any dylib.

experimenting now whether spotlight or the sorts are firing a wobbly when it detects azip creation.
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

 

TinyPortal © 2005-2018