Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to copy brkpnts.h #12

Open
thecrystallineentity opened this issue Jul 13, 2012 · 3 comments
Open

Unable to copy brkpnts.h #12

thecrystallineentity opened this issue Jul 13, 2012 · 3 comments

Comments

@thecrystallineentity
Copy link

I'm using cygwin, build failed with the message "Unable to copy brkpnts.h" It's the exact same problem that nsheppard had 6 months ago, but I have no idea what i'm doing, so I'll need really simple instructions on how to fix it.
Thanks

@nsheppard
Copy link

These changes to the Asymptotic function in brkpnts.c, suggested by a friend, worked for me.

double v1,v2;
double Asymptotic(FUNC func1, FUNC func2, double x, double dx)
{
while (1)
{
if (fabs(dx/x) <= PRECISION) return(x);
while ((v1=func1(x)) != (v2=func2(x)))
x += dx;
dx *= -0.1;
if (fabs(dx/x) <= PRECISION) return(x);
while ((v1=func1(x)) == (v2=func2(x)))
x += dx;
dx *= -0.1;
}
}

@leadant
Copy link

leadant commented Dec 4, 2012

To make it working under cygwin, you have to add support for the CYGWIN in the wscript files similar as the AIX.

Revise the if..else.. for different platforms in $GENIUS/wscript, $GENIUS/src/material and $GENIUS/src/hook. You have also to remove the gummel_monitor_hook.cc in line 5 of $GENIUS/src/hook/wscript, which does not exist.

Besides, you may have to rename the shared material library to be e.g. libSi.so rather than libSi.dll or other weird name automatically generated by waf.

It seems working for me now under Windows7

@cogenda
Copy link
Collaborator

cogenda commented Dec 5, 2012

Nice to know that you could make it work under cygwin, but actually
you don't need CYGWIN to compile it under windows. You can simply use
MSVC to compile it.

regards,
shenchen

On 2012-12-05 05:48, leadant
wrote:

To make it working under cygwin, you have to add support for
the CYGWIN in the wscript files similar as the AIX.

Revise the
if..else.. for different platforms in $GENIUS/wscript,
$GENIUS/src/material and $GENIUS/src/hook. You have also to remove the
gummel_monitor_hook.cc in line 5 of $GENIUS/src/hook/wscript, which does
not exist.

Besides, you may have to rename the shared material
library to be e.g. libSi.so rather than libSi.dll or other weird name
automatically generated by waf.

It seems working for me now under
Windows7

Reply to this email directly or view it on GitHub
[1].

Links:

[1]
#12 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants