Opened 17 years ago
Closed 17 years ago
#3819 closed defect (worksforme)
compile error in mythplugins/mythzoneminder?
Reported by: | anonymous | Owned by: | Isaac Richards |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | unknown |
Severity: | medium | Keywords: | mythzoneminder |
Cc: | Ticket locked: | no |
Description
I'm not an expert... hope this is right... trying to compile mythplugins from svn 14167 here's what I did:
cd mythplugins sudo make distclean cd .. sudo rm mythplugins -R sudo svn co http://svn.mythtv.org/svn/trunk/mythplugins cd mythplugins ./configure make
at then end of the make, I get this:
cd mythzmserver && qmake mythzmserver.pro -o Makefile sh: mysql_config: not found cd mythzmserver && make -f Makefile make[2]: Entering directory `/usr/src/svn/mythplugins/mythzoneminder/mythzmserver' g++ -c -pipe -march=k8 -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -D__STDC_CONSTANT_MACROS -Wall -W -fomit-frame-pointer -O3 -fomit-frame-pointer -D_REENTRANT -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -D_FILE_OFFSET_BITS=64 -I/usr/share/qt3/mkspecs/default -I. -I../../../../../local/include -I../../../../../local/include -I../../../../../include -o main.o main.cpp In file included from main.cpp:28: zmserver.h:24:25: error: mysql/mysql.h: No such file or directory zmserver.h:35: error: âMYSQLâ does not name a type main.cpp: In function âint main(int, char**)â: main.cpp:365: error: âg_dbConnâ was not declared in this scope main.cpp:365: error: âmysql_closeâ was not declared in this scope make[2]: *** [main.o] Error 1 make[2]: Leaving directory `/usr/src/svn/mythplugins/mythzoneminder/mythzmserver' make[1]: *** [sub-mythzmserver] Error 2 make[1]: Leaving directory `/usr/src/svn/mythplugins/mythzoneminder' make: *** [sub-mythzoneminder] Error 2
mythzmserver fails compile because of missing mysql/mysql.h mysql.h not there due to zoneminder not installed on this machine.
readme says to compile on machine with zoneminder... (which worked)
Any ideas?? probably something I'm doing...
Change History (3)
Note: See
TracTickets for help on using
tickets.
You need to install the appropriate -dev (or -devel) package for mysql. On Ubuntu Feisty, mysql.h is contained in libmysqlclient15-dev.