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.
