mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* Re: [ptxdist] package evtest
@ 2013-08-01  9:47 Henrik.Kraft
  0 siblings, 0 replies; 4+ messages in thread
From: Henrik.Kraft @ 2013-08-01  9:47 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 344 bytes --]

Thanks for your replay. The post was only thought to be informational.
<prompt> ptxdist --version
2011.10.0

BSP is BSP-Phytec-phyCARD-L-PD12.0.1 and libxml2 is selected, but there is no -dev version and so there are no include files which causes the error.

But as I suggested I'm satisfied with localy compiled evtest.

Yours Henrik

[-- Attachment #1.2: Type: text/html, Size: 2471 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] package evtest
  2013-08-01  8:33 Henrik.Kraft
  2013-08-01  9:38 ` Jürgen Beisert
@ 2013-08-16 12:54 ` Michael Olbrich
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2013-08-16 12:54 UTC (permalink / raw)
  To: ptxdist

On Thu, Aug 01, 2013 at 08:33:58AM +0000, Henrik.Kraft@heidolph.de wrote:
> hi,
> 
> because I need to install an input driver for special hardware I thought I could use evtest. When including evtest in ptxdist I got a compile error with evtest-capture even it was not selected in ptxdist. The error was:
> 
> evtest-capture.c:631:39: error: expected declaration specifiers or '...' before 'xmlTextWriterPtr'
> evtest-capture.c: In function 'print_capabilities':
> evtest-capture.c:647:4: error: 'writer' undeclared (first use in this function)
> evtest-capture.c:647:4: note: each undeclared identifier is reported only once for each function it appears in
> 
> ...
> I could find out that a package libxml-dev is required to use evtest-capture by trying to compile it at hand and getting:
> evtest-capture.c:33:29: fatal error: libxml/encoding.h: No such file or directory
> compilation terminated.
> 
> evtest itself compiles an runs on the target.

Either disable EVTEST_CAPTURE or enable LIBXML2_WRITER. There is a
dependency missing here. This is fixed in newer ptxdist versions.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] package evtest
  2013-08-01  8:33 Henrik.Kraft
@ 2013-08-01  9:38 ` Jürgen Beisert
  2013-08-16 12:54 ` Michael Olbrich
  1 sibling, 0 replies; 4+ messages in thread
From: Jürgen Beisert @ 2013-08-01  9:38 UTC (permalink / raw)
  To: ptxdist; +Cc: Henrik.Kraft

Hi Henrik,

On Thursday 01 August 2013 10:33:58 Henrik.Kraft@heidolph.de wrote:
> because I need to install an input driver for special hardware I thought I
> could use evtest. When including evtest in ptxdist I got a compile error
> with evtest-capture even it was not selected in ptxdist. The error was:
>
> evtest-capture.c:631:39: error: expected declaration specifiers or '...'
> before 'xmlTextWriterPtr' evtest-capture.c: In function
> 'print_capabilities':
> evtest-capture.c:647:4: error: 'writer' undeclared (first use in this
> function) evtest-capture.c:647:4: note: each undeclared identifier is
> reported only once for each function it appears in

What PTXdist revision do you are using?

I tested it here with PTXdist-2013.03.0 for a quick test: with
PTXCONF_EVTEST_CAPTURE=n I got:

[...]
----------------------
target: evtest.compile
----------------------

make[1]: Entering directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
make  all-am
make[2]: Entering directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
arm-cortexa9-linux-gnueabi-gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT evtest.o -MD -MP -MF .deps/evtest.Tpo -c -o evtest.o evtest.c
mv -f .deps/evtest.Tpo .deps/evtest.Po
arm-cortexa9-linux-gnueabi-gcc  -g -O2   -o evtest evtest.o
make[2]: Leaving directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
make[1]: Leaving directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
finished target evtest.compile
[...]

So, the "evtest-capture.c" source is not compiled in this case.

With PTXCONF_EVTEST_CAPTURE=y it changes to:

[...]
----------------------
target: evtest.compile
----------------------

make[1]: Entering directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
make  all-am
make[2]: Entering directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
arm-cortexa9-linux-gnueabi-gcc -DHAVE_CONFIG_H -I.    -I/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/sysroot-target/usr/include/libxml2 \
		-g -O2 -MT evtest.o -MD -MP -MF .deps/evtest.Tpo -c -o evtest.o evtest.c
arm-cortexa9-linux-gnueabi-gcc -DHAVE_CONFIG_H -I.    -I/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/sysroot-target/usr/include/libxml2 \
		-g -O2 -MT evtest-capture.o -MD -MP -MF .deps/evtest-capture.Tpo -c -o evtest-capture.o evtest-capture.c
mv -f .deps/evtest.Tpo .deps/evtest.Po
arm-cortexa9-linux-gnueabi-gcc -I/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/sysroot-target/usr/include/libxml2  -g -O2   -o evtest evtest.o
mv -f .deps/evtest-capture.Tpo .deps/evtest-capture.Po
arm-cortexa9-linux-gnueabi-gcc -I/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/sysroot-target/usr/include/libxml2  -g -O2   -o evtest-capture \
		evtest-capture.o -L/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/sysroot-target/usr/lib -lxml2
make[2]: Leaving directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
make[1]: Leaving directory `/home/jbe/git_repositories/OSELAS.BSP-Test/platform-test/build-target/evtest-1.25'
finished target evtest.compile
[...]

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ptxdist] package evtest
@ 2013-08-01  8:33 Henrik.Kraft
  2013-08-01  9:38 ` Jürgen Beisert
  2013-08-16 12:54 ` Michael Olbrich
  0 siblings, 2 replies; 4+ messages in thread
From: Henrik.Kraft @ 2013-08-01  8:33 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 889 bytes --]

hi,

because I need to install an input driver for special hardware I thought I could use evtest. When including evtest in ptxdist I got a compile error with evtest-capture even it was not selected in ptxdist. The error was:

evtest-capture.c:631:39: error: expected declaration specifiers or '...' before 'xmlTextWriterPtr'
evtest-capture.c: In function 'print_capabilities':
evtest-capture.c:647:4: error: 'writer' undeclared (first use in this function)
evtest-capture.c:647:4: note: each undeclared identifier is reported only once for each function it appears in

...
I could find out that a package libxml-dev is required to use evtest-capture by trying to compile it at hand and getting:
evtest-capture.c:33:29: fatal error: libxml/encoding.h: No such file or directory
compilation terminated.

evtest itself compiles an runs on the target.

Best regards

Henrik

[-- Attachment #1.2: Type: text/html, Size: 3714 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-16 12:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-01  9:47 [ptxdist] package evtest Henrik.Kraft
  -- strict thread matches above, loose matches on Subject: below --
2013-08-01  8:33 Henrik.Kraft
2013-08-01  9:38 ` Jürgen Beisert
2013-08-16 12:54 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox