[Insight-users] Curves2DExtractor not working (MinGW & FLTK)

Rick Giuly rgiuly at gmail.com
Fri Apr 3 21:17:27 EDT 2009


Hi Luis,
It seems that the debug information did not show up in the exe.

(I've attached the CMakeCache.txt file in case that might be useful.)


$ /c/Program\ Files/pythonxy/mingw/bin/gdb.exe 
/o/software/InsightApplications-
3.12.0-build-debug/ImageViewer/ImageViewer.exe
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
(no debugging symbols found)
(gdb) run
Starting program: 
o:/software/InsightApplications-3.12.0-build-debug/ImageViewer/ImageViewer.exe 

[New thread 5072.0x16ec]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
gdb: unknown target exception 0xc0000135 at 0x7c964ed1

Program received signal ?, Unknown signal.

Program exited with code 030000000465.
(gdb) You can't do that without a process to debug.

(gdb)




--
-Rick

Luis Ibanez wrote:
 >
 > Hi Rick,
 >
 > Just write "Debug" in front of the CMAKE_BUILD_TYPE.
 >
 > Then "c" for configure, "g" for generate, and once
 > ccmake quits, you just type make.
 >
 > (may have to do "make clean" first, if makes doesn't
 > start recompiling).
 >
 >
 > After that you can run the ImageViewer from the debugger
 > by running:
 >
 >
 >    gdb  ImageViewer
 >
 > and typing "run" in the debugger prompt.
 >
 > Please let us know what you find.
 >
 >
 >    Thanks
 >
 >
 >       Luis
 >
 >
 > -------------------
 > Rick Giuly wrote:
 >>
 >>
 >>> When you say that "nothing happens", does this
 >>> means that the shell prompt gets back to you ?
 >>
 >>
 >> Yes, the prompt comes back
 >>
 >>> or that the application is hanging and you don't
 >>> get the prompt back ?
 >>>
 >>>
 >>> ---
 >>>
 >>> Could you please try the following three things:
 >>>
 >>>
 >>> A) Open the Task Manager, and check if when you run
 >>>    the ImageViewer application, the name of the
 >>>    executable appears in the list of processes
 >>>    and remains there.
 >>
 >>
 >> The program only runs for a moment (blink of an eye) and the command
 >> prompt comes back. So I didn't have time to find it in the task manager.
 >>
 >>>
 >>>
 >>> B) Launch the application with
 >>>
 >>>       strace  ImageViewer
 >>>
 >>>    and see if it reports any error messages.
 >>
 >>
 >> I used strace from cygwin and got this:
 >>
 >> user2 at panther /o/software/InsightApplications-3.12.0-build/ImageViewer
 >> $ strace ./ImageViewer
 >> --- Process 5784, exception C0000135 at 7C964ED1
 >>
 >> user2 at panther /o/software/InsightApplications-3.12.0-build/ImageViewer
 >> $
 >>
 >>>
 >>>
 >>> C) Recompile the ImageViewer application with
 >>>    the Debug compilation flag ON (do this in
 >>>    CMake on the CMAKE_BUILD_TYPE), and then
 >>>    launch it from gdb.
 >>>
 >>
 >> I'm not sure exactly how to turn the flag on. Should I just write
 >> "Debug" in the field labeled CMAKE_BUILD_TYPE... or should I write "ON"?
 >>
 >>
 >>
 >> -Rick
 >>
 >>>
 >>>
 >>> Please let us know what you find.
 >>>
 >>>
 >>>    Thanks
 >>>
 >>>
 >>>      Luis
 >>>
 >>>
 >>>
 >>> --------------------------
 >>> Rick Giuly wrote:
 >>>
 >>>> Hi Luis, thanks for the help so far, here are my current results on
 >>>> the problem:
 >>>>
 >>>>>      You seem to be doing this with MinGW.
 >>>>>
 >>>>> In this context you probably should run an X-Server
 >>>>> in order to get the FLTK applications to run.
 >>>>
 >>>>
 >>>>
 >>>> I've now installed the Xming X11 server and tested it. It works with
 >>>> the test apps (like xeyes). I'm still having the same problem with
 >>>> insight applications.
 >>>>
 >>>>>
 >>>>> a) Did you build FLTK by also using the gcc
 >>>>>    that comes with MinGW ?
 >>>>
 >>>>
 >>>>
 >>>> Yes. I used CMake to build it in the same way that I built ITK and
 >>>> Insight Applications, with eclipse and MinGW.
 >>>>
 >>>>>
 >>>>> b) Do you have an X Server installed ?
 >>>>
 >>>>
 >>>>
 >>>> (I do now.)
 >>>>
 >>>>>
 >>>>> c) Can you run the ImageViewer application ?
 >>>>>    (in InsightApplications/ImageViewer)
 >>>>>
 >>>>
 >>>> My attempt to run ImageViewer produces the same problem. Nothing
 >>>> happens when I run it -- no error messages or anything.
 >>>>
 >>>>
 >>>>
 >>>> Regards,
 >>>>
 >>>> -Rick
 >>>>
 >>>>
 >>>>>
 >>>>> Please let us know,
 >>>>>
 >>>>>
 >>>>>    Thanks
 >>>>>
 >>>>>
 >>>>>       Luis
 >>>>>
 >>>>>
 >>>>>
 >>>>> ------------------
 >>>>> Rick Giuly wrote:
 >>>>>
 >>>>>> Hi Luis:
 >>>>>>
 >>>>>>> Let's start with the basic checks then...
 >>>>>>>
 >>>>>>> 1) Have you verified that your FLTK build is functional ?
 >>>>>>>    e.g. have you run the FLTK demos ?
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>> Yes, they are working ok
 >>>>>>
 >>>>>>> 2) Did you received any error messages while building
 >>>>>>>    InsightApplicationss ?
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>> ImageCalculator wouldn't build and something related to DICOM
 >>>>>> would not build. I used CMake to turn off many of the components
 >>>>>> except those needed for Curves2D. Once I turned off the other
 >>>>>> components, the build completed with no errors.
 >>>>>>
 >>>>>>> 3) Are you launching the Curve2DExtractor application
 >>>>>>>    from an MS-DOS window ?
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>> I've tried it from CMD in windows and by just double clicking it.
 >>>>>>
 >>>>>>> 4) Did you build ITK with shared libraries ?
 >>>>>>>    (if so, did you put the directory with the libraries
 >>>>>>>     in the your path ?)
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>> I didn't build the shared libraries for ITK. I tried doing it just
 >>>>>> now and ITK wouldn't build. (error message is attached)
 >>>>>>
 >>>>>>> 5) Do you manage to run any of the other FLT+ITK applications ?
 >>>>>>>    For example, can you run the ImageViewer application ?
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>> It seems the others do not work either.
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>> Regards,
 >>>>>>
 >>>>>> -Rick
 >>>>>>
 >>>>>>>
 >>>>>>>
 >>>>>>> ------------------
 >>>>>>> Rick Giuly wrote:
 >>>>>>>
 >>>>>>>>
 >>>>>>>> Hi Luis,
 >>>>>>>>
 >>>>>>>> As I understand it, running Curve2DExtractor should bring up a
 >>>>>>>> GUI where an image can be chosen. But, the GUI is not coming up,
 >>>>>>>> so I'm not able to pick an image file for input.
 >>>>>>>>
 >>>>>>>> -Rick
 >>>>>>>>
 >>>>>>>> Luis Ibanez wrote:
 >>>>>>>>
 >>>>>>>>>
 >>>>>>>>> Hi Rick,
 >>>>>>>>>
 >>>>>>>>> Could you post to a public web site the image that you are using
 >>>>>>>>> as input to the Curve2DExtractor ?
 >>>>>>>>>
 >>>>>>>>>
 >>>>>>>>> (Please do not send executables to the mailing list).
 >>>>>>>>>
 >>>>>>>>>
 >>>>>>>>>    Thanks
 >>>>>>>>>
 >>>>>>>>>
 >>>>>>>>>       Luis
 >>>>>>>>>
 >>>>>>>>>
 >>>>>>>>> ------------------
 >>>>>>>>> Rick Giuly wrote:
 >>>>>>>>>
 >>>>>>>>>> Hello All,
 >>>>>>>>>>
 >>>>>>>>>> Using Insight Applications 3.12.0 on windows,
 >>>>>>>>>> Curves2DExtractor does nothing when I run it. (No error
 >>>>>>>>>> messages show up in the CMD box and no gui appears.) I used
 >>>>>>>>>> fltk-1.1.7 and built it with CMake and Eclipse
 >>>>>>>>>>
 >>>>>>>>>> The build output is attached. It seemed to build with no errors.
 >>>>>>>>>>
 >>>>>>>>>> Any help is appreciated
 >>>>>>>>>>
 >>>>>>>>>> -Rick
 >>>>>>>>>>
 >>>>>>>>>>
 >>>>>>>>>> 
------------------------------------------------------------------------
 >>>>>>>>>>
 >>>>>>>>>>
 >>>>>>>>>> _____________________________________
 >>>>>>>>>> Powered by www.kitware.com
 >>>>>>>>>>
 >>>>>>>>>> Visit other Kitware open-source projects at
 >>>>>>>>>> http://www.kitware.com/opensource/opensource.html
 >>>>>>>>>>
 >>>>>>>>>> Please keep messages on-topic and check the ITK FAQ at:
 >>>>>>>>>> http://www.itk.org/Wiki/ITK_FAQ
 >>>>>>>>>>
 >>>>>>>>>> Follow this link to subscribe/unsubscribe:
 >>>>>>>>>> http://www.itk.org/mailman/listinfo/insight-users
 >>>>>>>>
 >>>>>>>>
 >>>>>>>>
 >>>>>>>>
 >>>>>>>>
 >>>>>>>>
 >>>>>>
 >>>>
 >>>>
 >>
 >>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeCache.txt
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090403/d72f657c/attachment-0001.txt>


More information about the Insight-users mailing list