Posts

Showing posts from March, 2010

CImg with Linux

Image
To build applications using CImg library in Linux, you need to link the pthread and X11 library. Otherwise you'll get a bunch of link errors as follows: ./main.o: In function `cimg_library::CImgDisplay::screen_width()': /usr/include/CImg.h:6659: undefined reference to `XOpenDisplay' /usr/include/CImg.h:6663: undefined reference to `XCloseDisplay' ./main.o: In function `cimg_library::CImgDisplay::screen_height()': /usr/include/CImg.h:6678: undefined reference to `XOpenDisplay' /usr/include/CImg.h:6682: undefined reference to `XCloseDisplay' ./main.o: In function `cimg_library::CImgDisplay::_handle_events(_XEvent const*)': /usr/include/CImg.h:6717: undefined reference to `XUnmapWindow' ... To do this in Eclipse IDE (which automatically generates the makefile for your programming project), from the main menu, go to Project -> Properties . Then follow the screenshot below for the setting.

RTHK Octoshape Streams

NOTE: As at Aug 2015, the octoshape streams of RTHK have been shut down. Please visit  here for the replacement m3u8 streams instead. You need to specify the stream locators if you run the octoshape client separately. (For example, if you run Linux, you can't invoking the program from the RTHK live broadcast pop-up window in the corporate's web main page. You can only type in command line > ./OctoshapeClient - url: [stream_locators] Replace [stream_locators] with the media you want: RTHK Radio 1: rthk.ch1 RTHK Radio 2: rthk.ch2 RTHK Radio 3: rthk.ch3 RTHK Radio 4: rthk.ch4 RTHK Radio 5: rthk.ch5 RTHK PTH: rthk.ch6 RTHK Live TV: rthk.livetv RTHK DAB31: rthk.ch31 RTHK DAB33: rthk.ch33 RTHK DAB35: rthk.ch35 Remark on Mar 25, 2010: In Linux, if you start the octoshape client by the command line > ./OctoshapeClient Then webpages which has octoshape stream available in Flash (e.g. The RTHK Radio Live Player ) will be played properly. P.S. RTHK TV str...