Jump to content

makefile & embitz


fastlink30

Recommended Posts

i'm trying to use emblitz with ugfx (and chibios 3.0), taked makefile from the stm32f4 discovery directory

first run, i get error ... ,

so i changed line in makefile to

CHIBIOS_PORT = v7m

before was

CHIBIOS_PORT = stm32f4xx

now, when i compile, i get

c:\EmBitz\MULTIBOARD_F407\ext\ugfx\tools\gmake_scripts\compiler_gcc.mk|193|recipe for target 'builddirs' failed|

seems that builddirs is not defined somewhere, how to correct this?

thanks

Edited by Guest
Link to comment
Share on other sites

Hello fastlink,

Can you please show us the full compiler output that you are getting?

What example are you using? We are successfully using the STM32F4 Makefile template with ChibiOS/RT 2.x but we have not tested it that much with 3.x. It is very possible that there might be something wrong in there.

~ Tectu

Link to comment
Share on other sites

part of the makefile:

OPT_OS = chibios

OPT_THUMB = yes

OPT_LINK_OPTIMIZE = yes

OPT_CPU = stm32m4

# uGFX settings

# See $(GFXLIB)/tools/gmake_scripts/library_ugfx.mk for the list of variables

GFXLIB = c:/EmBitz/MULTIBOARD_F407/ext/ugfx

GFXBOARD = STM32F429i-Discovery

GFXDEMO = modules/gdisp/basics

# ChibiOS settings

ifeq ($(OPT_OS),chibios)

# See $(GFXLIB)/tools/gmake_scripts/os_chibios.mk for the list of variables

CHIBIOS = c:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.0

CHIBIOS_VERSION = 3

CHIBIOS_BOARD = ST_STM32F4_DISCOVERY

CHIBIOS_CPUCLASS = ARMCMx

CHIBIOS_PLATFORM = STM32/STM32F4xx

CHIBIOS_PORT = v7m <--- changed here

CHIBIOS_LDSCRIPT = STM32F407xG.ld

endif

i have re-copied the makefile over the old on my project folder, now the error change (probably some wrong char on makefile, when i try to modify parameter)

now the error is:

||=== MULTIBOARD_F407, Debug ===|

c:\EmBitz\MULTIBOARD_F407\ext\ChibiOS_3.0.0\os\rt\include\ch.h|71|fatal error: chconf.h: No such file or directory|

c:\EmBitz\MULTIBOARD_F407\ext\ugfx\tools\gmake_scripts\compiler_gcc.mk|233|recipe for target 'bin/Debug/obj/GFXLIB/src/gfx.o' failed|

||=== Build finished: 2 errors, 0 warnings (0 minutes, 1 seconds) ===|

i use the 'example' on boards/base and using stm32f429i-discovery\chibios_3.x makefile

Link to comment
Share on other sites

  • 2 weeks later...

i have added in the path variable of system

and is little better, but now i recevice this error:


C:\EmBitz\MULTIBOARD_F407>make
.
C Compiler Options....
arm-none-eabi-gcc -c -ggdb -O0 -mcpu=cortex-m4 -falign-functions=16 -fomit-frame
-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -ffunction-sections -fd
ata-sections -fno-common -flto -MMD -MP -MF .build/dep/fakethumbfile.o.d -I. -Ic
:/EmBitz/MULTIBOARD_F407/ext/ugfx -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/3rdparty/
tinygl-0.4-ugfx/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/boards/base/STM32F4
29i-Discovery -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/drivers/gdisp/STM32F429iDisco
very -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/demos/modules/gdisp/basics -Ic:/EmBitz
/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/rt/ports/ARMCMx -Ic:/EmBitz/MULTIBOARD_F40
7/ext/ChibiOS_3.0.1/os/rt/ports/ARMCMx/compilers/GCC -Ic:/EmBitz/MULTIBOARD_F407
/ext/ChibiOS_3.0.1/os/rt/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/o
s/hal/osal/rt -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/include -Ic:/
EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/common/ARMCMx -Ic:/EmBitz/
MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/STM32F4xx -Ic:/EmBitz/MULTI
BOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD -Ic:/EmBitz/MULTIBOARD_F407/
ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/DACv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/C
hibiOS_3.0.1/os/hal/ports/STM32/LLD/GPIOv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/Chibi
OS_3.0.1/os/hal/ports/STM32/LLD/I2Cv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.
0.1/os/hal/ports/STM32/LLD/OTGv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/o
s/hal/ports/STM32/LLD/RTCv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal
/ports/STM32/LLD/SPIv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/port
s/STM32/LLD/TIMv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM
32/LLD/USARTv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/
LLD/FSMCv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/boards/ST_STM32F
4_DISCOVERY -DGFX_USE_OS_CHIBIOS=TRUE -DGFX_USE_OS_CHIBIOS=TRUE -DCORTEX_USE_FPU
=FALSE -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB fakethumbfile.c -
o .build/obj/fakethumbfile.o
.
Assembler Options.....
arm-none-eabi-gcc -c -ggdb -O0 -mcpu=cortex-m4 -falign-functions=16 -fomit-frame
-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -ffunction-sections -fd
ata-sections -fno-common -flto -MMD -MP -MF .build/dep/fakethumbfile.o.d -I. -Ic
:/EmBitz/MULTIBOARD_F407/ext/ugfx -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/3rdparty/
tinygl-0.4-ugfx/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/boards/base/STM32F4
29i-Discovery -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/drivers/gdisp/STM32F429iDisco
very -Ic:/EmBitz/MULTIBOARD_F407/ext/ugfx/demos/modules/gdisp/basics -Ic:/EmBitz
/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/rt/ports/ARMCMx -Ic:/EmBitz/MULTIBOARD_F40
7/ext/ChibiOS_3.0.1/os/rt/ports/ARMCMx/compilers/GCC -Ic:/EmBitz/MULTIBOARD_F407
/ext/ChibiOS_3.0.1/os/rt/include -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/o
s/hal/osal/rt -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/include -Ic:/
EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/common/ARMCMx -Ic:/EmBitz/
MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/STM32F4xx -Ic:/EmBitz/MULTI
BOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD -Ic:/EmBitz/MULTIBOARD_F407/
ext/ChibiOS_3.0.1/os/hal/ports/STM32/LLD/DACv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/C
hibiOS_3.0.1/os/hal/ports/STM32/LLD/GPIOv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/Chibi
OS_3.0.1/os/hal/ports/STM32/LLD/I2Cv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.
0.1/os/hal/ports/STM32/LLD/OTGv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/o
s/hal/ports/STM32/LLD/RTCv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal
/ports/STM32/LLD/SPIv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/port
s/STM32/LLD/TIMv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM
32/LLD/USARTv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/ports/STM32/
LLD/FSMCv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/hal/boards/ST_STM32F
4_DISCOVERY -DGFX_USE_OS_CHIBIOS=TRUE -DGFX_USE_OS_CHIBIOS=TRUE -DCORTEX_USE_FPU
=FALSE -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB fakethumbfile.s -
o .build/obj/fakethumbfile.o
.
Linker Options........
arm-none-eabi-gcc -Wl,--defsym=__process_stack_size__=0x400 -Wl,--defsym=__main_
stack_size__=0x400 -mcpu=cortex-m4 -nostartfiles -mthumb -Wl,--gc-sections -T/ST
M32F407xG.ld -Lc:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.1/os/common/ports/ARMCM
x/compilers/GCC .build/obj/fakethumbfile.o -o .build/MULTIBOARD_F407.elf
.
Compiling c:/EmBitz/MULTIBOARD_F407/ext/ugfx/src/gfx.c
In file included from c:/EmBitz/MULTIBOARD_F407/ext/ugfx/src/gfx.c:16:0:
./gfx.h:164:33: fatal error: src/gos/sys_options.h: No such file or directory
#include "src/gos/sys_options.h"
^
compilation terminated.
c:/EmBitz/MULTIBOARD_F407/ext/ugfx/tools/gmake_scripts/compiler_gcc.mk:242: reci
pe for target '.build/obj/GFXLIB/src/gfx.o' failed
make: *** [.build/obj/GFXLIB/src/gfx.o] Error 1

(copy & paste from command line, i made make command)

compiler can't reach the files on the src directory, how i can include this path for compiler?

compiler, assembler & linker for chibios are ok

but when start compile for ugfx (by compiler_gcc.mk) i get this error.

