davenull
Posts: 1162
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

current openVG installation guide is somehow broken:

Fri Mar 25, 2016 9:48 am

the installation guide I was using is somehow broken:

Code: Select all

sudo apt-get install libjpeg8-dev indent libfreetype6-dev ttf-dejavu-core


# Next, build the library and test:

git clone git://github.com/paeryn/openvg

cd openvg
#  make will compile the font utility program, create the default fonts,
#      compile the library's source files and create the shared libray:

make     #ok

make library #ok

make install  # ERRORS !!    
install -m 755 -p font2openvg /usr/bin
install: file "/usr/bin/font2openvg" can not be created no rights
Makefile:38 recipe for target 'install' failed
make: *** 8install] Error
make install
edit
resolved

sudo make install !!

paeryn, could you please update / rework the installation guide and cut it all down to the very essentials to be easily followable step by step ?
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

davenull
Posts: 1162
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: current openVG installation guide is somehow broken:

Fri Mar 25, 2016 10:48 am

also compilation error for the example code:



program can not be compiled:

Code: Select all

// first OpenVG program
// Anthony Starks ([email protected])
// Adapted for paeryn's fork by paeryn
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "VG/openvg.h"
#include "VG/vgu.h"
#include "fontinfo.h"
#include "shapes.h"

int main() {
    int width, height;
    char s[3];

    // Request a window size of 600x360 with top-left at 20,20
    initWindowSize(20, 20, 600, 360);
    init(&width, &height);                  // Graphics initialization

    Start(width, height);                   // Start the picture
    Background(0, 0, 0);                    // Black background
    Fill(44, 77, 232, 1);                   // Big blue marble
    Circle(width / 2, 0, width);            // The "world"

    Fill(255, 255, 255, 1);                 // White text
    TextMid(width / 2, height / 2, "hello, world", SerifTypeface, width / 10);  // Greetings 
    End();                                  // End the picture
    WindowOpacity(128); // Make the window half opacity
                // Can now see what is behind it    
    fgets(s, 2, stdin);                     // look at the pic, end with [RETURN]
    finish();                               // Graphics cleanup
    exit(0);
}


build:
falatal error:
VG/openvg.h: no such file or directory
#include "VG/openvg.h"

compilation terminated



compiled from Geany, settings:

Code: Select all

g++ -Wall -pthread -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -c "%f" -lshapes 

g++ -Wall -pthread -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -o "%e" "%f" -lshapes -L/opt/vc/lib -lOpenVG -lEGL
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

davenull
Posts: 1162
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: current openVG installation guide is somehow broken:

Fri Mar 25, 2016 12:39 pm

no idea what happend, just made some completely different changes and settings to UART and i2c-0,
and suddenly I can execute the testopenvg program "in the terminal" (nevertheless, not just "execute", but anyway.)

Thank you, issue is resolved!
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

Return to “OpenVG”

Who is online

Users browsing this forum: No registered users and 2 guests