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

C1083: Cannot open include file: 'Eigen/Eigen': No such file or directory #4265

Closed
friente opened this issue Apr 30, 2018 · 30 comments
Closed
Labels

Comments

@friente
Copy link

friente commented Apr 30, 2018

Hello,

I'm just writing some test code using shogun lib on windows. I'm using dynamic linking against my executable.
However, I get an error when I include:

#include <shogun/mathematics/eigen3.h>

The error is:

C1083: Cannot open include file: 'Eigen/Eigen': No such file or directory

Where should be located the eigen library within the installation folder? Because I couldn't find them.
I couldn't find the eigen directory within shogun/lib/external.
Thanks

@vigsterkr
Copy link
Member

@fyoda indeed this was an error in the previous release... now it's fixed in develop, basically any third party library will be available under shogun/third_party folder. for the time being you either start using the latest version of shogun or add the eigen headers under shogun/lib/external/eigen manually

@friente
Copy link
Author

friente commented May 2, 2018

@vigsterkr Should I rebuild shogun starting from develop? Or can I just use my previous build and eigen 3.3.4 within the shogun/lib/external/eigen manually?

@vigsterkr
Copy link
Member

@fyoda you should be able to use eigen 3.3.4 and put there manually.. .note that you should use -isystem gcc/clang flags when you compile shogun

@vigsterkr
Copy link
Member

vigsterkr commented May 2, 2018

btw which header includes #include <shogun/mathematics/eigen3.h>?

@friente
Copy link
Author

friente commented May 2, 2018

@vigsterkr I'm building the lib with MSVC 2015, the -isystem should be set by CMAKE when generating the MSVC solution (I think).
#include <shogun/mathematics/eigen3.h> includes:

#include <Eigen/Eigen>
#include <Eigen/Dense>
#include <Eigen/Sparse>

@vigsterkr
Copy link
Member

@fyoda oh so you are having this error while you are building shogun? i thought when you are using it. if it's build time problem, then there's a bug indeed

@friente
Copy link
Author

friente commented May 2, 2018

I'm getting this error in both cases, when I build shogun but also when I'm using it.
However, even if I get the many of those errors during the build phase, the .lib is genered.

@vigsterkr
Copy link
Member

i'm just checking the headers and none of the external headers include the mentioned eigen3.h so you shouldn't have this problem while using shogun externally. but of course the build problem (when you try to build the library) should still be fixed... i remember that you were having some custom build mechanism. note the generated MSVC 2015 works by default - see our appveyor builds.

@friente
Copy link
Author

friente commented May 2, 2018

@vigsterkr I don't have standard MSVC 2015 build mechanism. The problem with me was the debug and release build. I solved by changing manually the Runtime lib used for the debug, because it doesn't switch automatically in visual studio.

@vigsterkr
Copy link
Member

@fyoda can you provide me the compiler flags for the shogun.sln?

@vigsterkr vigsterkr reopened this May 2, 2018
@friente
Copy link
Author

friente commented May 2, 2018

@vigsterkr In the following you can find all options for the libshogun solution:

/GS /TP /W1 /Zc:wchar_t /I"C:\Users\myUser\Downloads\shogun\src" /I"C:\Users\myUser\Downloads\shogun\build\src" /I"C:\Users\myUser\Downloads\shogun\src\gpl" /I"C:\Users\myUser\Downloads\shogun\build\MSDirent\src\MSDirent\include" /I"C:\Users\myUser\Downloads\shogun\build\src\shogun\lib\external\eigen" /I"C:\Users\myUser\Downloads\shogun\build\src\shogun\lib\external" /Gm- /O2 /Fd"libshogun.dir\Release\libshogun.pdb" /Zc:inline /fp:precise /D "CMAKE_INTDIR=\"Release\"" /D "_MBCS" /errorReport:prompt /WX- /Zc:forScope /Gd /MD /openmp /Fa"Release/" /nologo /Fo"libshogun.dir\Release\" /Fp"libshogun.dir\Release\libshogun.pch"

Additional options are:
%(AdditionalOptions) /std:c++14 /bigobj -std:c++14

@vigsterkr
Copy link
Member

ok so basically this:

C:\Users\myUser\Downloads\shogun\build\src\shogun\lib\external\eigen

