Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add PothosNumPy to package #80

Open
ncorgan opened this issue Dec 29, 2020 · 4 comments
Open

Add PothosNumPy to package #80

ncorgan opened this issue Dec 29, 2020 · 4 comments
Assignees

Comments

@ncorgan
Copy link
Member

ncorgan commented Dec 29, 2020

https://github.com/pothosware/PothosNumPy

Notes:

  • Use tag pothos-numpy-0.1.1
  • Requires PyYAML and Mako at build-time
  • I'm not sure I've tested this with Windows before. I don't see why there would be a problem, but FYI
@guruofquality
Copy link
Contributor

@ncorgan little bit of template, type, and include compatibility fun


"C:\build\PothosSDR_vc16\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\build\PothosSDR_vc16\PothosNumpy.vcxproj" (default target) (46) ->
(CustomBuild target) ->
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Cpp\NumericInfo.cpp(109,1): error C3646: 'getEpsilonExponent': unknown override specifier [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.
vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Cpp\NumericInfo.cpp(109,35): error C2059: syntax error: '(' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Cpp\NumericInfo.cpp(110,1): error C2334: unexpected token(s) preceding '{'; skipping apparent function body [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR
_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Cpp\NumericInfo.cpp(119,1): error C3646: 'getMinExponent': unknown override specifier [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxp
roj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Cpp\NumericInfo.cpp(119,31): error C2059: syntax error: '(' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Cpp\NumericInfo.cpp(120,1): error C2334: unexpected token(s) preceding '{'; skipping apparent function body [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR
_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Cpp\NumericInfo.cpp(134,1): error C3646: 'getNegativeEpsilonExponent': unknown override specifier [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\Poth
osNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Cpp\NumericInfo.cpp(134,43): error C2059: syntax error: '(' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Cpp\NumericInfo.cpp(135,1): error C2334: unexpected token(s) preceding '{'; skipping apparent function body [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR
_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Build\PothosNumpy\BlockGen\BlockExecutionTestAuto.cpp(155,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Build\PothosNumpy\BlockGen\BlockExecutionTestAuto.cpp(165,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Build\PothosNumpy\BlockGen\BlockExecutionTestAuto.cpp(177,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Build\PothosNumpy\BlockGen\BlockExecutionTestAuto.cpp(191,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Build\PothosNumpy\BlockGen\BlockExecutionTestAuto.cpp(96,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Build\PothosNumpy\BlockGen\BlockExecutionTestAuto.cpp(107,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Build\PothosNumpy\BlockGen\BlockExecutionTestAuto.cpp(249,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Build\PothosNumpy\BlockGen\BlockExecutionTestAuto.cpp(260,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Build\PothosNumpy\BlockGen\BlockExecutionTestAuto.cpp(271,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Build\PothosNumpy\BlockGen\BlockExecutionTestAuto.cpp(284,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Build\PothosNumpy\BlockGen\BlockExecutionTestAuto.cpp(299,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Build\PothosNumpy\BlockGen\BlockExecutionTestAuto.cpp(314,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\BlockExecutionTestManual.cpp(83,1): error C2059: syntax error: 'template' [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(65,1): error C2065: 'ssize_t': undeclared identifier [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxpr
oj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(65,1): error C2672: 'Pothos::Proxy::call': no matching overloaded function found [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\Poth
osSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(65,1): error C2974: 'Pothos::Proxy::call': invalid template argument for 'ArgsType', type expected [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxpr
oj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(65,1): error C2974: 'Pothos::Proxy::call': invalid template argument for 'ReturnType', type expected [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcx
proj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(65,1): error C2672: 'Pothos::TestingBase::toString': no matching overloaded function found [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\
build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(89,22): error C2065: 'ssize_t': undeclared identifier [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxp
roj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(89,16): error C2672: 'Pothos::Proxy::call': no matching overloaded function found [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\Pot
hosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(89,1): error C2974: 'Pothos::Proxy::call': invalid template argument for 'ArgsType', type expected [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxpr
oj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(89,1): error C2974: 'Pothos::Proxy::call': invalid template argument for 'ReturnType', type expected [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcx
proj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(90,22): error C2065: 'ssize_t': undeclared identifier [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxp
roj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(90,16): error C2672: 'Pothos::Proxy::call': no matching overloaded function found [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\Pot
hosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(90,1): error C2974: 'Pothos::Proxy::call': invalid template argument for 'ArgsType', type expected [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxpr
oj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestRegisteredCalls.cpp(90,1): error C2974: 'Pothos::Proxy::call': invalid template argument for 'ReturnType', type expected [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcx
proj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\random(1876,5): error C2338: invalid template argument for uniform_int_distribution: N4659 29.6.1.1 [rand.req.genl]/1e requires one of sho
rt, int, long, long long, unsigned short, unsigned int, unsigned long, or unsigned long long (compiling source file C:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestUtility.cpp) [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBloc
ks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\random(1876,1): error C2338: note: char, signed char, unsigned char, char8_t, int8_t, and uint8_t are not allowed (compiling source file C
:\build\PothosSDR_vc16\Source\PothosNumpy\Testing\TestUtility.cpp) [C:\build\PothosSDR_vc16\Build\PothosNumpy\NumPyBlocks.vcxproj] [C:\build\PothosSDR_vc16\PothosNumpy.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB8066: Custom build for 'C:\build\PothosSDR_vc16\CMakeFiles\73eb761fbd59cbbc27f3b75e306f4824\PothosNum
py-mkdir.rule;C:\build\PothosSDR_vc16\CMakeFiles\73eb761fbd59cbbc27f3b75e306f4824\PothosNumpy-download.rule;C:\build\PothosSDR_vc16\CMakeFiles\73eb761fbd59cbbc27f3b75e306f4824\PothosNumpy-patch.rule;C:\build\PothosSDR_vc16\CMakeFiles\73
eb761fbd59cbbc27f3b75e306f4824\PothosNumpy-configure.rule;C:\build\PothosSDR_vc16\CMakeFiles\73eb761fbd59cbbc27f3b75e306f4824\PothosNumpy-build.rule;C:\build\PothosSDR_vc16\CMakeFiles\73eb761fbd59cbbc27f3b75e306f4824\PothosNumpy-install
.rule;C:\build\PothosSDR_vc16\CMakeFiles\5e1b2df6da07058aa16011ab46323f30\PothosNumpy-complete.rule;C:\build\PothosSDR_vc16\CMakeFiles\e41d1ab7b2fec9b43f2c717d1ec9a580\PothosNumpy.rule' exited with code 1. [C:\build\PothosSDR_vc16\Potho
sNumpy.vcxproj]

    49 Warning(s)
    38 Error(s)

@ncorgan
Copy link
Member Author

ncorgan commented Jan 16, 2021

Theoretically, this should be fixed on master, but I have issues building the Python stuff on my Windows partition.

@guruofquality
Copy link
Contributor

oh I was building master, didnt think about selecting the tag

@ncorgan
Copy link
Member Author

ncorgan commented Jan 16, 2021

At the time, master was the tag, so same result. This is a commit added past that.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants