-
Notifications
You must be signed in to change notification settings - Fork 63
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
Failed to build library on Windows #36
Comments
I do not have any Windows machine nearby, so it will take some time for investigation. Thanks for your report. |
I had the same issue here, I could use cmake against it. |
I've got laptop with Windows, so will fix the build in a next few days. Thanks for your patience. |
Hi, I just wanted to follow up, how far are we off this fix? |
hi, I manage to compile libopencad.dll on windows with mingw64 and msys. I have just modify one line in cadheader.cpp, in fact unix is a macro on windows so in funciotn addValue (line 470) :
}` install CMake for windows then, in libopencad directory C:/CMake/bin/CMake.exe -DBUILD_SHARED_LIBS=ON -G "MSYS Makefiles" CMakeLists.txt It works for me, compilation is ok, link also, i have not tested runtime... |
Hi,
Great news. Thanks. I'll try it.
2018-01-11 10:44 GMT+03:00 Chevallier <[email protected]>:
… hi,
I manage to compile libopencad.dll on windows with mingw64 and msys. I
have just modify one line in cadheader.cpp, in fact unix is a macro on
windows so in funciotn addValue (line 470) :
`int CADHeader::addValue( short code, long julianday, long milliseconds )
{
// unixday -> julian return ( unixSecs / 86400.0 ) + 2440587.5;
// julian -> unixday return (julian - 2440587.5) * 86400.0
double seconds = double( milliseconds ) / 1000;
double unixday = ( double( julianday ) - 2440587.5 ) * 86400.0;
time_t fullSeconds = static_cast<time_t>(unixday + seconds);
return addValue( code, CADVariant( fullSeconds ) );
}`
install CMake for windows then, in libopencad directory
C:/CMake/bin/CMake.exe -DBUILD_SHARED_LIBS=ON -G "MSYS Makefiles"
CMakeLists.txt
then
make
It works for me, compilation is ok, link also, i have not tested runtime...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AeJknF4y0b1gamudi3zIeJpkbUHmVc-Lks5tJbvkgaJpZM4PMvQq>
.
|
hi, |
Has anyone tried to build this library for Windows? When I'm trying to build this lib for Windows I see a lot of syntax errors (for about 1500).
So could you please advise here?
I use MS VS 2017.
Here are steps I'm following to build library:
I attached screenshot with the problems.
The text was updated successfully, but these errors were encountered: