Join Today
+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11

    Default Re: Network access from C++

    Quote Originally Posted by kosta
    I tried compiling libcurl and it worked without any problems. It can be downloaded from here.
    Thanks! Can you tell me how you compiled it? Did you change the makefiles to use the arm compiler that comes with EZX or was it straightforward compiling from the web? I probably tried using the wrong version of the library.

    Ok so I tried the whole thing and the application just crashes! The linking goes fine (I don't even add any curl code) yet the app crashes. If I remove the link to curl, the app starts fine.

    Quote Originally Posted by kosta
    Did you escape the string correctly? Otherwise your shell will expand stuff you dont want expanded. What is a wget system call? Do you mean popen() or exec()ing wget?
    Well when I tried using the wget command (with ./wget) from Redhat Linux with the very same URL pattern listed above, the execution was successful. However using the wget system call (from C++ with system(busybox wget URL)) from busybox resulted in an error.

  2. #12

    Default Re: Network access from C++

    Thanks! Can you tell me how you compiled it?
    It's in the README. I used Sam Revitch's EZX Crosstools.

    Ok so I tried the whole thing and the application just crashes! The linking goes fine (I don't even add any curl code) yet the app crashes. If I remove the link to curl, the app starts fine.
    You mean you're linking your own program to libcurl? That works on my system, without any problem. Can you start it from the command line to see if it finds libcurl.so.3? That might be a crash reason.

    Did you try the curl command (which should be linked against the same lib)? I was able to download http:// and https:// files using curl on the phone.

    Kosta

  3. #13

    Default Re: Network access from C++

    Yes I figured that could be a problem and currently I'm trying to make curl see the .so file which it doesn't. Going through the readme file, I need to create symlinks which I can't seem to get to work...invalid mapping when I "link /usr /diska/usr"...

    That error is probably because I'm trying to link to different paths on the same device which I think isn't quite possible. The only workaround would be to use a memory card and in that case the mapping should work cause they're two different devices. Of course the problem that remains is that I don't want users to have to have memory cards for the application to work...any ideas? Or perhaps a different library can be used? Migrating the qhttp class from Qt 3.3 proved to be quite difficult...lots of classes are used that're only defined with that version of Qt so it could take some time...meanwhile any suggestions?

  4. #14

    Default Re: Network access from C++

    ok i successfully sent http requests and saved the responses using pure c++, turned out it's quite simple! and it's even simpler using Qt's sockets...i already knew about sockets under linux but i never thought sending an http request would be as simple as using the send() function from linux with "GET something" as the parameter...using http 1.0/1.1 could never get simpler!


 
+ Reply to Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. need help with network
    By Casper in forum Windows
    Replies: 0
    Last Post: 02-26-2009, 08:29 AM
  2. Need network help
    By RLKramer in forum A1200 General Chat
    Replies: 2
    Last Post: 06-25-2008, 02:23 AM
  3. O2 Network
    By rkc888 in forum A1200 General Chat
    Replies: 2
    Last Post: 05-14-2006, 08:48 PM
  4. Network problem: foreign network HELP
    By ittercity in forum A780 General Chat
    Replies: 0
    Last Post: 11-15-2005, 06:17 AM
  5. network name?
    By hiaceminibus in forum E680 General Chat
    Replies: 14
    Last Post: 04-27-2005, 12:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1