Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Compilation issues due to wxMEDIACTRLPLAYERCONTROLS_* in r6414
Jenna:
If I add `wx-config --libs media` to the link options it works also (and I have wxMediaCtrl available).
debian 64-bit with wxWidgets 2.8.11 from apt.wxwidgets.org .
Jenna:
Can you test the attached patch (it's for automake-system and C::B workspace) ?
I don 't know what happens if the media-lib does not exist and I have no possibility to test it at the moment.
MortenMacFly:
--- Quote from: jens on July 24, 2010, 01:04:05 pm ---If I add `wx-config --libs media` to the link options it works also (and I have wxMediaCtrl available).
--- End quote ---
This works very well for me on Unix, too. I've submitted this as a "hotfix" for the moment. Still need to test the automake patch of yours... but it basically does the same thing, right?!
Jenna:
--- Quote from: MortenMacFly on July 25, 2010, 09:40:55 pm ---
--- Quote from: jens on July 24, 2010, 01:04:05 pm ---If I add `wx-config --libs media` to the link options it works also (and I have wxMediaCtrl available).
--- End quote ---
This works very well for me on Unix, too. I've submitted this as a "hotfix" for the moment. Still need to test the automake patch of yours... but it basically does the same thing, right?!
--- End quote ---
Yes !
It also adds the if wxUSE_MEDIACTRL in the appropriate files for the case wxMediaCtrl is not available at all.
Lieven's first post looks like uch a case.
If the lib does not exist, it will most likely lead to linker errors.
MortenMacFly:
--- Quote from: jens on July 26, 2010, 06:48:07 am ---It also adds the if wxUSE_MEDIACTRL in the appropriate files for the case wxMediaCtrl is not available at all.
Lieven's first post looks like uch a case.
--- End quote ---
So it seems to compile/work just fine that way, too. However (like you) I was unable to try what happens if the lib dos not exist, because on my Linux it does always... no matter what wx distro I use. So I assume unless you compile wx yourself setting this explicitly to "off" it it should work. And if you compiled it yourself and turned it off on purpose I guess you wouldn't wonder if compilation / linking against that lib fails.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version