men får en massa error och är inte jätte hejare på c.
https://github.com/ajstarks/openvg
har följt instruktionerna för shapedemo unde "build and run".
så om nån kan slänga en titt o se om de är nått jag missat
MakeFile
Kod: Markera allt
INCLUDEFLAGS=-I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -I..
LIBFLAGS=-L/opt/vc/lib -lEGL -lGLESv2 -lbcm_host -lpthread -ljpeg
all: shapedemo hellovg mouse-hellovg particles screensize clip
shapedemo: shapedemo.c ../libshapes.o ../oglinit.o
gcc -Wall $(INCLUDEFLAGS) -o shapedemo shapedemo.c ../libshapes.o ../oglinit.o $(LIBFLAGS)
test: shapedemo
./shapedemo demo 5
hellovg: hellovg.c ../libshapes.o ../oglinit.o
gcc -Wall $(INCLUDEFLAGS) -o hellovg hellovg.c ../libshapes.o ../oglinit.o $(LIBFLAGS)
mouse-hellovg: mouse-hellovg.c ../libshapes.o ../oglinit.o
gcc -Wall $(INCLUDEFLAGS) -o mouse-hellovg mouse-hellovg.c ../libshapes.o ../oglinit.o $(LIBFLAGS)
particles: particles.c ../libshapes.o ../oglinit.o
gcc -Wall $(INCLUDEFLAGS) -o particles particles.c ../libshapes.o ../oglinit.o $(LIBFLAGS)
screensize: screensize.c ../libshapes.o ../oglinit.o
gcc -Wall $(INCLUDEFLAGS) -o screensize screensize.c ../libshapes.o ../oglinit.o $(LIBFLAGS)
clip: clip.c ../libshapes.o ../oglinit.o
gcc -Wall $(INCLUDEFLAGS) -o clip clip.c ../libshapes.o ../oglinit.o $(LIBFLAGS)
indent:
indent -linux -c 60 -brf -l 132 shapedemo.c hellovg.c mouse-hellovg.c particles.c screensize.c
Kod: Markera allt
pi@GAMECLOCK:~/openvg/client $ make test
gcc -Wall -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -I.. -o shapedemo shapedemo.c ../libshapes.o ../oglinit.o -L/opt/vc/lib -lEGL -lGLESv2 -lbcm_host -lpthread -ljpeg
../libshapes.o: In function `loadfont':
libshapes.c:(.text+0x1c0): undefined reference to `vgCreatePath'
libshapes.c:(.text+0x1e4): undefined reference to `vgAppendPathData'
../libshapes.o: In function `unloadfont':
libshapes.c:(.text+0x27c): undefined reference to `vgDestroyPath'
../libshapes.o: In function `createImageFromJpeg':
libshapes.c:(.text+0x3e8): undefined reference to `vgCreateImage'
libshapes.c:(.text+0x410): undefined reference to `vgImageSubData'
../libshapes.o: In function `makeimage':
libshapes.c:(.text+0x490): undefined reference to `vgCreateImage'
libshapes.c:(.text+0x4b8): undefined reference to `vgImageSubData'
libshapes.c:(.text+0x4d8): undefined reference to `vgSetPixels'
libshapes.c:(.text+0x4ec): undefined reference to `vgDestroyImage'
../libshapes.o: In function `Image':
libshapes.c:(.text+0x538): undefined reference to `vgSetPixels'
libshapes.c:(.text+0x54c): undefined reference to `vgDestroyImage'
../libshapes.o: In function `dumpscreen':
libshapes.c:(.text+0x58c): undefined reference to `vgReadPixels'
../libshapes.o: In function `Translate':
libshapes.c:(.text+0x904): undefined reference to `vgTranslate'
../libshapes.o: In function `Rotate':
libshapes.c:(.text+0x908): undefined reference to `vgRotate'
../libshapes.o: In function `Shear':
libshapes.c:(.text+0x90c): undefined reference to `vgShear'
../libshapes.o: In function `Scale':
libshapes.c:(.text+0x910): undefined reference to `vgScale'
../libshapes.o: In function `setfill':
libshapes.c:(.text+0x91c): undefined reference to `vgCreatePaint'
libshapes.c:(.text+0x92c): undefined reference to `vgSetParameteri'
libshapes.c:(.text+0x940): undefined reference to `vgSetParameterfv'
libshapes.c:(.text+0x94c): undefined reference to `vgSetPaint'
libshapes.c:(.text+0x958): undefined reference to `vgDestroyPaint'
../libshapes.o: In function `setstroke':
libshapes.c:(.text+0x968): undefined reference to `vgCreatePaint'
libshapes.c:(.text+0x978): undefined reference to `vgSetParameteri'
libshapes.c:(.text+0x98c): undefined reference to `vgSetParameterfv'
libshapes.c:(.text+0x998): undefined reference to `vgSetPaint'
libshapes.c:(.text+0x9a4): undefined reference to `vgDestroyPaint'
../libshapes.o: In function `StrokeWidth':
libshapes.c:(.text+0x9b4): undefined reference to `vgSetf'
libshapes.c:(.text+0x9c0): undefined reference to `vgSeti'
libshapes.c:(.text+0x9d0): undefined reference to `vgSeti'
../libshapes.o: In function `setstop':
libshapes.c:(.text+0xad0): undefined reference to `vgSetParameteri'
libshapes.c:(.text+0xae0): undefined reference to `vgSetParameteri'
libshapes.c:(.text+0xaf4): undefined reference to `vgSetParameterfv'
libshapes.c:(.text+0xb04): undefined reference to `vgSetPaint'
../libshapes.o: In function `FillLinearGradient':
libshapes.c:(.text+0xb38): undefined reference to `vgCreatePaint'
libshapes.c:(.text+0xb48): undefined reference to `vgSetParameteri'
libshapes.c:(.text+0xb5c): undefined reference to `vgSetParameterfv'
libshapes.c:(.text+0xb74): undefined reference to `vgDestroyPaint'
../libshapes.o: In function `FillRadialGradient':
libshapes.c:(.text+0xbac): undefined reference to `vgCreatePaint'
libshapes.c:(.text+0xbbc): undefined reference to `vgSetParameteri'
libshapes.c:(.text+0xbd0): undefined reference to `vgSetParameterfv'
libshapes.c:(.text+0xbe8): undefined reference to `vgDestroyPaint'
../libshapes.o: In function `ClipRect':
libshapes.c:(.text+0xc1c): undefined reference to `vgSeti'
libshapes.c:(.text+0xc3c): undefined reference to `vgSetiv'
../libshapes.o: In function `ClipEnd':
libshapes.c:(.text+0xc58): undefined reference to `vgSeti'
../libshapes.o: In function `Text':
libshapes.c:(.text+0xd54): undefined reference to `vgGetMatrix'
libshapes.c:(.text+0xdc0): undefined reference to `vgLoadMatrix'
libshapes.c:(.text+0xdc8): undefined reference to `vgMultMatrix'
libshapes.c:(.text+0xdd8): undefined reference to `vgDrawPath'
libshapes.c:(.text+0xdf8): undefined reference to `vgLoadMatrix'
../libshapes.o: In function `newpath':
libshapes.c:(.text+0x10a4): undefined reference to `vgCreatePath'
../libshapes.o: In function `makecurve':
libshapes.c:(.text+0x10dc): undefined reference to `vgAppendPathData'
libshapes.c:(.text+0x10e8): undefined reference to `vgDrawPath'
libshapes.c:(.text+0x10f4): undefined reference to `vgDestroyPath'
../libshapes.o: In function `poly':
libshapes.c:(.text+0x1224): undefined reference to `vguPolygon'
libshapes.c:(.text+0x1230): undefined reference to `vgDrawPath'
libshapes.c:(.text+0x1238): undefined reference to `vgDestroyPath'
../libshapes.o: In function `Rect':
libshapes.c:(.text+0x1284): undefined reference to `vguRect'
libshapes.c:(.text+0x1290): undefined reference to `vgDrawPath'
libshapes.c:(.text+0x12a0): undefined reference to `vgDestroyPath'
../libshapes.o: In function `Line':
libshapes.c:(.text+0x12d4): undefined reference to `vguLine'
libshapes.c:(.text+0x12e0): undefined reference to `vgDrawPath'
libshapes.c:(.text+0x12f0): undefined reference to `vgDestroyPath'
../libshapes.o: In function `Roundrect':
libshapes.c:(.text+0x1334): undefined reference to `vguRoundRect'
libshapes.c:(.text+0x1340): undefined reference to `vgDrawPath'
libshapes.c:(.text+0x1350): undefined reference to `vgDestroyPath'
../libshapes.o: In function `Ellipse':
libshapes.c:(.text+0x1384): undefined reference to `vguEllipse'
libshapes.c:(.text+0x1390): undefined reference to `vgDrawPath'
libshapes.c:(.text+0x13a0): undefined reference to `vgDestroyPath'
../libshapes.o: In function `Arc':
libshapes.c:(.text+0x13f0): undefined reference to `vguArc'
libshapes.c:(.text+0x13fc): undefined reference to `vgDrawPath'
libshapes.c:(.text+0x140c): undefined reference to `vgDestroyPath'
../libshapes.o: In function `Start':
libshapes.c:(.text+0x1448): undefined reference to `vgSetfv'
libshapes.c:(.text+0x145c): undefined reference to `vgClear'
libshapes.c:(.text+0x1484): undefined reference to `vgLoadIdentity'
../libshapes.o: In function `End':
libshapes.c:(.text+0x14a4): undefined reference to `vgGetError'
../libshapes.o: In function `SaveEnd':
libshapes.c:(.text+0x154c): undefined reference to `vgGetError'
../libshapes.o: In function `Background':
libshapes.c:(.text+0x1688): undefined reference to `vgSetfv'
libshapes.c:(.text+0x16a4): undefined reference to `vgClear'
../libshapes.o: In function `BackgroundRGB':
libshapes.c:(.text+0x16d4): undefined reference to `vgSetfv'
libshapes.c:(.text+0x16f0): undefined reference to `vgClear'
../libshapes.o: In function `WindowClear':
libshapes.c:(.text+0x171c): undefined reference to `vgClear'
../libshapes.o: In function `AreaClear':
libshapes.c:(.text+0x1724): undefined reference to `vgClear'
../libshapes.o: In function `RectOutline':
libshapes.c:(.text+0x1834): undefined reference to `vguRect'
libshapes.c:(.text+0x1840): undefined reference to `vgDrawPath'
libshapes.c:(.text+0x1850): undefined reference to `vgDestroyPath'
../libshapes.o: In function `RoundrectOutline':
libshapes.c:(.text+0x1894): undefined reference to `vguRoundRect'
libshapes.c:(.text+0x18a0): undefined reference to `vgDrawPath'
libshapes.c:(.text+0x18b0): undefined reference to `vgDestroyPath'
../libshapes.o: In function `EllipseOutline':
libshapes.c:(.text+0x18e4): undefined reference to `vguEllipse'
libshapes.c:(.text+0x18f0): undefined reference to `vgDrawPath'
libshapes.c:(.text+0x1900): undefined reference to `vgDestroyPath'
../libshapes.o: In function `ArcOutline':
libshapes.c:(.text+0x1950): undefined reference to `vguArc'
libshapes.c:(.text+0x195c): undefined reference to `vgDrawPath'
libshapes.c:(.text+0x196c): undefined reference to `vgDestroyPath'
collect2: error: ld returned 1 exit status
Makefile:7: receptet för målet ”shapedemo” misslyckades
make: *** [shapedemo] Fel 1
pi@GAMECLOCK:~/openvg/client $