Open SunBlack opened 5 years ago
Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs.
Shall we revive the discussion here again @SunBlack ?
Yep, I still have this in mind, as I don't know maybe this could be the reason why some libs are so big under windows.
But in general I'm currently waiting for CMake changes as I think the best order would be:
PCL_ADD_MODULE
so all modules have a better CMake structure as it is currently really ugly with different list for each typeAfter this cleanup we may start with issues like this, but currently it is to much copy & paste between all CMake files, even we could do it also now without CMake cleanup before.
Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs.
Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs.
I currently still trying to compile everything with MSVC. I could fix already a lot of issues, but there is an error I couldn't fix:
In general I could fix all linker errors, except where we export a target with Q_OBJECT:
If you search the web for this issue you always find, that we need
__declspec(dllimport)
. ButPCL_EXPORTS
expand always to__declspec(dllexport)
or empty.Further issue:
PCL_ADD_LIBRARY
always add symbolPCLAPI_EXPORTS
. This seems at first look correct, but I believe this is partially wrong.PCLAPI_EXPORTS
is not definedLibA
) is using another PCL library (LibB
). In this casePCLAPI_EXPORTS
should be true for all header files part ofLibB
but no defined forLibA
during buildingLibB
. So I believe it would be correct if definePCL_LibA_EXPORTS
andPCL_LibB_EXPORTS
instead of justPCL_EXPORTS
.And we use should CMake::GenerateExportHeader.