Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error index SketchesDir not defined (Linux install) #2

Open
jurekxp opened this issue Sep 7, 2013 · 3 comments
Open

Error index SketchesDir not defined (Linux install) #2

jurekxp opened this issue Sep 7, 2013 · 3 comments

Comments

@jurekxp
Copy link

jurekxp commented Sep 7, 2013

In script wizard.script line 63 is a wrong declaration:
actual: SketchDir <- _T("$(HOME)/.codeblocks/sketches");
right line: SketchesDir <- _T("$(HOME)/.codeblocks/sketches");

@riban-bw
Copy link

Also on line 324:
actual: target.SetVar(_T("SKETCH_DIR"), SketchDir, false);
corrected: target.SetVar(_T("SKETCH_DIR"), SketchesDir, false);

@qwach
Copy link

qwach commented Aug 18, 2014

I think SketchDir makes more sense. Same thing in proper patch form:

Index: trunk/wizards/arduino/wizard.script

--- trunk/wizards/arduino/wizard.script (revision 13)
+++ trunk/wizards/arduino/wizard.script (working copy)
@@ -279,7 +279,7 @@

                    target.AddIncludeDir(_T("$(ARDUINO_DIR)/hardware/arduino/cores/arduino"));
                                            target.AddIncludeDir(_T("$(ARDUINO_DIR)/libraries"));
  •        if (SketchesDir) {
    
  •        if (SketchDir) {
                    target.AddIncludeDir(_T("$(SKETCH_DIR)/hardware/attiny/variants/" + variant));
         }
                    target.AddIncludeDir(_T("$(ARDUINO_DIR)/hardware/arduino/variants/" + variant));
    

@inkhalistan
Copy link

Codeblocks is giving me these errors after doing jurekxp and riban-bw's fix:
||=== Build: Simulator - Debug in fg (compiler: GNU GCC Compiler) ===|
/media/pogo-engineering/code/ArduinoSketches/fg/cores/HardwareSerial.cpp|3|fatal error: HardwareSerial.cpp: No such file or directory|
/media/pogo-engineering/code/ArduinoSketches/fg/cores/CDC.cpp|3|fatal error: CDC.cpp: No such file or directory|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants