Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Building MMSuite from Source Code - make hinstall (Step 4): (22 Items)
   
Building MMSuite from Source Code - make hinstall (Step 4)  
Hi,

I'm trying to build the MM Suite from the source code on Windows Vista based on: 
http://community.qnx.com/sf/wiki/do/viewPage/projects.multimedia/wiki/SourceGuide

I'd skipped the "Dependencies" part as the page to scversion update package does not exist.

However, when I get to Step 4 #make hinstall, it comes up with:

C:\FYP\multimedia\trunk>make hinstall
Makefile:4: recurse.mk: No such file or directory
make: *** No rule to make target `recurse.mk'.  Stop.

Any ideas on what went wrong here?

Thanks.
Attachment: Image Screenshot.jpg 39.46 KB
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
On Fri, 5 Mar 2010, Seraph Varghese wrote:

> Hi,
>
> I'm trying to build the MM Suite from the source code on Windows Vista based on:
> http://community.qnx.com/sf/wiki/do/viewPage/projects.multimedia/wiki/SourceGuide
>
> I'd skipped the "Dependencies" part as the page to scversion update package does not exist.
>
> However, when I get to Step 4 #make hinstall, it comes up with:
>
> C:\FYP\multimedia\trunk>make hinstall
> Makefile:4: recurse.mk: No such file or directory
> make: *** No rule to make target `recurse.mk'.  Stop.

Its sounds like your tools are not installed correctly. From the same shell 
promt can you do the following:

$ ls $QNX_TARGET/usr/include/mk
ab.mk              linux_x86.mk       nto_mips.mk        os_linux.mk        qconf-linux.mk     qmacros.mk         
recurse.mk
build-cfg*         makepriv-nt.bat    nto_ppc.mk         os_nto.mk          qconf-nto.mk       qmake-cfg.mk
buildlist.mk       makepriv-qnx*      nto_sh.mk          os_win32.mk        qconf-win32.mk     qphabtarg.mk
flist-unix*        makepriv-unix*     nto_x86.mk         phapps.mk          qdepfile.mk        qrules.mk
flist-win32*       nto_arm.mk         ntoxdev.mk         prod_utils.mk      qlevel.mk          qtargets.mk

After an install on windows you might have to reboot to get the 
env var setup correctly. At the command prompt you can enter

`set`

and see if the QNX_* vars are set properly. If not something went wrong
when you installed the development suite.

Peter

>
> Any ideas on what went wrong here?
>
> Thanks.
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
Hi Peter,

Thanks. A system reboot solved the probem for Step 4 $ make hinstall

However, it's giving me errors for the final step - building the binaries.
$make install
...
...
make[5]: *** [exif-entry.o] Error 1
make[5]: Leaving directory `C:/FYP/multimedia/trunk/lib/exif/nto/a/arm-le'
make[4]: *** [install] Error 2
make[4]: Leaving directory `C:/FYP/multimedia/trunk/lib/exif/nto/a'
make[3]: *** [install] Error 2
make[3]: Leaving directory `C:/FYP/multimedia/trunk/lib/exif/nto'
make[2]: *** [install] Error 2
make[2]: Leaving directory `C:/FYP/multimedia/trunk/lib/exif'
make[1]: *** [install] Error 2
make[1]: Leaving directory `C:/FYP/multimedia/trunk/lib'
make: *** [install] Error 2

Attached is a screenshot of the command line output.

Any help would be greatly appreciated.

Thanks.
Attachment: Image Screenshot.jpg 123.05 KB
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
On Fri, 5 Mar 2010, Seraph Varghese wrote:

> Hi Peter,
>
> Thanks. A system reboot solved the probem for Step 4 $ make hinstall
>
> However, it's giving me errors for the final step - building the binaries.
> $make install
> ...
> ...
> make[5]: *** [exif-entry.o] Error 1
> make[5]: Leaving directory `C:/FYP/multimedia/trunk/lib/exif/nto/a/arm-le'
> make[4]: *** [install] Error 2
> make[4]: Leaving directory `C:/FYP/multimedia/trunk/lib/exif/nto/a'
> make[3]: *** [install] Error 2
> make[3]: Leaving directory `C:/FYP/multimedia/trunk/lib/exif/nto'
> make[2]: *** [install] Error 2
> make[2]: Leaving directory `C:/FYP/multimedia/trunk/lib/exif'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `C:/FYP/multimedia/trunk/lib'
> make: *** [install] Error 2

You kind of truncated off some stuff in this and the image. Possibly its a host
based error. I get a warning for the same line, but not an error:

src/foundry/multimedia/lib/exif/exif-entry.c: In function 'exif_entry_get_value':
src/foundry/multimedia/lib/exif/exif-entry.c:591: warning: statement with no effect

Can you attach the entire compile log for lib/exif (shouldn't be too large since
you're failing in the first variant)

Peter

>
> Attached is a screenshot of the command line output.
>
> Any help would be greatly appreciated.
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
Hi Peter

I have attached the screen shot as you suggested.

Regards,
Seraph
Attachment: Image screen.jpg 100.9 KB
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
The libexif component won't build on a Windows host without a slight modification. If you look at the error, you can 
figure out which line has a problem and make a change in your local build.

Alternatively, you can choose to not build libexif and also not the exif MDP in the mme tree. Create files called 
'Makefile.dnm' in the modules you don't want and a make call above them will not try to build them.

(I can't show you the exact fix since I don't use a Windows host, but I believe there may have been postings about this 
somewhere else already.)
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
Hi

I tried building it on ONX 6.4.1 since Windows was giving errors. The last step gave errors again here. These are 
different from the ones on Windows. I have attached a screen shot displaying the errors. What can I do to fix these?

Thanks,
Seraph
Attachment: Image screen.jpg 216.36 KB
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
Hi,

Please do a make hinstall and make install of the component present in the
trunk/services/sapi_dvdplayer. For sapi_dvdplayer, you should have installed lib/mmedia. 
Once you are successful in the above component, you should be able to build the
io-media/graph/sapi_discplayer.

Hope it helps.

Regards,
Lakshmi
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
services/sapi_dvdplayer isn¹t available on foundry.  I recommend just
deleting that part of io-media so that it doesn¹t build.




On 10-03-10 12:39 AM, "Lakshmi Teeka" <community-noreply@qnx.com> wrote:

> Hi,
> 
> Please do a make hinstall and make install of the component present in the
> trunk/services/sapi_dvdplayer. For sapi_dvdplayer, you should have installed
> lib/mmedia.
> Once you are successful in the above component, you should be able to build
> the
> io-media/graph/sapi_discplayer.
> 
> Hope it helps.
> 
> Regards,
> Lakshmi
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post49141
> 
> 

-- 
Dan Cardamore   <dcardamore@qnx.com>
QNX Multimedia  http://community.qnx.com/sf/projects/multimedia

Re: Building MMSuite from Source Code - make hinstall (Step 4)  
Or you can just put a Makefile.dnm in 
services/io-media/graph/sapi_discplayer.

But then you'll also need to remove graph/sapi_discplayer from the 
MODULES list in services/io-media/target/generic/config.mk

Dan Cardamore wrote:
> services/sapi_dvdplayer isn¹t available on foundry.  I recommend just
> deleting that part of io-media so that it doesn¹t build.
> 
> 
> 
> 
> On 10-03-10 12:39 AM, "Lakshmi Teeka" <community-noreply@qnx.com> wrote:
> 
> 
>>Hi,
>>
>>Please do a make hinstall and make install of the component present in the
>>trunk/services/sapi_dvdplayer. For sapi_dvdplayer, you should have installed
>>lib/mmedia.
>>Once you are successful in the above component, you should be able to build
>>the
>>io-media/graph/sapi_discplayer.
>>
>>Hope it helps.
>>
>>Regards,
>>Lakshmi
>>
>>
>>
>>_______________________________________________
>>
>>General
>>http://community.qnx.com/sf/go/post49141
>>
>>
> 
> 
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
Thanks Lakshmi, Dan and Wojtek!!

Well, I tried to add the Makefile in the directory and remove the entry from the Modules List which gave me even more 
errors.

Then, I tried Dan's suggestion and deleted the directories with the errors. 

The ones that I deleted are: trunk/services/sapi_dvdplayer
and   /trunk/services/io-media/target/generic.

I gave the make install command again and it was error free this time.

Could you please suggest me on how to run it and whether it would be installed correctly since a lot of the commands 
mentioned in the quick start guide for the MME do not seem to be working for me. E.g: when I try io-media-generic -M mmf
,dlldir=$QNX_TARGET/x86/lib/dll/mmedia...it says io-media: no such file or directory

Regards,
Seraph 
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
On Thu, 11 Mar 2010, Seraph Varghese wrote:

> Thanks Lakshmi, Dan and Wojtek!!
>
> Well, I tried to add the Makefile in the directory and remove the entry from
> the Modules List which gave me even more errors.
>
> Then, I tried Dan's suggestion and deleted the directories with the errors.
>
> The ones that I deleted are: trunk/services/sapi_dvdplayer
> and   /trunk/services/io-media/target/generic.
>
> I gave the make install command again and it was error free this time.
>
> Could you please suggest me on how to run it and whether it would be
> installed correctly since a lot of the commands mentioned in the quick start
> guide for the MME do not seem to be working for me. E.g: when I try
> io-media-generic -M mmf,dlldir=$QNX_TARGET/x86/lib/dll/mmedia...it says
> io-media: no such file or directory

You don't have io-media-generic cause you have removed the directory 
(services/io-media/target/generic) above that builds it.

You need to leave that in place and apply the changes that Wojtek proposed.

I took the foundry source and stepped into the same errors that you did
and then past them by the suggestions given:


/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer/discplayer.c:2708: error: 
'MARGI_ERR_MEDIA_AUDIO_STREAM_NOEXI
ST' undeclared (first use in this function)
/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer/discplayer.c:2709: error: 
'MARGI_ERR_NOMEDIA' undeclared (fir
st use in this function)
/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer/discplayer.c:2710: error: 
'MARGI_ERR_MEDIA_STREAM_CORRUPTION'
  undeclared (first use in this function)
/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer/discplayer.c:2711: error: 
'MARGI_ERR_MEDIA_INCOMPATIBLE_FORMA
T' undeclared (first use in this function)
/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer/discplayer.c:2712: error: 
'MARGI_ERR_NAVIGATE' undeclared (fi
rst use in this function)
/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer/discplayer.c:2713: error: 'MARGI_ERR_ACCESS'
 undeclared (firs
t use in this function)
/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer/discplayer.c:2714: error: 
'MARGI_ERR_SERIOUS_READ_ERROR' unde
clared (first use in this function)
/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer/discplayer.c:2715: error: 
'MARGI_ERR_MEDIA_READ_ERROR' undecl
ared (first use in this function)
/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer/discplayer.c: In function 
'discplayer_checkmediastatus':
/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer/discplayer.c:2863: warning: too many 
arguments for format
cc: /usr/qnx641/host/qnx6/x86/usr/lib/gcc/i386-pc-nto-qnx6.4.0/4.3.3/cc1 error 1
make[6]: *** [discplayer.o] Error 1
make[6]: Leaving directory `/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer/a/x86'
make[5]: *** [install] Error 2
make[5]: Leaving directory `/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer/a'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/home/peterm/src/foundry/multimedia/services/io-media/graph/sapi_discplayer'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/peterm/src/foundry/multimedia/services/io-media/graph'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/home/peterm/src/foundry/multimedia/services/io-media'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/peterm/src/foundry/multimedia/services'

-> touch services/io-media/graph/sapi_discplayer/Makefile.dnm

start building again...

/usr/qnx641/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses  -O  -DNDEBUG   -I....
View Full Message
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
Hi Peter,

Thanks a lot for the detailed explanation. That was great help. I've finished building it successfully.

However, I'm having trouble trying to figure out how to run it.

I've looked through the QuickStart Guide in the introduction to MME. Quite a few of the commands in it did not work. 

Could you please help me out with that

Kind Regards,
Seraph

Re: Building MMSuite from Source Code - make hinstall (Step 4)  
On Fri, 12 Mar 2010, Seraph Varghese wrote:

> Hi Peter,
>
> Thanks a lot for the detailed explanation. That was great help. I've finished
> building it successfully.
>
> However, I'm having trouble trying to figure out how to run it.
>
> I've looked through the QuickStart Guide in the introduction to MME. Quite a
> few of the commands in it did not work.
>
> Could you please help me out with that

This is easier if you list the problem(s) that you had at any of the
steps in the quick start guide:

i[Also its useful to confirm that the required services are running and
working (io-audio) first and if not troubleshoot those.]


    1. Requirements
    2. Uninstall the Multimedia Suite (upgrades only)
    3. Install the runtime files
    4. Copy the SQL schema files
    5. Start io-audio
    6. Start the temporary filesystem
    7. Start the QNX database (qdb)
    8. Start mcd
    9. Start io-media
   10. Give the MME some media to play
   11. Start mme
   12. Check the synchronization
   13. Play some music

Please let me know what sort of errors you're encountering on each step.


One thing that you could do to see if you can find all the binaries that you
just built is:

which -laf qdb
which -laf io-media-generic
which -laf io-fs-media
which -laf mme-generic

If this reports no such binary then the install didn't put things into a 
searchable path for you (echo $PATH to see what is acceptable)

Thanks,

Peter
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
Hi Peter

I will list you all the errors I encounter. Do I need to install the runtime files as well? I was thinking that since I 
have built the suite from the source code I would not need to do that

Regards,
Seraph
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
On Fri, 12 Mar 2010, Seraph Varghese wrote:
> Hi Peter
>
> I will list you all the errors I encounter. Do I need to install the runtime
> files as well? I was thinking that since I have built the suite from the
> source code I would not need to do that

To run them, the products of your build (binaries and libraries) will need to 
be available in either your PATH or LD_LIBRARY_PATH for the user on your
system trying to execute them.

You shouldn't need to install the posted runtime archives since you're building
it all.

Peter
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
Hi Peter

So, in this case, we only start from Step 4 in the Quick Start Guide right?

Say if the build root is in a folder called FYP in root, should I execute the following statement before step 4:

PATH=/root/FYP/trunk

Regards,
Seraph
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
On Mon, 15 Mar 2010, Seraph Varghese wrote:

>To: general-multimedia <post49506@community.qnx.com>
>Subject: Re: Building MMSuite from Source Code - make hinstall (Step 4)
>
> Hi Peter
>
> So, in this case, we only start from Step 4 in the Quick Start Guide right?
>
> Say if the build root is in a folder called FYP in root, should I execute the
> following statement before step 4:
>
> PATH=/root/FYP/trunk

Take a look in the Neutrino Operating System Docs
-> User Guide
 	-> Configuring your Env
 		-> Environment Var

Any location that binaries/libraries were built to during your compilation will
need to be explictly added to you PATH/LD_LIBRARY_PATH

Thanks,

Peter
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
Hi Peter

Thanks for that. It worked. I have followed all the steps in the Quick Start Guide and everything is working fine except
 for the very last step, which is giving me an error.

I have a wav file in /media/drive. In the last step, the first two parts work fine, it creates a new track session. 
However, when I type in mmecli play, it shows (rc:-1, errno:11): Playing from tracksession fid/bid=0.

I tried this in the mmecli interface as well, where it says PLAY_ERROR(not specified error fid/trksessionid: 2, offset:
0)

I have attached a screen shot as well.

Would you know what the fault could be?

Regards,
Seraph
Attachment: Image sc.jpg 92.6 KB
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
On Fri, 19 Mar 2010, Seraph Varghese wrote:

>
> Hi Peter
>
> Thanks for that. It worked. I have followed all the steps in the Quick Start
> Guide and everything is working fine except for the very last step, which is
> giving me an error.
>
> I have a wav file in /media/drive. In the last step, the first two parts work
> fine, it creates a new track session. However, when I type in mmecli play, it
> shows (rc:-1, errno:11): Playing from tracksession fid/bid=0.
>
> I tried this in the mmecli interface as well, where it says PLAY_ERROR(not
> specified error fid/trksessionid: 2, offset:0)
>
> I have attached a screen shot as well.
>
> Would you know what the fault could be?

Using the wave utility you were able to playback a simple wav file to show that
the audio driver was working on the machine?

The troubleshooting section of the quick start guide outlines how to start things
with more debugging info enabled. Restart the noted processes and then collect
the output of sloginfo on the target.

Peter
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
In  the Quick Start Guide, it is mentioned that there is a sample application called mme-player-simple. I tried to 
follow the steps and locate it in the build, but could not do so

I even downloaded and unizpped the patch-630SP2-0315 and could not locate it. It only contains the mme-shuffle, but not 
the mme-player-simple and mme-player-multisource

Could you please help me out with that

Regards,
Seraph
Re: Building MMSuite from Source Code - make hinstall (Step 4)  
On Thu, 25 Mar 2010, Seraph Varghese wrote:

>Subject: Re: Building MMSuite from Source Code - make hinstall (Step 4)
>
> In  the Quick Start Guide, it is mentioned that there is a sample application
> called mme-player-simple. I tried to follow the steps and locate it in the
> build, but could not do so
>
> I even downloaded and unizpped the patch-630SP2-0315 and could not locate it.
> It only contains the mme-shuffle, but not the mme-player-simple and
> mme-player-multisource
>
> Could you please help me out with that

I think that you're refering to the avaiage 1.1 version of the quick start guide. This 
application was removed from the 1.2 version since we removed the sample application.

You should use the documentation that matches the version of the software that you're
using.

The current section should look like this:

Sample applications and command-line utilities

You can use the following command line utilities to explore the MME's capabilities:

     * mmebrowse  browse a mediastore
     * mmecli  issue commands corresponding to MME API calls
     * mmexplore  the MME explorer interface command line client
     * mmplexplore  the playlist explorer interface command line client


Peter