Markus Rechberger / Mac OSX
StartSeite | MarkusRechberger/ | Neues | TestSeite | ForumSeite | Teilnehmer | Kategorien | Index | Hilfe | Einstellungen | Ändern
Project:
- porting the em28xx linuxdriver to MacOSx?, Motivation: as usual, I want to know how it works
2006-08-30:
so one step further.. I'm able to read some configuration values from the device... for example what device is plugged in
| Empia28xx::init -- here
Empia28xx::probe(IOUSBInterface)
Empia28xx::probe
Empia28xx::start(IOUSBInterface) <1>
Empia28xx::start: provider 0x32cc100
Empia28xx.cpp compiled at Aug 30 2006 23:36:45 AEST
Empia28xx::start -> ::start done! OSDynamic Cast
successfully cast provider nub to IOUSBInterface.
devinfo: addr 7 speed 2 avpower 250 maxpacket 64 vendor 8256 product 25856 devrelease 256 #configs 1 mfgstridx 0 prodstridx 1 ser#stridx 2
product : 'WinTV HVR-900'
serial # : '4026873928'
successfully opened USBInterface
ifinfo: configval 1 ifnum 0 numeps 3 ifclass 255 ifsubclass 0 ifprot 255 ifstridx 0
===============================
Detected EM2880 device
===============================
Empia28xx::start
Empia28xx::start(IOUSBInterface) <1> failed
Empia28xx::free |
|
|
2006-08-30:
started the macosx driver module, so far it's possible to compile and load the Empia28xx specific code with the rest of the OSX dvb project, though many functions are dummies at the moment..
| IOUSBInterface: family specific matching fails
IOUSBInterface: family specific matching fails
IOUSBInterface: family specific matching fails
IOUSBInterface: family specific matching fails
Empia28xx::init
Empia28xx::probe(IOUSBInterface)
Empia28xx::probe
Empia28xx::start(IOUSBInterface) <1>
Empia28xx::start
Empia28xx::start(IOUSBInterface) <1> failed
Empia28xx::free |
|
|
Di Jun 6 03:46:45 CEST 2006
| How to Build iTele from Source with XCode:
1 -- Checkout the DVB source:
Open a terminal
move to your home directory:
'cd ~'
Login to the CVS
'cvs -d :pserver:anonymous@defyne.org:/home/sites/site70/users/defyne/cvs/Repository login'
(press return when prompted for a password)
Checkout DVB
'cvs -d :pserver:anonymous@defyne.org:/home/sites/site70/users/defyne/cvs/Repository co DVB'
2 -- Get & Make ffmpeg:
Download the proper version: (http://www.defyne.org/dvb/lavc.tbz) and move the archive to your home directory.
Uncompress the ffmpeg source
'mkdir ~/ffmpeg'
'cd ~/ffmpeg'
'tar jxvf ../lavc.tbz'
Make libavcodec
'cd ~/ffmpeg/libavcodec'
'make'
3 -- Build iTele
Make a softlink to the plist
'cd ~/DVB/iTele'
'ln -s xcode_res/Info.plist'
Open ~/DVB/iTele/iTele.xcode
press 'build'
4 -- Clean up
You can now remove the archive in your home dir |
|
|
The system gcc is set to 4.0 at the beginning
Binary installation of the fink package tool, and xcode went fine.
though ffmpeg doesn't seem to work from that website looks like some libformat headers are missing, ffmpeg.mplayerhq.hu compiles fine and it contains everything that's needed
of course that xcode stuff doesn't compile like it's mentioned there
I use Mac OS X 10.4.6 compiled with a gcc version which is only known to god (even uname doesn't display it..)
So I'll try my luck with gcc 4.0.1, I switched the xcode project to the Mac OS X 10.4.6 target platform with Project->Edit Project Settings
There I set "Cross-Develop Using Target SDK" to Mac OS X 10.4 (Universal)/changed the directory below to the MacOSX10?.4u.sdk directory in /Developer/SDKs?/
In the build tab there's a setting "Mac OS X Deployment Target" I also set it to Mac OS X 10.4 .. maybe this switches the used gcc behind it? let's see
After copying the /usr/local/lib files to /Developer/SDKs/Mac?-10.4u/usr/lib/ it goes on compiling, but fails with undefined symbols.
| _ac3_decoder
_avcodec_thread_free |
|
|
Next step, I switched the system gcc to 3.3 since the project is also compiled with that version.
The configure line looks like "./configure --enaable-gpl --enable-a52 --enable-pthreads --enable-shared"
| make
make clean
make install
cp -r /usr/local/lib/* /Developer/SDKs/MacOSX10.4u.sdk/usr/lib |
|
|
did it then, now iTele compiles :)
Links:
StartSeite | MarkusRechberger/ | Neues | TestSeite | ForumSeite | Teilnehmer | Kategorien | Index | Hilfe | Einstellungen | Ändern
Text dieser Seite ändern (zuletzt geändert: 30. August 2006 23:47 (diff))