Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

CGAL - building INSTALL .sln faild



  • I have a problem while compiling CGAL I followed the steps here : http://www.cse.msu.edu/~ytong/CGAL_installation.ppt I'm using VS2013 , cgal 4.9.1 , BOOST 1.59.0 ,Qt5.7.1

    but when I reach at building INSTALL .sln step it show the following error:

    Error	1	error MSB3073: The command "setlocal
    "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
    if %errorlevel% neq 0 goto :cmEnd
    :cmEnd
    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    :cmErrorLevel
    exit /b %1
    :cmDone
    if %errorlevel% neq 0 goto :VCEnd
    :VCEnd" exited with code 1.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets	132	5	INSTALL
    
    

    output message :

    CMake Error at src/CGAL/cmake_install.cmake:44 (file):
    1>    file INSTALL cannot find
    1>    "C:/dev/CGAL-4.9.1/build/bin/Debug/CGAL-vc120-mt-gd-4.9.1.dll".
    1>  Call Stack (most recent call first):
    1>    src/cmake_install.cmake:32 (include)
    1>    cmake_install.cmake:91 (include)
    1>  
    1>  
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command "setlocal
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmEnd
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmErrorLevel
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: exit /b %1
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmDone
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :VCEnd" exited with code 1.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    

    any help please?


  • Lifetime Qt Champion

    Hi
    Not really a Qt question but i do wonder if
    Debug/CGAL-vc120-mt-gd-4.9.1.dll <<< do u have that file in debug folder ?

    So it simply fails to copy to "install" location.


  • Moderators

    @nour.m said in CGAL - building INSTALL .sln faild:

    Definitely not a Qt question, but ...

    1> CMake Error at cmake_install.cmake:39 (file):
    1> file INSTALL cannot set permissions on "C:/Program Files
    1> (x86)/CGAL/share/doc/CGAL-4.9.1/AUTHORS"

    The above looks to be the actual error that is causing cmake install to fail. Are you running as admin? Running an install to Program Files without admin will not work on a default configured windows system. You would have to specifically override that and it isn't easy to do that.

    It looks like a simple permissions error. Run that step in an elevated cmd or powershell and it should work.



  • @mrjj
    thanks for reply ,
    CGAL-vc120-mt-gd-4.9.1.dll file doesn't exist in debug folder



  • @ambershark
    I ran VS as administrator , it solves a part of problem
    now , file INSTALL cannot find CGAL-vc120-mt-gd-4.9.1.dll


  • Lifetime Qt Champion

    @nour.m
    But did it build it?
    Is it in some folder ?



  • @mrjj no, I cannot find that file any where
    I build All_build solution but INSTALL solution building which the error is found


  • Lifetime Qt Champion

    @nour.m
    That is odd as it dont sound like an compiling error
    and normally the last step.
    there is no other errors during build?



  • With all due respect for you university, those slides look to be ancient. Try following the guide from the library author instead

    Since you are on windows, you'll need to replace:

    • make with cmake --build .
    • make install with cmake --build . --target install
    • make demos with cmake --build . --target demos
    • make examples with cmake --build . --target examples

    P.S.

    I'm using [...] cgal 4.9.1 , BOOST 1.59.0 ,Qt5.7.1

    They are 1, 3 and 2 years old respectively. You can try and use the current versions of those 3 tools


  • Moderators

    @VRonin said in CGAL - building INSTALL .sln faild:

    With all due respect for you university, those slides look to be ancient.

    @nour-m Yea it just looks really out of date. The install target may just be broken for that application. A lot of developers tend to forget to check and update their install target since they don't use it. If it's looking for a file that wasn't built then it's a problem in the script imo. It could just be a bad IF() in the cmake where it should have excluded that from your build or it could be a legacy item that isn't built any more, etc.

    You can always modify the install target and ignore that piece if you're sure you don't need it. Which sounds like you don't since it wasn't even built. :)


Log in to reply