Can't compile

Anonymous avatarAnonymous created an issue

Sorry for the newbie question, but I can't get this to compile although I've had no bother with other go libraries. These are the errors I get:

me@me-VirtualBox:/gocairo$ make install Makefile:5: /home/sarah/go/src/Make.: No such file or directory /home/sarah/go/src/Make.pkg:9: /src/Make.common: No such file or directory make: * No rule to make target `/src/Make.common'. Stop.

What am I doing wrong?

Comments (3)

  1. Anonymous

    No need to apologize. I should probably take this project down. I wrote it shortly after Go was released, but Go has evolved since then and I haven't had time to maintain it.

  2. Anonymous

    Hi Dethe --

    The probelm for compiling was a change in the way golang makefiles work. I have updated the makefile and I have also added a fuction to return the surface data in gocairo. Here are my changes. I will commit directly if given access.


    include $(GOROOT)/src/

    TARG=cairo CGOFILES=\ cairo.go

    CGO_CFLAGS= -I/opt/local/include CGO_LDFLAGS+= -L/opt/local/lib -lcairo


    include $(GOROOT)/src/Make.pkg

    %: install %.go $(GC) $*.go $(LD) -o $@ $*.$O

    Addef folloing to [cairo.go]

    func (self *Surface) GetData() *byte { data := C.cairo_image_surface_get_data(self.surface) return (*byte)(unsafe.Pointer(data)) }


  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.