Dear DAVID Community,

As you are probably aware, the entire DAVID company, team and product range has been integrated into HP Inc.
This forum is now read-only. Relevant content has been migrated to HP and merged into HP's Support Forums on November 1, 2016.

To start new discussions for 3D Scanning, please register and post your new topic at the HP Support Forums

How to use 'Low Level Interface' API

Discussions about latest DAVID developments, beta versions...

How to use 'Low Level Interface' API

Postby cylee » Tue Jun 14, 2016 5:54 am

Hi,

I tried to modify the example code of SDK to use low level interface. However, all the functions of d3lib.h report error (LNK2019).



* Error Message :

Error 1 error LNK2019: unresolved external symbol __imp__d4lib_init referenced in function "void __cdecl examples::main_SimpleTest(void)" (?main_SimpleTest@examples@@YAXXZ) D:\DAVID_SDK_1.8.7\davidSDK_Examples\workspace vc11\SimpleTest.obj Examples




* Source Code:

#include "davidSDK/david.h"
#include "davidSDK/d4lib.h"

namespace examples {

void main_SimpleTest()
{
try
{
david::Client david;
david.Connect();

int result = d4lib_init(nullptr); //<= error code
}
catch (david::Exception& e)
{
e.PrintError();
}
}

}


Is there anyone who solve the problem?
cylee
 
Posts: 5
Joined: Mon Apr 20, 2015 8:23 am

Re: How to use 'Low Level Interface' API

Postby Sven » Tue Jun 14, 2016 3:18 pm

Hi,

Are you linking the d4lib?
Please try to add
Code: Select all
         #pragma comment(lib, "../../d4lib/d4lib_x64.lib")

(path may need to be different on your system)

Also you must define DAVID_SDK_USE_D4LIB in your project (best to do this in project properties -> C/C++ -> Preprocessor)

Sven
User avatar
Sven
DAVID Developer
 
Posts: 1541
Joined: Mon Jan 22, 2007 8:59 am
Location: Braunschweig, Germany

Re: How to use 'Low Level Interface' API

Postby cylee » Wed Jun 15, 2016 1:46 am

Sven wrote:Hi,

Are you linking the d4lib?
Please try to add
Code: Select all
         #pragma comment(lib, "../../d4lib/d4lib_x64.lib")

(path may need to be different on your system)

Also you must define DAVID_SDK_USE_D4LIB in your project (best to do this in project properties -> C/C++ -> Preprocessor)

Sven


Thank you for reply.

I tried to add d4lib_x64.lib but couldn't find that.

Base on the SDK_1.8.7 example code, there is only 'davidSDK_ClientServer.lib' after build.

How can I create that lib file?
cylee
 
Posts: 5
Joined: Mon Apr 20, 2015 8:23 am

Re: How to use 'Low Level Interface' API

Postby Sven » Tue Jun 21, 2016 8:22 am

Hi,
As discussed by e-mail: The file was missing on your USB key. I sent it to you you by e-mail a few days ago. Did you try it?
Sven
User avatar
Sven
DAVID Developer
 
Posts: 1541
Joined: Mon Jan 22, 2007 8:59 am
Location: Braunschweig, Germany


Return to DAVID Development

Who is online

Users browsing this forum: No registered users and 1 guest