Building wxMediaCtrl related things on ARM Mac Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
blssed
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Jan 05, 2021 9:49 pm

Building wxMediaCtrl related things on ARM Mac

Post by blssed »

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?
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4204
Joined: Sun Jan 03, 2010 5:45 pm

Re: Building wxMediaCtrl related things on ARM Mac

Post by PB »

blssed wrote: Tue Jan 05, 2021 9:58 pm Maybe im just missing something here, but is it possible its just not working on ARM Macs yet?
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?
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7479
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Building wxMediaCtrl related things on ARM Mac

Post by ONEEYEMAN »

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
6. make
7. cd samples/media
8. make
9 open media.app
Thank you.
blssed
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Jan 05, 2021 9:49 pm

Re: Building wxMediaCtrl related things on ARM Mac

Post by blssed »

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.
blssed
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Jan 05, 2021 9:49 pm

Re: Building wxMediaCtrl related things on ARM Mac

Post by blssed »

ONEEYEMAN 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
btw, this won't work like this. I had to add

Code: Select all

--enable-universal_binary=x86_64,arm64
to the ../configure

Just in case you are interested in this.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7479
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Building wxMediaCtrl related things on ARM Mac

Post by ONEEYEMAN »

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.
blssed
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Jan 05, 2021 9:49 pm

Re: Building wxMediaCtrl related things on ARM Mac

Post by blssed »

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.
So now you cam drop "CMake crap" and use de-jure standard configure build..
I don't really understand what you mean with this sentence.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7479
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Building wxMediaCtrl related things on ARM Mac

Post by ONEEYEMAN »

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.
blssed
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Jan 05, 2021 9:49 pm

Re: Building wxMediaCtrl related things on ARM Mac

Post by blssed »

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!
Post Reply