Includen von Mysql C++ Libs funktioniert nicht richtig

Status
Nicht offen für weitere Antworten.
Ich habe make nun mit setup.exe nachinstalliert, wenn ich make ausführe bekomme ich aber die gleiche ausgabe! make -? gibt aber aus das alles okay zu sein scheint:
Code:
$ make -?
make: ungültige Option -- ?
Syntax: make [Optionen] [Target] ...
Optionen:
  -b, -m                      Aus Kompatibilitätsgründen ignoriert
  -B, --always-make           Alle Ziele ohne Bedingungen erstellen
  -C VERZEICHNIS, --directory=VERZEICHNIS
                              In VERZEICHNIS wechseln, bevor etwas getan wird
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Umgebungsvariablen überschreiben »make«-Steuerdateien
  --eval=STRING               Evaluate STRING as a makefile statement.
  -f DATEI, --file=DATEI, --makefile=DATEI
                              DATEI als »make«-Steuerdatei lesen
  -h, --help                  Diese Meldung ausgeben und beenden
  -i, --ignore-errors         Ignore errors from recipes.
  -I VERZEICHNIS, --include-dir=VERZEICHNIS
                              VERZEICHNIS nach inkludierten
                              »make«-Steuerdateien durchsuchen
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any recipe; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no recipe; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo recipes.
  -S, --no-keep-going, --stop
                              -k abschalten.
  -t, --touch                 Touch targets instead of remaking them.
  --trace                     Print tracing information.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.

This program built for i686-pc-cygwin
Fehlermeldungen (auf Englisch) an <bug-make@gnu.org> senden.
Befehlsabfolge war:

cmake -l

make ...geht nicht

make install ...geht nicht
 
Zuletzt bearbeitet:
Hast du denn auch Cygwin cmake verwendet?

Sag doch bitte ganz genau was du überhaupt gemacht hast.

Dateien entpackt?

Wohin?

Cygwin Terminal gestartet?

Verzeichnis gewechselt?

Hast du denn nun alles notwendige unter Cygwin installiert? C++ Compiler? Bibliotheken? Was?
 
1.) Sourcen in Eigene Dateien entpackt

2.)In das verzeichnis gewechselt

3.)Cygwin gestartet und cmake . ausgeführt

4.)Was nu?

edit:
Antwort kommt, habe nur Mobilen Internetzugang, das Runterladen der Cygwin Bibioltheken dauert.

edit2:
So, Cygwin ist eingerichtet, nur wie bekomme ich die Variable für "C:\Programme\MySQL\MySQL Server 5.5\include" gesetzt? set VAR="" geht leider nicht.

Code:
$ cmake .
CMake Warning at /usr/share/cmake-2.8.7/Modules/Platform/CYGWIN.cmake:15 (message):
  CMake no longer defines WIN32 on Cygwin!

  (1) If you are just trying to build this project, ignore this warning or
  quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
  the CMake cache.  If later configuration or build errors occur then this
  project may have been written under the assumption that Cygwin is WIN32.
  In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

  (2) If you are developing this project, add the line

    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required

  at the top of your top-level CMakeLists.txt file or set the minimum
  required version of CMake to 2.8.4 or higher.  Then teach your project to
  build on Cygwin without WIN32.
Call Stack (most recent call first):
  /usr/share/cmake-2.8.7/Modules/CMakeSystemSpecificInformation.cmake:36 (INCLUDE)
  CMakeLists.txt:23 (PROJECT)


-- Environment compile flags:
-- Environment link flags:
-- BOOST_INCLUDE_DIRS=C:/boost
-- ENV{MYSQL_DIR} =
CMake Error at FindMySQL.cm:202 (MESSAGE):
  mysql_config wasn't found, -DMYSQL_CONFIG_EXECUTABLE=...
Call Stack (most recent call first):
  CMakeLists.txt:166 (INCLUDE)


CMake Error at FindMySQL.cm:204 (MESSAGE):
  Cannot find MySQL.  Include dir: MYSQL_INCLUDE_DIR-NOTFOUND library dir:
  cxxflags:
Call Stack (most recent call first):
  CMakeLists.txt:166 (INCLUDE)


-- Configuring incomplete, errors occurred!
 
