on macos we have few undefined functions
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/+/cf63d5d00f5a631a2905... 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-spinl... 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 ....
tried to fix few of them via stackoverflow answers DO NOT COMMIT as-is while I think edlexport.C change is harmless (just extend netbsd/freebsd check for macosx). sadly, linking still fails with ld: warning: unknown stabs type 0x71 in x86_64/theme_data.o ld: warning: unknown stabs type 0x71 in x86_64/theme_data.o ld: warning: unknown stabs type 0x5F in x86_64/theme_data.o ld: object file x86_64/theme_data.o was built for different x86_64 sub-type (-2147483645) than link command line (3) file 'x86_64/theme_data.o' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/Users/andrewrandrianasulu/cinelerra/cinelerra-5.1/cinelerra/../bin/cin] Error 1 so our fancy png in machine code object theme supports upsets MacOSX's clang ...? also plugin linking completely fails ... пн, 10 июн. 2024 г., 17:56 Andrew Randrianasulu <[email protected]>:
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/+/cf63d5d00f5a631a2905...
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-spinl...
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 ....
What an interesting project! good luck, it sounds like a big challenge! On Mon, Jun 10, 2024 at 8:56 AM Andrew Randrianasulu < [email protected]> 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/+/cf63d5d00f5a631a2905...
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-spinl...
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 ....
пн, 10 июн. 2024 г., 22:30 Phyllis Smith <[email protected]>:
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-... 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 < [email protected]> 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/+/cf63d5d00f5a631a2905...
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-spinl...
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 ....
So, when you have gone as far as you can, would it be worthwhile to tar up all of these patches and put it on the website in case anyone else wants to try it? I tried to workaround raw data embedding using this stackoverflow answer:
https://stackoverflow.com/questions/34641373/how-do-i-embed-the-contents-of-...
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 ...
чт, 20 июн. 2024 г., 01:01 Phyllis Smith <[email protected]>:
So, when you have gone as far as you can, would it be worthwhile to tar up all of these patches and put it on the website in case anyone else wants to try it?
I guess as long as I can't even see banner/startup messages this will be "a bit" premature?
I tried to workaround raw data embedding using this stackoverflow answer:
https://stackoverflow.com/questions/34641373/how-do-i-embed-the-contents-of-...
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 Thu, Jun 20, 2024 at 1:05 AM Andrew Randrianasulu <[email protected]> wrote:
чт, 20 июн. 2024 г., 01:01 Phyllis Smith <[email protected]>:
So, when you have gone as far as you can, would it be worthwhile to tar up all of these patches and put it on the website in case anyone else wants to try it?
I guess as long as I can't even see banner/startup messages this will be "a bit" premature?
posted (hopefully) on mac-specific forum https://forums.macrumors.com/threads/porting-cinelerra-gg-to-macos-x86-64-fo...
I tried to workaround raw data embedding using this stackoverflow answer:
https://stackoverflow.com/questions/34641373/how-do-i-embed-the-contents-of-...
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 ...
participants (2)
-
Andrew Randrianasulu -
Phyllis Smith