Roger's woze

November 30, 2011

how to use tdm gcc with msys

Filed under: Uncategorized — rogerdpack @ 7:06 pm

I think install msys using mingw-get

then install tdm “somewhere”

then

edit msys\1.0\etc\fstab

to look like

G:\installs\tdm-46-sljl\   /mingw

And you’re good to go.

 

 

That didn’t work.  (seems to lose access to autoconf, etc.) Latest thought is to install msys/mingw using mingw-get, then just add your tdm bin folder first in your path (msys.bat maybe, at the top?)

Maybe you can edit fstab and add a new mount point

G:\installs\tdm_installs /mingw-tdm

Then if you want a local library configure it like –prefix=/mingw-tdm ?
I’m pretty sure contribs/libraries need to be installed into a subdir of your mingw installation…

dlfcn.h mingw libdvdnav libdvdread

Filed under: Uncategorized — rogerdpack @ 4:02 pm

looks like these have their own

dlfcn.h

and

dlfcn.c

to implement/wrap it, so you shouldn’t need -ldl

libdvdnav compile linker woe

Filed under: Uncategorized — rogerdpack @ 2:29 pm

g:/installs/tdm-46-sljl/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.
exe: cannot find -lpthread

meant “you need to install pthreads lib from http://oss.netfarm.it/mplayer-win32.php into *mingw* dir”

 

note that most of the errors described here could have been avoided by doing

./autogen.sh

for both libdvdnav and libdvdread (helps with mingw, cross compiling).  linux users I believe can user configure2

error: macro names must be identifiers

Filed under: Uncategorized — rogerdpack @ 12:13 pm

meant
use
#if 0

not
#ifdef 0

to “comment out” a block via preprocessor

November 29, 2011

rvm install latest jruby

Filed under: Uncategorized — rogerdpack @ 2:20 pm

$ rvm get latest

$ rvm install jruby

I think

libdvdnav get length of title

Filed under: Uncategorized — rogerdpack @ 1:01 pm

from xbmc:
case DVDNAV_CELL_CHANGE:
{
// Some status information like the current Title and Part numbers do not
// change inside a cell. Therefore this event can be used to query such
// information only when necessary and update the decoding/displaying
// accordingly.

m_iTotalTime = (int) (cell_change_event->pgc_length / 90); // so this is like “base” time for the duration of the current PGC, I think.

dvdnav_time_search versus dvdnav_sector_search (I think one is for “I want sector 256 out of 1284″ the other is for raw time based searching).

mplayer determine configure options

Filed under: Uncategorized — rogerdpack @ 12:56 pm

run
$ mplayer -v fake
it will tell you the configure options used at compile time.

vlc compile configure woe

Filed under: Uncategorized — rogerdpack @ 11:40 am

VLC compilation:
../../../modules/access/bluray.c: In function ‘blurayInitTitles’:
../../../modules/access/bluray.c:230:5: error: too many arguments to function ‘bd_get_titles’
/usr/include/libbluray/bluray.h:175:10: note: declared here
../../../modules/access/bluray.c:238:9: error: too many arguments to function ‘bd_get_title_info’
/usr/include/libbluray/bluray.h:185:20: note: declared here
make[5]: *** [liblibbluray_plugin_la-bluray.lo] Error 1
meant
16:30 < pisto> first build error, I had to disable bluray http://past ebin.com/YudNwA1K

November 26, 2011

macports build a bundle .app binary distributable

Filed under: Uncategorized — rogerdpack @ 8:27 am

http://stackoverflow.com/questions/1596945/building-osx-app-bundle

macports show transitive dependencies

Filed under: Uncategorized — rogerdpack @ 8:15 am

rdeps is what you want

Older Posts »

Powered by WordPress