Giter Site home page Giter Site logo

edt's People

Contributors

mkazhdan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

edt's Issues

Build Fails on Window

System Information:
Windows 10
MSVC Version: Microsoft Visual Studio Community 2019 Version 16.9.0

Multiple errors relating to including files such as:

Error (active)	E1696 cannot open source file "Misha/Geometry.h" EDTFromMesh C:\Users\Adnan Munawar\Desktop\EDT\EDTFromMesh\EDTFromMesh.cpp	32	

Compilation Fails on Linux (Ubuntu 18.04)

OS Ubuntu 18.04
gcc version (7.5.0)
g++ version (7.5.0)

In file included from EDTFromGrid.cpp:33:0:
../Misha/Miscellany.h: In function ‘void Miscellany::HSVtoRGB(const double*, double*)’:
../Misha/Miscellany.h:69:16: error: ‘fmod’ is not a member of ‘std’
    hsv0 = std::fmod( hsv0 , 2.0 * M_PI );
                ^~~~
../Misha/Miscellany.h:69:16: note: suggested alternative: ‘find’
    hsv0 = std::fmod( hsv0 , 2.0 * M_PI );
                ^~~~
                find
../Misha/Miscellany.h:72:23: error: ‘floor’ is not a member of ‘std’
    int i = (int) std::floor(hsv0);
                       ^~~~~
In file included from ../Misha/PNG.h:64:0,
                 from ../Misha/Image.h:88,
                 from EDTFromGrid.cpp:36:
../Misha/PNG.inl: In constructor ‘PNGWriter::PNGWriter(const char*, unsigned int, unsigned int, unsigned int, unsigned int)’:
../Misha/PNG.inl:123:40: error: ‘Z_BEST_SPEED’ was not declared in this scope
  png_set_compression_level( _png_ptr , Z_BEST_SPEED );
                                        ^~~~~~~~~~~~
../Misha/PNG.inl: In member function ‘virtual unsigned int PNGWriter::nextRows(const unsigned char*, unsigned int)’:
../Misha/PNG.inl:155:131: error: invalid use of incomplete type ‘png_struct {aka struct png_struct_def}’
  for( unsigned int r=0 ; r<rowNum ; r++ ) png_write_row( _png_ptr , (png_bytep)( rows + r * 3 * sizeof( unsigned char ) * _png_ptr->width ) );
                                                                                                                                   ^~
In file included from ../Misha/PNG.h:34:0,
                 from ../Misha/Image.h:88,
                 from EDTFromGrid.cpp:36:
/usr/include/png.h:470:16: note: forward declaration of ‘png_struct {aka struct png_struct_def}’
 typedef struct png_struct_def png_struct;
                ^~~~~~~~~~~~~~
Makefile:50: recipe for target 'EDTFromGrid.o' failed
make[1]: *** [EDTFromGrid.o] Error 1
make[1]: Leaving directory '/home/adnan/EDT/EDTFromGrid'
Makefile:6: recipe for target 'EDTFromGrid' failed
make: *** [EDTFromGrid] Error 2

Also,

make -C EDTFromMesh
make[1]: Entering directory '/home/adnan/EDT/EDTFromMesh'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/adnan/EDT/EDTFromMesh'
make -C EDTFromGrid
make[1]: Entering directory '/home/adnan/EDT/EDTFromGrid'
g++ -c -o EDTFromGrid.o -fpermissive -fopenmp -Wno-deprecated -Wno-unused-result -Wno-format -msse2 -std=c++14  -O3 -DRELEASE -funroll-loops -ffast-math -DNDEBUG -I/usr/include/ -I../ EDTFromGrid.cpp
g++ -o ../Bin/Linux/EDTFromGrid ./EDTFromGrid.o -lgomp -lz -lpng -ljpeg -O3 
make[1]: Leaving directory '/home/adnan/EDT/EDTFromGrid'
make -C MarchingCubes
make[1]: Entering directory '/home/adnan/EDT/MarchingCubes'
g++ -c -o MarchingCubes.o -fpermissive -fopenmp -Wno-deprecated -Wno-unused-result -Wno-format -msse2 -std=c++14  -O3 -DRELEASE -funroll-loops -ffast-math -DNDEBUG -I/usr/include/ -I../ MarchingCubes.cpp
In file included from ../Misha/IsoSurface3D.h:38:0,
                 from MarchingCubes.cpp:35:
../Misha/Polynomial.h:32:10: fatal error: geometry.h: No such file or directory
 #include "geometry.h"
          ^~~~~~~~~~~~
compilation terminated.
Makefile:50: recipe for target 'MarchingCubes.o' failed
make[1]: *** [MarchingCubes.o] Error 1
make[1]: Leaving directory '/home/adnan/EDT/MarchingCubes'
Makefile:6: recipe for target 'MarchingCubes' failed
make: *** [MarchingCubes] Error 2

And

make -C EDTFromMesh
make[1]: Entering directory '/home/adnan/EDT/EDTFromMesh'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/adnan/EDT/EDTFromMesh'
make -C EDTFromGrid
make[1]: Entering directory '/home/adnan/EDT/EDTFromGrid'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/adnan/EDT/EDTFromGrid'
make -C MarchingCubes
make[1]: Entering directory '/home/adnan/EDT/MarchingCubes'
g++ -c -o MarchingCubes.o -fpermissive -fopenmp -Wno-deprecated -Wno-unused-result -Wno-format -msse2 -std=c++14  -O3 -DRELEASE -funroll-loops -ffast-math -DNDEBUG -I/usr/include/ -I../ MarchingCubes.cpp
In file included from ../Misha/IsoSurface3D.h:38:0,
                 from MarchingCubes.cpp:35:
../Misha/Polynomial.h:33:10: fatal error: algebra.h: No such file or directory
 #include "algebra.h"
          ^~~~~~~~~~~
compilation terminated.
Makefile:50: recipe for target 'MarchingCubes.o' failed
make[1]: *** [MarchingCubes.o] Error 1
make[1]: Leaving directory '/home/adnan/EDT/MarchingCubes'
Makefile:6: recipe for target 'MarchingCubes' failed
make: *** [MarchingCubes] Error 2

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.