Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds


Browsing this Thread:   1 Anonymous Users






Fail to build
#1
Just popping in
Just popping in


See User information
I am following the tutorial about sending a constant 1N force in the HAPI Manual and I faced problem when I want to build the it:

LNK 2019 and LNK 2001

I am using visual studio 2010 and HAPI 1.1.1

It should be me linking the wrong library or whatsover, but what I did is just creating a property sheet specifying "C:\HAPI\HAPI\include; C:\HAPI\H3DUtil\include; C:\HAPI\External\include\pthread" to find all the header files needed.

Did I forget to link any critical files? Or the way of my linking is wrong?

Thanks

Posted on: 2016/9/8 13:44
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Fail to build
#2
Just popping in
Just popping in


See User information
So I tried to link pthreadVC2.dll to the compiler, and I get error that says "invalid or corrupt file: cannot read at 0x2E0"

I added the search path with "C:\HAPI\bin; C:\HAPI\External\bin"

At least it improved in a way...This time only one error, last time got whole bunch of it

I search for the error and some forum says to recreate the file :(

Any suggestion for what I can do?

Thanks

Posted on: 2016/9/13 12:37
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Fail to build
#3
Webmaster
Webmaster


See User information
Don't link against Dlls,
Link against libs.
There might be a whole bunch to link against. If you use CMake and the FindHAPI.cmake module you should get everything you need.
If not then HAPI_vc10.lib (32 or 64 bit, whichever fits your chosen configuration)
and then some of the libraries in External/lib32 (or lib64, depending on your configuration). Specifically the pthread.lib one.

Posted on: 2016/9/15 7:14
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Fail to build
#4
Just popping in
Just popping in


See User information
Yup I just notice that silly mistake of mine hahahaha

Thanks Markus really.

Well in the end i didn't use cmake, i linked "Chai3DRenderer_vc9.lib; OpenHapticsRenderer_vc9.lib;
H3DUtil_vc9.lib; HAPI_vc9.lib;
pthreadVC2.lib" to visual studio and it worked! :)

Posted on: 2016/9/15 12:00
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]





(C) 2012 SenseGraphics AB    ---    Powered by XOOPS