>
> Ubuntu Virtual machine (14.04LTS running on a 64-bit host)
>
>
First off, which distro are you using on the BBB ? Then which ABI are you
compiling for, and which ABI are you actually using ? Secondly, if you're
using a virtual machine host architecture does not matter in this context.
What matters is the virtual machines architecture. Is the virtual machine
i386, or x64 ?

http://stackoverflow.com/questions/14404445/g-throwing-file-not-recognized-file-format-not-recognized-error
gives a possible cause. Which is one reason why I use i386 host for cross
compiling. However . . .
http://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-ARMCrossCompiler:GCC
if we read this, we can get an idea of which packages we need for cross
compiling on an x64 host.( assuming your VM is also x64 ).

A suggestion to you though. If you're having to use a virtual machine
already, why not just make the virtual machine i366? I can understand if
you have like 16-32GB RAM on the host, and you want to get more than 4GB
ram to the virtual machine I suppose. But honestly I do not think you'll
gain much performance. Unless perhaps you're setting up a large RAMDISK . .
. Anyhow, if you have a huge time investment into your VM ( setup and
whatnot ) Disregard what I'm saying here.


On Sun, Aug 10, 2014 at 7:05 AM, John Geddes <[email protected]> wrote:

> Can anyone point me to simple beginner-level instructions on how I can
> compile CURL so that it will compile OK on my 64-bit host PC?
>
> I want to run c++ on my BBB Revision C, and have set up to cross-compile
> from an Ubuntu Virtual machine (14.04LTS running on a 64-bit host) as
> demonstrated in Derek Molloy's excellent video
> <http://derekmolloy.ie/beaglebone/setting-up-eclipse-on-the-beaglebone-for-c-development/>
> .
>
> I've made a lot of progress - but have completely failed in trying to
> install and run CURL.
>
> From within Eclipse (3.8), I have built a trivially simple project
> #include <iostream>
> #include <curl/curl.h>
> using namespace std;
>
> int main(){
>   return
> }
>
> but trying to Build this produces compilation errors:
>
> /usr/include/curl/curlrules.h:143:41: error: size of array
> ‘__curl_rule_01__’ is negative
> /usr/include/curl/curlrules.h:153:53: error: size of array
> ‘__curl_rule_02__’ is negative
>
> which I gather comes down to a 64-bit vs 32-bit problem
>
>
>
> I did try a manual fix, changing definitions in curlbuild.h like this:
> CURL_SIZEOF_LONG 4
> CURL_SIZEOF_CURL_OFF_T 4
> but then I get the error
> /usr/lib/x86_64-linux-gnu/libcurl.so: file not recognized: File format not
> recognised
>
> Ideas, please.
>
> John Geddes
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to