[Insight-users] HelloWorld compilation problems, no executable.

Luis Ibanez luis.ibanez at kitware.com
Thu Aug 24 08:53:15 EDT 2006


Hi Joerg,

Thanks for letting us know that you already found
the solution to your problem.


    Regards,


       Luis


---------------------------
Jörg P.Pfannmöller wrote:
> Hello Luis,
> 
> thank you for your answer. Luckily, we already solved the problem. It was a beginners mistake. Unfortunately, I saved the HelloWorld.cxx and the CMakeLists.txt in the directory with the binaries of ITK. Moreover, I compiled everything in that directory. In my last test I seperated everything in different directories (out-source-build). After that everything worked.
> 
> So long
> 
>        Joerg
> 
> 
> -------- Original-Nachricht --------
> Datum: Thu, 24 Aug 2006 07:26:31 -0400
> Von: Luis Ibanez <luis.ibanez at kitware.com>
> An: "Jörg P.Pfannmöller" <J.Pfannmoeller at gmx.de>
> Betreff: Re: [Insight-users] HelloWorld compilation problems, no executable.
> 
> 
>>Hi Jorg,
>>
>>It is very surprising that you manage to build both
>>ITK and ITK_SNAP, but not the simple HelloWorld example.
>>
>>
>>Some very basic mishap should be going on during the
>>configuration of the HelloWorld.
>>
>>
>>Please post to the list the following files:
>>
>>
>>    1) CMakeError.log
>>    2) CMakeOutput.log
>>
>>
>>
>>  Thanks
>>
>>
>>     Luis
>>
>>
>>------------------------
>>Jörg P.Pfannmöller wrote:
>>
>>>Hello,
>>>
>>>my platform is Linux
>>>my compiler gcc 3.3.5
>>>
>>>I am new to ikt. I have Installed and compiled ITK and ITK-SnAP in my
>>
>>local directory (/home/username/). ITK-SnAP works fine, but the HelloWorld
>>program from the software guide does not. I have already produced the
>>Makefile for the HelloWorl.cxx via cmake and ccmake. 
>>
>>>My proceedings to perform that have been (I used the bash):
>>>
>>>ccmake path to itk-source code
>>>
>>>curses opens
>>>
>>>type c
>>>
>>>type g
>>>
>>>type make
>>>
>>>compilation starts, takes a while, but does not produce a executable
>>
>>file.
>>
>>>I found several error messages. For example (found in CMakeError.log):
>>>
>>>Determining if ifreq has a sa_lenfailed with the following output:
>>>
>>
>>[...]/home/pfannmoe/Sourcen/workdir/dki-gf-detect/Insight-binary/Utilities/gdcm/CMakeTmp/gdcmTestHAVESALEN.c:3: error: structure has no member
>>named `sa_len'[...]
>>
>>>Performing Test VCL_STATIC_CONST_INIT_NO_DEFN failed with the following
>>
>>output:
>>
>>[...]CMakeFiles/cmTryCompileExec.dir/home/pfannmoe/Sourcen/workdir/dki-gf-detect/InsightToolkit-2.8.1/Utilities/vxl/config/cmake/config/vxl_platform_tests.o(.text+0x23):
>>In function `main':
>>
>>>: undefined reference to `A::x'[...]
>>>
>>>We did not find any executable files named HelloWorld. Is there somebody
>>
>>who has an idea why the executable is missing?
>>
>>>So long pfannmoe
>>
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
> 
> 




More information about the Insight-users mailing list