Comments (11)
Hi,
I tried again with a modified INSTALL script to fit my environment better.
I added the following parts:
if [ uname -n
= pandora ]; then
echo "* Running on Pandora, adjusting linker flags"
echo "LDFLAGS='-L/mnt/utmp/codeblocks/usr/lib'" >> $PLAN9/config
fi
and
if [ uname
!= Darwin ]; then
# Determine whether fontsrv X11 files are available.
rm -f a.out
gcc -o a.out -c -Iinclude -I/usr/include -I/usr/local/include -I/usr/i
nclude/freetype2 -I/usr/local/include/freetype2
-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/mnt/utmp/co
deblocks/usr/include/freetype2 -I/mnt/utmp/codeblocks/usr/include
-I/mnt/utmp/codeblocks/usr/include/libpng16 -I/mnt/utmp/codeblocks
/usr/include/harfbuzz src/cmd/fontsrv/x11.c >/dev/null 2>&1
if [ -f a.out ]; then
echo " fontsrv dependencies found."
echo "FONTSRV=fontsrv" >>$PLAN9/config
else
echo " fontsrv dependencies not found."
echo "FONTSRV=" >>$PLAN9/config
rm -f bin/fontsrv
fi
rm -f a.out
fi
but to no avail: graphical applications are still not working.
What am I doing wrong ?
Cheers, Sam
from plan9port.
Attaching some relevant files (INSTALL, config, install.log and install.sum) for your convenience.
Cheers, Sam
from plan9port.
Hi,
This is just an educated guess, but try adding -marm
to cflags in 9c, and
recompiling with the INSTALL script.
For reference, here's a code review I abandoned that does exactly that:
https://plan9port-review.googlesource.com/#/c/1530/1/bin/9c
That change was necessary to fix similar problems as to what you are
describing when I setup plan9port on an armv7l Chromebook (in a chroot).
Exactly what version of ARM chip your machine is running? uname -m
should reveal that.
Are the GUI programs suggesting when you try to run them?
On Aug 8, 2016 6:37 AM, "sviscapi" [email protected] wrote:
logs.zip https://github.com/9fans/plan9port/files/406591/logs.zip
Attaching some relevant files (INSTALL, config, install.log and
install.sum) for your convenience.Cheers, Sam
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#61 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AApaq2iEWgKkXy_X02RVxXhwhicC_hRoks5qdwbwgaJpZM4JdAtJ
.
from plan9port.
Hi @aoeu !
The Pandora is running an armv7l chip.
Do you think the following would work ?
if [ uname -n = pandora ]; then
echo "* Running on Pandora, adjusting linker flags"
echo "LDFLAGS='-L/mnt/utmp/codeblocks/usr/lib'" >> $PLAN9/config
echo "CFLAGS='-marm'" >> $PLAN9/config
fi
Thanks, Sam
from plan9port.
Hi @aoeu !
I recompiled plan9port with:
echo "CFLAGS='-marm $CFLAGS'" >> $PLAN9/config
pandora:/mnt/utmp/plan9port-magicsam/plan9port-master$ cat config
SYSVERSION=2.6.x
LDFLAGS='-L/mnt/utmp/codeblocks/usr/lib'
CFLAGS='-marm -Ofast -pipe -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp -fsingle-precision-constant -fuse-ld=gold -fuse-linker-plugin -fdiagnostics-color=auto -fsigned-char -mneon-for-64bits -mvectorize-with-neon-double'
FONTSRV=fontsrv
Unfortunately, graphical applications are still failing with the same error message:
usage: devdraw (don't run directly)
acme: can't open display: muxrpc: unexpected eof
Do you understand what I'm doing wrong ?
Thanks, Sam
from plan9port.
Hi again,
While browsing the logs I noticed that "rio" has not been built (no error message though) and was missing from the "bin" directory...
Could that be the root cause of my graphical applications issues ?
Cheers, Sam
from plan9port.
Hey @sviscapi,
I was just having this issue on CentOS 6.
I thought I had installed all the dependencies, but I saw that rio was not being built (silent, too).
Installing the libXext-devel
and libXt-devel
packages and retrying INSTALL
worked.
Maybe you're missing some deps too?
from plan9port.
Hi @arturocastro !
LibXext-devel and libXt-devel are already part of my development environment. I think the root cause is that I'm trying to compile on ARM...
Could someone please have a look at this issue ? Or at least tell me what are ALL the required dependencies for Plan9Port, and where does the INSTALL script expect them to be (as our environment is a bit "exotic", I might have to change some paths here and there...) ?
Finally, an INSTALL script that doesn't fail silently would come in handy too ;)
Cheers, Sam a.k.a "Magic Sam" from the Open Pandora community
from plan9port.
I have exactly the same problem with netbsd 7.0.1
from plan9port.
Hi all,
@rsc : any news regarding this issue ?
Cheers, Sam
from plan9port.
Hi all,
Graphical applications are now working on the Pandora. Here are the modifications I had to make:
- INSTALL
if [ uname -n
= pandora ]; then
echo "* Running on Pandora, adjusting linker flags"
echo "LDFLAGS='-L/mnt/utmp/codeblocks/usr/lib'" >> $PLAN9/config
echo "CFLAGS='-marm -I/mnt/utmp/codeblocks/usr/include
-I/mnt/utmp/codeblocks/usr/include/X11 $CFLAGS'" >> $PLAN9/config
fi
[...]
if [ uname
!= Darwin ]; then
# Determine whether fontsrv X11 files are available.
rm -f a.out
gcc -o a.out -c -Iinclude -I/usr/include -I/usr/local/include -I/usr/
include/freetype2 -I/usr/local/include/freetype2
-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/mnt/utmp/c
odeblocks/usr/include/freetype2 -I/mnt/utmp/codeblocks/usr/include
-I/mnt/utmp/codeblocks/usr/include/libpng16 -I/mnt/utmp/codeblock
s/usr/include/harfbuzz src/cmd/fontsrv/x11.c >/dev/null 2>&1
if [ -f a.out ]; then
echo " fontsrv dependencies found."
echo "FONTSRV=fontsrv" >>$PLAN9/config
else
echo " fontsrv dependencies not found."
echo "FONTSRV=" >>$PLAN9/config
rm -f bin/fontsrv
fi
rm -f a.out
fi
- src/cmd/devdraw/mkwsysrules.sh
[...]
elif [ -d /mnt/utmp/codeblocks/usr/include/X11 ]; then
X11=/mnt/utmp/codeblocks/usr
else
X11=noX11dir
fi
I hope that helps.
Cheers, Sam
from plan9port.
Related Issues (20)
- devdraw: Cursor reverts to macOS default on MacBook with notch
- Cant use 9l -- ld cannot find -l9 HOT 4
- libbio brdline error handling
- sam: regexp match issue
- acme -a, on MacOS, is unresponsive after changing window size
- can't pass both -b/-c and -r to INSTALL
- can not build under gcc-less linux HOT 4
- 9pfuse not working on Mac OS Sonoma
- Belorussian link does not work HOT 2
- No pointer warping in acme in virtual Fedora 39
- Issue triage
- 9pserve: msize not optimal
- Build fails with LTO HOT 3
- kcmp in cmd/sort.c conflicts with FreeBSD system header file HOT 1
- Acme cannot navigate directories or open files within itself. HOT 1
- idea: port pool(2) HOT 2
- RFC Update 9fans.github.io to Use Git Submodules
- Where is acme's file interface located? HOT 2
- Proposal for Acme Editor Enhancements
- Plumber should accept paths with @ and ~ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plan9port.