Comments (9)
I do not have any Windows machine nearby, so it will take some time for investigation. Thanks for your report.
from libopencad.
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.
I've got laptop with Windows, so will fix the build in a next few days. Thanks for your patience.
from libopencad.
Hi,
I just wanted to follow up, how far are we off this fix?
from libopencad.
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.
from libopencad.
Hi,
I try the solution,but also be fail.
from libopencad.
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.
@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)
- by-block reading HOT 2
- CRC calculation
- cadinfo app fails if target file is not pointed out HOT 1
- gibberish in cadinfo output HOT 3
- Doesn't compile on i386 when time_t is defined as int HOT 3
- Polyline inconsistencies HOT 3
- Incorporate fixes made in GDAL HOT 1
- When can this lib support AC1018? HOT 4
- About POLYLINE3D
- Heap-buffer-overflow in io.cpp:331 and io.cpp:444
- Do this Program Support Block(Cad) Recognition? HOT 2
- DOS in libopencad
- heapoverflow in libopencad
- Null pointer dereference in DWGFileR2000::ReadHeader
- stack-buffer-overflow in libopencad
- Configure Travis-CI and gtest HOT 1
- heap buffer overflow in CADFile::ReadTables
- Which DWG versions are supported? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libopencad.