Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't compile on Mac (Ventura 13.5.2 & brew) #1

Open
yuraic opened this issue Oct 19, 2023 · 1 comment
Open

Doesn't compile on Mac (Ventura 13.5.2 & brew) #1

yuraic opened this issue Oct 19, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@yuraic
Copy link

yuraic commented Oct 19, 2023

It's probably not the issue with todonzo but rather with the 'brew' for Mac, I guess.

  1. cmake .. - worked fine!
  2. make - exited with an error as follows,

[yuriys-laptop] /Users/yuriy/Documents/Test/Development/todonzo/build >make
[ 14%] Building C object CMakeFiles/todonzo.dir/src/todonzo.c.o
[ 28%] Building C object CMakeFiles/todonzo.dir/src/reminder.c.o
[ 42%] Building C object CMakeFiles/todonzo.dir/src/array.c.o
[ 57%] Building C object CMakeFiles/todonzo.dir/src/notification.c.o
[ 71%] Building C object CMakeFiles/todonzo.dir/src/xdg.c.o
[ 85%] Building C object CMakeFiles/todonzo.dir/src/lock.c.o
[100%] Linking C executable todonzo
ld: library not found for -lnotify
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [todonzo] Error 1
make[1]: *** [CMakeFiles/todonzo.dir/all] Error 2
make: *** [all] Error 2

Clearly, it couldn't find libnotify in the paths for linking. The libnotify is installed using 'brew' for Mac, i.e. brew install libnotify.
Thanks!

@yuraic
Copy link
Author

yuraic commented Oct 19, 2023

Here is the cmake .. output if it helps,

-- The C compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- Checking for module 'libnotify'
-- Found libnotify, version 0.8.3
-- Configuring done (0.8s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/yuriy/Documents/Test/Development/todonzo/build

@nardinan nardinan self-assigned this Nov 3, 2023
@nardinan nardinan added the enhancement New feature or request label Nov 3, 2023
@nardinan nardinan added this to the Migration to SDL 2.0 milestone Nov 7, 2023
@nardinan nardinan added the good first issue Good for newcomers label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants