Procedure entry point not located when building a CEP from Sources with Cmake
About you
PhD Student at TIMC-IMAG, I work on CamiTK for needle steering
Overview
On windows 10 64bits (Family edition) with CamiTK 4.1.2 successfully installed with the community package. Cmake version 3.9.6, QT 5.6.1. Any CEP won't be built by CMAKE. Windows displays an error "Procedure entry point not located" concerning some QT5 dlls.
Steps to Reproduce
See above
Actual VS Expected Result
We expect the CEP to be built because CamiTK was sucessfully installed with the same softwares. But Cmake displays an error before even building the project.
Relevant logs and/or screenshots
Interpretation & Possible fixes
My interpretation is that the QT dll in QT 5.6.1 install folder are not found by Cmake. Instead, Cmake seems to use the QT .dll files at \CmakeInstallFolder\CMake\bin.
A fix is to force Cmake to use the right dlls by pasting them in the folder mentioned above, replacing the old ones. From QtInstallFolder\Qt5.6.1\5.6\msvc2015_64\bin, copy the following files :
Qt5Core.dll
Qt5Gui.dll
Qt5Widgets.dll
Qt5Xml.dll
To replace those in \CmakeInstallFolder\CMake\bin. (Make a copy of the old ones for more safety).
CamiTK Version
CamiTK Version:
- CamiTK version........................... CamiTK 4.1.2
- CamiTK Short Version..................... camitk-4.1
- CamiTK SO NAME........................... 4
- Operating System......................... WIN32
- Build type............................... RELEASE
- QT Version............................... 5.6.1
- VTK Version.............................. 6.3.0
- Global Installation Directory [G]........ D:/dev/CamiTK/CamiTK-4.1.2/install
- Local Installation Directory [L]......... C:/Users/guill/AppData/Roaming/CamiTK
- Current Working Directory [W]............ D:/dev/CamiTK/CamiTK-4.1.2/install/bin
- Test Data Directory...................... D:/dev/CamiTK/CamiTK-4.1.2/install/share/camitk-4.1/testdata
- Component Extension Directories.......... D:/dev/CamiTK/CamiTK-4.1.2/install/lib/camitk-4.1/components
- Action Extension Directories............. D:/dev/CamiTK/CamiTK-4.1.2/install/lib/camitk-4.1/actions
- Number of Component Extensions........... 11 (locations: 11 global, 0 local, 0 in working directory, 0 manually installed by user)
- Number of File Extensions Supported...... 34
- Number of Action Extensions.............. 19 (locations: 19 global, 0 local, 0 in working directory, 0 manually installed by user)
- Number of Actions........................ 91
- Registered components:
- [G] Alias Wavefront OBJ Component...... obj
- [G] ItkImages Component................ hdr, spr, gipl, pic, lsm, nrrd, hdr.gz, nii, nii.gz, img, img.gz
- [G] MML Component...................... mml, scn
- [G] Msh Component...................... msh
- [G] Off Component...................... off
- [G] PML Component...................... pml
- [G] STL Component...................... stl, STL
- [G] VRML 2 Component................... vrml, wrl
- [G] VTK Component...................... vtk
- [G] vtkImages Component................ jpg, png, tiff, tif, bmp, pbm, pgm, ppm, mhd, mha, raw
- [G] DICOM.............................. directory
- Registered actions:
- [G] Application Level Actions.......... 21 actions
- [G] Basic Mesh Extension............... 9 actions
- [G] Basic Topology..................... 2 actions
- [G] BoxVOIExtension.................... 1 actions
- [G] Frame Edition Extension............ 1 actions
- [G] ITK Filters........................ 14 actions
- [G] ITK Segmentation................... 3 actions
- [G] Image LUT.......................... 1 actions
- [G] ImageAcquisitionActionExtension.... 7 actions
- [G] MML................................ 2 actions
- [G] Mesh Processing.................... 17 actions
- [G] MultiPickingExtension.............. 1 actions
- [G] PMLExploreExtension................ 2 actions
- [G] Pixel Color Changer................ 1 actions
- [G] Reconstruction..................... 1 actions
- [G] Reorient Image Extension........... 1 actions
- [G] ResampleExtension.................. 1 actions
- [G] ShowIn3DExtension.................. 5 actions
- [G] VolumeRenderingExtension........... 1 actions
please do not remove anything below this line