[GH-ISSUE #28] Build instructions for linux needed #20

Closed
opened 2026-05-05 04:44:33 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @tavasti on GitHub (Apr 9, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/28

Build instructions for linux are needed. Plain cmake + make does not work. Make fails on
/home/tavasti/Downloads/barrier-2.0.0/src/./lib/common/common.h:27:3: error: #error "config.h missing"

error "config.h missing"

Originally created by @tavasti on GitHub (Apr 9, 2018). Original GitHub issue: https://github.com/debauchee/barrier/issues/28 Build instructions for linux are needed. Plain cmake + make does not work. Make fails on /home/tavasti/Downloads/barrier-2.0.0/src/./lib/common/common.h:27:3: error: #error "config.h missing" # error "config.h missing"
Author
Owner

@walker0643 commented on GitHub (Apr 14, 2018):

I believe I saw you getting help with this on IRC, @tavasti ... did everything work out?

And, yes, documentation is lacking at this point.

<!-- gh-comment-id:381352447 --> @walker0643 commented on GitHub (Apr 14, 2018): I believe I saw you getting help with this on IRC, @tavasti ... did everything work out? And, yes, documentation is lacking at this point.
Author
Owner

@tavasti commented on GitHub (Apr 15, 2018):

Yes, I got things rolling. Point was run clean_build.sh and if you are not on git version, in cmake/Version.cmake adding line like:
set (BARRIER_REVISION 12345678)

<!-- gh-comment-id:381385489 --> @tavasti commented on GitHub (Apr 15, 2018): Yes, I got things rolling. Point was run clean_build.sh and if you are not on git version, in cmake/Version.cmake adding line like: set (BARRIER_REVISION 12345678)
Author
Owner

@yupi2 commented on GitHub (Apr 15, 2018):

You might be able to do cmake -DBARRIER_REVISION 123123123 .....etc

<!-- gh-comment-id:381385655 --> @yupi2 commented on GitHub (Apr 15, 2018): You might be able to do `cmake -DBARRIER_REVISION 123123123 .....etc`
Author
Owner

@VertigoRay commented on GitHub (May 4, 2018):

Just walked through it on a new Linux Mint 18.3 Sylvia installation:

# Clone Repo
git clone https://github.com/debauchee/barrier.git
cd barrier

Now, you need to edit the CMakeLists.txt file and add /usr/include to the CMAKE_INCLUDE_PATH, seems to be known, but didn't work for me until I added it.

set (CMAKE_INCLUDE_PATH "${CMAKE_INCLUDE_PATH}:/usr/include")
set (XKBlib "X11/Xlib.h;X11/XKBlib.h") # This line is already here; add the previous line just above this.

Now, more bash commands:

# Install Dependencies
sudo apt -y install cmake gcc build-essential libx11-dev libavahi-compat-libdnssd-dev libxtst-dev qtbase5-dev libssl-dev

# Build Barrier
./clean_build.sh

# Run Barrier
./build/bin/barrier

Tried running ./build/bin/barrierc so I could just pass it all the parameters to connect to my barrier server, but it seemed to crash my terminal and not do anything else. So, for now I've added ./build/bin/barrier to my Startup Applications and I'll just have to type in the server IP each time I reboot. Not the end of the world, since I've been suffering a lot more since Synergy 2 released.

<!-- gh-comment-id:386739923 --> @VertigoRay commented on GitHub (May 4, 2018): Just walked through it on a new Linux Mint 18.3 Sylvia installation: ```bash # Clone Repo git clone https://github.com/debauchee/barrier.git cd barrier ``` Now, you need to edit the CMakeLists.txt file and add `/usr/include` to the `CMAKE_INCLUDE_PATH`, [seems to be known](https://github.com/debauchee/barrier/blob/c20346971db87af5deee59d7d04af86e680f52c0/CMakeLists.txt#L160), but didn't work for me until I added it. ``` set (CMAKE_INCLUDE_PATH "${CMAKE_INCLUDE_PATH}:/usr/include") set (XKBlib "X11/Xlib.h;X11/XKBlib.h") # This line is already here; add the previous line just above this. ``` Now, more bash commands: ```bash # Install Dependencies sudo apt -y install cmake gcc build-essential libx11-dev libavahi-compat-libdnssd-dev libxtst-dev qtbase5-dev libssl-dev # Build Barrier ./clean_build.sh # Run Barrier ./build/bin/barrier ``` Tried running `./build/bin/barrierc` so I could just pass it all the parameters to connect to my barrier server, but it seemed to crash my terminal and not do anything else. So, for now I've added `./build/bin/barrier` to my *Startup Applications* and I'll just have to type in the server IP each time I reboot. Not the end of the world, since I've been suffering a lot more since Synergy 2 released.
Author
Owner

@Persei08 commented on GitHub (May 12, 2018):

Thx @VertigoRay , for me on ubuntu 18.04, it was also necessary to install libcurl4-nss-dev (and there is a typo for libavahi-compat-libdnssd-dev)

Thanks everyone for this project

<!-- gh-comment-id:388567453 --> @Persei08 commented on GitHub (May 12, 2018): Thx @VertigoRay , for me on ubuntu 18.04, it was also necessary to install `libcurl4-nss-dev` (and there is a typo for libavahi-compat-libdnssd-dev) Thanks everyone for this project
Author
Owner

@VertigoRay commented on GitHub (May 13, 2018):

I'm glad it helped. 😊 Fixed the typo.

<!-- gh-comment-id:388601531 --> @VertigoRay commented on GitHub (May 13, 2018): I'm glad it helped. 😊 Fixed the typo.
Author
Owner

@dayne commented on GitHub (May 29, 2018):

I happen to have an answer (that I've since verified does successfully build barrier) for issue #41 where I tossed the following reply for the build process on linux:

sudo apt update && sudo apt upgrade
sudo apt install git cmake make xorg-dev g++ libcurl4-openssl-dev \
                 libavahi-compat-libdnssd-dev libssl-dev libx11-dev \
                 libqt4-dev qtbase5-dev
git clone git@github.com:debauchee/barrier.git
cd barrier
./clean_build.sh
cd build
sudo make install  # installs to /usr/local/ 

I'll recommend we add these (or better) instructions to the wiki at: https://github.com/debauchee/barrier/wiki/Building-on-Linux

<!-- gh-comment-id:392904132 --> @dayne commented on GitHub (May 29, 2018): I happen to have an answer (that I've since verified does successfully build barrier) for issue #41 where [I tossed the following reply](https://github.com/debauchee/barrier/issues/41#issuecomment-392900982) for the build process on linux: ``` sudo apt update && sudo apt upgrade sudo apt install git cmake make xorg-dev g++ libcurl4-openssl-dev \ libavahi-compat-libdnssd-dev libssl-dev libx11-dev \ libqt4-dev qtbase5-dev git clone git@github.com:debauchee/barrier.git cd barrier ./clean_build.sh cd build sudo make install # installs to /usr/local/ ``` I'll recommend we add these (or better) instructions to the wiki at: https://github.com/debauchee/barrier/wiki/Building-on-Linux
Author
Owner

@tavasti commented on GitHub (May 30, 2018):

For release-versions (tar or zip) instructions need bit more fidling, and those should be also covered.

<!-- gh-comment-id:393124707 --> @tavasti commented on GitHub (May 30, 2018): For release-versions (tar or zip) instructions need bit more fidling, and those should be also covered.
Author
Owner

@bezoris commented on GitHub (Nov 29, 2018):

Install Dependencies

sudo apt -y install cmake gcc build-essential libx11-dev libavahi-compat-libdnssd-dev libxtst-dev qtbase5-dev libssl-dev

Build Barrier

./clean_build.sh

Run Barrier

./build/bin/barrier

Many thanks!
Successful build on Debian stretch after installing libcurl3-nss separately followed by libcurl4-nss-dev; already had libcurl3 and libcurl3-gnutls installed.

Was going a bit batty trying to figure this out. Thanks again!

<!-- gh-comment-id:442655500 --> @bezoris commented on GitHub (Nov 29, 2018): > # Install Dependencies > sudo apt -y install cmake gcc build-essential libx11-dev libavahi-compat-libdnssd-dev libxtst-dev qtbase5-dev libssl-dev > > # Build Barrier > ./clean_build.sh > > # Run Barrier > ./build/bin/barrier > ``` Many thanks! Successful build on Debian stretch after installing **libcurl3-nss** separately followed by **libcurl4-nss-dev**; already had libcurl3 and libcurl3-gnutls installed. Was going a bit batty trying to figure this out. Thanks again!
Author
Owner

@adeperio commented on GitHub (Mar 31, 2019):

Can confirm @dayne 's instructions worked for me on ubuntu 18

<!-- gh-comment-id:478337916 --> @adeperio commented on GitHub (Mar 31, 2019): Can confirm @dayne 's instructions worked for me on ubuntu 18
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#20
No description provided.