HOT compilation attempt.

   7655   5   2
User Avatar
Member
383 posts
Joined:
Offline
hello,

I would like to try to compil the HOT source provided by Christian Schnellhammer. I think it could be a good test.

I finally installed VS2008 and tried to compil the star.C source … with success.
Now, as I said in the odforce forum :
http://forums.odforce.net/index.php?/topic/14987-hot-for-h12/page__st__60 [forums.odforce.net]

The hcustom.exe give me an error when i try to compil any of the *.C file provide by Christian.
c:\hocean_hot_h12_src\src\Ocean.h(67) : fatal error C1083: Cannot open include file: ‘fftw3.h’: No such file or directory

I am not a coder so … any explaination is welcome.
I am a bit naive : decided to download the missing include file but the result is another error.

Anyhelp is welcome

++
Vincent
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
383 posts
Joined: June 2010
Offline
You have to set your include path to the fast fourier lib.
This can be done in the project settings of the project in your solution which yields this error ..
www.woogieworks.at
User Avatar
Member
383 posts
Joined:
Offline
hmm not sure to entirely understand what you just write …
Anyway,
I managed to read inside the soure file and download the fftw.3.h and others missing headers and add it to the project folder.
Is that good ?

Now I am stuck because of aone header : blitz/array.h

The site http://www.oonumerics.org/blitz/ [oonumerics.org] looks down.
And I don't where to get it now …
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
383 posts
Joined: June 2010
Offline
vbk!!!
hmm not sure to entirely understand what you just write …
Anyway,
I managed to read inside the soure file and download the fftw.3.h and others missing headers and add it to the project folder.
Is that good ?

Now I am stuck because of aone header : blitz/array.h

The site http://www.oonumerics.org/blitz/ [oonumerics.org] looks down.
And I don't where to get it now …
Well you will need more than just the header files ..
you need the header files and the lib files and you need to set the include and the lib path in the projects in the visual studio solution you are using… but I guess if you got rid of the error message you did something like that …
www.woogieworks.at
User Avatar
Member
383 posts
Joined: June 2010
Offline
http://downloads.sourceforge.net/project/blitz/blitz/Blitz%2B%2B%200.10/blitz-0.10.tar.gz [downloads.sourceforge.net]

From sourceforge you should be able to download the lib without problems.

good luck
www.woogieworks.at
User Avatar
Member
383 posts
Joined:
Offline
Thanks for the link Dulo and your info.
I just read the tutorial of Coen Klosters and watched the video tutorial of Milan Suk :

http://www.apileofgrains.nl/category/tutorials/ [apileofgrains.nl]
http://vimeo.com/17195536 [vimeo.com]

I have setup the visual studio to compil for houdini 12.5.
I took the HOT source from here [code.google.com]

And after some effort, I finally compiled the SOP_Ocean for Houdini 12.5 and it works …
So my question is about the VEX_Ocean. I am unable to compil it.
When I try I have this :


Linking…
Creating library D_Houdini/houdini12.5/dso/HotOcean.lib and object D_Houdini/houdini12.5/dso/HotOcean.exp
VEX_Ocean.obj : error LNK2001: unresolved external symbol “public: float __cdecl drw::Ocean::get_height_normalize_factor(void)” (?get_height_normalize_factor@Ocean@drw@@QEAAMXZ)
VEX_Ocean.obj : error LNK2001: unresolved external symbol “public: void __cdecl drw::Ocean::update(float,class drw::OceanContext &,bool,bool,bool,bool,float,float,bool)” (?update@Ocean@drw@@QEAAXMAEAVOceanContext@2@_N111MM1@Z)
VEX_Ocean.obj : error LNK2001: unresolved external symbol “public: class drw::OceanContext * __cdecl drw::Ocean::new_context(bool,bool,bool,bool)” (?new_context@Ocean@drw@@QEAAPEAVOceanContext@2@_N000@Z)
VEX_Ocean.obj : error LNK2001: unresolved external symbol “public: __cdecl drw::Ocean::Ocean(int,int,float,float,float,float,float,float,float,float,float,float,int)” (??0Ocean@drw@@QEAA@HHMMMMMMMMMMH@Z)
VEX_Ocean.obj : error LNK2001: unresolved external symbol “public: void __cdecl drw::OceanContext::eval_ij(int,int,struct drw::EvalData &)” (?eval_ij@OceanContext@drw@@QEAAXHHAEAUEvalData@2@@Z)
VEX_Ocean.obj : error LNK2001: unresolved external symbol “public: void __cdecl drw::OceanContext::eval2_xz(float,float,struct drw::EvalData &)” (?eval2_xz@OceanContext@drw@@QEAAXMMAEAUEvalData@2@@Z)
VEX_Ocean.obj : error LNK2001: unresolved external symbol “public: __cdecl drw::OceanContext::~OceanContext(void)” (??1OceanContext@drw@@QEAA@XZ)
D_Houdini/houdini12.5/dso/HotOcean.dll : fatal error LNK1120: 7 unresolved externals

I have no idea of what happen …

Next question :
I remember that the HOT plugin is one OTL and one DLL.
To use my Ocean SOP I need to add the libfftw3f-3.dll in th dso.
How can I avoid the use of this dll ?

Last question :
Is there a way to compil the VEX_Ocean and the SOP_Ocean in one DLL ?

Thanks for your help

Vincent
http://vimeo.com/vbkstudio [vimeo.com]
  • Quick Links