From: Adrian.Baumgarth@l-3com.com
To: "'ptxdist@pengutronix.de'" <ptxdist@pengutronix.de>
Subject: [ptxdist] protobuf_2.4.1 for PDXdist
Date: Fri, 5 Oct 2012 12:49:21 +0200 [thread overview]
Message-ID: <9509D04A0F6C4D46B9ED146D5D70F04904A1083EBC@Kelfs003> (raw)
[-- Attachment #1: Type: text/plain, Size: 3821 bytes --]
Hello Mr. Olbrich,
I am trying to include protobuf (http://code.google.com/p/protobuf/) in PTXdist and encountered some problems. I succeeded in adding protobuf to the system library section in PTXdist and the build is started when I do a "pdxdist targetinstall protobuf", but I get the following error:
libtool: link: i686-unknown-linux-gnu-g++ -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -pthread -Wl,-rpath-link -Wl,/home/developer/PTXdist/OSELAS.BSP-ElacNautik-DL3000/platform-i686/sysroot-target/lib -Wl,-rpath-link -Wl,/home/developer/PTXdist/OSELAS.BSP-ElacNautik-DL3000/platform-i686/sysroot-target/usr/lib -o protoc main.o -L/home/developer/PTXdist/OSELAS.BSP-ElacNautik-DL3000/platform-i686/sysroot-target/lib -L/home/developer/PTXdist/OSELAS.BSP-ElacNautik-DL3000/platform-i686/sysroot-target/usr/lib -lpthread ./.libs/libprotobuf.so ./.libs/libprotoc.so -lz -pthread
oldpwd=`pwd` && ( cd . && $oldpwd/protoc -I. --cpp_out=$oldpwd google/protobuf/unittest.proto google/protobuf/unittest_empty.proto google/protobuf/unittest_import.proto google/protobuf/unittest_mset.proto google/protobuf/unittest_optimize_for.proto google/protobuf/unittest_embed_optimize_for.proto google/protobuf/unittest_custom_options.proto google/protobuf/unittest_lite.proto google/protobuf/unittest_import_lite.proto google/protobuf/unittest_lite_imports_nonlite.proto google/protobuf/unittest_no_generic_services.proto google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto )
/home/developer/PTXdist/OSELAS.BSP-ElacNautik-DL3000/platform-i686/build-target/protobuf-2.4.1/src/protoc: error while loading shared libraries: libprotobuf.so.7: wrong ELF class: ELFCLASS64
make[3]: *** [unittest_proto_middleman] Error 127
make[3]: Leaving directory `/home/developer/PTXdist/OSELAS.BSP-ElacNautik-DL3000/platform-i686/build-target/protobuf-2.4.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/developer/PTXdist/OSELAS.BSP-ElacNautik-DL3000/platform-i686/build-target/protobuf-2.4.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/developer/PTXdist/OSELAS.BSP-ElacNautik-DL3000/platform-i686/build-target/protobuf-2.4.1'
make: *** [/home/developer/PTXdist/OSELAS.BSP-ElacNautik-DL3000/platform-i686/state/protobuf.compile] Error 2
The problem is that the library has been built as a 64bit library (ELFCLASS64), but the target is a 32bit one.
I am using the OSELAS.BSP-ElacNautik-DL3000 and the OSELAS.Toolchain-2011.11.3 on a 64bit Ubuntu 12.04 with ptxdist-2012.09.1 for the BSP and ptxdist-2011.11.0 for the Toolchain.
With regards
Adrian Baumgarth
- Softwareentwickler -
Forschung und Entwicklung
Telefon: ++49 (0)431/883 -227
Telefax: ++49 (0)431/883 -496
E-mail: Adrian.Baumgarth@l-3com.com
URL : www.elac-nautik.de
L-3 Communications ELAC Nautik GmbH
Neufeldtstrasse 10
24118 Kiel
Deutschland
Geschäftsführer/General Managers: Dr. Jörg Brechtefeld (Ph.D.)
Sitz der Gesellschaft ist Kiel.
Amtsgericht Kiel, HRB 1221 KI
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren, Verbreiten sowie die unbefugte Weitergabe dieser E-Mail, ihrer Anhänge und/oder deren jeweiliger Inhalte ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of this e-mail, its attachments and/or the information contained therein is strictly forbidden.
[-- Attachment #2: rules_protobuf.tar.gz --]
[-- Type: application/x-gzip, Size: 1048 bytes --]
[-- Attachment #3: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2012-10-05 10:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-05 10:49 Adrian.Baumgarth [this message]
2012-10-12 9:18 ` Josef Holzmayr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9509D04A0F6C4D46B9ED146D5D70F04904A1083EBC@Kelfs003 \
--to=adrian.baumgarth@l-3com.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox