Closed bushaev-denis closed 2 years ago
This fixes with adding new cmake flag (build.sh)
-CFLAGS=-stdlib=libc++
But then ive got new error
CMake Error at CMakeLists.txt:120 (find_package):
By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Core", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Core" with any
of the following names:
Qt5CoreConfig.cmake
qt5core-config.cmake
Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
"Qt5Core_DIR" to a directory containing one of the above files. If
"Qt5Core" provides a separate development package or SDK, be sure it has
been installed.
Ok, this also fixed with replace
if(APPLE AND EXISTS /opt/homebrew/opt/qt@5)
list(APPEND CMAKE_PREFIX_PATH "/Users/dez/homebrew/opt/qt@5/bin")
endif()
to
list(APPEND CMAKE_PREFIX_PATH "/Users/dez/homebrew/opt/qt@5")
on CMakeList.txt
But then ive got new error 😢
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Library/Developer/CommandLineTools/usr/bin/cc
Build flags:
Id flags:
The output was:
1
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Library/Developer/CommandLineTools/usr/bin/c++
Build flags:
Id flags:
The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
MAYBE my answer will look funny to people who know what's going on here 😄 . (im just php/js coder) But in the end I fixed this problem by adding just 2 lines before project(Launcher) CMakeList.txt
set(CMAKE_CXX_FLAGS " -stdlib=libc++ ${CMAKE_CXX_FLAGS}")
list(APPEND CMAKE_PREFIX_PATH "/Users/dez/homebrew/opt/qt@5")
project(Launcher)
Now its your problem @ViRb3 😆
Describe the bug Cannot build
To reproduce
Expected behavior Successfully build
Logs
System configuration