Skip to content

Build with VS is completely broken #44

@pps83

Description

@pps83

It used to build a few months ago (if anybody was willing to fiddle with cmake), but current pik isn't even close to building on VS.

Can you please provide proper instructions on how to build pik on VS, or better, simply add proper VS projects instead of dealing with cmake mess.

During cmake step it fails with these messages:

-- Configuring done
CMake Error at CMakeLists.txt:26 (add_library):
  Cannot find source file:

    bit_buffer.h

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error at CMakeLists.txt:169 (add_executable):
  Cannot find source file:

    png2y4m.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error at CMakeLists.txt:169 (add_executable):
  Cannot find source file:

    y4m2png.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


-- Generating done
-- Build files have been written to: C:/pik0/msvc

C:\pik0\msvc>

When I try to build I get these errors:

1>c:\pik0\af_stats.h(52): error C2665: 'pik::N_NONE::sqrt': none of the 2 overloads could convert all the argument types
1>  c:\pik0\simd/scalar.h(500): note: could be 'pik::N_NONE::scalar<double> pik::N_NONE::sqrt(const pik::N_NONE::scalar<double>)'
1>  c:\pik0\simd/scalar.h(497): note: or       'pik::N_NONE::scalar<float> pik::N_NONE::sqrt(const pik::N_NONE::scalar<float>)'
1>  c:\pik0\af_stats.h(52): note: while trying to match the argument list '(double)'

and most importantly pikcommon doesn't contain any files. It's empty:

image

when I fix these (by fixing broken cmake files), I get these:

1>c:\pik0\simd/x86_sse4.h(1356): error C2912: explicit specialization 'pik::N_SSE4::vec_sse4<float,4> pik::N_SSE4::load<float>(pik::N_SSE4::Desc<T,4,Target>,const float *__restrict )' is not a specialization of a function template
1>          with
1>          [
1>              T=float,
1>              Target=pik::SSE4
1>          ]

Can you provide proper build tools?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions