Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

window 平台 cmake 编译报错 #74

Open
yz-yz-yz opened this issue Dec 13, 2024 · 0 comments
Open

window 平台 cmake 编译报错 #74

yz-yz-yz opened this issue Dec 13, 2024 · 0 comments

Comments

@yz-yz-yz
Copy link

[ 52%] Built target bokehgui_docstrings
[ 56%] Linking CXX shared module bokehgui_python.cp312-win_amd64.pyd
LINK Pass 1: command "C:\PROGRA1\MICROS3\2022\COMMUN1\VC\Tools\MSVC\14421.344\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\bokehgui_python.dir\objects1.rsp /out:bokehgui_python.cp312-win_amd64.pyd /implib:bokehgui_python.lib /pdb:D:\gr-bokehgui-master\build\python\bindings\bokehgui_python.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\boost_date_time.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\boost_program_options.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\boost_system.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\boost_regex.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\boost_unit_test_framework.lib ....\lib\gnuradio-bokehgui.lib C:\Users\sdr\miniforge3\envs\gnuradio\libs\python312.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\gnuradio-fft.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\gnuradio-runtime.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\boost_thread.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\boost_chrono.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\gnuradio-pmt.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\spdlog.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\fmt.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\mpir.lib C:\Users\sdr\miniforge3\envs\gnuradio\Library\lib\volk.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\bokehgui_python.dir/intermediate.manifest CMakeFiles\bokehgui_python.dir/manifest.res" failed (exit code 1169) with the following output:
gnuradio-bokehgui.lib(gnuradio-bokehgui.dll) : error LNK2005: "public: int __cdecl gr::bokehgui::base_sink<class std::complex >::get_buff_size(void)" (?get_buff_size@?$base_sink@V?$complex@M@std@@@bokehgui@gr@@QEAAHXZ) 已经在 base_sink_python.cc.obj 中定义
gnuradio-bokehgui.lib(gnuradio-bokehgui.dll) : error LNK2005: "public: int __cdecl gr::bokehgui::base_sink<class std::complex >::get_buff_cols(void)" (?get_buff_cols@?$base_sink@V?$complex@M@std@@@bokehgui@gr@@QEAAHXZ) 已经在 base_sink_python.cc.obj 中定义
正在创建库 bokehgui_python.lib 和对象 bokehgui_python.exp
bokehgui_python.cp312-win_amd64.pyd : fatal error LNK1169: 找到一个或多个多重定义的符号
python\bindings\CMakeFiles\bokehgui_python.dir\build.make:259: recipe for target 'python/bindings/bokehgui_python.cp312-win_amd64.pyd' failed
mingw32-make.exe[2]: *** [python/bindings/bokehgui_python.cp312-win_amd64.pyd] Error -1
CMakeFiles\Makefile2:373: recipe for target 'python/bindings/CMakeFiles/bokehgui_python.dir/all' failed
mingw32-make.exe[1]: *** [python/bindings/CMakeFiles/bokehgui_python.dir/all] Error 2
Makefile:132: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant