ide is Clion, Qt6.2.2, MSVS 2019, 64 bit, windows 10 21H1
i want to replace Clion with Visual studio (the program can work in vs)
the code is
QNetworkAccessManager manager;
manager.get(request);
qDebug() << QSslSocket::supportsSsl() << QSslSocket::sslLibraryBuildVersionString() << QSslSocket::sslLibraryVersionString() << QSslSocket::sslLibraryVersionNumber();
show: false, "", "", -1
my cmake:
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_PREFIX_PATH "C:\\Qt\\6.2.2\\msvc2019_64")
set(INC_DIR C:\\Qt\\Tools\\OpenSSL\\Win_x64\\include)
set(LINK_DIR C:\\Qt\\Tools\\OpenSSL\\Win_x64\\lib)
include_directories(${INC_DIR})
link_directories(${LINK_DIR})
link_libraries(libcrypto libssl)
find_package(OpenSSL REQUIRED)
find_package(Qt6 COMPONENTS
Core
Gui
Widgets
Network
REQUIRED)
add_executable(untitled
main.cpp
)
target_link_libraries(untitled PRIVATE
Qt6::Core
Qt6::Gui
Qt6::Widgets
Qt6::Network
OpenSSL::SSL
OpenSSL::Crypto
)
program run show:
qt.network.ssl: No TLS backend is available
qt.network.ssl: No functional TLS backend was found
qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
false "" "" -1
cmake show:
C:\Users\mainj\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\213.6461.46\bin\cmake\win\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - NMake Makefiles" C:\Users\mainj\CLionProjects\untitled
-- The C compiler identification is MSVC 19.28.29914.0
-- The CXX compiler identification is MSVC 19.28.29914.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenSSL: C:/Qt/Tools/OpenSSL/Win_x64/lib/libcrypto.lib (found version "1.1.1j")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
-- Found WrapOpenSSLHeaders: C:/Qt/Tools/OpenSSL/Win_x64/include (found version "1.1.1j")
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/mainj/CLionProjects/untitled/cmake-build-debug
[Finished]
I was solved by self.
it's just use windeployqt.exe to import all library.
every is all right.
Related
i've compiled the azerothcore from source on my aarch64 machine. I am running HestiaCP on it with MariaDB 10.6.8. When starting the authserver i get the message
MySQL client library: 8.0.29
MySQL server ver: 5.5.5-10.6.8-MariaDB-1:10.6.8+maria~focal
Connected to MySQL database at 127.0.0.1
AzerothCore does not support MySQL versions below 5.7 or MariaDB versions below 10.5
DatabasePool Login NOT opened. There were errors opening the MySQL connections. Check your log file for specific errors
I think there is a problem with checking the right DB version. I dont know why it starts with 5.5.5. Is it a linking problem? But i dont see any installed packages older than what is required by the server. Any guess?
CMake Output:
-- CMake version: 3.16.3
-- The CXX compiler identification is Clang 10.0.0
-- The C compiler identification is Clang 10.0.0
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Running cmake hook: AFTER_LOAD_CONF
-- No hooks registered for AFTER_LOAD_CONF
-- Enabled С++20 standard
-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/clang
-- Clang: Minimum version required is 10.0.0, found 10.0.0 - ok!
-- Performing Test CLANG_HAVE_PROPER_CHARCONV
-- Performing Test CLANG_HAVE_PROPER_CHARCONV - Success
-- Clang: All warnings enabled
-- Running cmake hook: AFTER_LOAD_CMAKE_MODULES
-- No hooks registered for AFTER_LOAD_CMAKE_MODULES
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/aarch64-linux-gnu/libmariadb.so
-- Found MySQL headers: /usr/include/mariadb
-- Found MySQL executable: /usr/bin/mysql
-- Found git binary : /usr/bin/git
* AzerothCore revision : 9673da19470d 2022-07-03 19:50:39 +0000 (master branch)
* AzerothCore buildtype : RelWithDebInfo
* Install core to : /home/ubuntu/azeroth-server
* Install libraries to : /home/ubuntu/azeroth-server/lib
* Install configs to : /home/ubuntu/azeroth-server/etc
* Build applications : Yes (all)
* Build tools : No
* Build with scripts : Yes (static)
* Build with modules : Yes (static)
* Build unit tests : No (default)
* Build core w/PCH : Yes (default)
* Build scripts w/PCH : Yes (default)
* Show all warnings : Yes
* Use coreside debug : No (default)
* Use unix gperftools : No (default)
* Use GIT revision hash : Yes (default)
* Enable vmap DisableMgr checks : Yes (default)
* Show source tree : No (For UNIX default)
-- Performing Test HAVE_NEON
-- Performing Test HAVE_NEON - Success
-- Found Boost: /usr/lib/aarch64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.67") found components: system filesystem program_options iostreams regex
-- Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
-- Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Success
-- Looking for strtod_l
-- Looking for strtod_l - not found
-- Looking for MADV_FREE
-- Looking for MADV_FREE - found
-- Found OpenSSL: /usr/lib/aarch64-linux-gnu/libssl.so;/usr/lib/aarch64-linux-gnu/libcrypto.so
-- Looking for C++ include filesystem
-- Looking for C++ include filesystem - found
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version "1.2.11")
-- Found Readline library: /usr/lib/aarch64-linux-gnu/libreadline.so
-- Include dir is: /usr/include
-- Running cmake hook: BEFORE_SRC_LOAD
-- No hooks registered for BEFORE_SRC_LOAD
* Apps build list (all):
|
+- apps
| +- authserver
| +- worldserver
|
-- Running cmake hook: BEFORE_GAME_LIBRARY
-- No hooks registered for BEFORE_GAME_LIBRARY
-- Running cmake hook: AFTER_GAME_LIBRARY
-- No hooks registered for AFTER_GAME_LIBRARY
-- Running cmake hook: BEFORE_SCRIPTS_LIBRARY
-- No hooks registered for BEFORE_SCRIPTS_LIBRARY
* Script configuration (static):
|
+- worldserver
| +- Commands
| +- Custom
| +- EasternKingdoms
| +- Events
| +- Kalimdor
| +- Northrend
| +- OutdoorPvP
| +- Outland
| +- Pet
| +- Spells
| +- World
|
* Modules configuration (static):
|
-- * Modules config list:
|
-- Running cmake hook: AFTER_SRC_LOAD
-- No hooks registered for AFTER_SRC_LOAD
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
TOOLS
-- Build files have been written to: /home/ubuntu/src/azerothcore/build
mysql -V / mariadb -V output:
mysql Ver 15.1 Distrib 10.6.8-MariaDB, for debian-linux-gnu (aarch64) using readline 5.2
installed packages with mysql tag:
libmysqlclient21/focal-updates,focal-security,now 8.0.29-0ubuntu0.20.04.3 arm64 [installed,automatic]
mysql-common/unknown,now 1:10.6.8+maria~focal all [installed,automatic]
php8.0-mysql/focal,now 1:8.0.20-2+ubuntu20.04.1+deb.sury.org+1 arm64 [installed]
installed packages with mariadb tag:
libdbd-mariadb-perl/focal,now 1.11-3ubuntu2 arm64 [installed,automatic]
libmariadb-dev-compat/unknown,now 1:10.6.8+maria~focal arm64 [installed]
libmariadb-dev/unknown,now 1:10.6.8+maria~focal arm64 [installed]
libmariadb3/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-client-10.6/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-client-core-10.6/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-client/unknown,now 1:10.6.8+maria~focal all [installed]
mariadb-common/unknown,now 1:10.6.8+maria~focal all [installed]
mariadb-server-10.6/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-server-core-10.6/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-server/unknown,now 1:10.6.8+maria~focal all [installed]
I try to use CLion to make QT project, I have QT6 install and I just want to run a basic "helloworld" (to be sure that my configuration is ok). But i got some issues, my CLion problems terminal is empty but when I try to run the code I got this error :
"D:\CLion 2021.1.1\bin\cmake\win\bin\cmake.exe" --build D:\Qt\6.0.2\mingw81_64\bin --target GameRegister -- -j 12
Scanning dependencies of target GameRegister_autogen
[ 20%] Automatic MOC and UIC for target GameRegister
[ 20%] Built target GameRegister_autogen
Scanning dependencies of target GameRegister
[ 40%] Building CXX object CMakeFiles/GameRegister.dir/GameRegister_autogen/mocs_compilation.cpp.obj
[ 60%] Building CXX object CMakeFiles/GameRegister.dir/main.cpp.obj
[ 80%] Building CXX object CMakeFiles/GameRegister.dir/gameregister.cpp.obj
[100%] Linking CXX executable GameRegister.exe
Error copying file "D:/Qt/6.0.2/mingw81_64/lib/cmake/../../bin/Qt6Cored.dll" to "D:/Qt/6.0.2/mingw81_64/bin".
mingw32-make.exe[3]: *** [CMakeFiles\GameRegister.dir\build.make:141: GameRegister.exe] Error 1
mingw32-make.exe[3]: *** Deleting file 'GameRegister.exe'
mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:95: CMakeFiles/GameRegister.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:102: CMakeFiles/GameRegister.dir/rule] Error 2
mingw32-make.exe: *** [Makefile:136: GameRegister] Error 2
To make my configuration I followed this guide
https://www.jetbrains.com/help/clion/qt-tutorial.html#issues-limits
and I also look in Qt documentation to make my CMakeLists.txt.
my CMakeLists.txt :
cmake_minimum_required(VERSION 3.19)
project(GameRegister)
#Cmake with 20cpp version
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
#QT version
set(QT_VERSION 6)
set(REQUIRED_LIBS Core)
set(REQUIRED_LIBS_QUALIFIED Qt6::Core)
add_executable(${PROJECT_NAME}
main.cpp gameregister.cpp
gameregister.h
gameregister.ui
)
#Path to cmake lib in QT
set(CMAKE_PREFIX_PATH "D:/Qt/6.0.2/mingw81_64/lib/cmake")
if (NOT CMAKE_PREFIX_PATH)
message(WARNING "CMAKE_PREFIX_PATH is not defined, you may need to set it "
"(-DCMAKE_PREFIX_PATH=\"path/to/Qt/lib/cmake\" or -DCMAKE_PREFIX_PATH=/usr/include/{host}/qt{version}/ on Ubuntu)")
endif ()
#Find necessary packages
find_package(Qt${QT_VERSION} COMPONENTS ${REQUIRED_LIBS} REQUIRED)
find_package(Qt${QT_VERSION} COMPONENTS Widgets REQUIRED)
#Target packages
target_link_libraries(${PROJECT_NAME} ${REQUIRED_LIBS_QUALIFIED})
target_link_libraries(${PROJECT_NAME} Qt6::Widgets)
#auto generated by CLion on creation
if (WIN32)
set(DEBUG_SUFFIX)
if (CMAKE_BUILD_TYPE MATCHES "Debug")
set(DEBUG_SUFFIX "d")
endif ()
set(QT_INSTALL_PATH "${CMAKE_PREFIX_PATH}")
if (NOT EXISTS "${QT_INSTALL_PATH}/bin")
set(QT_INSTALL_PATH "${QT_INSTALL_PATH}/..")
if (NOT EXISTS "${QT_INSTALL_PATH}/bin")
set(QT_INSTALL_PATH "${QT_INSTALL_PATH}/..")
endif ()
endif ()
if (EXISTS "${QT_INSTALL_PATH}/plugins/platforms/qwindows${DEBUG_SUFFIX}.dll")
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory
"$<TARGET_FILE_DIR:${PROJECT_NAME}>/plugins/platforms/")
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
"${QT_INSTALL_PATH}/plugins/platforms/qwindows${DEBUG_SUFFIX}.dll"
"$<TARGET_FILE_DIR:${PROJECT_NAME}>/plugins/platforms/")
endif ()
foreach (QT_LIB ${REQUIRED_LIBS})
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
"${QT_INSTALL_PATH}/bin/Qt${QT_VERSION}${QT_LIB}${DEBUG_SUFFIX}.dll"
"$<TARGET_FILE_DIR:${PROJECT_NAME}>")
endforeach (QT_LIB)
endif ()
and that's my Run/Debug config :
So I don't know why i got this error, maybe one of my path is incorrect or I need to edit the configuration of my run/debug ?
For a dated embedded project I try to crosscompile Qt 4.7.4 on a current Ubuntu 16.04 x86_64 system with multiarch setup (amd64 + i386).
The crosscompilation was once set up for Ubuntu 12.04 x86, and it works well there. Compiling it on the new system for host debugging (host and target platform being set to x86/i386/32 bit) worked well, too. However, when I try to crosscompile it for the target system (arm) with the host set to i386 uic segfaults while building the QtGui lib.
The following relevant flags are used to configure Qt for the target system:
-host-arch i386 -platform qws/linux-x86-g++
-embedded arm -xplatform qws/linux-gnueabi-arm-mucross-g++
Furthermore mkspecs/qws/linux-x86-g++/qmake.conf has been patched to include some compiler flags that seem necessary to get compilation and linking right:
QT_ARCH = I386
QMAKE_CFLAGS += -m32
QMAKE_CXXFLAGS += -m32
QMAKE_LFLAGS += -m32
This is the call that fails:
/<project>/qt-target/bin/uic /<project>/qt-everywhere-opensource-src-4.7.4/src/gui/dialogs/qpagesetupwidget.ui -o .uic/release-shared-emb-arm/ui_qpagesetupwidget.h
I can reproduce the segfault manually and debug it. strace doesn't show anything obvious, the correct i386 libs are being loaded. Here's the first lines of the gdb backtrace:
Program received signal SIGSEGV, Segmentation fault.
__GI___fesetenv (envp=0xffffbbd4) at ../sysdeps/i386/fpu/fesetenv.c:116
116 ../sysdeps/i386/fpu/fesetenv.c: Datei oder Verzeichnis nicht gefunden.
(gdb) backtrace
#0 __GI___fesetenv (envp=0xffffbbd4) at ../sysdeps/i386/fpu/fesetenv.c:116
#1 0x080fa7de in qdtoa (d=9999.9899999999998, mode=2, ndigits=6,
decpt=0xffffbce8, sign=0xffffbcec, rve=0xffffbcf4, resultp=0xffffbcf8)
at /<project>/qt-everywhere-opensource-src-4.7.4/src/corelib/tools/qlocale.cpp:6655
#2 0x080fc230 in QLocalePrivate::doubleToString (
this=0x8181160 <locale_data>, d=9999.9899999999998, precision=2,
form=<optimized out>, width=0, flags=<optimized out>)
at /<project>/qt-everywhere-opensource-src-4.7.4/src/corelib/tools/qlocale.cpp:4012
#3 0x0811da6f in QString::setNum (this=0xffffbf78, n=9999.9899999999998,
f=<optimized out>, prec=6)
at /<project>/qt-everywhere-opensource-src-4.7.4/src/corelib/tools/qstring.cpp:5930
#4 0x0811ddca in QString::number (n=9999.9899999999998, f=103 'g', prec=6)
at /<project>/qt-everywhere-opensource-src-4.7.4/src/corelib/tools/qstring.cpp:6034
Some investigation brought me to a glibc bug in fesetenv() which was fixed in glibc 2.23, but since this is already installed (libc6 2.23-0ubuntu3), I didn't get any further here. The faulting line 116 has been introduced by that fix, but lacking knowledge of the internals I'm not able to point out the cause of the segfault:
__asm__ ("ldmxcsr %0" : : "m" (mxcsr));
Furthermore there are some old, closed or unresolved Qt bug reports regarding the bootstrap build (which includes uic), but these didn't give me any useful hints either.
Who can give a pointer what I can try to find the cause and work around or fix this issue?
The reason for this problem was that additional, target specific include and lib dirs were provided to the configure script using the -I and -L options. These were used for the bootstrap build, too, which didn't matter much on the old system where the headers of host and target where apparently close enough to each other.
Once moved into the target mkspec file and added to QMAKE_CFLAGS, QMAKE_CXXFLAGS and QMAKE_LFLAGS the build process works fine.
I found a graphics course website that is open (like MIT's OpenCourseWare) and I'm try to setup my machine for it...
I am using my windows machine to remotely access a gnu server. I think that I have installed all the dependencies and have gotten assignment 1 to build, but I get the error message below when I test assignment 1. I also copied and pasted the console window after running the commands to build and test assignment 1. I don’t know how to proceed from here. Any help would be greatly appreciated! Please give simple step-by-step instructions.
Error Messages:
[CMU462] GLFW Error: X11: Failed to open X display
[CMU462] Error: could not initialize GLFW!
govi#rubymta-test:~$ cd cs184
govi#rubymta-test:~/cs184$ cd asst1_rasterizester-master
govi#rubymta-test:~/cs184/asst1_rasterizester-master$ mkdir build; cd build
govi#rubymta-test:~/cs184/asst1_rasterizester-master/build$ cmake ..
-- The C compiler identification is GNU 5.2.1
-- The CXX compiler identification is GNU 5.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so
-- Using X11 for window creation
-- Using GLX for context creation
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Looking for glXGetProcAddress
-- Looking for glXGetProcAddress - found
-- Looking for glXGetProcAddressARB
-- Looking for glXGetProcAddressARB - found
-- Looking for glXGetProcAddressEXT
-- Looking for glXGetProcAddressEXT - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/govi/cs184/asst1_rasterizester-master/build
govi#rubymta-test:~/cs184/asst1_rasterizester-master/build$ make
Scanning dependencies of target glew
[ 2%] Building C object CGL/deps/glew/CMakeFiles/glew.dir/src/glew.c.o
[ 5%] Building C object CGL/deps/glew/CMakeFiles/glew.dir/src/glewinfo.c.o
[ 7%] Building C object CGL/deps/glew/CMakeFiles/glew.dir/src/visualinfo.c.o
Linking C static library libglew.a
[ 7%] Built target glew
Scanning dependencies of target glfw
[ 10%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/context.c.o
[ 13%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/init.c.o
[ 15%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/input.c.o
[ 18%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/monitor.c.o
[ 21%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/window.c.o
[ 23%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/x11_init.c.o
[ 26%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/x11_monitor.c.o
[ 28%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/x11_window.c.o
[ 31%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/xkb_unicode.c.o
[ 34%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/linux_joystick.c.o
[ 36%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/posix_time.c.o
[ 39%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/posix_tls.c.o
[ 42%] Building C object CGL/deps/glfw/src/CMakeFiles/glfw.dir/glx_context.c.o
Linking C static library libglfw3.a
[ 42%] Built target glfw
Scanning dependencies of target CGL
[ 44%] Building CXX object CGL/src/CMakeFiles/CGL.dir/vector2D.cpp.o
[ 47%] Building CXX object CGL/src/CMakeFiles/CGL.dir/vector3D.cpp.o
[ 50%] Building CXX object CGL/src/CMakeFiles/CGL.dir/vector4D.cpp.o
[ 52%] Building CXX object CGL/src/CMakeFiles/CGL.dir/matrix3x3.cpp.o
[ 55%] Building CXX object CGL/src/CMakeFiles/CGL.dir/matrix4x4.cpp.o
[ 57%] Building CXX object CGL/src/CMakeFiles/CGL.dir/quaternion.cpp.o
[ 60%] Building CXX object CGL/src/CMakeFiles/CGL.dir/complex.cpp.o
[ 63%] Building CXX object CGL/src/CMakeFiles/CGL.dir/color.cpp.o
[ 65%] Building CXX object CGL/src/CMakeFiles/CGL.dir/spectrum.cpp.o
[ 68%] Building CXX object CGL/src/CMakeFiles/CGL.dir/osdtext.cpp.o
[ 71%] Building C object CGL/src/CMakeFiles/CGL.dir/osdfont.c.o
[ 73%] Building CXX object CGL/src/CMakeFiles/CGL.dir/viewer.cpp.o
[ 76%] Building CXX object CGL/src/CMakeFiles/CGL.dir/base64.cpp.o
[ 78%] Building CXX object CGL/src/CMakeFiles/CGL.dir/lodepng.cpp.o
[ 81%] Building CXX object CGL/src/CMakeFiles/CGL.dir/tinyxml2.cpp.o
Linking CXX static library libCGL.a
[ 81%] Built target CGL
Scanning dependencies of target rasterizester
[ 84%] Building CXX object src/CMakeFiles/rasterizester.dir/texture.cpp.o
[ 86%] Building CXX object src/CMakeFiles/rasterizester.dir/triangulation.cpp.o
[ 89%] Building CXX object src/CMakeFiles/rasterizester.dir/svgparser.cpp.o
[ 92%] Building CXX object src/CMakeFiles/rasterizester.dir/transforms.cpp.o
[ 94%] Building CXX object src/CMakeFiles/rasterizester.dir/drawrend.cpp.o
[ 97%] Building CXX object src/CMakeFiles/rasterizester.dir/svg.cpp.o
[100%] Building CXX object src/CMakeFiles/rasterizester.dir/main.cpp.o
Linking CXX executable ../rasterizester
[100%] Built target rasterizester
govi#rubymta-test:~/cs184/asst1_rasterizester-master/build$ ./rasterizester ../svg/basic/test1.svg
[CMU462] GLFW Error: X11: Failed to open X display
[CMU462] Error: could not initialize GLFW!
I'm not really sure how to proceed. The make step failed:
error: ‘strnlen’ was not declared in this scope
make[2]: *** [storage/connect/CMakeFiles/connect.dir/xobject.cpp.o] Error 1
make[1]: *** [storage/connect/CMakeFiles/connect.dir/all] Error 2
make: *** [all] Error 2
Here is some more of the output:
~/Downloads$ tar xvfz mariadb-10.0.15.tar.gz
…
…
=====BUILD======
~/Downloads/mariadb-10.0.15$ cmake . -DBUILD_CONFIG=mysql_release
-- Running cmake version 3.1.0
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
...
...
-- Looking for strlcpy
-- Looking for strlcpy - found
-- Looking for strnlen
-- Looking for strnlen - not found
-- Looking for strlcat
-- Looking for strlcat - found
-- Looking for strsignal
-- Looking for strsignal - found
-- Looking for fgetln
-- Looking for fgetln - found
-- Looking for strpbrk
-- Looking for strpbrk - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoul
-- Looking for strtoul - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for shmctl
-- Looking for shmctl - found
-- Looking for shmdt
-- Looking for shmdt - found
-- Looking for shmget
-- Looking for shmget - found
-- Looking for tell
-- Looking for tell - not found
-- Looking for tempnam
-- Looking for tempnam - found
-- Looking for thr_setconcurrency
-- Looking for thr_setconcurrency - not found
-- Looking for thr_yield
-- Looking for thr_yield - not found
...
...
-- Looking for vasprintf
-- Performing Test HAVE_XUCRED - Success
-- Looking for event.h
-- Looking for event.h - found
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
libmysql
libmysqld
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/7stud/Downloads/mariadb-10.0.15
========MAKE==========
~/Downloads/mariadb-10.0.15$ make
….
…
...
[ 50%] Building CXX object storage/connect/CMakeFiles/connect.dir/value.cpp.o
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
[ 50%] Building CXX object storage/connect/CMakeFiles/connect.dir/xindex.cpp.o
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
[ 50%] Building CXX object storage/connect/CMakeFiles/connect.dir/xobject.cpp.o
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
/Users/7stud/Downloads/mariadb-10.0.15/storage/connect/xobject.cpp: In member function ‘bool STRING::Set(char*, uint)’:
/Users/7stud/Downloads/mariadb-10.0.15/storage/connect/xobject.cpp:275: error: ‘strnlen’ was not declared in this scope
make[2]: *** [storage/connect/CMakeFiles/connect.dir/xobject.cpp.o] Error 1
make[1]: *** [storage/connect/CMakeFiles/connect.dir/all] Error 2
make: *** [all] Error 2
~/Downloads/mariadb-10.0.15$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Next, with homebrew:
Last login: Fri Jan 16 03:28:09 on ttys001 ~$ brew install mariadb
==> Installing mariadb dependency: pidof
==> Downloading http://www.nightproductions.net/downloads/pidof_source.tar.gz
################################################################## 100.0%
==> Patching
==> make all CC=gcc-4.2 CFLAGS= /Users/7stud/.homebrew/Cellar/pidof/0.1.4: 3 files, 24K, built in 3
seconds
==> Installing mariadb
==> Downloading http://ftp.osuosl.org/pub/mariadb/mariadb-10.0.15/source/mariadb-10.0.15.tar.gz
################################################################## 100.0%
==> Patching
==> cmake . -DCMAKE_INSTALL_PREFIX=/Users/7stud/.homebrew/Cellar/mariadb/10.0.15 -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE
==> make cd /tmp/mariadb-0ocIfC/mariadb-10.0.15/storage/innobase && /Users/7stud/.homebrew/Cellar/cmake/3.1.0/bin/cmake -E
cmake_link_script CMakeFiles/innobase.dir/link.txt --verbose=1
/Users/7stud/.homebrew/Library/ENV/3.2.6/g++-4.2 -Wall -Wall
-Wno-unused-parameter -fno-exceptions -fno-rtti -O2 -g -DNDEBUG -DDBUG_OFF -bundle -Wl,-headerpad_max_install_names -o ha_innodb.so CMakeFiles/innobase.dir/api/api0api.cc.o
CMakeFiles/innobase.dir/api/api0misc.cc.o
CMakeFiles/innobase.dir/btr/btr0btr.cc.o
CMakeFiles/innobase.dir/btr/btr0cur.cc.o
CMakeFiles/innobase.dir/btr/btr0pcur.cc.o
CMakeFiles/innobase.dir/btr/btr0sea.cc.o
CMakeFiles/innobase.dir/buf/buf0buddy.cc.o
CMakeFiles/innobase.dir/buf/buf0buf.cc.o
CMakeFiles/innobase.dir/buf/buf0dblwr.cc.o
CMakeFiles/innobase.dir/buf/buf0checksum.cc.o
CMakeFiles/innobase.dir/buf/buf0dump.cc.o
CMakeFiles/innobase.dir/buf/buf0flu.cc.o
CMakeFiles/innobase.dir/buf/buf0lru.cc.o
CMakeFiles/innobase.dir/buf/buf0rea.cc.o
CMakeFiles/innobase.dir/data/data0data.cc.o
CMakeFiles/innobase.dir/data/data0type.cc.o
CMakeFiles/innobase.dir/dict/dict0boot.cc.o
CMakeFiles/innobase.dir/dict/dict0crea.cc.o
CMakeFiles/innobase.dir/dict/dict0dict.cc.o
CMakeFiles/innobase.dir/dict/dict0load.cc.o
CMakeFiles/innobase.dir/dict/dict0mem.cc.o
CMakeFiles/innobase.dir/dict/dict0stats.cc.o
CMakeFiles/innobase.dir/dict/dict0stats_bg.cc.o
CMakeFiles/innobase.dir/dyn/dyn0dyn.cc.o
CMakeFiles/innobase.dir/eval/eval0eval.cc.o
CMakeFiles/innobase.dir/eval/eval0proc.cc.o
CMakeFiles/innobase.dir/fil/fil0fil.cc.o
CMakeFiles/innobase.dir/fsp/fsp0fsp.cc.o
CMakeFiles/innobase.dir/fut/fut0fut.cc.o
CMakeFiles/innobase.dir/fut/fut0lst.cc.o
CMakeFiles/innobase.dir/ha/ha0ha.cc.o
CMakeFiles/innobase.dir/ha/ha0storage.cc.o
CMakeFiles/innobase.dir/ha/hash0hash.cc.o
CMakeFiles/innobase.dir/fts/fts0fts.cc.o
CMakeFiles/innobase.dir/fts/fts0ast.cc.o
CMakeFiles/innobase.dir/fts/fts0blex.cc.o
CMakeFiles/innobase.dir/fts/fts0config.cc.o
CMakeFiles/innobase.dir/fts/fts0opt.cc.o
CMakeFiles/innobase.dir/fts/fts0pars.cc.o
CMakeFiles/innobase.dir/fts/fts0que.cc.o
CMakeFiles/innobase.dir/fts/fts0sql.cc.o
CMakeFiles/innobase.dir/fts/fts0tlex.cc.o
CMakeFiles/innobase.dir/handler/ha_innodb.cc.o
CMakeFiles/innobase.dir/handler/handler0alter.cc.o
CMakeFiles/innobase.dir/handler/i_s.cc.o
CMakeFiles/innobase.dir/ibuf/ibuf0ibuf.cc.o
CMakeFiles/innobase.dir/lock/lock0iter.cc.o
CMakeFiles/innobase.dir/lock/lock0lock.cc.o
CMakeFiles/innobase.dir/lock/lock0wait.cc.o
CMakeFiles/innobase.dir/log/log0log.cc.o
CMakeFiles/innobase.dir/log/log0recv.cc.o
CMakeFiles/innobase.dir/mach/mach0data.cc.o
CMakeFiles/innobase.dir/mem/mem0mem.cc.o
CMakeFiles/innobase.dir/mem/mem0pool.cc.o
CMakeFiles/innobase.dir/mtr/mtr0log.cc.o
CMakeFiles/innobase.dir/mtr/mtr0mtr.cc.o
CMakeFiles/innobase.dir/os/os0file.cc.o
CMakeFiles/innobase.dir/os/os0proc.cc.o
CMakeFiles/innobase.dir/os/os0sync.cc.o
CMakeFiles/innobase.dir/os/os0thread.cc.o
CMakeFiles/innobase.dir/page/page0cur.cc.o
CMakeFiles/innobase.dir/page/page0page.cc.o
CMakeFiles/innobase.dir/page/page0zip.cc.o
CMakeFiles/innobase.dir/pars/lexyy.cc.o
CMakeFiles/innobase.dir/pars/pars0grm.cc.o
CMakeFiles/innobase.dir/pars/pars0opt.cc.o
CMakeFiles/innobase.dir/pars/pars0pars.cc.o
CMakeFiles/innobase.dir/pars/pars0sym.cc.o
CMakeFiles/innobase.dir/que/que0que.cc.o
CMakeFiles/innobase.dir/read/read0read.cc.o
CMakeFiles/innobase.dir/rem/rem0cmp.cc.o
CMakeFiles/innobase.dir/rem/rem0rec.cc.o
CMakeFiles/innobase.dir/row/row0ext.cc.o
CMakeFiles/innobase.dir/row/row0ftsort.cc.o
CMakeFiles/innobase.dir/row/row0import.cc.o
CMakeFiles/innobase.dir/row/row0ins.cc.o
CMakeFiles/innobase.dir/row/row0merge.cc.o
CMakeFiles/innobase.dir/row/row0mysql.cc.o
CMakeFiles/innobase.dir/row/row0log.cc.o
CMakeFiles/innobase.dir/row/row0purge.cc.o
CMakeFiles/innobase.dir/row/row0row.cc.o
CMakeFiles/innobase.dir/row/row0sel.cc.o
CMakeFiles/innobase.dir/row/row0uins.cc.o
CMakeFiles/innobase.dir/row/row0umod.cc.o
CMakeFiles/innobase.dir/row/row0undo.cc.o
CMakeFiles/innobase.dir/row/row0upd.cc.o
CMakeFiles/innobase.dir/row/row0quiesce.cc.o
CMakeFiles/innobase.dir/row/row0vers.cc.o
CMakeFiles/innobase.dir/srv/srv0conc.cc.o
CMakeFiles/innobase.dir/srv/srv0mon.cc.o
CMakeFiles/innobase.dir/srv/srv0srv.cc.o
CMakeFiles/innobase.dir/srv/srv0start.cc.o
CMakeFiles/innobase.dir/sync/sync0arr.cc.o
CMakeFiles/innobase.dir/sync/sync0rw.cc.o
CMakeFiles/innobase.dir/sync/sync0sync.cc.o
CMakeFiles/innobase.dir/trx/trx0i_s.cc.o
CMakeFiles/innobase.dir/trx/trx0purge.cc.o
CMakeFiles/innobase.dir/trx/trx0rec.cc.o
CMakeFiles/innobase.dir/trx/trx0roll.cc.o
CMakeFiles/innobase.dir/trx/trx0rseg.cc.o
CMakeFiles/innobase.dir/trx/trx0sys.cc.o
CMakeFiles/innobase.dir/trx/trx0trx.cc.o
CMakeFiles/innobase.dir/trx/trx0undo.cc.o
CMakeFiles/innobase.dir/usr/usr0sess.cc.o
CMakeFiles/innobase.dir/ut/ut0bh.cc.o
CMakeFiles/innobase.dir/ut/ut0byte.cc.o
CMakeFiles/innobase.dir/ut/ut0crc32.cc.o
CMakeFiles/innobase.dir/ut/ut0dbg.cc.o
CMakeFiles/innobase.dir/ut/ut0list.cc.o
CMakeFiles/innobase.dir/ut/ut0mem.cc.o
CMakeFiles/innobase.dir/ut/ut0rbt.cc.o
CMakeFiles/innobase.dir/ut/ut0rnd.cc.o
CMakeFiles/innobase.dir/ut/ut0ut.cc.o
CMakeFiles/innobase.dir/ut/ut0vec.cc.o
CMakeFiles/innobase.dir/ut/ut0wqueue.cc.o
../../libservices/libmysqlservices.a
-Wl,-bundle_loader,/tmp/mariadb-0ocIfC/mariadb-10.0.15/sql/mysqld /usr/local/lib/libz.dylib /usr/local/lib/libz.dylib
/Users/7stud/.homebrew/Cellar/cmake/3.1.0/bin/cmake -E
cmake_progress_report /tmp/mariadb-0ocIfC/mariadb-10.0.15/CMakeFiles
19 20 21 22 23 24 25 26 27 28 [ 95%] Built target innobase make: ***
[all] Error 2
READ THIS: http://git.io/brew-troubleshooting
These open issues may also help: mysql-connector-c++ cannot build with
mariadb (https://github.com/Homebrew/homebrew/issues/34578) Packages
with --with-mysql option not satisfied by mariadb
(https://github.com/Homebrew/homebrew/issues/32973) mariadb: missing
/usr/local/etc/my.cnf.d, removed by brew prune
(https://github.com/Homebrew/homebrew/issues/31760) ~$
Can you please try this:
brew update
brew doctor
brew install mariadb
Reference https://mariadb.com/kb/en/mariadb/building-mariadb-on-mac-os-x-using-homebrew/