Forums: 

Hi,
I'm new to GraceNote & VC++. Could anyone show me how to compile one of the given samples.
I followed this procedure:

To create new solution and project for a console application:
1. Add main.c and any other sample source files
2. Add the following include paths:
../include
../include/win_x86-32 (only for 32-bit systems)
../include/win_x86-64 (only for 64-bit systems)
3. Add the following library paths:
../lib/win_x86-32 (only for 32-bit systems)
../lib/win_x86-64 (only for 64-bit systems)
4. Set the sample application to link to the Gracenote SDK library files found in the lib directory set in step 3.
5. Set your client ID and client ID tag values in the command line argument setting for the debugger.

But I could never get pass step 4. Probably, because I don't understand what I have to do. It spilled out LNK2019: unresolved external symbol _gnsdk_... (there are 38 of them :>).

Please help! I'm using VS2008, but have VS2010, VS2012, and VS2013RC if that would work better.
Thanks
Tim

Wow, support on this forums isdead, no answer for a year on such a simple question, my question on stackoverflow is not answered too. So we are on our own, but they wont get money too coz they dont help people to try out theirs sdk.

I'll write my own instructions how to run samples on VS 2010 without any cygwin because every instructions i got from gnsdk are not very specific and u must guess a lot, it should be improved so users would have a good impression of sdk, but what do i know...

To create new solution and project for a console application:
1. Add main.c and any other sample source files

This i hope don't make trouble for anyone, just make a new project and add main.c and makefile to source files

2. Add the following include paths:
../include
../include/win_x86-32 (only for 32-bit systems)
../include/win_x86-64 (only for 64-bit systems)

in VS 2010 you  right click on the project > VC++ directories, and then you  add include and library paths mentioned

3. Add the following library paths:
../lib/win_x86-32 (only for 32-bit systems)
../lib/win_x86-64 (only for 64-bit systems)

in VS 2010 you  right click on the project > VC++ directories, and then you  add include and library paths mentioned

4. Set the sample application to link to the Gracenote SDK library files found in the lib directory set in step 3.

Hardest part because i had to guess what author meant by this.

right click on project name > Linker> Command Line> in "Additional options" text field on the bottom, you  write

"gnsdk_dsp.lib" "gnsdk_lookup_local.lib" "gnsdk_moodgrid.lib" "gnsdk_musicid_file.lib" "gnsdk_storage_sqlite.lib" "gnsdk_link.lib" "gnsdk_manager.lib" "gnsdk_musicid.lib" "gnsdk_playlist.lib" 

Those are names of lib files in the directory you  pointed out in step3.

4.5  Well I did what was written here but still i got errors of missing dlls and couldn't compile.

So i just copied every dll file form lib/win_x86-32(in my case) directory (pointed in step3) to the folder containing my project and then the VS saw the dlls and compiled.

But still you   can't run it form VS coz you didnt added your id to your code and until you  learn how to manage user handles.

So u gotta do step 5 just as said below

5. Set your client ID and client ID tag values in the command line argument setting for the debugger.

You want to use VS Command prompt from menu start> MSVS 2010>MSVS 2010 Tools

then you  cd and tab all the way to Debug folder with your new .exe file

then you  write

yourexename.exe <clientID> <clientIDtag> licfile.txt

U should copy licfile.txt to debug folder where .exe is for your convenience = less typing

I hope everyone who start their journey will have quick start(unlike me) with VS they can use and are more familiar with and without cygwin.

If someone from Gracenote ever reads this i'd like to ask You to add this instructions to gnsdk package so newbies could quickly start enjoying possibilities that sdk gives.

I got my information mostly from this link: http://msdn.microsoft.com/en-us/library/ms753736(v=vs.85).aspx

Best Regards,

Artur

Forum Discussions