Recent

Author Topic: Networking with lazarus fpc on macosx  (Read 19674 times)

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Networking with lazarus fpc on macosx
« Reply #15 on: February 02, 2012, 04:36:27 pm »
@felipemdc
i can only install lnetbase, the components seem to be incompatible Macosx :( how did you do ?

Try this lnet from here:

http://openpokergrid.svn.sourceforge.net/viewvc/openpokergrid/Components/lnet/

facom4ever

  • New Member
  • *
  • Posts: 15
Re: Networking with lazarus fpc on macosx
« Reply #16 on: February 03, 2012, 09:08:53 am »
Oh yeah ! :)

This one works mate =D. Wonderful ! Thanks  ::)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12693
  • FPC developer.
Re: Networking with lazarus fpc on macosx
« Reply #17 on: February 03, 2012, 11:45:07 am »
Quote
Don't forget that FPC 2.6.0 now includes HTTP client and other useful units. I've transitioned away from Indy on OS X and use fphttpclient, etc.

If webprogramming is serious business for you, I urge you to be careful with netdb, and change it to cnetdb (which plugs into libc) as much as possible for DNS resolving.

NetDB has a problem, but more importantly is sensitive, IMHO it should be deprecated for all but the simplest uses.

Note that for iOS, none of the existing HTTP clients work (Indy, Synapse, FP). With iOS,

I was under the impression that only a connection needs to be initiated via some objc call, and that then sockets programming works.

everton

  • Jr. Member
  • **
  • Posts: 89
Re: Networking with lazarus fpc on macosx
« Reply #18 on: February 04, 2012, 07:48:14 pm »
Try to go on compiler options of the package remove from the path the "../fpc" press ok and compile will error, open again the compiler options reinsert the "../fpc" press ok and compile again is supposed to work then install, sometimes that procedure worked with me.

Also give preference to put the package on lazarus dir/components.

I've already be able to install on a mac, but after a download the svn version and imprudently override the already instaled version they stop do compile. Now i don't been able to install Indy anyway. Wich is very weard because i've already tried to remove all the installation files of fpc and lazarus and get back that enviroment of before but i wasn't able in anyway i've tried.

By now isn't urgent to me to make work on a mac, the windows project is the one that i'm working on. But in the future i'll have to again. If you or anybody find out how, please send to us the tips for.
« Last Edit: February 04, 2012, 10:49:57 pm by everton »

facom4ever

  • New Member
  • *
  • Posts: 15
Re: Networking with lazarus fpc on macosx
« Reply #19 on: February 06, 2012, 10:03:30 am »
Urg Developping for mac is a nightmare >_<...

Even I could install lnet, the tcp example doesnt seem to work. When I press connect nothing happens -___-'''.

Don't understand why there is no library working fine =(. Or maybe I am dumb and missed something.

everton

  • Jr. Member
  • **
  • Posts: 89
Re: Networking with lazarus fpc on macosx
« Reply #20 on: February 06, 2012, 02:24:35 pm »
I`ve already used Indy on mac try to do this: remove and add from the package compiler options the path "../fpc". remove compile, add compile and install, sometimes this works.

facom4ever

  • New Member
  • *
  • Posts: 15
Re: Networking with lazarus fpc on macosx
« Reply #21 on: February 06, 2012, 03:05:25 pm »
Oh I managed few minutes ago to compile by moving fpc files to lazarus folder XD...

guess that ../fpc would have worked too....

facom4ever

  • New Member
  • *
  • Posts: 15
Re: Networking with lazarus fpc on macosx
« Reply #22 on: February 07, 2012, 10:07:10 am »
On Indy if I turn active := true the component IdTCPServer1 I get runerror(232) which is related to cthreads...

I checked on lazarus.pp and cthreads is defined to be use. Maybe it is a problem with thread-driver as saw on google, but don't know what is it...

Anyone an idea or got this problem ?
« Last Edit: February 07, 2012, 10:32:48 am by facom4ever »

 

TinyPortal © 2005-2018