build error need help ?

Dear Friends

I am building Slicer 3D, and getting one error after building it for 24 hours in my Laptop. Only one error, I am writing the error log below. It seems it is failing with midas3 download. My internet connection is perfect, other downloadable modules are being downloaded perfectly. Only this one is creating problem. May be I am missing some thing with CMake configuration. Please advise what I am missing here.

Any help is highly appreciated.

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
46> – Fetching “http://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=32a988e290dcbb1f78e625e514efaba1” (TaskId:126)
46> – [download 0% complete] (TaskId:126)
46> – [download 1% complete] (TaskId:126)
46> – [download 2% complete] (TaskId:126)
46> – [download 3% complete] (TaskId:126)
46> – [download 4% complete] (TaskId:126)
46> – [download 5% complete] (TaskId:126)
46> – [download 6% complete] (TaskId:126)
46> – [download 7% complete] (TaskId:126)
46> – [download 8% complete] (TaskId:126)
46> – [download 9% complete] (TaskId:126)
46> – [download 10% complete] (TaskId:126)
46> – [download 11% complete] (TaskId:126)
46> – [download 12% complete] (TaskId:126)
46> – [download 13% complete] (TaskId:126)
46> – [download 14% complete] (TaskId:126)
46> – [download 15% complete] (TaskId:126)
46> – [download 16% complete] (TaskId:126)
46> – [download 17% complete] (TaskId:126)
46> – [download 18% complete] (TaskId:126)
46> – [download 19% complete] (TaskId:126)
46> – [download 20% complete] (TaskId:126)
46> – [download 21% complete] (TaskId:126)
46> – [download 22% complete] (TaskId:126)
46> – [download 23% complete] (TaskId:126)
46> CMake Error at C:/Slicer-master/CMake/ExternalData.cmake:1113 (message): (TaskId:126)
46> (TaskId:126)
46> (TaskId:126)
46> Object MD5=32a988e290dcbb1f78e625e514efaba1 not found at: (TaskId:126)
46> (TaskId:126)
46> https://github.com/Slicer/SlicerTestingData/releases/download/MD5/32a988e290dcbb1f78e625e514efaba1 (“Timeout was reached”) (TaskId:126)
46> http://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=32a988e290dcbb1f78e625e514efaba1 (“Timeout was reached”) (TaskId:126)
46> (TaskId:126)
46> (TaskId:126)
46>00:42:58.886 1>
46>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: “cmd.exe” exited with code 1. [C:\Slicer-master\build\Slicer-build\SlicerData.vcxproj]
46> Configuring application launcher: SlicerDesigner (TaskId:126)
46> Building Custom Rule C:/Slicer-master/CMake/LastConfigureStep/CMakeLists.txt (TaskId:126)
46> Qt: Untested Windows version 6.2 detected! (TaskId:126)
46> Resource ico updated. (TaskId:126)
46> Building Custom Rule C:/Slicer-master/Applications/SlicerApp/CMakeLists.txt (TaskId:126)
46> Generating SmoothingCLP.h (TaskId:126)
46> Building Custom Rule C:/Slicer-master/build/SurfaceToolbox/Smoothing/CMakeLists.txt (TaskId:126)
46> GenerateCLP --InputXML C:/Slicer-master/build/SurfaceToolbox/Smoothing/Smoothing.xml --OutputCxx C:/Slicer-master/build/Slicer-build/E/SurfaceToolbox/Smoothing/SmoothingCLP.h (TaskId:126)
46> GenerateCLP: Found 1 parameters groups (TaskId:126)
46> GenerateCLP: Group “IO” has 6 parameters (TaskId:126)
46> Smoothing.cxx (TaskId:126)
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

The nightly builds on the dashboard look good. Maybe there was a transient issue. Did you try again?

yes I tried pieper, now I am able to build but in Linux, but getting error when debugging with Qt Creator. when I debug I get the following message

“THE GDB process terminated expectedly (exit code 1)”

Can you tell me what is the possible source of this error.

Did you follow the instructions here?
https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/QtCreator

I am trying to build with Qt5.6.0 and Visual studio 2015, with Cmake as the code generator. It is configuring well and generating is also OK. But when I am loading the project in Visual studio, it shows all the CMake files. No source files as in Applications/Main.cxx or other source files are not loaded in Visual studio solution explorer.

Some things is wrong, if I don’t see source files, then how can I debug it. Please help.
I am generating the solution file using CMake.exe as it is described in build instructions in slicer.org.

regards

Probably you have opened the top-level Slicer.sln file, which builds all the dependencies and then Slicer core. For debugging, you need to open (build-dir)\Slicer-build\Slicer.sln. See more information here: https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/Debug_Instructions#Windows.

Iassoan, wish you happy new year first of all. But I checked once in Super-build folder, I think there was no sln file. It was all cmake files present inside. ? Are you sure what you’re saying. May be I need generate it once more and check.

Dear Iassoan,

I misread your solution. Yes I followed it now, and able to build and debug the solution. Thanks a lot for your help.

Just one more question, ? How I can do it, in Linux. In Linux I am able to build, and trying to debug using gdb. I am using the command ’ gdb Slicer-build-Debug/Slicer-build/Slicer.exe’

and I am getting message that no debugging symbols found. I am trying to put break points as
‘break Main.cxx : 35’, but it is showing message that no debugging symbols loaded.

If you have any solution, please suggest me.

.exe files are Windows executables, so you should not see such files on your linux machine.

See linux debugging instructions here: https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/Debug_Instructions#GDB_debug_with_launch_arguments

Hi Iassoan

Thanks a lot for all your valuable suggestion. I am now successful in debugging with GDB in Linux. But when I try it with Qt creator I am failing. I am following the steps below.

./Slicer --launch /path/to/qtcreator from the build directory, my project is built with make.

//This launches my Qt creator
//Then I am opening the CMakeLists.txt from Slicer folder. And then it configures
//automatically cmake for the project.

Finally it loads the header file, and cmake modules. No source files are being populated.
What am I missing here.?

I still need your help on this. How can load all source files in Qt creator and debug.

I never use Qt Creator, so I cannot help with that. If you have trouble using Qt Creator for debugging on Linux then you can use Visual Studio Code instead.

Yes Iassoan that could be one possible solution. I will try with visual studio code into qt creator. and then debug.

Anyway, Thanks a lot for this loop of discussion, it is a lot useful. Thanks you very much.

I’m not sure what you mean by this but Visual Studio Code has a nice built-in visual debugger that works in Linux.

If I have to use clean Linux then I will prefer GDB, if Qt creator is possible that’s different. But I am OK for now with Visual studio debugger in Windows. I got very valuable break from you. Thanks a lot.