From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63175 invoked by alias); 18 Aug 2016 03:48:33 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 63139 invoked by uid 89); 18 Aug 2016 03:48:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=cards, Ken, cross-compile, crosscompile X-HELO: mail-qk0-f196.google.com Received: from mail-qk0-f196.google.com (HELO mail-qk0-f196.google.com) (209.85.220.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 18 Aug 2016 03:48:27 +0000 Received: by mail-qk0-f196.google.com with SMTP id r128so1099145qkc.1 for ; Wed, 17 Aug 2016 20:48:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=rLsg01PcDXgzrLX7e19kpGL6Ht9+ylZ1R/wIMPfB6rs=; b=TqNT8sgJlFZq0JSYKlhXKKcau2XLr882+V+u9PLYNbFisyVJKLi/ytgnRezeNLWfKt lmwMFTGPDjd/zLK3i6bCcTt7uya2ZDndIUedlSllnsgEKjg1/pqvFa4gB4soaYD4wD4x h/9D08jSX+KZ/DuWeeg9UPTlw+MnMZNsC2fUFFapzRYVYFHlTglDYSRNktJUNDE+9S0W 64ClRCVZ7hBRyzO7QYrMAU27IX2hduvGfUkdNXv5X+7OsuPRps0TTaQ+CQXraCOZS7qa QcW/s1uOnmovZSKKFShzWamuPqAgTFTG94MjUuwqtjCyvHkjj3yVs4SNo9tdaGhsITQr /Xgg== X-Gm-Message-State: AE9vXwP5hB1jdoBILv1hhTcA9GF2UgiO9FpXULexBmNCVKxWyrnZi5SwDW8Piq0PmXqeq64h1kh+/1XIVXXCyw== X-Received: by 10.55.69.69 with SMTP id s66mr66233qka.77.1471492104666; Wed, 17 Aug 2016 20:48:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.39.187 with HTTP; Wed, 17 Aug 2016 20:48:24 -0700 (PDT) In-Reply-To: References: From: Ken Bass Date: Thu, 18 Aug 2016 03:48:00 -0000 Message-ID: Subject: Re: cross-compile gstreamer: can't find "glibconfig.h" To: crossgcc@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00014.txt.bz2 Ok, I solved this problem. After messing around for quite some, I finally looked at the config.log in detail - as well as configure's help. Turns out that glib needs its own set of compile flags, at least for cross compiling. Adding a "--sysroot=<>", along with the target's glib includedirs to the GLIB_CFLAGS variable fixed that problem. One really good suggestion I got from another forum, was to mount the rpi's SD card on the build machine, and - for the cross compiler - point the target's sysroot at the SD card's mount point. Then, all inlcudedirs,and libdirs can be referenced below that sysroot. This of course assumes that all required rpms (for the app - gstreamer), are already installed on the SD card. Actually worked out really well. And when I get the "make install" to work, then gstreamer will be installed on the SD card. So the rpi would have everything installed, and ready to run (or at least debug). Unfortunately, the "make install" craps out not finding the armv6 cross compiler when it (libtool) wants to rebuild something. But that will be a matter of another post, so as not to confuse these two problems. ken On Mon, Aug 15, 2016 at 7:42 AM, Ken Bass wrote: > Simply put: where are the glib(1 or 2) files for the host/target? > > I am building on an x86_64, and target is an rpi-1 > (armv6-rpi-linux-gnueabifh). I have the toolchain built and it works > for a simple progam, such as "Hello World". > > Here is the configure command: > > ./configure --host=armv6-rpi-linux-gnueabihf --includedir= path>/x-tools/ib/glib2.0/include CFLAGS="-g -pg" CXXFLAGS="-g -pg" > --with-pkg-config-path= path>/x-tools/armv6-rpi-linux-gnueabihf/lib/pkgconfig > --with-sysroot=/ path>x-tools/armv6-rpi-linux-gnueabihf/armv6-rpi-linux-gnueabihf/sysroot > > This runs ok. When I run make, for the first CC I get an error like > "glibconfig.h: No such file or directory". > > I have glib(1 and 2.0) installed on the build system. But if I use > that, the compiler thinks the host is also a 64 bit system (which it > isn't). > > Any ideas? Any and all help greatly appreciated. > > TIA -- For unsubscribe information see http://sourceware.org/lists.html#faq