i looked the link you provide me on the other forum (http://wiki.ugfx.org/index.php?title=ChibiOS/RT)

but this not help much, becouse the makefile i use, is what i found on the ugfx\boards\base\STM32F429i-Discovery\example_chibios_3.x\ directory

wich is quite different from the example, also (i think) is specifically made to compile chibios 3 & ugfx togheter by calling only this makefile

thanks

Link to comment
Share on other sites

I made some changes to the build system for ChibiOS . Internally ChibiOS 2.x and ChibiOS 3.x are treated differently. There are now working examples for both ChibiOS 2.x and 3.x in the STM32F429i-Discovery board directory.

As inmarket did not review the changes yet it might be that there will be some more changes as he is the one who originally implemented our build system. However, this way you can at least continue with your project.

Sorry that this took so long. Let me know whether you got it working.

~ Tectu

Link to comment
Share on other sites

i've removed gfx.h. i not know why i put there, probably some test and after forget to remove :(

now i have another problem, but is related with embitz ide, on 2 different computer the same project compilation give me error, on first computer, error are related to some define not present on the board include (i must make a specific directory for my custom board, not use discovery stm32f409i), on second computer i have error on the makefile, but probably need to set paths to different directory, anyway something not related to ugfx.

1 curiosity, why there aren't board directory for discovery stm32407 (my custom board is very similar)? too old board? if i remember good on the previous versions of ugfx there was

thanks

Link to comment
Share on other sites

now i have another problem, but is related with embitz ide, on 2 different computer the same project compilation give me error, on first computer, error are related to some define not present on the board include (i must make a specific directory for my custom board, not use discovery stm32f409i), on second computer i have error on the makefile, but probably need to set paths to different directory, anyway something not related to ugfx.

We cannot help you unless you post the compiler output logs.

In case of you used 'very old' uGFX version before you updated to the latest master I would recommend you copying the latest board file templates and compare them to your current ones. There were some changes regarding the board files a few versions ago.

Also, note that you don't have to create a board file directory for your custom board inside of the uGFX library directory. Just place the board files somewhere in your application/project directory and add them to your Makefile as any other source files.

You should never ever modify the content of the uGFX library directory. Otherwise upgrading to a newer version can be very very cumbersome.

1 curiosity, why there aren't board directory for discovery stm32407 (my custom board is very similar)? too old board? if i remember good on the previous versions of ugfx there was

There is no STM32F407 Discovery board file in the uGFX repository because this board does not have a display.

There is however a board file for the Embest board which is an STM32F407 with an add-on. Furthermore, there are board files for dev-boards without a display but where a display can easily be added such as: ugfx\boards\addons\gdisp\board_SSD1289_stm32f4discovery.h. I assume that this is the board file from the 'previous version of ugfx' that you are referring to.

~ Tectu

Link to comment
Share on other sites

  • 3 weeks later...

after much time i can dedicate some time to compilation of this project, now i have this problem

.

C Compiler Options....

arm-none-eabi-gcc -c -ggdb -O0 -mcpu=cortex-m4 -falign-functions=16 -fomit-frame

-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -MMD -MP -MF .build/dep

/fakethumbfile.o.d -I. -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8 -

Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/3rdparty/tinygl-0.4-ugfx/

include -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/boards/base/MULT

IBOARD_F407 -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/drivers/gdis

p/SSD1289 -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/demos/modules/

gdisp/basics -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/common/ports/ARMCM

x/devices/STM32F4xx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/ext/CMSIS/i

nclude -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/ext/CMSIS/ST -Ic:/EmBitz

/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/rt/include -Ic:/EmBitz/MULTIBOARD_F407/ext

/ChibiOS_3.0.2/os/rt/ports/ARMCMx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/

os/rt/ports/ARMCMx/compilers/GCC -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/o

s/hal/osal/rt -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/include -Ic:/

EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/common/ARMCMx -Ic:/EmBitz/

MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/STM32F4xx -Ic:/EmBitz/MULTI

BOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD -Ic:/EmBitz/MULTIBOARD_F407/

ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/DACv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/C

hibiOS_3.0.2/os/hal/ports/STM32/LLD/GPIOv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/Chibi

OS_3.0.2/os/hal/ports/STM32/LLD/I2Cv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.

0.2/os/hal/ports/STM32/LLD/OTGv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/o

s/hal/ports/STM32/LLD/RTCv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal

/ports/STM32/LLD/SPIv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/port

s/STM32/LLD/TIMv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM

32/LLD/USARTv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/

LLD/FSMCv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/boards/ST_STM32F

4_DISCOVERY -DGFX_USE_CHIBIOS=TRUE -DGFX_USE_OS_CHIBIOS=TRUE -DCORTEX_USE_FPU=FA

LSE -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB fakethumbfile.c -o .

build/obj/fakethumbfile.o

.

Assembler Options.....

arm-none-eabi-gcc -c -ggdb -O0 -mcpu=cortex-m4 -falign-functions=16 -fomit-frame

-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -MMD -MP -MF .build/dep

/fakethumbfile.o.d -I. -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8 -

Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/3rdparty/tinygl-0.4-ugfx/

include -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/boards/base/MULT

IBOARD_F407 -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/drivers/gdis

p/SSD1289 -Ic:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/demos/modules/

gdisp/basics -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/common/ports/ARMCM

x/devices/STM32F4xx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/ext/CMSIS/i

nclude -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/ext/CMSIS/ST -Ic:/EmBitz

/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/rt/include -Ic:/EmBitz/MULTIBOARD_F407/ext

/ChibiOS_3.0.2/os/rt/ports/ARMCMx -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/

os/rt/ports/ARMCMx/compilers/GCC -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/o

s/hal/osal/rt -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/include -Ic:/

EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/common/ARMCMx -Ic:/EmBitz/

MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/STM32F4xx -Ic:/EmBitz/MULTI

BOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD -Ic:/EmBitz/MULTIBOARD_F407/

ext/ChibiOS_3.0.2/os/hal/ports/STM32/LLD/DACv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/C

hibiOS_3.0.2/os/hal/ports/STM32/LLD/GPIOv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/Chibi

OS_3.0.2/os/hal/ports/STM32/LLD/I2Cv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.

0.2/os/hal/ports/STM32/LLD/OTGv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/o

s/hal/ports/STM32/LLD/RTCv2 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal

/ports/STM32/LLD/SPIv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/port

s/STM32/LLD/TIMv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM

32/LLD/USARTv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/ports/STM32/

LLD/FSMCv1 -Ic:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/hal/boards/ST_STM32F

4_DISCOVERY -DGFX_USE_CHIBIOS=TRUE -DGFX_USE_OS_CHIBIOS=TRUE -DCORTEX_USE_FPU=FA

LSE -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB fakethumbfile.s -o .

build/obj/fakethumbfile.o

.

Linker Options........

arm-none-eabi-gcc -Wl,--defsym=__process_stack_size__=0x400 -Wl,--defsym=__main_

stack_size__=0x400 -mcpu=cortex-m4 -nostartfiles -mthumb -Tc:/EmBitz/MULTIBOARD_

F407/ext/ChibiOS_3.0.2/os/common/ports/ARMCMx/compilers/GCC/ld/STM32F407xG.ld -L

c:/EmBitz/MULTIBOARD_F407/ext/ChibiOS_3.0.2/os/common/ports/ARMCMx/compilers/GCC

.build/obj/fakethumbfile.o -o .build/MULTIBOARD_F407.elf

.

Linking .build/MULTIBOARD_F407.elf

.build/obj/GFXLIB/src/gdisp/gdisp.o: In function `drawpixel':

c:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/src/gdisp/gdisp.c:128: und

efined reference to `gdisp_lld_draw_pixel'

collect2.exe: error: ld returned 1 exit status

c:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/tools/gmake_scripts/compil

er_gcc.mk:282: recipe for target '.build/MULTIBOARD_F407.elf' failed

make: *** [.build/MULTIBOARD_F407.elf] Error 1

sure is stupid problem, but i not see where must be this function (drawpixel), also another thing, i have put my board files under ugfx directory / boards/base, but (as you say) i want put outside the ugfx dire, how i can change the makefile to compile correctly?

thanks

Link to comment
Share on other sites

.build/obj/GFXLIB/src/gdisp/gdisp.o: In function `drawpixel':

c:/EmBitz/MULTIBOARD_F407/ext/Tectu-ugfx-4eb0dbb1e3b8/src/gdisp/gdisp.c:128: und

efined reference to `gdisp_lld_draw_pixel's

The function gdisp_lld_draw_pixel() is a function that is part of the GDISP board file. If you get this error the linker couldn't find a valid board file.

In order to use a custom board file that is part of the project/application all you have to do is placing the board file in your project directory and making sure that it gets compiled (the path containing the board file must be in your include path (usually INCDIR, INCS or something similar when using a Makefile).

Note that you must not define the GFXBOARD variable in your board file when using a custom board file. Just leave the variable empty or don't declare it at all in your makefile.

~ Tectu

Link to comment
Share on other sites

  • 3 weeks later...

today i have designed some screens with the ugfx studio, all ok, exported the files, removed the main from ugfx_gui.c and linked compile file on makefile

now when i compile i receive this error:


c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-openr.o): In function `_open_r':
openr.c:(.text._open_r+0x10): undefined reference to `_open'
c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-unlinkr.o): In function `_unlink_r':
unlinkr.c:(.text._unlink_r+0xc): undefined reference to `_unlink'
c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-linkr.o): In function `_link_r':
linkr.c:(.text._link_r+0xe): undefined reference to `_link'
c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-statr.o): In function `_stat_r':
statr.c:(.text._stat_r+0xe): undefined reference to `_stat'
collect2.exe: error: ld returned 1 exit status
make: *** [bin/Debug/OVEN_STM32F103R8.elf] Error 1
c:/EmBitz/OVEN_STM32F103R8/ext/Tectu-ugfx-ddf79cd411e2/tools/gmake_scripts/compiler_gcc.mk:282: recipe for target 'bin/Debug/OVEN_STM32F103R8.elf' failed

before this error, the compilation was ok, seems some library are missing..

Edited by Guest
Link to comment
Share on other sites

If this is a problem related to the code generated by the uGFX-Studio then please ask for advice in the appropriate forum.

Also, please use code tags in the future if you want to include code or compiler output logs in your posts.

The forum is also a source of knowledge for other people when they use the forum search trying to find an answer for their problem. Therefore we want to keep this forum as structured and organized as possible :)

Generally having one "support thread per user" is not a helpful approach in that regard.

~ Tectu

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...