Du solltest versuchen dich mal zu konzentrieren und alles zu lesen - nicht nur die Hälfte.

deepthroat hat gesagt.:
Du mußt natürlich die notwendigen Bibliotheken (mysql, boost) und Programme (cmake) unter Cygwin installiert haben.

Und... :rolleyes:
Sag doch bitte ganz genau was du überhaupt gemacht hast.

Hast du denn nun alles notwendige unter Cygwin installiert? C++ Compiler? Bibliotheken? Was?
 
Spar dir mal deine Klug******ere, du gibst auch nur halbe Antworten, ich habe gefragt, wie man die Variable unter Cygwin setzt!
 
Dieser Threat ist ein großes komprimiertes Stück Chaos, durch das ständige Umschwenken halt nicht sonderlich sortiert und die Antwortenden Personen überlesen gerne Dinge WIE ETWA DAS MYSQL installiert ist, wi unten zu sehen: Das Problem war die Path Variable und ist es wohl immer noch:

Code:
$ cmake .
CMake Warning at /usr/share/cmake-2.8.7/Modules/Platform/CYGWIN.cmake:15 (message):
  CMake no longer defines WIN32 on Cygwin!

  (1) If you are just trying to build this project, ignore this warning or
  quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
  the CMake cache.  If later configuration or build errors occur then this
  project may have been written under the assumption that Cygwin is WIN32.
  In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

  (2) If you are developing this project, add the line

    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required

  at the top of your top-level CMakeLists.txt file or set the minimum
  required version of CMake to 2.8.4 or higher.  Then teach your project to
  build on Cygwin without WIN32.
Call Stack (most recent call first):
  /usr/share/cmake-2.8.7/Modules/CMakeSystemSpecificInformation.cmake:36 (INCLUDE)
  CMakeLists.txt:23 (PROJECT)


-- Environment compile flags:
-- Environment link flags:
-- BOOST_INCLUDE_DIRS=C:/boost
-- mysql_config was found C;
CMake Error at FindMySQL.cm:202 (MESSAGE):
  mysql_config wasn't found, -DMYSQL_CONFIG_EXECUTABLE=...
Call Stack (most recent call first):
  CMakeLists.txt:166 (INCLUDE)


CMake Error at FindMySQL.cm:204 (MESSAGE):
  Cannot find MySQL.  Include dir: MYSQL_INCLUDE_DIR-NOTFOUND library dir:
  cxxflags:
Call Stack (most recent call first):
  CMakeLists.txt:166 (INCLUDE)


-- Configuring incomplete, errors occurred!
Jetzt meine Frage: Was muss als -DMYSQL_CONFIG_EXECUTABLE= angegeben werden?


Was mich interessiert ist, was ist da falsch und welche Befehle muss ich nutzen um die Config dann zu kompilieren, (make , make instell ****?)
 
Zuletzt bearbeitet:
Dieser Threat ist ein großes komprimiertes Stück Chaos, durch das ständige Umschwenken halt nicht sonderlich sortiert und die Antwortenden Personen überlesen gerne Dinge WIE ETWA DAS MYSQL installiert ist, wi unten zu sehen
Du hast nicht richtig gelesen und hast MySQL nicht UNTER CYGWIN installiert. Wie oft soll ich es denn noch schreiben?
Das Problem war die Path Variable und ist es wohl immer noch:
Wenn man alles ordentlich installiert hat, braucht man keine Variablen zu setzen.

Gruß
 
hatte da was völlig falsch verstanden und nun Mysql mit Cygwin installiert, allerdings wenn ich nach dem erfolgreichen Konfigurationsdurchlauf durch cmake . make eintippe kommt folgendes, das hört irgendwie nie auf:


$ make
Scanning dependencies of target mysqlcppconn
driver/CMakeFiles/mysqlcppconn.dir/depend.make:28: *** target pattern contains no `%'. Stop.
CMakeFiles/Makefile2:92: recipe for target `driver/CMakeFiles/mysqlcppconn.dir/all' failed
make[1]: *** [driver/CMakeFiles/mysqlcppconn.dir/all] Error 2
Makefile:133: recipe for target `all' failed
make: *** [all] Error 2
 
Status
Nicht offen für weitere Antworten.

Neue Beiträge

Zurück