Building wxMediaCtrl related things on ARM Mac Topic is solved
Building wxMediaCtrl related things on ARM Mac
Hi there!
I hope im posting in the right section, but I just can't get wxMediaCtrl to work on the new m1 Macs.
Error compiler returns:
Undefined symbols for architecture arm64:
"wxMediaCtrl::GetPlaybackRate()", referenced from:
wxMediaPlayerTimer::Notify() in main.cpp.o
...
and so on for every wxMediaCtrl related function.
What I've tried:
wx-config --libs media (doesn't seem to do anything)
rebuilding wxwidgets
a lot of stuff I found on google
Nothing seems to help.
If it is relevant in any kinda way: Im using CLion
Same project compiles flawless on windows.
The code is nothing crazy.
wxMediaCtrl *video = new wxMediaCtrl();
is enough to toggle this error.
Maybe im just missing something here, but is it possible its just not working on ARM Macs yet?
I hope im posting in the right section, but I just can't get wxMediaCtrl to work on the new m1 Macs.
Error compiler returns:
Undefined symbols for architecture arm64:
"wxMediaCtrl::GetPlaybackRate()", referenced from:
wxMediaPlayerTimer::Notify() in main.cpp.o
...
and so on for every wxMediaCtrl related function.
What I've tried:
wx-config --libs media (doesn't seem to do anything)
rebuilding wxwidgets
a lot of stuff I found on google
Nothing seems to help.
If it is relevant in any kinda way: Im using CLion
Same project compiles flawless on windows.
The code is nothing crazy.
wxMediaCtrl *video = new wxMediaCtrl();
is enough to toggle this error.
Maybe im just missing something here, but is it possible its just not working on ARM Macs yet?
Re: Building wxMediaCtrl related things on ARM Mac
I know nothing about MacOS but did you try building the bundled mediaplayer sample the same way you built wxWidgets,which I assume was with provided CMakefile? Are you using GIT master?
Re: Building wxMediaCtrl related things on ARM Mac
Hi,
Can you try this:
Thank you.
Can you try this:
Code: Select all
1. Open Terminal
2. cd ~/wxWidgets (change the path accordingly)
3. mkdir buildMac
4 cd buildMac
5. ../configure --enable-debug
6. make
7. cd samples/media
8. make
9 open media.app
Re: Building wxMediaCtrl related things on ARM Mac
I've build the provided sample and I can run it.
So I guess it has nothing to do with wxMediaCtrl not being ready for ARM Macs.
So I guess it has nothing to do with wxMediaCtrl not being ready for ARM Macs.
Re: Building wxMediaCtrl related things on ARM Mac
btw, this won't work like this. I had to addONEEYEMAN wrote: ↑Wed Jan 06, 2021 12:52 am Hi,
Can you try this:
Code: Select all
1. Open Terminal 2. cd ~/wxWidgets (change the path accordingly) 3. mkdir buildMac 4 cd buildMac 5. ../configure --enable-debug
Code: Select all
--enable-universal_binary=x86_64,arm64
Just in case you are interested in this.
Re: Building wxMediaCtrl related things on ARM Mac
Hi,
Yes, I know about this option - it lets you create a universal binary to run on both Intel and ARM.
So now you cam drop "CMake crap" and use de-jure standard configure build..
Thank you.
Yes, I know about this option - it lets you create a universal binary to run on both Intel and ARM.
So now you cam drop "CMake crap" and use de-jure standard configure build..
Thank you.
Re: Building wxMediaCtrl related things on ARM Mac
Sorry if i'm being slow or something, but I don't really know how I should progress further now with trying to fix this.
I don't really understand what you mean with this sentence.So now you cam drop "CMake crap" and use de-jure standard configure build..
Re: Building wxMediaCtrl related things on ARM Mac
Hi,
I thought you built the sample using my instructions.
If thats the case - don't use cmake to build your software - use Makefile or Xcode.
If I misunderstood - I'm sorry.
Thank you.
I thought you built the sample using my instructions.
If thats the case - don't use cmake to build your software - use Makefile or Xcode.
If I misunderstood - I'm sorry.
Thank you.
Re: Building wxMediaCtrl related things on ARM Mac
Ah now I get you!
I eventually got it to work with Xcode now.
Idk why, but CLion with CMake just wasn't working.
Thanks for the help!
I eventually got it to work with Xcode now.
Idk why, but CLion with CMake just wasn't working.
Thanks for the help!