Comments (5)
Ideally, we would compile on some CI, e.g. GitHub actions.
from admesh.
Why don't you get the precompiled version for Windows?
https://github.com/admesh/admesh/releases/tag/v0.98.2
Compiling on Windows i tricky, I recommend using cygwin.
from admesh.
Hi, since there was no precompiled zip for the latest release, I also opted for compiling from source on Windows. The following steps worked for me.
Prerequisites:
- cmake and cmake-gui (I installed mine through cygwin)
- Visual Studio 16 2019 Community
- getopt installed through vcpkg and integrated with Visual Studio. Install the correct triplet:
getopt:x64-windows
for x64.
Steps:
- Download the repository.
- Open cmake-gui, put the location of the downloaded repository into "where is the source code", and another, empty, directory outside of the downloaded repository into "where to build". Press "Configure". Set compile options (installed Visual Studio, x64).
- Change CMAKE_INSTALL_PREFIX to the desired install location. In my case:
Source code: E:/Repositories/admesh
Where to build: E:/Repositories/admesh-build
CMAKE_INSTALL_PREFIX: E:/programs/admesh
Press "Configure" again, then "Generate" and "Open Project". - I made the following changes to the code to make it run:
Build for Release.
In 'src/portable_endian.h' comment out#include <sys/param.h>
on line 71. Not sure why unix header is included under__WINDOWS__
.
In 'src/util.c' add#define _USE_MATH_DEFINES
on line 26, before#include <math.h>
. Needed for M_PI.
On the right, in Solution Explorer, right-click on libadmesh, click "Build". (DLL is needed for INSTALL)
On the right, in Solution Explorer, right-click on libadmesh, open Properties, change Configuration Properties->General->Configuration Type to "Static library (.lib)". Change Configuration Properties->Advanced->Target File Extension to "". Close the libadmesh properties. (Static library is needed for admesh)
Right-click on admesh, open Properties. In Configuration Properties->Linker->Input->Additional Dependencies removem.lib;
and everything after. OnlyRelease\libadmesh.lib
should remain. - Right-click on ALL_BUILD and Build.
- Right-click on INSTALL and Build.
I could not figure out how to install the python module, it cannot find the installed admesh. If I will need to return to it, I will post a solution here.
from admesh.
Because nowadays the install of the Linux under WSL2 is a matter of a single command, I suggest also adding a simple guide for building/using admesh on Windows using the WSL as an option.
from admesh.
Hi,
many thanks to nishbo Anton Sobinov for its valuable help:
I was able to compile admesh using MSVC 2019 (actually I would
like to use the static library libadmesh.lib).
The strange thing is that both using the admesh.exe application
and both the static library above, I got an error in reading an .stl ascii file,
taken from the examples, or generated by me.
The error is "... something is syntactically very wrong in ",
ending with a very strange ": no error".
stl exit on error than is called.
Actually there is nothing wrong in the .stl ascii files.
The section of code for reading such a .stl file file is simple: it reads facets
one by one: 12 %f" floats ", checking for each facet that actually 12 numbers
have been read.
I cannot figure out what is happening.
Any idea?
Ciao
Giovanni
from admesh.
Related Issues (20)
- Simple merge of two stl_files
- Sync with Slic3r
- Windows: the converting from ascii stl to binary is incorrect HOT 2
- Heap Buffer overflow HOT 3
- [feature-request] Separate disconnected parts. HOT 2
- heap-buffer-flow in stl_update_connects_remove_1 HOT 2
- admesh hang on the input HOT 4
- post installation error - not sure if installed properly HOT 2
- uninitialized extra values when loading ascii stl
- very handy tool
- Errors during the build process (ChangeLog, AUTHORS) HOT 5
- Non-zero exit code if errors HOT 1
- --write-binary-stl doesnt produce a readable stl file HOT 3
- Add deep copy function for the stl_file
- Add const qualifier to the char* params where the string is read-only. HOT 1
- Investigate and fix memory leaks.
- New version 1.0 HOT 7
- Cannot find stl.h
- Security bug 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 admesh.