[GH-ISSUE #128] assert.h not found #102

Closed
opened 2026-05-05 05:16:04 -06:00 by gitea-mirror · 12 comments
Owner

Originally created by @rizkyarlin on GitHub (Sep 10, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/128

Operating Systems

Server: Mac OS High Sierra

Client: Raspbian

I tried to build barrier on my machine and I got this error:

/Users/rizkyarlin/barrier/src/./lib/common/common.h:47:10: fatal error: 'assert.h' file not found #include <assert.h> ^~~~~~~~~~ 1 error generated. make[2]: *** [src/lib/arch/CMakeFiles/arch.dir/Arch.cpp.o] Error 1 make[1]: *** [src/lib/arch/CMakeFiles/arch.dir/all] Error 2 make: *** [all] Error 2

Originally created by @rizkyarlin on GitHub (Sep 10, 2018). Original GitHub issue: https://github.com/debauchee/barrier/issues/128 ### Operating Systems ### Server: Mac OS High Sierra Client: Raspbian I tried to build barrier on my machine and I got this error: `/Users/rizkyarlin/barrier/src/./lib/common/common.h:47:10: fatal error: 'assert.h' file not found #include <assert.h> ^~~~~~~~~~ 1 error generated. make[2]: *** [src/lib/arch/CMakeFiles/arch.dir/Arch.cpp.o] Error 1 make[1]: *** [src/lib/arch/CMakeFiles/arch.dir/all] Error 2 make: *** [all] Error 2`
Author
Owner

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

@AdrianKoshka - do we have a "Building on Mac" page you could link here for @rizkyarlin?

<!-- gh-comment-id:420068201 --> @walker0643 commented on GitHub (Sep 10, 2018): @AdrianKoshka - do we have a "Building on Mac" page you could link here for @rizkyarlin?
Author
Owner

@AdrianKoshka commented on GitHub (Sep 11, 2018):

Nope, I know nothing about the build process for macOS. If someone wants to clue me in, I could add a page to the wiki,

<!-- gh-comment-id:420110255 --> @AdrianKoshka commented on GitHub (Sep 11, 2018): Nope, I know nothing about the build process for macOS. If someone wants to clue me in, I could add a page to the wiki,
Author
Owner

@pciavald commented on GitHub (Oct 16, 2018):

same error here on macos 10.13, it seems xcode moved their headers in newer versions...

https://stackoverflow.com/questions/45834148/how-to-compile-synergy-on-mac-new-toolchain-from-2017

<!-- gh-comment-id:430160935 --> @pciavald commented on GitHub (Oct 16, 2018): same error here on macos 10.13, it seems xcode moved their headers in newer versions... https://stackoverflow.com/questions/45834148/how-to-compile-synergy-on-mac-new-toolchain-from-2017
Author
Owner

@AdrianKoshka commented on GitHub (Oct 16, 2018):

going to ping @p12tic here then.

<!-- gh-comment-id:430324734 --> @AdrianKoshka commented on GitHub (Oct 16, 2018): going to ping @p12tic here then.
Author
Owner

@p12tic commented on GitHub (Oct 18, 2018):

Hey, how are you building barrier? Just doing ./clean_build.sh should be enough. I've rebuilt barrier on all of 10.12, 10.13 and 10.14 just now and saw no issues. Could it be that you're using cmake and make directly? This approach is not supported.

<!-- gh-comment-id:431174846 --> @p12tic commented on GitHub (Oct 18, 2018): Hey, how are you building barrier? Just doing `./clean_build.sh` should be enough. I've rebuilt barrier on all of 10.12, 10.13 and 10.14 just now and saw no issues. Could it be that you're using cmake and make directly? This approach is not supported.
Author
Owner

@p12tic commented on GitHub (Oct 19, 2018):

@rizkyarlin: Ping :-)

<!-- gh-comment-id:431419020 --> @p12tic commented on GitHub (Oct 19, 2018): @rizkyarlin: Ping :-)
Author
Owner

