Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/motion-user or, via email, send a message with subject or body 'help' to motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. Re: motion 4.0.1 won't gmake on FreeBSD (MN) ---------------------------------------------------------------------- Message: 1 Date: Thu, 8 Dec 2016 23:01:46 +0000 From: MN <mna...@talktalk.net> Subject: Re: [Motion-user] motion 4.0.1 won't gmake on FreeBSD To: Motion discussion list <motion-user@lists.sourceforge.net> Message-ID: <6a30911b-00d8-40c6-b4a3-a35391425...@talktalk.net> Content-Type: text/plain; charset="utf-8" Yes. Make now succeeds with the current master. Excellent news, thanks. > On 8 Dec 2016, at 12:40, Joseph Heenan <jos...@heenan.me.uk> wrote: > > Hi > > This should be fixed if you try on the latest master, there was a commit went > in within the last few days. > > Joseph > >> On 8 Dec 2016, at 02:27, MN <mna...@talktalk.net >> <mailto:mna...@talktalk.net>> wrote: >> >> Sure, thanks. >> ################################################################################ >> # Makefile for Motion >> # >> ################################################################################ >> # Copyright 2000 by Jeroen Vreeken >> # >> # >> # >> # This program is published under the GNU public license version 2.0 or >> later. # >> # Please read the file COPYING for more info. >> # >> ################################################################################ >> # Please visit the Motion home page: >> # >> # https://motion-project.github.io/ <https://motion-project.github.io/> >> # >> ################################################################################ >> >> CC = cc >> INSTALL = install >> INSTALL_DATA = ${INSTALL} -m 644 >> >> ################################################################################ >> # Install locations, controlled by setting configure flags. >> # >> ################################################################################ >> prefix = /usr/local >> exec_prefix = ${prefix} >> bindir = ${exec_prefix}/bin >> mandir = ${datarootdir}/man >> sysconfdir = ${prefix}/etc >> datadir = ${datarootdir} >> datarootdir = ${prefix}/share >> docdir = $(datadir)/doc/motion >> examplesdir = $(datadir)/motion/examples >> >> ################################################################################ >> # These variables contain compiler flags, object files to build and files to >> # >> # install. >> # >> ################################################################################ >> CFLAGS = -g -O2 -I/usr/local/include -g -O2 -D_REENTRANT >> -D_THREAD_SAFE -I/usr/local/include/mysql -Wall >> -DVERSION=\"4.0.1+gitUNKNOWN\" -Dsysconfdir=\"$(sysconfdir)\" >> -I/usr/local/include >> LDFLAGS = -L/usr/local/lib >> LIBS = -lm -L/usr/local/lib -pthread -ljpeg -L/usr/local/lib/mysql >> -lmysqlclient -lz -L/usr/local/lib -lavutil -lavformat -lavcodec -lswscale >> >> VIDEO_OBJ = video_freebsd.o >> OBJ = motion.o logger.o conf.o draw.o jpegutils.o >> vloopback_motion.o $(VIDEO_OBJ) \ >> netcam.o netcam_ftp.o netcam_jpeg.o netcam_wget.o >> track.o \ >> alg.o event.o picture.o rotate.o webhttpd.o \ >> stream.o md5.o netcam_rtsp.o \ >> ffmpeg.o >> SRC = $(OBJ:.o=.c) >> DOC = CHANGELOG COPYING CREDITS README.md motion_guide.html >> mask1.png normal.jpg outputmotion1.jpg outputnormal1.jpg >> EXAMPLES = *.conf motion.service >> EXAMPLES_BIN = motion.init-Debian motion.init-FreeBSD.sh >> PROGS = motion >> DEPEND_FILE = .depend >> >> ################################################################################ >> # ALL and PROGS build Motion and, possibly, Motion-control. >> # >> ################################################################################ >> all: progs >> ifneq (,$(findstring freebsd,$(VIDEO_OBJ))) >> @echo "Build complete, run \"gmake install\" to install Motion!" >> else >> @echo "Build complete, run \"make install\" to install Motion!" >> endif >> @echo >> >> progs: pre-build-info $(PROGS) >> >> ################################################################################ >> # PRE-BUILD-INFO outputs some general info before the build process starts. >> # >> ################################################################################ >> pre-build-info: >> @echo "Welcome to the setup procedure for Motion, the motion detection >> daemon! If you get" >> @echo "error messages during this procedure, please report them to the >> mailing list. The" >> @echo "Motion Guide contains all information you should need to get >> Motion up and running." >> @echo >> @echo "Version: 4.0.1+gitUNKNOWN" >> ifneq (,$(findstring freebsd,$(VIDEO_OBJ))) >> @echo "Platform: FreeBSD" >> else >> @echo "Platform: Linux (if this is incorrect, please read >> README.FreeBSD)" >> endif >> @echo >> >> ################################################################################ >> # MOTION builds motion. MOTION-OBJECTS and PRE-MOBJECT-INFO are helpers. >> # >> ################################################################################ >> motion: motion-objects >> @echo "Linking Motion..." >> @echo >> "--------------------------------------------------------------------------------" >> $(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) >> @echo >> "--------------------------------------------------------------------------------" >> @echo "Motion has been linked." >> @echo >> >> motion-objects: dep pre-mobject-info $(OBJ) >> @echo >> "--------------------------------------------------------------------------------" >> @echo "Motion object files compiled." >> @echo >> >> pre-mobject-info: >> @echo "Compiling Motion object files..." >> @echo >> "--------------------------------------------------------------------------------" >> >> ################################################################################ >> # Define the compile command for C files. >> # >> ################################################################################ >> #%.o: %.c >> # @echo -e "\tCompiling $< into $@..." >> # @$(CC) -c $(CFLAGS) $< -o $@ >> >> ################################################################################ >> # Include the dependency file if it exists. >> # >> ################################################################################ >> ifeq ($(DEPEND_FILE), $(wildcard $(DEPEND_FILE))) >> ifeq (,$(findstring clean,$(MAKECMDGOALS))) >> -include $(DEPEND_FILE) >> endif >> endif >> >> ################################################################################ >> # Make the dependency file depend on all header files and all relevant >> source # >> # files. This forces the file to be re-generated if the source/header files >> # >> # change. Note, however, that the existing version will be included before >> # >> # re-generation. >> # >> ################################################################################ >> $(DEPEND_FILE): *.h $(SRC) >> @echo "Generating dependencies, please wait..." >> @$(CC) $(CFLAGS) -M $(SRC) > .tmp >> @mv -f .tmp $(DEPEND_FILE) >> @echo >> >> ################################################################################ >> # DEP, DEPEND and FASTDEP generate the dependency file. >> # >> ################################################################################ >> dep depend fastdep: $(DEPEND_FILE) >> >> >> ################################################################################ >> # DEV, BUILD with developer flags >> # >> ################################################################################ >> dev: distclean autotools all >> >> autotools: >> autoconf >> ./configure --with-developer-flags >> >> set-version: >> autoconf >> ./configure --with-developer-flags >> >> help: >> @echo >> "--------------------------------------------------------------------------------" >> @echo "make Build motion from local copy in your >> computer" >> @echo "make current Build last version of motion from svn" >> @echo "make dev Build motion with dev flags" >> @echo "make dev-git Build motion with dev flags for git" >> @echo "make build-commit Build last version of motion and prepare >> to commit to svn" >> @echo "make build-commit-git Build last version of motion and prepare >> to commit to git" >> @echo "make clean Clean objects" >> @echo "make distclean Clean everything" >> @echo "make install Install binary , examples , docs and >> config files" >> @echo "make uninstall Uninstall all installed files" >> @echo >> "--------------------------------------------------------------------------------" >> @echo >> >> >> ################################################################################ >> # INSTALL installs all relevant files. >> # >> ################################################################################ >> install: >> @echo "Installing files..." >> @echo >> "--------------------------------------------------------------------------------" >> mkdir -p $(DESTDIR)$(bindir) >> mkdir -p $(DESTDIR)$(mandir)/man1 >> mkdir -p $(DESTDIR)$(sysconfdir)/motion >> mkdir -p $(DESTDIR)$(docdir) >> mkdir -p $(DESTDIR)$(examplesdir) >> @sed -e 's|$${prefix}|$(prefix)|' motion-dist.conf > >> motion-dist.conf.tmp && mv -f motion-dist.conf.tmp motion-dist.conf >> @sed -e 's|$${prefix}|$(prefix)|' camera1-dist.conf > >> camera1-dist.conf.tmp && mv -f camera1-dist.conf.tmp camera1-dist.conf >> @sed -e 's|$${prefix}|$(prefix)|' camera2-dist.conf > >> camera2-dist.conf.tmp && mv -f camera2-dist.conf.tmp camera2-dist.conf >> @sed -e 's|$${prefix}|$(prefix)|' camera3-dist.conf > >> camera3-dist.conf.tmp && mv -f camera3-dist.conf.tmp camera3-dist.conf >> @sed -e 's|$${prefix}|$(prefix)|' camera4-dist.conf > >> camera4-dist.conf.tmp && mv -f camera4-dist.conf.tmp camera4-dist.conf >> $(INSTALL_DATA) motion.1 $(DESTDIR)$(mandir)/man1 >> $(INSTALL_DATA) $(DOC) $(DESTDIR)$(docdir) >> $(INSTALL_DATA) $(EXAMPLES) $(DESTDIR)$(examplesdir) >> $(INSTALL) $(EXAMPLES_BIN) $(DESTDIR)$(examplesdir) >> $(INSTALL_DATA) motion-dist.conf $(DESTDIR)$(sysconfdir)/motion >> $(INSTALL_DATA) camera1-dist.conf $(DESTDIR)$(sysconfdir)/motion >> $(INSTALL_DATA) camera2-dist.conf $(DESTDIR)$(sysconfdir)/motion >> $(INSTALL_DATA) camera3-dist.conf $(DESTDIR)$(sysconfdir)/motion >> $(INSTALL_DATA) camera4-dist.conf $(DESTDIR)$(sysconfdir)/motion >> for prog in $(PROGS); \ >> do \ >> ($(INSTALL) $$prog $(DESTDIR)$(bindir) ); \ >> done >> @echo >> "--------------------------------------------------------------------------------" >> @echo "Install complete! The default configuration file, >> motion-dist.conf, has been" >> @echo "installed to $(sysconfdir)/motion. You need to rename/copy it to >> motion.conf" >> @echo "for Motion to find it. More configuration examples as well as >> init scripts" >> @echo "can be found in $(examplesdir)." >> @echo >> >> ################################################################################ >> # UNINSTALL and REMOVE uninstall already installed files. >> # >> ################################################################################ >> uninstall remove: pre-build-info >> @echo "Uninstalling files..." >> @echo >> "--------------------------------------------------------------------------------" >> for prog in $(PROGS); \ >> do \ >> ($ rm -f $(bindir)/$$prog ); \ >> done >> rm -f $(mandir)/man1/motion.1 >> rm -f $(sysconfdir)/motion/motion-dist.conf >> rm -f $(sysconfdir)/motion/camera1-dist.conf >> rm -f $(sysconfdir)/motion/camera2-dist.conf >> rm -f $(sysconfdir)/motion/camera3-dist.conf >> rm -f $(sysconfdir)/motion/camera4-dist.conf >> rm -rf $(docdir) >> rm -rf $(examplesdir) >> @echo >> "--------------------------------------------------------------------------------" >> @echo "Uninstall complete!" >> @echo >> >> ################################################################################ >> # CLEAN is basic cleaning; removes object files and executables, but does >> not # >> # remove files generated from the configure step. >> # >> ################################################################################ >> clean: pre-build-info >> @echo "Removing compiled files and binaries..." >> @rm -f *~ *.o $(PROGS) combine $(DEPEND_FILE) >> >> ################################################################################ >> # DIST restores the directory to distribution state. >> # >> ################################################################################ >> dist: distclean >> @chmod -R 644 * >> @chmod 755 configure >> @chmod 755 version.sh >> >> ################################################################################ >> # DISTCLEAN removes all files generated during the configure step in >> addition # >> # to basic cleaning. >> # >> ################################################################################ >> distclean: clean >> @echo "Removing files generated by configure..." >> @rm -f config.status config.log config.cache Makefile motion.service >> motion.init-Debian motion.init-FreeBSD.sh >> @rm -f camera1-dist.conf camera2-dist.conf camera3-dist.conf >> camera4-dist.conf motion-dist.conf motion-help.conf motion.spec >> @rm -rf autom4te.cache config.h >> @echo "You will need to re-run configure if you want to build Motion." >> @echo >> >> >> >> >>> On 8 Dec 2016, at 06:54, tosiara <tosi...@gmail.com >>> <mailto:tosi...@gmail.com>> wrote: >>> >>> Can you paste your Makefile? >>> >>> On Sat, Dec 3, 2016 at 8:42 PM, MN <mna...@talktalk.net >>> <mailto:mna...@talktalk.net>> wrote: >>> I?ve followed instructions to the letter, but exit code 1 on gmake. >>> >>> motion version: 4.0.1 - downloaded as zip from github >>> Have dependencies from README.FreeBSD *but configure script seems to not >>> find gcc, defaults to cc* >>> >>> 1. After autoreconf, then ./configure: >>> ??????? >>> It was created by motion configure 4.0.1+gitUNKNOWN, which was >>> generated by GNU Autoconf 2.69. Invocation command line was >>> >>> $ ./configure >>> >>> ## --------- ## >>> ## Platform. ## >>> ## --------- ## >>> >>> hostname = zonemindserslim.local >>> uname -m = amd64 >>> uname -r = 10.3-RELEASE-p12 >>> uname -s = FreeBSD >>> uname -v = FreeBSD 10.3-RELEASE-p12 #0 r308230M: Thu Nov 3 00:37:11 CET >>> 2016 r...@dev.nas4free.org >>> <mailto:r...@dev.nas4free.org>:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64 >>> >>> /usr/bin/uname -p = amd64 >>> /bin/uname -X = unknown >>> >>> /bin/arch = unknown >>> /usr/bin/arch -k = unknown >>> /usr/convex/getsysinfo = unknown >>> /usr/bin/hostinfo = unknown >>> /bin/machine = unknown >>> /usr/bin/oslevel = unknown >>> /bin/universe = unknown >>> >>> PATH: /sbin >>> PATH: /bin >>> PATH: /usr/sbin >>> PATH: /usr/bin >>> PATH: /usr/games >>> PATH: /usr/local/sbin >>> PATH: /usr/local/bin >>> PATH: /root/bin >>> >>> ?? Output: >>> ************************** >>> Configure status >>> motion 4.0.1+gitUNKNOWN >>> ************************** >>> >>> OS : *BSD >>> pthread support: Yes >>> jpeg support: Yes >>> BKTR included: Yes >>> PWCBSD include: No >>> MMAL support: No >>> ... libraspberrypi-dev package not installed >>> FFmpeg support: Yes >>> ... FFMPEG_CFLAGS: -I/usr/local/include >>> ... FFMPEG_LIBS: -L/usr/local/lib -lavutil -lavformat -lavcodec -lswscale >>> SQLite3 support: No >>> MYSQL support: Yes >>> PostgreSQL support: No >>> >>> CFLAGS: -g -O2 -I/usr/local/include -g -O2 -D_REENTRANT -D_THREAD_SAFE >>> -I/usr/local/include/mysql >>> LIBS: -lm -L/usr/local/lib -pthread -ljpeg -L/usr/local/lib/mysql >>> -lmysqlclient -lz >>> LDFLAGS: -L/usr/local/lib >>> >>> Install prefix: /usr/local >>> >>> 2. gmake >>> ?snipped ? >>> >>> Generating dependencies, please wait... >>> >>> Compiling Motion object files... >>> some warnings generated, then: >>> Motion object files compiled. >>> >>> Linking Motion... >>> -------------------------------------------------------------------------------- >>> cc -L/usr/local/lib -o motion motion.o logger.o conf.o draw.o jpegutils.o >>> vloopback_motion.o video_freebsd.o netcam.o netcam_ftp.o netcam_jpeg.o >>> netcam_wget.o track.o alg.o event.o picture.o rotate.o webhttpd.o stream.o >>> md5.o netcam_rtsp.o ffmpeg.o -lm -L/usr/local/lib -pthread -ljpeg >>> -L/usr/local/lib/mysql -lmysqlclient -lz -L/usr/local/lib -lavutil >>> -lavformat -lavcodec -lswscale >>> logger.o: In function `motion_log': >>> /tmp/motion-master/logger.c:195: undefined reference to `pthread_getname_np' >>> netcam_rtsp.o: In function `netcam_rtsp_open_context': >>> /tmp/motion-master/netcam_rtsp.c:467: undefined reference to >>> `pthread_getname_np' >>> cc: error: linker command failed with exit code 1 (use -v to see invocation) >>> gmake: *** [Makefile:85: motion] Error 1 >>> >>> ??End ?? >>> Suggestions what I should look at please. By the way is a FreeBSD jail >>> where I?m trying to install motion. >>> >>> >>> ------------------------------------------------------------------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, SlashDot.org <http://slashdot.org/>! >>> http://sdm.link/slashdot <http://sdm.link/slashdot> >>> _______________________________________________ >>> Motion-user mailing list >>> Motion-user@lists.sourceforge.net <mailto:Motion-user@lists.sourceforge.net> >>> https://lists.sourceforge.net/lists/listinfo/motion-user >>> <https://lists.sourceforge.net/lists/listinfo/motion-user> >>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome >>> <http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome> >>> >>> >>> ------------------------------------------------------------------------------ >>> Developer Access Program for Intel Xeon Phi Processors >>> Access to Intel Xeon Phi processor-based developer platforms. >>> With one year of Intel Parallel Studio XE. >>> Training and support from Colfax. >>> Order your platform >>> today.http://sdm.link/xeonphi_______________________________________________ >>> <http://sdm.link/xeonphi_______________________________________________> >>> Motion-user mailing list >>> Motion-user@lists.sourceforge.net <mailto:Motion-user@lists.sourceforge.net> >>> https://lists.sourceforge.net/lists/listinfo/motion-user >>> <https://lists.sourceforge.net/lists/listinfo/motion-user> >>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome >> >> ------------------------------------------------------------------------------ >> Developer Access Program for Intel Xeon Phi Processors >> Access to Intel Xeon Phi processor-based developer platforms. >> With one year of Intel Parallel Studio XE. >> Training and support from Colfax. >> Order your platform >> today.http://sdm.link/xeonphi_______________________________________________ >> <http://sdm.link/xeonphi_______________________________________________> >> Motion-user mailing list >> Motion-user@lists.sourceforge.net <mailto:Motion-user@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/motion-user >> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform > today.http://sdm.link/xeonphi_______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/xeonphi ------------------------------ _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user End of Motion-user Digest, Vol 127, Issue 5 *******************************************