This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Cygwin to compile for Windows, not what I needed.

General support and discussion of Eggdrop bots.
Post Reply
c
callihn
Voice
Posts: 1
Joined: Wed Jul 08, 2009 4:53 pm

Cygwin to compile for Windows, not what I needed.

Post by callihn »

OK, this is not what I had in mind, I didn't install Cygwin on this Windows machine to compile programs for Windows. So, let me be direct as to my intentions here, so that not only can someone point me in the right dirrection to get something that might run on Linux but maybe I can get some tips as well. I'm wanting to get a bot running on my Linux router, that being said this seems to be plenty small enough, but I need to make sure it doesn't write anything to prevent excessive flash wear, I need all configuration done before I send it to the router and again I need to make sure it won't be writing anything.

So, here are the questions I need answered, if someone would be so kind....

Does this seem doable?

How do I get this thing to compile as a Linux binary on Cygwin?

Is there anything I can do to compile the modules into the binary?

That should do, thanks in advance.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

First off, most home-end routers are either arm- or mipsel-based. As such, you'll need a suitable cross-compiler and build-environment matching your router.

Regarding configurations and flash-wear, you'll have to turn off logging (not too hard, simply comment out any logfile commands in your config), and make sure you don't load any custom scripts that might make use of the filesystem. You should also make certain that you do not specify any channel's-file either.
Unfortunately, you'll still have to live with the user file being written to the file system every now and then (at least once an hour), this is pretty much unavoidable without editing the source and having to redo your whole user list whenever you restart your router.

Modules can be compiled into the eggdrop binary, using the "static" make target (this is the default targets on builds not supporting dynamically linked libraries).
NML_375
Post Reply