Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLPK not linking properly on Windows #3916

Closed
djsutherland opened this issue Jul 8, 2017 · 3 comments
Closed

GLPK not linking properly on Windows #3916

djsutherland opened this issue Jul 8, 2017 · 3 comments

Comments

@djsutherland
Copy link
Contributor

Get a lot of errors like:

[00:29:14]   shogun.lib(MKL.obj) : error LNK2019: unresolved external symbol glp_del_rows 
referenced in function "protected: double __cdecl 
shogun::CMKL::compute_optimal_betas_via_glpk(double *,double const *,int,double const *,double,int &)" 
(?compute_optimal_betas_via_glpk@CMKL@shogun@@IEAANPEANPEBNH1NAEAH@Z) 
[C:\bld\shogun_1499535830377\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\variational_approx_example.vcxproj]

Full log at https://ci.appveyor.com/project/conda-forge/staged-recipes/build/1.0.14886/job/9xip79v5aqlyibx7.

djsutherland added a commit to djsutherland/staged-recipes that referenced this issue Jul 8, 2017
@djsutherland
Copy link
Contributor Author

It's not just GLPK...after turning that off, got errors about bz2 and lzo (log).

Is there something strange about my setup, or does anyone actually use shogun with any of the optional packages on Windows?

@vigsterkr
Copy link
Member

@dougalsutherland oh that's weird although as you can see we never wondered these territories :) lemme try to check.... but i think we need to fiddle maybe with cmake :P

@vigsterkr
Copy link
Member

ooooooooooooh now i understand!
these things come up when you compile the examples:

"C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj" (default target) (217) ->
  shogun.lib(Compressor.obj) : error LNK2019: unresolved external symbol __lzo_init_v2 referenced in function "public: void __cdecl shogun::CCompressor::compress(unsigned char *,unsigned __int64,unsigned char * &,unsigned __int64 &,int)" (?compress@CCompressor@shogun@@QEAAXPEAE_KAEAPEAEAEA_KH@Z) [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]
  shogun.lib(Compressor.obj) : error LNK2019: unresolved external symbol lzo1x_decompress referenced in function "public: void __cdecl shogun::CCompressor::decompress(unsigned char *,unsigned __int64,unsigned char *,unsigned __int64 &)" (?decompress@CCompressor@shogun@@QEAAXPEAE_K0AEA_K@Z) [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]
  shogun.lib(Compressor.obj) : error LNK2019: unresolved external symbol lzo1x_1_15_compress referenced in function "public: void __cdecl shogun::CCompressor::compress(unsigned char *,unsigned __int64,unsigned char * &,unsigned __int64 &,int)" (?compress@CCompressor@shogun@@QEAAXPEAE_KAEAPEAEAEA_KH@Z) [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]
  shogun.lib(Compressor.obj) : error LNK2019: unresolved external symbol lzo1x_999_compress referenced in function "public: void __cdecl shogun::CCompressor::compress(unsigned char *,unsigned __int64,unsigned char * &,unsigned __int64 &,int)" (?compress@CCompressor@shogun@@QEAAXPEAE_KAEAPEAEAEA_KH@Z) [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]
  shogun.lib(Compressor.obj) : error LNK2019: unresolved external symbol compress2 referenced in function "public: void __cdecl shogun::CCompressor::compress(unsigned char *,unsigned __int64,unsigned char * &,unsigned __int64 &,int)" (?compress@CCompressor@shogun@@QEAAXPEAE_KAEAPEAEAEA_KH@Z) [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]
  shogun.lib(Compressor.obj) : error LNK2019: unresolved external symbol uncompress referenced in function "public: void __cdecl shogun::CCompressor::decompress(unsigned char *,unsigned __int64,unsigned char *,unsigned __int64 &)" (?decompress@CCompressor@shogun@@QEAAXPEAE_K0AEA_K@Z) [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]
  shogun.lib(Compressor.obj) : error LNK2019: unresolved external symbol BZ2_bzCompressInit referenced in function "public: void __cdecl shogun::CCompressor::compress(unsigned char *,unsigned __int64,unsigned char * &,unsigned __int64 &,int)" (?compress@CCompressor@shogun@@QEAAXPEAE_KAEAPEAEAEA_KH@Z) [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]
  shogun.lib(Compressor.obj) : error LNK2019: unresolved external symbol BZ2_bzCompress referenced in function "public: void __cdecl shogun::CCompressor::compress(unsigned char *,unsigned __int64,unsigned char * &,unsigned __int64 &,int)" (?compress@CCompressor@shogun@@QEAAXPEAE_KAEAPEAEAEA_KH@Z) [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]
  shogun.lib(Compressor.obj) : error LNK2019: unresolved external symbol BZ2_bzCompressEnd referenced in function "public: void __cdecl shogun::CCompressor::compress(unsigned char *,unsigned __int64,unsigned char * &,unsigned __int64 &,int)" (?compress@CCompressor@shogun@@QEAAXPEAE_KAEAPEAEAEA_KH@Z) [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]
  shogun.lib(Compressor.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompressInit referenced in function "public: void __cdecl shogun::CCompressor::decompress(unsigned char *,unsigned __int64,unsigned char *,unsigned __int64 &)" (?decompress@CCompressor@shogun@@QEAAXPEAE_K0AEA_K@Z) [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]
  shogun.lib(Compressor.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompress referenced in function "public: void __cdecl shogun::CCompressor::decompress(unsigned char *,unsigned __int64,unsigned char *,unsigned __int64 &)" (?decompress@CCompressor@shogun@@QEAAXPEAE_K0AEA_K@Z) [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]
  shogun.lib(Compressor.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompressEnd referenced in function "public: void __cdecl shogun::CCompressor::decompress(unsigned char *,unsigned __int64,unsigned char *,unsigned __int64 &)" (?decompress@CCompressor@shogun@@QEAAXPEAE_K0AEA_K@Z) [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]
  C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\Debug\transfer_multitaskleastsquaresregression.exe : fatal error LNK1120: 12 unresolved externals [C:\bld\shogun_1499556275470\work\shogun-shogun_6.0.0\build\examples\undocumented\libshogun\transfer_multitaskleastsquaresregression.vcxproj]```

let's close this ticket and open a new one that tries to handle this case on windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants