Giter VIP home page Giter VIP logo

Comments (6)

szhilkin avatar szhilkin commented on September 28, 2024

Just put all p9p related files to /usr/local/plan9 and try to build. There are many places in src, where /usr/local/plan9 hardcoded.

from plan9port.

vlulla avatar vlulla commented on September 28, 2024

I tried this and still get the same error.

cd /usr/local/plan9/src/cmd/devdraw; mk all
9c -I/usr/include mklatinkbd.c
9l -o o.mklatinkbd mklatinkbd.o
./o.mklatinkbd -r $PLAN9/lib/keyboard | sed 's/, }/ }/' >latin1.h
9c -I/usr/include devdraw.c
9c -I/usr/include latin1.c
9c -I/usr/include mouseswap.c
9c -I/usr/include srv.c
9c -I/usr/include winsize.c
9l -o o.devdraw devdraw.o latin1.o mouseswap.o srv.o winsize.o x11-alloc.c x11-cload.c x11-draw.c x11-fill.c x11-get.c x11-keysym2ucs.c x11-load.c x11-pixelbits.c x11-screen.c x11-unload.c 
x11-alloc.c:1:10: fatal error: u.h: No such file or directory
    1 | #include <u.h>
      |          ^~~~~
compilation terminated.
x11-cload.c:1:10: fatal error: u.h: No such file or directory
    1 | #include <u.h>
      |          ^~~~~
compilation terminated.
x11-draw.c:1:10: fatal error: u.h: No such file or directory
    1 | #include <u.h>
      |          ^~~~~
compilation terminated.
x11-fill.c:1:10: fatal error: u.h: No such file or directory
    1 | #include <u.h>
      |          ^~~~~
compilation terminated.
x11-get.c:1:10: fatal error: u.h: No such file or directory
    1 | #include <u.h>
      |          ^~~~~
compilation terminated.
x11-load.c:1:10: fatal error: u.h: No such file or directory
    1 | #include <u.h>
      |          ^~~~~
compilation terminated.
x11-pixelbits.c:1:10: fatal error: u.h: No such file or directory
    1 | #include <u.h>
      |          ^~~~~
compilation terminated.
x11-screen.c:1:10: fatal error: u.h: No such file or directory
    1 | #include <u.h>
      |          ^~~~~
compilation terminated.
x11-unload.c:1:10: fatal error: u.h: No such file or directory
    1 | #include <u.h>
      |          ^~~~~
compilation terminated.

from plan9port.

jxy avatar jxy commented on September 28, 2024

The 9l command in your output shouldn't have any .c files. What do you get when you run sh ./mkwsysrules.sh?

I guess you don't have some X11 dependencies and somehow it messed up mk rules generation.

from plan9port.

vlulla avatar vlulla commented on September 28, 2024

I read. I'm assuming this is the /usr/local/plan9/src/cmd/devdraw/mkwsysrules.sh...which yields:

WSYSTYPE=x11
X11=/usr
X11H=-I/usr/include
CFLAGS=$CFLAGS -I/usr/include
HFILES=$HFILES $XHFILES
WSYSOFILES=$WSYSOFILES 
WSYSHFILES=x11-inc.h x11-keysym2ucs.h x11-memdraw.h

from plan9port.

jxy avatar jxy commented on September 28, 2024

Did you run under that directory $PLAN9/src/cmd/devdraw?

The WSYSOFILES should read like

WSYSOFILES=$WSYSOFILES x11-alloc.o x11-cload.o x11-draw.o x11-fill.o x11-get.o x11-keysym2ucs.o x11-load.o x11-pixelbits.o x11-screen.o x11-unload.o

from plan9port.

vlulla avatar vlulla commented on September 28, 2024

No i had not! Running mkwsysrules.sh script in $PLAN9/src/cmd/devdraw showed that WSYSOFILES was not being set correctly. Noticing the difference between your and my output i investigated the mkwsysrules.sh script. It appears that this line was not working for me. I realized that this was because of having QUOTING_STYLE=shell-always defined in my environment!! Whoops....sorry!

Many thanks @jxy for your help/guidance with this. I have now been able to compile all the plan9 programs. I appreciate your help. I'm super excited to try acme!

from plan9port.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.