Giter VIP home page Giter VIP logo

Comments (11)

sviscapi avatar sviscapi commented on August 18, 2024

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.

sviscapi avatar sviscapi commented on August 18, 2024

logs.zip

Attaching some relevant files (INSTALL, config, install.log and install.sum) for your convenience.

Cheers, Sam

from plan9port.

aoeu avatar aoeu commented on August 18, 2024

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.

sviscapi avatar sviscapi commented on August 18, 2024

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.

sviscapi avatar sviscapi commented on August 18, 2024

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

logs-v2.zip

from plan9port.

sviscapi avatar sviscapi commented on August 18, 2024

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.

arturocastro avatar arturocastro commented on August 18, 2024

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.

sviscapi avatar sviscapi commented on August 18, 2024

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.

scopych avatar scopych commented on August 18, 2024

I have exactly the same problem with netbsd 7.0.1

from plan9port.

sviscapi avatar sviscapi commented on August 18, 2024

Hi all,

@rsc : any news regarding this issue ?

Cheers, Sam

from plan9port.

sviscapi avatar sviscapi commented on August 18, 2024

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)

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.