GeometryCollective / boundary-first-flattening

MIT License
768 stars 96 forks source link

Stuck on Compile in Windows #59

Closed thundaBYR closed 1 year ago

thundaBYR commented 4 years ago

I've followed the thread https://github.com/GeometryCollective/boundary-first-flattening/issues/55

And i'm stuck with these errors for commandline and viewer builds (bff.lib builds without issues):

bff.lib(Bff.obj) : error LNK2019: unresolved external symbol cblas_daxpy referenced in function "protected: void cdecl bff::BFF::closeLengths(class bff::DenseMatrix const &,class bff::DenseMatrix const &,class bff::DenseMatrix &)const " (?closeLengths@BFF@bff@@IEBAXAEBVDenseMatrix@2@0AEAV32@@Z) bff.lib(ConePlacement.obj) : error LNK2001: unresolved external symbol cblas_daxpy bff.lib(Bff.obj) : error LNK2019: unresolved external symbol cblas_dscal referenced in function "protected: void cdecl bff::BFF::closeLengths(class bff::DenseMatrix const &,class bff::DenseMatrix const &,class bff::DenseMatrix &)const " (?closeLengths@BFF@bff@@IEBAXAEBVDenseMatrix@2@0AEAV32@@Z) bff.lib(ConePlacement.obj) : error LNK2001: unresolved external symbol cblas_dscal bff.lib(Bff.obj) : error LNK2019: unresolved external symbol cblas_dgemm referenced in function "protected: void __cdecl bff::BFF::closeLengths(class bff::DenseMatrix const &,class bff::DenseMatrix const &,class bff::DenseMatrix &)const " (?closeLengths@BFF@bff@@IEBAXAEBVDenseMatrix@2@0AEAV32@@Z) bff.lib(ConePlacement.obj) : error LNK2001: unresolved external symbol cblas_dgemm C:\bff\binaries\Release\bff-viewer.exe : fatal error LNK1120: 3 unresolved externals

Any ideas?

rohan-sawhney commented 4 years ago

Looks like you aren't linking with cblas. I would recommend using the openblas dependency included in the deps folder. I also had to explicitly link libopenblas.dll.a in Visual Studio because CMake didn't include this dependency for some reason.

thundaBYR commented 4 years ago

I started from scratch in Win32 this time and it worked. Seems like the libopenblas.dll.a is win32 only?

rohan-sawhney commented 4 years ago

Great! Yes, I believe so

thundaBYR commented 4 years ago

Also, just wanted to say that this is really amazing piece of software and thanks for making it publicly available :)

There should be a donation option available somewhere.

rohan-sawhney commented 4 years ago

Thanks! Glad to hear you like it :)

lmj01 commented 4 years ago

add from bff project properties , linker > input > Additional Dependencies boundary-first-flattening\deps\openblas-windows\lib\libopenblas.dll.a but problem still exist ? known somewhy ? configuration is Release, Platform is x64

thundaBYR commented 4 years ago

add from bff project properties , linker > input > Additional Dependencies boundary-first-flattening\deps\openblas-windows\lib\libopenblas.dll.a but problem still exist ? known somewhy ? configuration is Release, Platform is x64

Re-configure in win32, we mentioned this above your post.