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

Linker Error on Compile #2

Open
ifndefJOSH opened this issue Dec 9, 2021 · 0 comments
Open

Linker Error on Compile #2

ifndefJOSH opened this issue Dec 9, 2021 · 0 comments
Assignees

Comments

@ifndefJOSH
Copy link
Owner

Probably an issue with the CMakeLists, but ld can't seem to find the library files for <fftw> or <jack/jack.h>

/usr/bin/ld: CMakeFiles/nodesynth.dir/src/core/NodeGraph.cpp.o: in function `nodesynth::NodeGraph::NodeGraph()':
<PATH_TO_REPO>/nodesynth/src/core/NodeGraph.cpp:13: undefined reference to `nodesynth::TimeDomainAudioStream::TimeDomainAudioStream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeGraph.cpp:14: undefined reference to `nodesynth::TimeDomainAudioStream::TimeDomainAudioStream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/usr/bin/ld: CMakeFiles/nodesynth.dir/src/core/NodeGraph.cpp.o: in function `std::thread::thread<std::function<void ()>&, , void>(std::function<void ()>&)':
/usr/include/c++/11.1.0/bits/std_thread.h:136: undefined reference to `pthread_create'
/usr/bin/ld: CMakeFiles/nodesynth.dir/src/core/NodeSynth.cpp.o: in function `inprocess(unsigned int, nodesynth::port_pair_t*)':
<PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:16: undefined reference to `jack_port_get_buffer'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:18: undefined reference to `jack_port_get_buffer'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:20: undefined reference to `jack_port_get_buffer'
/usr/bin/ld: CMakeFiles/nodesynth.dir/src/core/NodeSynth.cpp.o: in function `jack_initialize(_jack_client*, char const*)':
<PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:39: undefined reference to `jack_port_register'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:47: undefined reference to `jack_port_register'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:55: undefined reference to `jack_port_register'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:64: undefined reference to `jack_activate'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:67: undefined reference to `jack_port_name'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:67: undefined reference to `jack_connect'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:72: undefined reference to `jack_port_name'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:72: undefined reference to `jack_connect'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:73: undefined reference to `jack_port_name'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:73: undefined reference to `jack_connect'
/usr/bin/ld: CMakeFiles/nodesynth.dir/src/core/NodeSynth.cpp.o: in function `nodesynth::NodeSynth::setOptions()':
<PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:133: undefined reference to `jack_get_sample_rate'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/core/NodeSynth.cpp:134: undefined reference to `jack_get_buffer_size'
/usr/bin/ld: CMakeFiles/nodesynth.dir/src/node/PrimitiveOscillatorNode.cpp.o: in function `nodesynth::PrimitiveOscillatorNode::createSawToothWave(double, double, unsigned char)':
<PATH_TO_REPO>/nodesynth/src/node/PrimitiveOscillatorNode.cpp:40: undefined reference to `fftw_plan_dft_1d'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/node/PrimitiveOscillatorNode.cpp:47: undefined reference to `fftw_execute'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/node/PrimitiveOscillatorNode.cpp:48: undefined reference to `fftw_destroy_plan'
/usr/bin/ld: CMakeFiles/nodesynth.dir/src/node/PrimitiveOscillatorNode.cpp.o: in function `nodesynth::PrimitiveOscillatorNode::createSquareWave(double, double, unsigned char)':
<PATH_TO_REPO>/nodesynth/src/node/PrimitiveOscillatorNode.cpp:77: undefined reference to `fftw_plan_dft_1d'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/node/PrimitiveOscillatorNode.cpp:84: undefined reference to `fftw_execute'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/node/PrimitiveOscillatorNode.cpp:85: undefined reference to `fftw_destroy_plan'
/usr/bin/ld: CMakeFiles/nodesynth.dir/src/node/PrimitiveOscillatorNode.cpp.o: in function `nodesynth::PrimitiveOscillatorNode::createTriangleWave(double, double, unsigned char)':
<PATH_TO_REPO>/nodesynth/src/node/PrimitiveOscillatorNode.cpp:140: undefined reference to `fftw_plan_dft_1d'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/node/PrimitiveOscillatorNode.cpp:147: undefined reference to `fftw_execute'
/usr/bin/ld: <PATH_TO_REPO>/nodesynth/src/node/PrimitiveOscillatorNode.cpp:148: undefined reference to `fftw_destroy_plan'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/nodesynth.dir/build.make:593: nodesynth] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/nodesynth.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

@ifndefJOSH ifndefJOSH self-assigned this Dec 9, 2021
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