[vtk-developers] No makefile found

Ahmed Ben Ltaief ahmedbenltaief29 at gmail.com
Mon Dec 4 11:09:37 EST 2017


Thank you ben for you response.

I added CMake on cygwin, but now when i run cmake ..

CMake Error: Error in cmake code at
/cygdrive/c/ReadDICOM2/ReadDICOM/CMakeLists.txt:6:
Parse error.  Expected a newline, got identifier with text "find_package".
-- Configuring incomplete, errors occurred!


Despite that VAR_DIR modified in cmakelists:

cmake_minimum_required(VERSION 2.8)

PROJECT(ReadDICOM)

SET (VTK_DIR D:/VTK-8.0.0/bin) find_package(VTK REQUIRED)
include(${VTK_USE_FILE})

add_executable(ReadDICOM MACOSX_BUNDLE ReadDICOM.cxx )

target_link_libraries(ReadDICOM ${VTK_LIBRARIES})


<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Garanti
sans virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#m_-9183446350155148664_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

2017-12-04 15:47 GMT+01:00 Ben Boeckel <ben.boeckel at kitware.com>:

> On Mon, Dec 04, 2017 at 11:34:30 +0100, Ahmed Ben Ltaief wrote:
> > -- Building for: Visual Studio 15 2017
> <snip>
>
> > I don't know why the makeFile don't exist in the build directory.
> > I use cygwin to run the commands and i installed the build-essential. Can
> > you help me to fixe it.
>
> You're using a Windows CMake. Cygwin requires a Cygwin-built CMake.
>
> --Ben
>


2017-12-04 15:47 GMT+01:00 Ben Boeckel <ben.boeckel at kitware.com>:

> On Mon, Dec 04, 2017 at 11:34:30 +0100, Ahmed Ben Ltaief wrote:
> > -- Building for: Visual Studio 15 2017
> <snip>
>
> > I don't know why the makeFile don't exist in the build directory.
> > I use cygwin to run the commands and i installed the build-essential. Can
> > you help me to fixe it.
>
> You're using a Windows CMake. Cygwin requires a Cygwin-built CMake.
>
> --Ben
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20171204/74db5100/attachment.html>


More information about the vtk-developers mailing list