[GH-ISSUE #113] How to compile Barrier for Windows? #87

Closed
opened 2026-05-05 05:12:40 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @wchurch58 on GitHub (Aug 12, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/113

Operating Systems

Server: Windows 10 version 1803 (also worked this way on previous version of windows I was on)
Client: Devuan Linux & Artix Linux

Barrier Version

2.1.0-RELEASE-0b2dfd80 & 2.1.0-snapshot-5498836b server/clients

Hi, I was hoping someone here could tell me how I am supposed to compile Barrier for Windows, as I don't really want to change all the versions on my other PCs.

 cmake ..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:19 (project):
  The CMAKE_C_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  To use the NMake generator with Visual C++, cmake must be run from a shell
  that can use the compiler cl from the command line.  This environment is
  unable to invoke the cl compiler.  To fix this problem, run cmake from the
  Visual Studio Command Prompt (vcvarsall.bat).

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:19 (project):
  The CMAKE_CXX_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  To use the NMake generator with Visual C++, cmake must be run from a shell
  that can use the compiler cl from the command line.  This environment is
  unable to invoke the cl compiler.  To fix this problem, run cmake from the
  Visual Studio Command Prompt (vcvarsall.bat).

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "C:/Users/kz_jo/git/barrier/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/kz_jo/git/barrier/build/CMakeFiles/CMakeError.log".

Originally created by @wchurch58 on GitHub (Aug 12, 2018). Original GitHub issue: https://github.com/debauchee/barrier/issues/113 ### Operating Systems ### Server: Windows 10 version 1803 (also worked this way on previous version of windows I was on) Client: Devuan Linux & Artix Linux ### Barrier Version ### 2.1.0-RELEASE-0b2dfd80 & 2.1.0-snapshot-5498836b server/clients Hi, I was hoping someone here could tell me how I am supposed to compile Barrier for Windows, as I don't really want to change all the versions on my other PCs. ``` cmake .. -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:19 (project): The CMAKE_C_COMPILER: cl is not a full path and was not found in the PATH. To use the NMake generator with Visual C++, cmake must be run from a shell that can use the compiler cl from the command line. This environment is unable to invoke the cl compiler. To fix this problem, run cmake from the Visual Studio Command Prompt (vcvarsall.bat). Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error at CMakeLists.txt:19 (project): The CMAKE_CXX_COMPILER: cl is not a full path and was not found in the PATH. To use the NMake generator with Visual C++, cmake must be run from a shell that can use the compiler cl from the command line. This environment is unable to invoke the cl compiler. To fix this problem, run cmake from the Visual Studio Command Prompt (vcvarsall.bat). Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. -- Configuring incomplete, errors occurred! See also "C:/Users/kz_jo/git/barrier/build/CMakeFiles/CMakeOutput.log". See also "C:/Users/kz_jo/git/barrier/build/CMakeFiles/CMakeError.log". ```
gitea-mirror 2026-05-05 05:12:40 -06:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@wchurch58 commented on GitHub (Aug 12, 2018):

It would be really helpful if you guys could update your Wiki & add WIndows compile directions.
I am currently dual-booting Windows 10 / Artix Linux, will I have to confirm the connection on clients each time I switch between Windows & Artix or will it auto-accept once its been approved the first time?

Pretty sure I have visual studio, so what is it I could be missing? :S perhaps the proper cmake command? And can I do this in the git bash terminal or...?

<!-- gh-comment-id:412343717 --> @wchurch58 commented on GitHub (Aug 12, 2018): It would be really helpful if you guys could update your Wiki & add WIndows compile directions. I am currently dual-booting Windows 10 / Artix Linux, will I have to confirm the connection on clients each time I switch between Windows & Artix or will it auto-accept once its been approved the first time? Pretty sure I have visual studio, so what is it I could be missing? :S perhaps the proper cmake command? And can I do this in the git bash terminal or...?
Author
Owner

@AdrianKoshka commented on GitHub (Aug 13, 2018):

The Wiki has build instructions for windows that have been verified working by the person who wrote them. That person is @W4RH4WK.

<!-- gh-comment-id:412382167 --> @AdrianKoshka commented on GitHub (Aug 13, 2018): The Wiki has build instructions for windows that have been verified working by the person who wrote them. That person is @W4RH4WK.
Author
Owner

@W4RH4WK commented on GitHub (Aug 13, 2018):

@AdrianKoshka can you please add a note to the install Visual Studio Community step that people have to select Desktop development with C++, otherwise they won't have a C++ compiler and the related libraries.

image

<!-- gh-comment-id:412444795 --> @W4RH4WK commented on GitHub (Aug 13, 2018): @AdrianKoshka can you please add a note to the *install Visual Studio Community* step that people have to select *Desktop development with C++*, otherwise they won't have a C++ compiler and the related libraries. ![image](https://user-images.githubusercontent.com/328798/44020853-809dcaaa-9ee3-11e8-917e-94a2ea88fdea.png)
Author
Owner

@AdrianKoshka commented on GitHub (Aug 13, 2018):

Can do :)

<!-- gh-comment-id:412685368 --> @AdrianKoshka commented on GitHub (Aug 13, 2018): Can do :)
Author
Owner

@wchurch58 commented on GitHub (Aug 15, 2018):

Dang, looks like my only choice is to cross-compile this, if that's even possible.... QT and the C++ development take up way too much harddrive space, leaving me with way too little space to do anything else... How can I cross-compile this on Linux for Windows?

<!-- gh-comment-id:413320196 --> @wchurch58 commented on GitHub (Aug 15, 2018): Dang, looks like my only choice is to cross-compile this, if that's even possible.... QT and the C++ development take up way too much harddrive space, leaving me with way too little space to do anything else... How can I cross-compile this on Linux for Windows?
Author
Owner

@p12tic commented on GitHub (Aug 15, 2018):

How can I cross-compile this on Linux for Windows?
I'd say it would be much easier to buy more disk space. Maybe something from the wine project works, but it'll take hundreds of hours to figure everything out.

<!-- gh-comment-id:413348669 --> @p12tic commented on GitHub (Aug 15, 2018): > How can I cross-compile this on Linux for Windows? I'd say it would be much easier to buy more disk space. Maybe something from the wine project works, but it'll take hundreds of hours to figure everything out.
Author
Owner

@AdrianKoshka commented on GitHub (Aug 15, 2018):

I don't think that's possible?

<!-- gh-comment-id:413356264 --> @AdrianKoshka commented on GitHub (Aug 15, 2018): I don't think that's possible?
Author
Owner

@walker0643 commented on GitHub (Sep 8, 2018):

It looks like @wchurch58's original question was answered. Please feel free to reopen if needed.

<!-- gh-comment-id:419676352 --> @walker0643 commented on GitHub (Sep 8, 2018): It looks like @wchurch58's original question was answered. Please feel free to reopen if needed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#87
No description provided.