Browse Source

Merge branch 'master' of github.com:xythobuz/LED-Cube

Max Nuding 12 years ago
parent
commit
fbf2f18661
3 changed files with 6 additions and 3 deletions
  1. 0
    1
      CubeControl/helper/unixSerial.c
  2. 2
    2
      CubeControl/makefile
  3. 4
    0
      README.md

+ 0
- 1
CubeControl/helper/unixSerial.c View File

@@ -134,7 +134,6 @@ char** namesInDev(int *siz) {
134 134
 		tmp[3] = 'v';
135 135
 		tmp[4] = '/';
136 136
 		files[i] = strncat(tmp, files[i], strlen(files[i]));
137
-		free(tmp);
138 137
 	}
139 138
 
140 139
 	*siz = size;

+ 2
- 2
CubeControl/makefile View File

@@ -15,11 +15,11 @@ JAVAFILES = HelperUtility.java AnimationUtility.java Animation.java AFrame.java
15 15
 INJAR = *.class *.png
16 16
 
17 17
 
18
-all: CubeControl.jar
18
+all: CubeControl.jar libSerial
19 19
 
20 20
 doc: doc/index.html
21 21
 
22
-CubeControl.jar: libSerial HelperUtility.class manifest.txt
22
+CubeControl.jar: HelperUtility.class manifest.txt
23 23
 	jar -cmf manifest.txt "CubeControl.jar" $(INJAR)
24 24
 
25 25
 serialInterface.h: HelperUtility.class

+ 4
- 0
README.md View File

@@ -16,3 +16,7 @@ It will use [Peter Fleury's UART and TWI Library](http://homepage.hispeed.ch/pet
16 16
 We also build a software to create and load animations into the cube. This software is written in Java and C and is Compatible between Windows and Unix.
17 17
 It's source is in the "Cube Control" directory. It has it's own makefile, in which you can specify the Target OS. "unix" means any Unix like OS (Linux, OS X...), "win" means Windows.
18 18
 You obviously need a working JDK and a C Compiler Environment (we use gcc).
19
+
20
+## Build instructions
21
+
22
+Theres a global makefile in the top folder. If you run it, it will (probably) create CubeControl.jar, CubeFirmware.hex and a OS-dependent serial library (Serial.dll or libSerial.jnilib...). If not, you should take a look at the makefile in CubeControl. Hard-Coded include directorys are probably different than on your system...

Loading…
Cancel
Save