should make sure that eigen is available. that dir is being created by cmake and by adding eigen to your project. check if eigen is actually there.

@friente
Copy link
Author

friente commented May 2, 2018

@vigsterkr No there is no eigen folder there. The build process downloads the 3.3.4 but then it's not copied there automatically. I can try rebuilding shogun putting the eigen in that folder.

@vigsterkr
Copy link
Member

mmm that's weird as this should be autogenerated by cmake. are you sure you are checking it under build dir and not the root of the repo?

@friente
Copy link
Author

friente commented May 2, 2018

I'm sure, in C:\Users\myUser\Downloads\shogun\build\src\shogun\lib\external there is no eigen folder

@vigsterkr
Copy link
Member

for the sake of argument, could you create a new build directory, say build-test and run cmake and try to build shogun.sln

@friente
Copy link
Author

friente commented May 2, 2018

Ok, I created a new build-test, build again the lib but I still get the error mentioned before.

Error C1083 Cannot open include file: 'Eigen/Eigen': No such file or directory libshogun C:\Users\myUser\Downloads\shogun\src\shogun\mathematics\eigen3.h 14

@vigsterkr
Copy link
Member

mmm that is super interesting.... so then i guess this is a bug - that i couldn't reproduce yet... could you put there (C:\Users\myUser\Downloads\shogun\build\src\shogun\lib\external\eigen) manually the eigen 3.3.4? it should fix it.

@friente
Copy link
Author

friente commented May 2, 2018

By putting eigen files manually in C:\Users\myUser\Downloads\shogun\build\src\shogun\lib\external\ the Eigen includes within eigen3.h are not underlined in read anymore.
I'll let you know at the end of the build process.

@friente
Copy link
Author

friente commented May 2, 2018

@vigsterkr Now the build process fails. Here is the error list of visual studio. shogun.lib is not generated.

Severity	Code	Description	Project	File	Line	Suppression State
Error	C1083	Cannot open include file: 'unsupported/Eigen/MatrixFunctions': No such file or directory	libshogun	C:\Users\myUser\Downloads\shogun\src\shogun\mathematics\linalg\ratapprox\logdet\opfunc\DenseMatrixExactLog.cpp	13	
Error	LNK1181	cannot open input file 'C:\Users\myUser\Downloads\shogun\build-test\src\shogun\libshogun.dir\Release\distributions\Histogram.cpp.obj'	shogun-static	C:\Users\myUser\Downloads\shogun\build-test\src\shogun\LINK	1	
Error	LNK1181	cannot open input file 'C:\Users\myUser\Downloads\shogun\build-test\src\shogun\libshogun.dir\Release\distributions\Histogram.cpp.obj'	shogun	C:\Users\myUser\Downloads\shogun\build-test\src\shogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_libsvm_probabilities	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_gaussian_process_binary_classification	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_lda	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_minimal_svm	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_mklmulticlass	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_multiclass_ecoc_discriminant	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_multiclass_ecoc	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_multiclass_ecoc_random	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_multiclass_prob_heuristics	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_multiclasslibsvm	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_multiclasslinearmachine	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_qda	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	clustering_kmeans	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_diffusionmaps	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_factoranalysis	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_hessianlocallylinearembedding	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_jade_bss	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_isomap	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_kernellocallylinearembedding	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_laplacianeigenmaps	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_linearlocaltangentspacealignment	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_localitypreservingprojections	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_locallylinearembedding	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_localtangentspacealignment	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_multidimensionalscaling	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_neighborhoodpreservingembedding	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	converter_stochasticproximityembedding	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	evaluation_cross_validation_classification	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	evaluation_cross_validation_locked_comparison	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	evaluation_cross_validation_mkl_weight_storage	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	evaluation_cross_validation_multiclass	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	evaluation_cross_validation_multiclass_mkl	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	evaluation_cross_validation_regression	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	features_copy_subset_simple_features	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	features_subset_labels	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	features_copy_subset_sparse_features	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	features_dense_real_modular	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	features_subset_simple_features	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	features_subset_stack	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	io_libsvm_multilabel	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	io_linereader	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	classifier_mkl_svmlight_modelselection_bug	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	kernel_custom_index	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	kernel_machine_train_locked	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	kernel_gaussian	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	kernel_revlin	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	labels_binary_fit_sigmoid	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	library_gc_array	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	library_circularbuffer	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	library_hdf5	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	library_map	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	library_mldatahdf5	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	library_serialization	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	library_set	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	mathematics_confidence_intervals	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	mathematics_lapack	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	modelselection_apply_parameter_tree	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	modelselection_combined_kernel_sub_parameters	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	modelselection_grid_search_kernel	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	modelselection_grid_search_linear	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	modelselection_parameter_combination_test	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	modelselection_grid_search_mkl	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	neuralnets_basic	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	neuralnets_convolutional	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	neuralnets_deep_autoencoder	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	parameter_iterate_float64	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	parameter_iterate_sgobject	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	regression_gaussian_process_ard	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	regression_gaussian_process_fitc	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	regression_gaussian_process_laplace	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	regression_gaussian_process_product	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	regression_gaussian_process_simple_exact	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	regression_gaussian_process_sum	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	balanced_conditional_probability_tree	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	serialization_basic_tests	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	serialization_multiclass_labels	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	kernel_custom	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	so_factorgraph	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	so_multiclass_BMRM	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	splitting_standard_crossvalidation	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	splitting_stratified_crossvalidation	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	streaming_from_dense	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	streaming_onlineliblinear_dense	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	streaming_onlineliblinear_sparse	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	streaming_stringfeatures	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	transfer_multitaskleastsquaresregression	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	transfer_multitasklogisticregression	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	variational_approx_example	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	
Error	LNK1181	cannot open input file '..\..\..\src\shogun\Release\shogun.lib'	neuralnets_deep_belief_network	C:\Users\myUser\Downloads\shogun\build-test\examples\undocumented\libshogun\LINK	1	

distributions\Histogram.cpp.obj doesn't exist on that folder.
Also the include #include <unsupported/Eigen/MatrixFunctions> in DenseMatrixExactLog.cpp cannot be found.

@vigsterkr
Copy link
Member

doh... i dont really get why it cannot find unsupported/Eigen/MatrixFunctions

@friente
Copy link
Author

friente commented May 2, 2018

@vigsterkr Where it should be located?

@vigsterkr
Copy link
Member

@fyoda this should be in C:\Users\myUser\Downloads\shogun\build\src\shogun\lib\external\eigen

@friente
Copy link
Author

friente commented May 2, 2018

@vigsterkr I'm sorry I forgot to copy that folder. C1083 solved. I still get the other errors LNK1181.

@vigsterkr
Copy link
Member

mmm i'm not so sure where the linking error is coming from :(

@friente
Copy link
Author

friente commented May 3, 2018

@vigsterkr By manually adding eigen folder in C:\Users\myUser\Downloads\shogun\build\src\shogun\lib\external\ the C1038 got fixed.
Now the shogun.lib build successfully.

I still have a problem when using the lib. I cannot use Eigen within my code. If I include #include <Eigen/Eigen> I get again the C1038 error posted above.
I have included all paths specified within ShogunTargets.cmake in my Qt .pro file:

${_IMPORT_PREFIX}/include/shogun;
${_IMPORT_PREFIX}/include/shogun/lib/external/MSDirent;
${_IMPORT_PREFIX}/include/shogun/lib/external/eigen;
${_IMPORT_PREFIX}/include/shogun/lib/external/rxcpp;
${_IMPORT_PREFIX}/include;

@friente
Copy link
Author

friente commented May 3, 2018

Fixed, the problem is that in shogun\include\shogun\lib\external\eigen\Eigen only the src folder is copied within the install directory and not the other files.

@vigsterkr
Copy link
Member

@fyoda if you wanna use yourself Eigen for some reason in your code you need to provide the eigen for yourself. meaning: if you just simply use shogun classes you should not have problems of finding eigen, as it's actually only used during compile time of the library...

ok so basically the problem here is mostly about things that got already fixed imo - in develop. i'll test it during the weekend on my windows VM just to make sure, i.e. will leave the ticket open till then

@friente
Copy link
Author

friente commented May 3, 2018

Ok, thanks! Yes basically the problem is about the not copied eigen files within the build directory.

@stale
Copy link

stale bot commented Feb 26, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 26, 2020
@gf712 gf712 closed this as completed Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants