Giter Site home page Giter Site logo

Comments (8)

spianmo avatar spianmo commented on August 15, 2024

It is recommended to use msys64\mingw64 to compile libvits-ncnn on the windows platform

from libvits-ncnn.

spianmo avatar spianmo commented on August 15, 2024

In addition, pay attention to the support of the format function by different compilers under CXX_STANDARD 20. If necessary, you need to modify the CMakeLists to add the fmt library link, or use the gcc compiler of version 13 or above

from libvits-ncnn.

DumoeDss avatar DumoeDss commented on August 15, 2024

I try to use cmake .. -G "Unix Makefiles" it will generate a Makefile.
But when I try make, it will get error:

[ 90%] Built target libopenjtalk
[ 93%] Building CXX object CMakeFiles/vits-ncnn.dir/vits/SynthesizerTrn.cpp.obj
[ 95%] Building CXX object CMakeFiles/vits-ncnn.dir/vits/utils.cpp.obj
[ 97%] Building CXX object CMakeFiles/vits-ncnn.dir/vitsncnn.cpp.obj
[100%] Linking CXX shared library libvits-ncnn.dll
c++.exe: error: unrecognized command-line option '-static-openmp'
make[2]: *** [CMakeFiles/vits-ncnn.dir/build.make:146: libvits-ncnn.dll] Error 1
make[1]: *** [CMakeFiles/Makefile2:138: CMakeFiles/vits-ncnn.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

from libvits-ncnn.

DumoeDss avatar DumoeDss commented on August 15, 2024

I used the ncnn-20230517-android-vulkan.zip from https://github.com/Tencent/ncnn/releases, and there doesn't have bin folder.

from libvits-ncnn.

spianmo avatar spianmo commented on August 15, 2024

I used the ncnn-20230517-android-vulkan.zip from https://github.com/Tencent/ncnn/releases, and there doesn't have bin folder.

https://github.com/spianmo/libvits-ncnn you can try it.

from libvits-ncnn.

DumoeDss avatar DumoeDss commented on August 15, 2024

I used the ncnn-20230517-android-vulkan.zip from https://github.com/Tencent/ncnn/releases, and there doesn't have bin folder.

https://github.com/spianmo/libvits-ncnn you can try it.

There are other errors when build

[ 33%] Linking CXX static library libOSDependent.a
[ 33%] Built target OSDependent
[ 33%] Building CXX object ncnn/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/glslang_tab.cpp.obj
In file included from MachineIndependent/glslang.y:86:
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:648:18: error: 'uint32_t' does not name a type
648 | static const uint32_t LevelFlagBitOffset = 56;
| ^~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:71:1: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
70 | #include "../Include/InfoSink.h"
+++ |+#include
71 |
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:661:22: error: 'uint64_t' does not name a type
661 | static constexpr uint64_t uniqueIdMask = (1LL << LevelFlagBitOffset) - 1;
| ^~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:661:22: note: 'uint64_t' is defined in header ''; did you forget to '#include '?
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:662:18: error: 'uint32_t' does not name a type
662 | static const uint32_t MaxLevelInUniqueID = 127;
| ^~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:662:18: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h: In static member function 'static bool glslang::TSymbolTable::isBuiltInSymbol(long long int)':
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:658:50: error: 'LevelFlagBitOffset' was not declared in this scope
658 | int level = static_cast(uniqueId >> LevelFlagBitOffset);
| ^~~~~~~~~~~~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h: In member function 'void glslang::TSymbolTable::amendSymbolIdLevel(glslang::TSymbol&)':
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:734:9: error: 'uint64_t' was not declared in this scope
734 | uint64_t level = (uint32_t)currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();
| ^~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:734:9: note: 'uint64_t' is defined in header ''; did you forget to '#include '?
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:735:18: error: expected ';' before 'symbolId'
735 | uint64_t symbolId = symbol.getUniqueId();
| ^~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:736:9: error: 'symbolId' was not declared in this scope; did you mean 'symbol'?
736 | symbolId &= uniqueIdMask;
| ^~~~~~~~
| symbol
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:736:21: error: 'uniqueIdMask' was not declared in this scope; did you mean 'uniqueId'?
736 | symbolId &= uniqueIdMask;
| ^~~~~~~~~~~~
| uniqueId
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:737:22: error: 'level' was not declared in this scope
737 | symbolId |= (level << LevelFlagBitOffset);
| ^~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:737:31: error: 'LevelFlagBitOffset' was not declared in this scope
737 | symbolId |= (level << LevelFlagBitOffset);
| ^~~~~~~~~~~~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h: In member function 'void glslang::TSymbolTable::updateUniqueIdLevelFlag()':
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:931:9: error: 'uint64_t' was not declared in this scope
931 | uint64_t level = (uint32_t)currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();
| ^~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:931:9: note: 'uint64_t' is defined in header ''; did you forget to '#include '?
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:932:21: error: 'uniqueIdMask' was not declared in this scope; did you mean 'uniqueId'?
932 | uniqueId &= uniqueIdMask;
| ^~~~~~~~~~~~
| uniqueId
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:933:22: error: 'level' was not declared in this scope
933 | uniqueId |= (level << LevelFlagBitOffset);
| ^~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:933:31: error: 'LevelFlagBitOffset' was not declared in this scope
933 | uniqueId |= (level << LevelFlagBitOffset);
| ^~~~~~~~~~~~~~~~~~
make[2]: *** [ncnn\glslang\glslang\CMakeFiles\MachineIndependent.dir\build.make:76: ncnn/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/glslang_tab.cpp.obj] Error 1
make[1]: *** [CMakeFiles\Makefile2:489: ncnn/glslang/glslang/CMakeFiles/MachineIndependent.dir/all] Error 2
make: *** [Makefile:135: all] Error 2

from libvits-ncnn.

spianmo avatar spianmo commented on August 15, 2024

I used the ncnn-20230517-android-vulkan.zip from https://github.com/Tencent/ncnn/releases, and there doesn't have bin folder.

https://github.com/spianmo/libvits-ncnn you can try it.

There are other errors when build

[ 33%] Linking CXX static library libOSDependent.a
[ 33%] Built target OSDependent
[ 33%] Building CXX object ncnn/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/glslang_tab.cpp.obj
In file included from MachineIndependent/glslang.y:86:
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:648:18: error: 'uint32_t' does not name a type
648 | static const uint32_t LevelFlagBitOffset = 56;
| ^~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:71:1: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
70 | #include "../Include/InfoSink.h"
+++ |+#include
71 |
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:661:22: error: 'uint64_t' does not name a type
661 | static constexpr uint64_t uniqueIdMask = (1LL << LevelFlagBitOffset) - 1;
| ^~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:661:22: note: 'uint64_t' is defined in header ''; did you forget to '#include '?
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:662:18: error: 'uint32_t' does not name a type
662 | static const uint32_t MaxLevelInUniqueID = 127;
| ^~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:662:18: note: 'uint32_t' is defined in header ''; did you forget to '#include '?
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h: In static member function 'static bool glslang::TSymbolTable::isBuiltInSymbol(long long int)':
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:658:50: error: 'LevelFlagBitOffset' was not declared in this scope
658 | int level = static_cast(uniqueId >> LevelFlagBitOffset);
| ^~~~~~~~~~~~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h: In member function 'void glslang::TSymbolTable::amendSymbolIdLevel(glslang::TSymbol&)':
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:734:9: error: 'uint64_t' was not declared in this scope
734 | uint64_t level = (uint32_t)currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();
| ^~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:734:9: note: 'uint64_t' is defined in header ''; did you forget to '#include '?
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:735:18: error: expected ';' before 'symbolId'
735 | uint64_t symbolId = symbol.getUniqueId();
| ^~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:736:9: error: 'symbolId' was not declared in this scope; did you mean 'symbol'?
736 | symbolId &= uniqueIdMask;
| ^~~~~~~~
| symbol
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:736:21: error: 'uniqueIdMask' was not declared in this scope; did you mean 'uniqueId'?
736 | symbolId &= uniqueIdMask;
| ^~~~~~~~~~~~
| uniqueId
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:737:22: error: 'level' was not declared in this scope
737 | symbolId |= (level << LevelFlagBitOffset);
| ^~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:737:31: error: 'LevelFlagBitOffset' was not declared in this scope
737 | symbolId |= (level << LevelFlagBitOffset);
| ^~~~~~~~~~~~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h: In member function 'void glslang::TSymbolTable::updateUniqueIdLevelFlag()':
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:931:9: error: 'uint64_t' was not declared in this scope
931 | uint64_t level = (uint32_t)currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();
| ^~~~~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:931:9: note: 'uint64_t' is defined in header ''; did you forget to '#include '?
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:932:21: error: 'uniqueIdMask' was not declared in this scope; did you mean 'uniqueId'?
932 | uniqueId &= uniqueIdMask;
| ^~~~~~~~~~~~
| uniqueId
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:933:22: error: 'level' was not declared in this scope
933 | uniqueId |= (level << LevelFlagBitOffset);
| ^~~~~
E:___AI\libvits-ncnn-2\libvits-ncnn\ncnn\glslang\glslang\MachineIndependent\SymbolTable.h:933:31: error: 'LevelFlagBitOffset' was not declared in this scope
933 | uniqueId |= (level << LevelFlagBitOffset);
| ^~~~~~~~~~~~~~~~~~
make[2]: *** [ncnn\glslang\glslang\CMakeFiles\MachineIndependent.dir\build.make:76: ncnn/glslang/glslang/CMakeFiles/MachineIndependent.dir/MachineIndependent/glslang_tab.cpp.obj] Error 1
make[1]: *** [CMakeFiles\Makefile2:489: ncnn/glslang/glslang/CMakeFiles/MachineIndependent.dir/all] Error 2
make: *** [Makefile:135: all] Error 2

add #include <cstdint> to glslang/MachineIndependent/SymbolTable.h can solve it
image

from libvits-ncnn.

DumoeDss avatar DumoeDss commented on August 15, 2024

啊,感谢,修改之后可以编译了,但是编译出来是libvits-ncnn.dll和libvits-ncnn.dll.a,没有libvits-ncnn.so。
然后在编译demo的时候出错了。

In file included from E:___AI\libvits-ncnn-2\libvits-ncnn\demo\utils.hpp:4,
from E:___AI\libvits-ncnn-2\libvits-ncnn\demo\vitsdemo.cpp:1:
E:___AI\libvits-ncnn-2\libvits-ncnn\demo\vitsncnn.hpp:10:6: error: #elif with no expression
10 | #elif
| ^
E:___AI\libvits-ncnn-2\libvits-ncnn\demo\vitsdemo.cpp: In function 'void testMulti(std::vector<std::vector >)':
E:__AI\libvits-ncnn-2\libvits-ncnn\demo\vitsdemo.cpp:53:26: error: 'format' was not declared in this scope
53 | saveToWav(infer, format("output_multi
{}.wav", i));
| ^~~~~~
make[2]: *** [demo\CMakeFiles\vits-cli.dir\build.make:75: demo/CMakeFiles/vits-cli.dir/vitsdemo.cpp.obj] Error 1
make[1]: *** [CMakeFiles\Makefile2:999: demo/CMakeFiles/vits-cli.dir/all] Error 2
make: *** [Makefile:135: all] Error 2

from libvits-ncnn.

Related Issues (4)

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.