[vtkusers] CMake Problem
David Gobbi
david.gobbi at gmail.com
Mon Feb 6 10:45:51 EST 2017
Hi Erik,
A failure like this one usually means there are missing dependencies.
Try "apt-get build-essentials" to make sure all the usually header files
are installed. Other packages might also be needed, it's been a while
since I've done a fresh linux install so I can't remember what all the
dependencies are.
- David
On Mon, Feb 6, 2017 at 7:00 AM, <WernerHeukelbach at gmx.de> wrote:
>
> Hallo all,
>
> I want to make the VTK libraries in linux, using CMake, and I use the
> archive
> VTK-7.1.0.tar.gz. I want the libraries cross-compiled at the end.
>
> I use UBUNTU 16.04.
>
> In CMake, I tested with the "use default native compilers" option to
> begin with
> and to check it out.
>
> I get error messages, see PS.
>
> When taking version 7.0.0 or 6.3.0, error messages will also occur, but
> different ones.
>
> Performing an analogous procedure in Windows, no problems occur, and
> Visual Studio builds with
> 0 errors at the end.
>
> Any suggestions?
> Thanks,
> ERik
>
> un Build Command:"/usr/bin/make" "cmTC_eb000/fast"
> /usr/bin/make -f CMakeFiles/cmTC_eb000.dir/build.make
> CMakeFiles/cmTC_eb000.dir/build
> make[1]: Verzeichnis „/home/ema/MyProjects/VTK-bin/CMakeFiles/CMakeTmp“
> wird betreten
> Building C object CMakeFiles/cmTC_eb000.dir/CheckFunctionExists.c.o
> /usr/bin/cc -w -w -Wall -Winline -W -Wformat-security -Wpointer-arith
> -Wdisabled-optimization -Wno-unknown-pragmas -Wdeclaration-after-statement
> -fstrict-aliasing -DCHECK_FUNCTION_EXISTS=jbg_newlen -o
> CMakeFiles/cmTC_eb000.dir/CheckFunctionExists.c.o -c
> /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
> Linking C executable cmTC_eb000
> /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_eb000.dir/link.txt
> --verbose=1
> /usr/bin/cc -w -w -Wall -Winline -W -Wformat-security -Wpointer-arith
> -Wdisabled-optimization -Wno-unknown-pragmas -Wdeclaration-after-statement
> -fstrict-aliasing -DCHECK_FUNCTION_EXISTS=jbg_newlen
> CMakeFiles/cmTC_eb000.dir/CheckFunctionExists.c.o -o cmTC_eb000
> -rdynamic
> CMakeFiles/cmTC_eb000.dir/CheckFunctionExists.c.o: In Funktion `main':
> CheckFunctionExists.c:(.text+0x15): Nicht definierter Verweis auf
> `jbg_newlen'
> collect2: error: ld returned 1 exit status
> CMakeFiles/cmTC_eb000.dir/build.make:97: die Regel für Ziel „cmTC_eb000“
> scheiterte
> make[1]: *** [cmTC_eb000] Fehler 1
> make[1]: Verzeichnis „/home/ema/MyProjects/VTK-bin/CMakeFiles/CMakeTmp“
> wird verlassen
> Makefile:126: die Regel für Ziel „cmTC_eb000/fast“ scheiterte
> make: *** [cmTC_eb000/fast] Fehler 2
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170206/3cc354a1/attachment.html>
More information about the vtkusers
mailing list