@p12tic commented on GitHub (Oct 19, 2018):

@AdrianKoshka: What's the process of editing the wiki? I'd like to extend it with information of how to build barrier on OSX. Can't see any Edit buttons :-)

<!-- gh-comment-id:431419705 --> @p12tic commented on GitHub (Oct 19, 2018): @AdrianKoshka: What's the process of editing the wiki? I'd like to extend it with information of how to build barrier on OSX. Can't see any Edit buttons :-)
Author
Owner

@AdrianKoshka commented on GitHub (Oct 19, 2018):

There should be one:
screenshot_2018-10-19 debauchee barrier

<!-- gh-comment-id:431435123 --> @AdrianKoshka commented on GitHub (Oct 19, 2018): There should be one: ![screenshot_2018-10-19 debauchee barrier](https://user-images.githubusercontent.com/8690255/47233686-7c18de00-d3a1-11e8-91db-1d13fdc1c5da.png)
Author
Owner

@p12tic commented on GitHub (Oct 20, 2018):

I don't have the Edit and New Page buttons. Looks like there's some kind of permission problem. @walker0643 ?

<!-- gh-comment-id:431610056 --> @p12tic commented on GitHub (Oct 20, 2018): I don't have the `Edit` and `New Page` buttons. Looks like there's some kind of permission problem. @walker0643 ?
Author
Owner

@pciavald commented on GitHub (Oct 20, 2018):

Sorry i'm out of home for the weekend i'll try it using ./clean_install.sh when i come home.

<!-- gh-comment-id:431618636 --> @pciavald commented on GitHub (Oct 20, 2018): Sorry i'm out of home for the weekend i'll try it using ./clean_install.sh when i come home.
Author
Owner

@rizkyarlin commented on GitHub (Oct 21, 2018):

@rizkyarlin: Ping :-)

Should I close this issue? I stopped trying to build Barrier on my mac since I found another solution to my problem.

<!-- gh-comment-id:431672656 --> @rizkyarlin commented on GitHub (Oct 21, 2018): > @rizkyarlin: Ping :-) Should I close this issue? I stopped trying to build Barrier on my mac since I found another solution to my problem.
Author
Owner

@kmatt commented on GitHub (Nov 7, 2018):

diff --git a/clean_build.sh b/clean_build.sh
index fc1065a..5fa1a09 100755
--- a/clean_build.sh
+++ b/clean_build.sh
@@ -14,7 +14,7 @@ if [ "$(uname)" = "Darwin" ]; then
     # OSX needs a lot of extra help, poor thing
     # run the osx_environment.sh script to fix paths
     . ./osx_environment.sh
-    B_CMAKE_FLAGS="-DCMAKE_OSX_SYSROOT=$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 $B_CMAKE_FLAGS"
+    B_CMAKE_FLAGS="-DCMAKE_OSX_SYSROOT=$(xcode-select --print-path)/SDKs/MacOSX.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 $B_CMAKE_FLAGS"
 fi
 # allow local customizations to build environment
 [ -r ./build_env.sh ] && . ./build_env.sh
<!-- gh-comment-id:436780361 --> @kmatt commented on GitHub (Nov 7, 2018): ``` diff --git a/clean_build.sh b/clean_build.sh index fc1065a..5fa1a09 100755 --- a/clean_build.sh +++ b/clean_build.sh @@ -14,7 +14,7 @@ if [ "$(uname)" = "Darwin" ]; then # OSX needs a lot of extra help, poor thing # run the osx_environment.sh script to fix paths . ./osx_environment.sh - B_CMAKE_FLAGS="-DCMAKE_OSX_SYSROOT=$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 $B_CMAKE_FLAGS" + B_CMAKE_FLAGS="-DCMAKE_OSX_SYSROOT=$(xcode-select --print-path)/SDKs/MacOSX.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 $B_CMAKE_FLAGS" fi # allow local customizations to build environment [ -r ./build_env.sh ] && . ./build_env.sh ```
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#102
No description provided.