Author Topic: [SOLVED] openchrome svn  (Read 1685 times)

Offline Fonnie

  • Full Member
  • ***
  • Posts: 77
[SOLVED] openchrome svn
« on: August 24, 2011, 12:42:33 PM »
I am totally new to packaging. So please be patient with me.

in a search to have an updated openchrome driver working on my HP Mini2133, and since the official openchrome in not really updated, I will try to compile from a trunk

http://svn.openchrome.org/svn/trunk which would give me revision 949 and normally giving a solution to my problem.

I did this:

[stefaan@localhost ~]$ svn checkout http://svn.openchrome.org/svn/trunk openchrome
Checked out revision 949.
[stefaan@localhost ~]$ cd openchrome
[stefaan@localhost openchrome]$ ./autogen.sh --prefix=/usr
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
autoreconf: Leaving directory `.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking if RANDR is defined... no
checking if RENDER is defined... no
checking if XV is defined... no
checking if XF86DRI is defined... no
checking if DPMSExtension is defined... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XORG... no
configure: error: Package requirements (xorg-server xproto fontsproto libdrm ) were not met:

No package 'xorg-server' found
No package 'xproto' found
No package 'fontsproto' found
No package 'libdrm' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XORG_CFLAGS
and XORG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
[stefaan@localhost openchrome]$


and this was the output.

still have to do
make
su
make install


what should I do, or how?
« Last Edit: August 26, 2011, 07:27:49 AM by Fonnie »
HP Mini 2133 Netbook, Via C7-M 1,6 GHz processor, Via Graphics, 2 Gb, 160 HD

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2252
Re: openchrome svn
« Reply #1 on: August 25, 2011, 10:38:59 AM »
Quote
configure: error: Package requirements (xorg-server xproto fontsproto libdrm ) were not met:

Quote
No package 'xorg-server' found
No package 'xproto' found
No package 'fontsproto' found
No package 'libdrm' found

This 4 devel packages must be installed with synaptic on your install:
11-xorg-server-devel, xproto-devel, frontsproto-devel
 and libdrm-devel

Configure didn't found those packages.

JohnW
« Last Edit: August 25, 2011, 10:51:15 AM by JohnW_57 »
PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline Fonnie

  • Full Member
  • ***
  • Posts: 77
Re: openchrome svn
« Reply #2 on: August 26, 2011, 12:21:59 AM »
that helped for the first part "./autogen.sh --prefix=/usr" worked

now if I do make, this is what i get

[stefaan@localhost openchrome]$ make
make  all-recursive
make[1]: Entering directory `/home/stefaan/openchrome'
Making all in src
make[2]: Entering directory `/home/stefaan/openchrome/src'
make  all-am
make[3]: Entering directory `/home/stefaan/openchrome/src'
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm   -I/usr/include/libdrm -I/usr/include/X11/dri   -g -O2 -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm   -MT via_accel.lo -MD -MP -MF .deps/via_accel.Tpo -c -o via_accel.lo via_accel.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -MT via_accel.lo -MD -MP -MF .deps/via_accel.Tpo -c via_accel.c  -fPIC -DPIC -o .libs/via_accel.o
In file included from via_driver.h:82:0,
                 from via_accel.c:42:
/usr/include/GL/glxint.h:36:19: fatal error: GL/gl.h: No such file or directory
compilation terminated.
make[3]: *** [via_accel.lo] Error 1
make[3]: Leaving directory `/home/stefaan/openchrome/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/stefaan/openchrome/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/stefaan/openchrome'
make: *** [all] Error 2
[stefaan@localhost openchrome]$


can you find a solution? , where does the error come from

tnx

edit (installed mesa...something) and 'make' works

if I then try

su -c 'make install'
I get this

[stefaan@localhost openchrome]$ make
make  all-recursive
make[1]: Entering directory `/home/stefaan/openchrome'
Making all in src
make[2]: Entering directory `/home/stefaan/openchrome/src'
make  all-am
make[3]: Entering directory `/home/stefaan/openchrome/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/stefaan/openchrome/src'
make[2]: Leaving directory `/home/stefaan/openchrome/src'
Making all in man
make[2]: Entering directory `/home/stefaan/openchrome/man'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/stefaan/openchrome/man'
Making all in libxvmc
make[2]: Entering directory `/home/stefaan/openchrome/libxvmc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/stefaan/openchrome/libxvmc'
make[2]: Entering directory `/home/stefaan/openchrome'
make[2]: Leaving directory `/home/stefaan/openchrome'
make[1]: Leaving directory `/home/stefaan/openchrome'
[stefaan@localhost openchrome]$ su -c 'make install'
Password:
make: *** No rule to make target `install'.  Stop.
[stefaan@localhost openchrome]$


stuck again for the moment but I'm confident it will work sometime.

Please help finding the cause of the problem, maybe I'm issueing the wrong command?

thn
« Last Edit: August 26, 2011, 05:32:28 AM by Fonnie »
HP Mini 2133 Netbook, Via C7-M 1,6 GHz processor, Via Graphics, 2 Gb, 160 HD

Offline Fonnie

  • Full Member
  • ***
  • Posts: 77
Re: openchrome svn
« Reply #3 on: August 26, 2011, 06:25:14 AM »
ok,

i've done this as root
su (to become root)
svn checkout http://svn.openchrome.org.svn/trunk openchrome
cd openchrome
./autogen.sh --prefix=/usr
make
make install

and then, if I restart  (log-off and log-on)

it works. (VLC problem solved)

but:
1 : is it correct to do this being root?
2: what is the next step to help the others? a package request?

HP Mini 2133 Netbook, Via C7-M 1,6 GHz processor, Via Graphics, 2 Gb, 160 HD

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11054
  • MLUs Forever!
Re: openchrome svn
« Reply #4 on: August 26, 2011, 06:35:50 AM »
IIUC, all that is required is an update to an existing package .....  then a      [Update] Package Request   thread would be the way to go providing the required details and reasons for the requirement.
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Fonnie

  • Full Member
  • ***
  • Posts: 77
Re: openchrome svn
« Reply #5 on: August 26, 2011, 07:26:33 AM »
I will mark this one as solved, and do a package update request, pointing there, so others can follow

http://www.pclinuxos.com/forum/index.php/topic,96158.0.html

and a big thumps up and thanks to all who helped out.
HP Mini 2133 Netbook, Via C7-M 1,6 GHz processor, Via Graphics, 2 Gb, 160 HD