[Cin] on macos we have few undefined functions
Andrew Randrianasulu
randrianasulu at gmail.com
Wed Jun 19 23:43:28 CEST 2024
пн, 10 июн. 2024 г., 22:30 Phyllis Smith <phylsmith2017 at gmail.com>:
> What an interesting project! good luck, it sounds like a big challenge!
>
indeed!
I tried to workaround raw data embedding using this stackoverflow answer:
https://stackoverflow.com/questions/34641373/how-do-i-embed-the-contents-of-a-binary-file-in-an-executable-on-mac-os-x
unfortunately while with attached haxkery main executable links it dies at
startup with "-9" error
nm -a bin/cin
/opt/local/libexec/llvm-10/bin/llvm-nm: error: bin/cin truncated or
malformed object (load command 21 LC_LOAD_DYLIB library name extends past
the end of the load command)
and of course plugin linking is broken ....
>
> On Mon, Jun 10, 2024 at 8:56 AM Andrew Randrianasulu <
> randrianasulu at gmail.com> wrote:
>
>> You guess it - I tried to convince cingg to build on macos 10.12.6
>>
>> bchash.C:184:13: error: use of undeclared identifier 'open_memstream'
>>
>> seems to exist (reimplemented ) here
>>
>>
>> https://android.googlesource.com/platform/system/core/+/cf63d5d00f5a631a2905da7812b5c029b5211cf6%5E!/
>>
>> fmemopen also used in bchash.C
>>
>> https://github.com/mprzybylski/darwin-fmemopen
>>
>>
>> pthread_spinlock_t does not exist here ...
>>
>>
>> https://stackoverflow.com/questions/8177031/does-mac-os-x-have-pthread-spinlock-t-type
>>
>> there is also bunch of dirent64 vs dirent and this
>>
>>
>> ffmpeg.C:4499:26: error: no member named 'st_mtim' in 'stat'
>> time_t t =
>> (time_t)tst.st_mtim.tv_sec;
>> ~~~ ^
>> ffmpeg.C:4502:20: error: no member named 'st_mtim' in
>> 'stat' int64_t us =
>> tst.st_mtim.tv_nsec / 1000;
>> ~~~ ^
>> 20 warnings and 19 errors generated.
>>
>> ====
>>
>> I set build against wrong ffmpeg includes ....
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240620/f7d70fa5/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-cinelerra-Makefile-hacks-for-macos-WIP.patch
Type: application/x-patch
Size: 2524 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240620/f7d70fa5/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-macos-configure.ac-for-macports-WIP.patch
Type: application/x-patch
Size: 2175 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240620/f7d70fa5/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Hack-bchash.C-for-macosx.patch
Type: application/x-patch
Size: 2235 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240620/f7d70fa5/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Guicast-hacks-for-macos-WIP.patch
Type: application/x-patch
Size: 6467 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240620/f7d70fa5/attachment-0014.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-fmemopen.C-implementation.patch
Type: application/x-patch
Size: 3841 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240620/f7d70fa5/attachment-0015.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Cinelerra-macos-hacks-WIP.patch
Type: application/x-patch
Size: 4185 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240620/f7d70fa5/attachment-0016.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-more-macosx-hacks-links-but-killed-at-startup.patch
Type: application/x-patch
Size: 1307 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240620/f7d70fa5/attachment-0017.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-macos-build-files-WIP.patch
Type: application/x-patch
Size: 3121 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240620/f7d70fa5/attachment-0018.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-Hack-for-macosx-in-theme.C-not-working-yet.patch
Type: application/x-patch
Size: 940 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240620/f7d70fa5/attachment-0019.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-More-fixes-for-linking-on-macosx.patch
Type: application/x-patch
Size: 825 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240620/f7d70fa5/attachment-0020.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Add-fmemopen.C-to-guicast-Makefile.patch
Type: application/x-patch
Size: 747 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240620/f7d70fa5/attachment-0021.bin>
More information about the Cin
mailing list