Re: hxclientkit question
Tran Hoang Thanh <[email protected]>
| Newsgroups | gmane.comp.multimedia.helix.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Daniel, 1. I successfully compiled and run the "main.cpp" in test folder with ogg file. In fact, a new windows appeared but I could not hear the sound, may it be the problem with sound driver? By the way, thanks a lot for your help 2. I tested to compile "main.cpp" with eclipse since my job is to integrate helix DNA into another existing multimedia project. I was not quite sure about which directories I should include, so I just included ../player/hxclientkit/pub and player/hxclientkit/dbg/libhxclient.a. Then, I got the following error Description Resource Path Location Type make: *** [HelixTest] Error 1 HelixTest 0 C/C++ Problem undefined reference to `ClientPlayerClose' main.cpp HelixTest 295 C/C++ Problem undefined reference to `ClientPlayerCreate' main.cpp HelixTest 251 C/C++ Problem undefined reference to `ClientPlayerOpenURL' main.cpp HelixTest 253 C/C++ Problem undefined reference to `ClientPlayerPlay' main.cpp HelixTest 254 C/C++ Problem Do you have any idea or suggestion? Thanks a lot for your time Best regards, Tran Hoang Thanh --- On Tue, 8/5/08, Daniel Yek <[email protected]> wrote: > From: Daniel Yek <[email protected]> > Subject: Re: [Helix-client-dev] hxclientkit question > To: "Tran Hoang Thanh" <[email protected]> > Cc: [email protected] > Date: Tuesday, August 5, 2008, 4:11 AM > Tran Hoang Thanh wrote: > > Hi Daniel, > > > > Thanks a lot for your instruction, I will test with > ogg files soon (I > > am at home now :)) > > > > I still have other questions: > > > > 1. What is the difference between Helix player and > Helix Client? > > Helix Player is the Top-level GUI project using Helix > client. > Helix Player is a shipping product. > > Helix client is the Helix (client-side) infrastructure, > which is used in > all players based on Helix (such as the player for Symbian, > MID, etc.), > and can be thought of as the splay (Simple PLAYer) command > line program. > > Splay is a test app. used extensively in Helix client core > development. > It is not a shipping product. > > > 2. May you give me instruction to build a simple app > which use > > hxclientkit as API to call Helix DNA client's > library? > > You have been looking at it! The simple app., the > hxclientkit testkit, is: > player/hxclientkit/test/main.cpp > > A more complicated one with GTK+ GUI called gtktest is at: > player/gtk/test/main.cpp > > https://player.helixcommunity.org/2005/dev/overview.html > > > I tested to build the main.cpp (the file was in > "test" folder), but it > > failed with error like "***error". I > included > > > |$HELIX_ROOT/source/player/hxclientkit/dbg/libhxclient.so.1.0|. > as a > > shared library (I used eclipse as IDE) > > We only support building testkit and gtktest using > Ribosome's build.py > or umake.py commands. If you want to use Eclipse to build > them, you can > figure out the libraries necessary by examining the > Makefile generated > by umake.py. It shouldn't be difficult. > > > -- > Daniel Yek. > > > > but there was still error. So, do I need to include > other libraries in > > compilation process? > > Thanks a lot for your time and help so far > > > > > > Best regards, > > > > Tran Hoang Thanh > > > > > > --- On *Mon, 8/4/08, Daniel Yek > /<[email protected]>/* wrote: > > From: Daniel Yek <[email protected]> > > Subject: Re: [Helix-client-dev] hxclientkit question > > To: "Tran Hoang Thanh" > <[email protected]> > > Cc: [email protected] > > Date: Monday, August 4, 2008, 11:11 PM > > > > Tran Hoang Thanh wrote: > > > <snip> > > > I tested with your suggestion, but I have the > following error: > > > > > > > mobile-odh-root@LinuxPC3:~/HelixDNA/helix/player/hxclientkit/test$ > > > > HX_DEBUGLEVEL=2 > HELIX_LIBS=/usr/local/helix/HelixPlayer dbg/testkit > > > > > > file:///home/mobile-odh-root/Thanh/C++/Streaming/1.mp3 > > > > Hi Tran, > > > > Helix Player (the specific player product!) only > supports Open Source > > (GPL-licensed) codecs. MP3 is patent-incumbered and > thus cannot be > > supported as part of its GPL-licensed codecs. > > > > Try OGG clips, or either use RealPlayer or Helix > client (which isn't > > shipped as a product; as opposed to Helix Player); > both of these > > supports MP3. > > > > -- > > Daniel Yek. > > > > > > > > > HX_ASSERT failed: (m_pIPrefs)... File > plghand2.cpp, Line 6259 > > > OnVolumeChanged > > > HX_ASSERT failed: (m_pPreferences)... File > hxflsrc.cpp, Line 351 > > > OnContentStateChanged > > > OnTitleChanged > > > HX_ASSERT failed: (m_pPreferences)... File > hxflsrc.cpp, Line 351 > > > OnGroupsChanged > > > OnErrorOccurred > > > > > > Do you have any idea for this? Thanks in advance. > > > > > > > > > Best regards, > > > > > > Tran Hoang > > Thanh > > > > > > > > > > > > --- On Sat, 8/2/08, Daniel Yek > <[email protected]> wrote: > > > > > >> From: Daniel Yek <[email protected]> > > >> Subject: Re: [Helix-client-dev] hxclientkit > question > > >> To: "Tran Hoang Thanh" > <[email protected]> > > >> Cc: [email protected] > > >> Date: Saturday, August 2, 2008, 2:30 AM > > >> Tran Hoang Thanh wrote: > > >> > > >>> I successfully built hxclientkit with > your > > >>> > > >> instruction. I also tested with > "test" folder. I > > >> also followed with "python > > >> > > >> > /home/mobile-odh-root/HelixDNA/build/bin/umake.py" to > > >> create makefile in "test" folder. > > >> > > >>> The messages were as follows: > > >>> > > >>> > > >>> > > >> > mobile-odh-root@LinuxPC3:~/HelixDNA/helix/player/hxclientkit/test$ > > >> sudo > > python > > >> > /home/mobile-odh-root/HelixDNA/build/bin/umake.py > > >> > > >>> <snip> > > >>> > > >>> > > >>> g++ -o dbg/testkit dbg/obj/main.o > dbg/testkit_libs.a > > >>> > > >> -L/usr/X11R6/lib -lX11 -lpthread -ldl > > >> > > >>> rm "dbg/testkit_libs.a" > > >>> > > >>> Am I right when assuming that there was > no error? > > >>> > > >>> However, when I tested > "testkit" in > > >>> > > >> "dbg" folder I got error as > follows: > > >> > > >>> > > >> > mobile-odh-root@LinuxPC3:~/HelixDNA/helix/player/hxclientkit/test$ > > >> HELIX_LIBS=/usr/local/helix/HelixPlayer > dbg/testkit > > >> > file:///home/mobile-odh-root/Thanh/C++/Streaming/1.mp3 > > >> > > >>> HX_ASSERT failed: (m_pIPrefs)... File > plghand2.cpp, > > >>> > > >> Line > > 6259 > > >> > > >>> Aborted (core dumped) > > >>> > > >>> > > >> That is a debug assertion about Preferences > that can be > > >> ignored. > > >> > > >> Try this: > > >> $ HX_DEBUGLEVEL=2 > HELIX_LIBS=/usr/local/helix/HelixPlayer > > >> dbg/testkit > > >> > file:///home/mobile-odh-root/Thanh/C++/Streaming/1.mp3 > > >> > > >> Setting debug level to 2 causes the assert to > print out the > > >> same error > > >> message and then ignore it. > > >> > > >> -- > > >> Daniel Yek. > > >> > > >> > > >> > > >>> For your information, I do not have > RealPlayer, I only > > >>> > > >> installed HelixPlayer in > > >> "/usr/local/helix/HelixPlayer". In > this folder, I > > >> saw: "Bin", "codecs", > > >> "common", "doc", > "mozilla", > > >> "plugins", "postinst", > "share" > > >> folders and > > hxplay, hxplay.bin, install.log, license, readme > > >> files. > > >> > > >>> Thanks a lot for your time and support so > far. > > >>> > > >>> > > >>> Best regards, > > >>> > > >>> Tran Hoang Thanh > > >>> _______________________________________________ Helix-client-dev mailing list [email protected] http://lists.helixcommunity.org/mailman/listinfo/helix-client-dev