Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. CGAL - building INSTALL .sln faild
Qt 6.11 is out! See what's new in the release blog

CGAL - building INSTALL .sln faild

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 2.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nour.m
    wrote on last edited by nour.m
    #1

    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?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      N 1 Reply Last reply
      1
      • A Offline
        A Offline
        ambershark
        wrote on last edited by
        #3

        @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.

        My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

        N 1 Reply Last reply
        3
        • mrjjM mrjj

          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.

          N Offline
          N Offline
          nour.m
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • A ambershark

            @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.

            N Offline
            N Offline
            nour.m
            wrote on last edited by
            #5

            @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

            mrjjM 1 Reply Last reply
            0
            • N nour.m

              @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

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

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

              N 1 Reply Last reply
              1
              • mrjjM mrjj

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

                N Offline
                N Offline
                nour.m
                wrote on last edited by
                #7

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

                mrjjM 1 Reply Last reply
                0
                • N nour.m

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

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @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?

                  1 Reply Last reply
                  1
                  • VRoninV Offline
                    VRoninV Offline
                    VRonin
                    wrote on last edited by VRonin
                    #9

                    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

                    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                    ~Napoleon Bonaparte

                    On a crusade to banish setIndexWidget() from the holy land of Qt

                    A 1 Reply Last reply
                    3
                    • VRoninV VRonin

                      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

                      A Offline
                      A Offline
                      ambershark
                      wrote on last edited by
                      #10

                      @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. :)

                      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                      1 Reply Last reply
                      1

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved