Code Monkey home page Code Monkey logo

Comments (9)

sandyre avatar sandyre commented on May 19, 2024

I do not have any Windows machine nearby, so it will take some time for investigation. Thanks for your report.

from libopencad.

Sc07713 avatar Sc07713 commented on May 19, 2024

I had the same issue here, I could use cmake against it.
make didnt work for me, so I launched the sln in vs.
Linked the library and it was filled with errors.

from libopencad.

sandyre avatar sandyre commented on May 19, 2024

I've got laptop with Windows, so will fix the build in a next few days. Thanks for your patience.

from libopencad.

Sc07713 avatar Sc07713 commented on May 19, 2024

Hi,

I just wanted to follow up, how far are we off this fix?

from libopencad.

sky-69 avatar sky-69 commented on May 19, 2024

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...

from libopencad.

rudolfninja avatar rudolfninja commented on May 19, 2024

from libopencad.

SSHeRun avatar SSHeRun commented on May 19, 2024

Hi,
I try the solution,but also be fail.

20180321205249

from libopencad.

SSHeRun avatar SSHeRun commented on May 19, 2024

hi,
today,I and my partners try some new ways,and we built it successfully in vs 2017
this is my github :https://github.com/SSHeRun/Libopencad-built-in-windows-
my blog:https://blog.csdn.net/Caoyang_He/article/details/79660336

from libopencad.

GoosebumpsFactory avatar GoosebumpsFactory commented on May 19, 2024

@sandyre Thank you for releasing this library. Like previous posters on this thread I cannot compile the VS Studio project generated by cmake. I get the same errors as this post. Is there a plan to fix this bug? Thanks.

from libopencad.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.