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

Build for MacOS is not working #24

Closed
ljubomirsinadinovski opened this issue Jul 27, 2022 · 11 comments
Closed

Build for MacOS is not working #24

ljubomirsinadinovski opened this issue Jul 27, 2022 · 11 comments

Comments

@ljubomirsinadinovski
Copy link

This is the terminal output when running ./build_macos.sh:

https://pastebin.com/tZrzf3pe

(I added pastebin link because output was too long for github)

@wichtounet
Copy link
Owner

wichtounet commented Jul 28, 2022

Hi

FYI, the Mac OS building code is highly experimental, I have never tested it and it was contributed by @robromano

Looking at the errors, I can see two things:

  • It looks like the loguru submodule is missing. Can you do a git submodule update --init --recursive?
  • It looks like there are C++17 warnings and issues, can you try replace this line in Cmakelists.txt

set(CMAKE_CXX_STANDARD 14)

by

set(CMAKE_CXX_STANDARD 17)

@ljubomirsinadinovski
Copy link
Author

ljubomirsinadinovski commented Jul 29, 2022

I changed the CMAKE_CXX_STANDARD, but i still have problems with installing loguru. I have also tried this solution:

git submodule update --init --recursive
Then, try the pull --recurse-submodules=true again.

Somehow, [activating the traces](https://stackoverflow.com/a/56094711/6309) improve the situation:

git -c trace2.eventTarget=1 pull --recurse-submodules=true

Source: https://stackoverflow.com/questions/64190258/git-submodule-fails-with-could-not-access-submodule

@ljubomirsinadinovski
Copy link
Author

I also tried doing change in the .gitmodules file by replacing the https into the ssh path of the project:

[submodule "loguru"]
	path = loguru
	url = git@github.com:emilk/loguru.git

Still not working..

Then I tried:

git submodules deinit loguru
git submodule update loguru
git submodule init loguru  
git submodule sync loguru
git submodule set-url loguru git@github.com:emilk/loguru.git
git git submodule update --init --force -    

@robromano
Copy link
Contributor

robromano commented Jul 29, 2022 via email

@robromano
Copy link
Contributor

robromano commented Jul 29, 2022 via email

@robromano
Copy link
Contributor

#25 for fixing up all issues.

@robromano
Copy link
Contributor

wichtounet/cpp_utils#1 for cpp_utils fix needed.

@wichtounet
Copy link
Owner

Thanks @robromano, we can discuss in your two PRs

@robromano
Copy link
Contributor

I just converted a repo of mine using Travis CI (which is now unsupported) to Github Actions - to automatically build and test all changes on push. Github Actions are fantastic.

I'd propose converting away from Makefile to CMake, and enable Github Actions workflow to build both platforms every push. I'll submit a PR.

Working example of CMake on Linux for budgetwarrior: https://github.com/robromano/budgetwarrior/runs/7660441303?check_suite_focus=true
(It probably used a newer version of GCC - which is why there are some new compiler errors there)

@ljubomirsinadinovski
Copy link
Author

@robromano how do i download the build? I don't see any artefact do download or anything, only logs

@robromano
Copy link
Contributor

robromano commented Aug 5, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants