s.kleftogiannis Posted November 23, 2014 Report Share Posted November 23, 2014 Hello Community,this is my first post so excuse me for any newbie mistakes.I use Chibistudio to work with an Olimex eval board. I build sucsessfully any demo but when trying to add uGFX following uGFXs howto, i take the following errors on demos makefile;../../../ugfx: Permission denied ../../../ugfx: Permission denied in makefile lines;include $(GFXLIB)/gfx.mkinclude $(GFXLIB)/boards/base/Olimex-STM32-LCD/board.mk # your boardand another error;Description Resource Path Location Typemake: *** No rule to make target `/boards/base/Olimex-STM32-LCD/board.mk'. Stop. C/C++ ProblemDid any of you face a similar problem? Does anyone have any idea how can these be solved?Thanks in advance, Link to comment Share on other sites More sharing options...
inmarket Posted November 23, 2014 Report Share Posted November 23, 2014 It looks like your GFXLIB define in your makefile (describing the location of the ugfx directory) is not correct.I suspect that is why you get the permission denied errors - it just cannot find that directorySimilarly the "no rule to make" seems to indicate the same thing.Hope this helps.Andrew. Link to comment Share on other sites More sharing options...
s.kleftogiannis Posted November 24, 2014 Author Report Share Posted November 24, 2014 Andrew thank you for your reply.I suspected that too but after changing GFXLIB to static (GFXLIB = C:\ChibiStudio\ugfx) I take same error to the next level of using this definition:from make file:# Imported source files and pathsCHIBIOS = ../../chibiosGFXLIB = C:\ChibiStudio\ugfx include $(CHIBIOS)/boards/HANC3_EVAL/board.mkinclude $(CHIBIOS)/os/hal/platforms/STM32F1xx/platform.mkinclude $(CHIBIOS)/os/hal/hal.mkinclude $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F1xx/port.mkinclude $(CHIBIOS)/os/kernel/kernel.mkinclude C:\ChibiStudio\ugfx\gfx.mk (moved to hardcode solution also)(Errors: 14 Items)make: /src/gos/sys_make.mk: No such file or directory Olimex-STM32-LCD line 4, external location: C:\ChibiStudio\ugfx\gfx.mk C/C++ ProblemC:/ChibiStudio/ugfx: Permission denied Olimex-STM32-LCD line 5, external location: C:\ChibiStudio\ugfx\gfx.mk C/C++ Problemmake: /src/gdriver/sys_make.mk: No such file or directory Olimex-STM32-LCD line 5, external location: C:\ChibiStudio\ugfx\gfx.mk C/C++ ProblemC:/ChibiStudio/ugfx: Permission denied Olimex-STM32-LCD line 6, external location: C:\ChibiStudio\ugfx\gfx.mk C/C++ Problem....................make: *** No rule to make target `/src/gfile/sys_make.mk'. Stop. Olimex-STM32-LCD C/C++ ProblemAs a result seems to need hard-coding every path uses GFXLIB. Is there any clue how to fix this? I also try to build this makefile using cmd.exe make -j4 without any luck.I'm using Windows-7 Pro and ChibiStudio without changing anything from the zip I extracted it. Link to comment Share on other sites More sharing options...
inmarket Posted November 24, 2014 Report Share Posted November 24, 2014 I suspect you are running into a problem with make under windows. Depending on the version of make you are using it struggles to handle Dos style paths like c:\...The way around this is to try using one of our example makefiles rather than a chibios based makefile. These makefiles can be found in /boards/base/xxx/example.We have spent considerable effort trying to get the makefiles working properly under win32. The chibios supplied makefiles don't work properly under win32 using absolute paths.Please also read our wiki article on your first project in win32.One other bit... Make sure you are using the latest master as we found bugs in our makefiles as late as last week to do with absolute paths under win32 Link to comment Share on other sites More sharing options...
inmarket Posted November 24, 2014 Report Share Posted November 24, 2014 One more thing to try if you must use the chibios supplied makefile...try changing the direction of the slashes in your absolute path to forward slashes. Link to comment Share on other sites More sharing options...
steved Posted November 24, 2014 Report Share Posted November 24, 2014 I've used a makefile based on the Chibi-supplied one successfully, with all relative paths. (IIRC, I have had problems with absolute paths, though).Relevant section:CHIBIOS = ../../chibiosVARIOUS = $(CHIBIOS)/os/variousGFXLIB = ../../ugfxinclude $(CHIBIOS)/os/hal/hal.mkinclude $(CHIBIOS)/os/hal/ports/STM32/STM32F4xx/platform.mkinclude $(CHIBIOS)/os/hal/osal/rt/osal.mkinclude $(CHIBIOS)/os/rt/rt.mkinclude $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f4xx.mkinclude $(GFXLIB)/gfx.mkinclude $(GFXLIB)/boards/base/DDS1414/board.mk # your board(My board file is in a uGfx directory, but don't think I had any problem when it was in a Chibi directory) Link to comment Share on other sites More sharing options...
s.kleftogiannis Posted November 24, 2014 Author Report Share Posted November 24, 2014 Thank you for your replies. I'll try your suggestions and reply back. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now