[vtk-developers] No makefile found

Ahmed Ben Ltaief ahmedbenltaief29 at gmail.com
Mon Dec 4 12:43:10 EST 2017


Hello Ben,

I left cygwin, i change the VTK_DIR like always, and i run cmake .. with
windows cmake, it works.

And then when i run make the same problem occur, no makefile generated: make:
*** No targets specified and no makefile found. Stop. It's really wreid.

2017-12-04 17:09 GMT+01:00 Ahmed Ben Ltaief <ahmedbenltaief29 at gmail.com>:

> 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_-8852953459366276914_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/1be5ae2c/attachment.html>


More information about the vtk-developers mailing list