Commit 8b88ad7d authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

added include for perror

parent 2f210dda
# This makefile is for cross-compiling on student computers, i.e. login.student.lth.se
COMMON_DIR=/usr/local/cs/rtp
#COMMON_DIR=/usr/local/cs/rtp
COMMON_DIR=/home/sven/slask/rtp-kamera/fr_login
COMPILER_DIR=${COMMON_DIR}/tools/comptools-mips-r12_1.2-0/comptools-mips-r12_1.2-0_amd64/mipsisa32r2el/r12
# Absolute path to the Axis Software Development Kit containing camera specific libs and headers, used for capture.h and its corresponding object file (i.e. libcapture)
......@@ -24,6 +25,7 @@ AXIS_LIBCAP=-lcapture # This is needed for the native camera classes to fetch im
AXIS_LIBCAP_DEP=-ldbus-1 -lgobject-2.0 -ldbus-glib-1 -lgthread-2.0 -lglib-2.0 -lrapp -lpthread # Dependencies of libcapture
LDFLAGS+=${AXIS_LIBCAP} ${AXIS_LIBCAP_DEP} ${AXIS_LIBCAP} -L${AXIS_PATH}/lib -L${AXIS_PATH}/usr/lib # Specify which libs are used and set search path for them
CFLAGS+=-O3 -g -Wall
LDLIBS+=-lpthread
http_server: http_server.c camera.c Makefile
http_server: http_server.o camera.o Makefile
${CC} ${CPPFLAGS} ${CFLAGS} $< ${LDFLAGS} -lpthread -o $@
#include "camera.h"
#include <stdio.h>
camera* camera_open(){
camera *cam = malloc(sizeof(camera));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment