Created
March 4, 2014 15:58
-
-
Save tedr56/9349161 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 39484017cedaf4b374e16c578bef2a72a69cfd96 Mon Sep 17 00:00:00 2001 | |
From: TedVJ <tedr56@gmail.com> | |
Date: Tue, 4 Mar 2014 16:56:38 +0100 | |
Subject: [PATCH] Compilation error solved on 13.10 | |
--- | |
input-manager/Makefile | 2 +- | |
input-manager/input-joystick.cc | 1 + | |
spectrum-analyzer/Makefile | 2 +- | |
3 files changed, 3 insertions(+), 2 deletions(-) | |
diff --git a/input-manager/Makefile b/input-manager/Makefile | |
index f840fe6..65f71be 100644 | |
--- a/input-manager/Makefile | |
+++ b/input-manager/Makefile | |
@@ -1,4 +1,4 @@ | |
all: input-manager | |
input-manager: *.cc | |
- gcc -o input-manager *.cc -pthread -lcwiimote -lportmidi -lporttime -I/usr/include/libcwiimote `pkg-config gtkmm-2.4 unique-1.0 liblo sdl bluez --cflags --libs` | |
+ gcc -o input-manager *.cc -pthread -lcwiimote -lportmidi -lporttime -lstdc++ -lXi -lX11 -I/usr/include/libcwiimote `pkg-config gtkmm-2.4 unique-1.0 liblo sdl bluez --cflags --libs` | |
diff --git a/input-manager/input-joystick.cc b/input-manager/input-joystick.cc | |
index 759ab42..f8ffd5d 100644 | |
--- a/input-manager/input-joystick.cc | |
+++ b/input-manager/input-joystick.cc | |
@@ -1,4 +1,5 @@ | |
#include "input-joystick.h" | |
+#include <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <cstring> | |
diff --git a/spectrum-analyzer/Makefile b/spectrum-analyzer/Makefile | |
index 06b0414..173f7ec 100644 | |
--- a/spectrum-analyzer/Makefile | |
+++ b/spectrum-analyzer/Makefile | |
@@ -1,4 +1,4 @@ | |
all: spectrum-analyzer | |
spectrum-analyzer: *.cc | |
- gcc -o spectrum-analyzer *.cc -lasound -lm `pkg-config --cflags --libs fftw3 gl glu liblo gtkmm-2.4 gtkglextmm-1.2` | |
+ gcc -o spectrum-analyzer *.cc -lasound -lm -lstdc++ `pkg-config --cflags --libs fftw3 gl glu liblo gtkmm-2.4 gtkglextmm-1.2` | |
-- | |
1.8.3.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment