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.
# 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
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