Hi,
I'm trying to build mySQL Connector C from source code on Gentoo Linux.
I have a CMake installed and then did this:
1. Downloaded and unpack the source code.
2. Run "cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug".
3. Run "make -n".
The output was as follows:
// Bunch of log skipped for the "message is too long" warning...
cd /home/igor/mysql-connector/extra && /usr/bin/cc -DHAVE_CONFIG_H -DMUTEX_EVENT -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/home/igor/mysql-connector/include -I/home/igor/mysql-connector/extra/rapidjson/include -I/home/igor/mysql-connector/zlib -Wall -Wextra -Wformat-security -Wvla -Wwrite-strings -Wdeclaration-after-statement -Werror -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DENABLED_DEBUG_SYNC -DSAFE_MUTEX -o CMakeFiles/comp_err.dir/comp_err.c.o -c /home/igor/mysql-connector/extra/comp_err.c
make[2]: *** No rule to make target 'mysys/libmysys.a', needed by 'extra/comp_err'. Stop.
CMakeFiles/Makefile2:1085: recipe for target 'extra/CMakeFiles/comp_err.dir/all' failed
make[1]: *** [extra/CMakeFiles/comp_err.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
Why does it produce error when trying to do a "dry run"? Is it a problem with the Makefile generated or CMake?
But more importantly - why even use CMake in the first place? It is much more convenient to use basic "configure and friends".
Thank you.