Mantidplot custom UserSubWindow -> port to workbench

Hello

Ubuntu 20.04

Are there any issues porting mantidplot custom UserSubWindows to workbench?

I have a custom UserSubWindow I am trying to update to the latest source.

/home/dev/work/mantid/Framework/Types/inc/MantidTypes/Core/DateAndTime.h:9:10: fatal error: MantidTypes/DllConfig.h: No such file or directory

Only the file DllConfig.h does exist in ./build/Framework/Types/MantidTypes/
The rest of the Types headers headers are in ./Framework/Types/inc/MantidTypes/

Is there a reason why the ./Framework/Types/inc/MantidTypes/ files are not copied into the ./build/Framework/Types/MantidTypes

Regards

Derek

I have a similar issue with Ubuntu 18.04

Hi Derek,
The Indirect and Muon interfaces currently use UserSubWindow so this should be able to port over to Workbench.

Have you got a working version of this custom interface for Mantidplot?

It might be useful for us to see the set-up you have as it seems cmake isn’t correctly picking up your files.
Do you have your code as a branch on Github that you are able to share??

I think my initial question assumed a problem with porting to workbench.

I have now built mantid in Ubuntu 18.04
I have checked out v4.2.0 which I think (please confirm) still builds mantid.

I agree that my cmake has a problem with paths.

My CMakeLists file is for a much older version of Mantid

I set include paths as:-
include_directories ( SYSTEM ${QWT5_INCLUDE_DIR} )
include_directories ( ${MANTID_ROOT}/Framework/API/inc/ )
include_directories ( ${MANTID_ROOT}/Framework/Geometry/inc/ )
include_directories ( ${MANTID_ROOT}/Framework/DataObjects/inc/ )
include_directories ( ${MANTID_ROOT}/qt/widgets/common/inc)
include_directories ( ${MANTID_ROOT}/qt/widgets/legacyqwt/inc)
include_directories ( ${MANTID_ROOT}/Framework/Kernel/inc/)
include_directories ( ${MANTID_ROOT}/Framework/Types/inc/)
include_directories ( ${MANTID_ROOT}/Framework/Parallel/inc/)

include_directories ( ${MANTID_ROOT}/Framework/LiveData/inc/)
include_directories ( ${MANTID_ROOT}/build/Framework/LiveData/MantidLiveData/)

include_directories ( ${MANTID_ROOT}/Framework/HistogramData/inc/)
include_directories ( …/…/…/ )
include_directories ( …/…/…/Framework/LiveData )

The LiveData DLLConfig.h file is in a different place than all the other LiveData header files should this be expected?

Ok So this was just a problem with an include dir
include_directories ( ${MANTID_ROOT}/build/Framework/LiveData/MantidLiveData/)
should be
include_directories ( ${MANTID_ROOT}/build/Framework/LiveData/)

Thanks for your assistance. I’ll move onto the next problem that will no doubt soon appear.

Great! Keep us updated with how you get on!