Skip to content

Errors when trying to run on MacOS Ventura 13.5 with Qt 6.5.1 and Cmake 3.27.3 #23

Description

@philCryoport

First had to make one change as it was complaining of overlapping smcli:

diff --git a/smcli/CMakeLists.txt b/smcli/CMakeLists.txt
index c8b331a..d31a3cd 100644
--- a/smcli/CMakeLists.txt
+++ b/smcli/CMakeLists.txt
@@ -55,7 +55,7 @@ target_compile_options(smcli PRIVATE
     $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror>
 )

-target_link_libraries(smcli Qt${QT_VERSION_MAJOR}::Core smcore)
+target_link_libraries(smcli PRIVATE Qt${QT_VERSION_MAJOR}::Core smcore)

It now would build in Qt Creator -- but when I try to run it in Qt Creator, get the following errors. Help?

15:17:46: Running steps for project SourceMonitorOS...
15:17:46: Starting: "/opt/homebrew/Cellar/cmake/3.27.3/bin/cmake" --build /Users/pschlesinger/GitHub/build-SourceMonitorOS-Qt_6_5_1_6_5_1_2_temporary-Release --target all
[  2%] Building CXX object smcore/CMakeFiles/smcore.dir/archivereader.cpp.o
In file included from /Users/pschlesinger/GitHub/SourceMonitorOS/smcore/archivereader.cpp:23:
/Users/pschlesinger/GitHub/SourceMonitorOS/smcore/archivereader.h:66:17: error: unknown type name '__time32_t'
                __time32_t time_32;
                ^
/Users/pschlesinger/GitHub/SourceMonitorOS/smcore/archivereader.h:67:74: error: use of undeclared identifier '__time32_t'
                m_stream.read(reinterpret_cast<char *>(&time_32), sizeof(__time32_t));
                                                                         ^
/Users/pschlesinger/GitHub/SourceMonitorOS/smcore/archivereader.h:73:21: error: unknown type name '__time64_t'
                    __time64_t time_64;
                    ^
/Users/pschlesinger/GitHub/SourceMonitorOS/smcore/archivereader.h:74:78: error: use of undeclared identifier '__time64_t'
                    m_stream.read(reinterpret_cast<char *>(&time_64), sizeof(__time64_t));
                                                                             ^
4 errors generated.
make[2]: *** [smcore/CMakeFiles/smcore.dir/archivereader.cpp.o] Error 1
make[1]: *** [smcore/CMakeFiles/smcore.dir/all] Error 2
make: *** [all] Error 2
15:17:46: The process "/opt/homebrew/Cellar/cmake/3.27.3/bin/cmake" exited with code 2.
Error while building/deploying project SourceMonitorOS (kit: Qt 6.5.1 (6.5.1_2))
When executing step "Build"
15:17:46: Elapsed time: 00:01.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions