-
Notifications
You must be signed in to change notification settings - Fork 16
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
Comments
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:
by
|
I changed the CMAKE_CXX_STANDARD, but i still have problems with installing loguru. I have also tried this solution:
Source: https://stackoverflow.com/questions/64190258/git-submodule-fails-with-could-not-access-submodule |
I also tried doing change in the .gitmodules file by replacing the https into the ssh path of the project:
Still not working.. Then I tried:
|
I have not been maintaining the CMakeLists.txt for this project.
When a new package is added, we need to update CMakeLists.txt accordingly.
For loguru and possibly others, for example, add the requisite
include_directories() statement. Some packages have native CMake support
so you can do find_packages() for those.
Try this diff:
$ git diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c6cb4c2..68af89b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,7 @@ find_package(OpenSSL REQUIRED)
include_directories(include)
include_directories(cpp-httplib)
+include_directories(loguru)
include_directories(${OPENSSL_INCLUDE_DIR})
add_subdirectory(src)
…On Fri, 29 Jul 2022 at 15:11, Ljubomir Sinadinovski < ***@***.***> wrote:
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 = ***@***.***: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 ***@***.***:emilk/loguru.git
git git submodule update --init --force -
—
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVDPZSZOWE6YSZ5ANPFFMTVWRJJPANCNFSM5427JTVQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The current error I see after setting C++ to 17 is
budgetwarrior/include/cpp_utils/string.hpp:18:72: error: no member named
'ptr_fun' in namespace 'std'
s.erase(s.begin(), std::find_if(s.begin(), s.end(),
std::not1(std::ptr_fun<int, int>(std::isspace))));
std::ptr_fun was a C++11 feature and fully removed from C++17.
…On Fri, 29 Jul 2022 at 15:56, Robert C. Romano ***@***.***> wrote:
I have not been maintaining the CMakeLists.txt for this project.
When a new package is added, we need to update CMakeLists.txt accordingly.
For loguru and possibly others, for example, add the requisite
include_directories() statement. Some packages have native CMake support
so you can do find_packages() for those.
Try this diff:
$ git diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c6cb4c2..68af89b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,7 @@ find_package(OpenSSL REQUIRED)
include_directories(include)
include_directories(cpp-httplib)
+include_directories(loguru)
include_directories(${OPENSSL_INCLUDE_DIR})
add_subdirectory(src)
On Fri, 29 Jul 2022 at 15:11, Ljubomir Sinadinovski <
***@***.***> wrote:
> 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 = ***@***.***: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 ***@***.***:emilk/loguru.git
> git git submodule update --init --force -
>
> —
> Reply to this email directly, view it on GitHub
> <#24 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAVDPZSZOWE6YSZ5ANPFFMTVWRJJPANCNFSM5427JTVQ>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
#25 for fixing up all issues. |
wichtounet/cpp_utils#1 for cpp_utils fix needed. |
Thanks @robromano, we can discuss in your two PRs |
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 |
@robromano how do i download the build? I don't see any artefact do download or anything, only logs |
You will still need to build it yourself, the GitHub action workflow is
just to verify future code submissions will build successfully with both
compilers/platforms.
…On Fri, Aug 5, 2022 at 2:33 AM Ljubomir Sinadinovski < ***@***.***> wrote:
@robromano <https://github.com/robromano> how do i download the build? I
don't see any artefact do download or anything, only logs
—
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVDPZUS5SGZVIZGLF3IVW3VXTNVJANCNFSM5427JTVQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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)
The text was updated successfully, but these errors were encountered: