[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: gSpiceUI Successful compilation



Hi Shahab,

Sorry about the slow reply. I haven't been following this list closely to
date; I try to keep a closer eye on it in future.

> Shahab wrote:

> I could compile gSpiceUI with following changes. I am not sure weather these
> apply to general case, or are only valid for this specific combination of
> software versions that I have:
> gspiceui-v0.7.01
> with GCC version 2.95.4
> wxWidgets 2.4.2
> on FreeBSD 4.10(i386) using gmake

You are the first one that I am aware of who has compiled gSpiceUI on FreeBSD
so you are breaking new ground. I'm currently developing gSpiceUI under Redhat
9.0 and wxWidgets v2.5.2.

> 1- added include paths to src/Makefile: -I/usr/X11R6/include -I/usr/include, 
> since wx-config delivered wrong paths(!?)

> 2- for this error:
> AppGSpiceUI.cpp:47: `LC_NUMERIC' undeclared (first use this function)
> I added #include <locale.h> at the top.

> 3- for this error:
> netlist/NetList.cpp:50: syntax error before `,'
> I changed "ulong" to "unsigned long"

I haven't come across any of the above 3 problems myself but I'll modify the 
code as you suggest.

> 4- and finally for this one:
> utility/SpinCtrl.cpp:426: implicit declaration of function `int pow10f(...)'
> I changed the line to   fIncSz = (float)(i2 ^ 10);

I'll try using "powf(10, i2);" as suggested by Werner Hoch.

> Did you generate some portions of the code automatically using a wx-gui
> editor for example? (like FLTK has fluid) or did you code everything from
> scratch?

All the code is lovely hand crafted. I'm very particular about the code
formatting since in the long term it makes it easier to maintain. In addition
I don't like the idea of being locked into using particular development tools
if it can be avoided.

Regards

Mike W.