Page 1 of 1

Compiling an application to use LuxCore API

Posted: Sun Mar 31, 2019 11:59 am
by TAO
I tried to reconfigure project to work with new luxcore API and also the new version of 3dsmax and VS, but they're so many errors.
So, I need some information here, is there any change LIB in the original project, for example, Embree.lib to Embree3 or removing fftw3.lib ?
And where I can find information about this kind of change?
Thank you for your help.
Also, should I ask these questions on this thread or other threads?

Re: LuxCoreRender Project wants you!

Posted: Sun Mar 31, 2019 12:25 pm
by TAO
I replace lib and dependencies as much as I can but I get new external symbol errors like this one, any idea?
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol __imp_oidnSetSharedFilterImage LuxMax \MaxLuxCore\slg-film.lib(intel_oidn.obj) 1
or
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "class luxrays::Properties __cdecl luxrays::operator<<(class luxrays::Property const &,class luxrays::Property const &)" (??6luxrays@@YA?AVProperties@0@AEBVProperty@0@0@Z) MaxLuxCore \MaxLuxCore\MaxLuxCoreMesh.obj 1

Re: Compiling an application to use LuxCore API

Posted: Sun Mar 31, 2019 5:54 pm
by Dade
First step, what procedure are you using to compile LuxCore ? Are you using the one described at https://github.com/LuxCoreRender/WindowsCompile ?

It may be better for you to use the "SDK" version (i.e. LuxCore compile as DLL so there are no dependencies).

Just run the following commands to compile the "SDK" version:

Code: Select all

cd C:\Path\to\luxcorerender\WindowsCompile\
.\cmake-build-x64.bat /dll
create-sdk.bat
To use the "SDK" version in an app, you need only to add "#include <luxcore/luxcore.h>" to you source and to link luxcore.lib, no other dependecy should be required.

Re: Compiling an application to use LuxCore API

Posted: Sun Mar 31, 2019 6:26 pm
by TAO
LuxCore, Luxray, Slg-core, Slg-Film, Slg-Kernel build perfectly with no issue.
Most part off plugins fixed now and i can build it, the only remaining part is the part that needs luxcore.
I think There is something change in dependencies or LIBs maybe.

Re: Compiling an application to use LuxCore API

Posted: Sun Mar 31, 2019 7:56 pm
by Dade
TAO wrote: Sun Mar 31, 2019 6:26 pm LuxCore, Luxray, Slg-core, Slg-Film, Slg-Kernel build perfectly with no issue.
Most part off plugins fixed now and i can build it, the only remaining part is the part that needs luxcore.
I think There is something change in dependencies or LIBs maybe.
But are you using the script ? What error do you get ?

Re: Compiling an application to use LuxCore API

Posted: Sun Mar 31, 2019 8:33 pm
by TAO
I found the issues, now it's working.
It was so many changes since the last update especially in 3dsmax SDK and of course luxcore.
Finally, i manage to fix it so i can compile the code and see what's happening next.