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

error make #114

Open
pepiron opened this issue Sep 17, 2021 · 23 comments
Open

error make #114

pepiron opened this issue Sep 17, 2021 · 23 comments
Labels

Comments

@pepiron
Copy link

pepiron commented Sep 17, 2021

I have a error when do make:

[ 1%] Building CXX object CMakeFiles/dsd.dir/src/Hamming.cpp.o
[ 3%] Building C object CMakeFiles/dsd.dir/src/dmr_data.c.o
[ 5%] Building C object CMakeFiles/dsd.dir/src/dmr_voice.c.o
[ 7%] Building C object CMakeFiles/dsd.dir/src/dsd_audio.c.o
[ 9%] Building C object CMakeFiles/dsd.dir/src/dsd_dibit.c.o
[ 11%] Building C object CMakeFiles/dsd.dir/src/dsd_file.c.o
[ 13%] Building C object CMakeFiles/dsd.dir/src/dsd_filters.c.o
[ 15%] Building C object CMakeFiles/dsd.dir/src/dsd_frame.c.o
[ 17%] Building C object CMakeFiles/dsd.dir/src/dsd_frame_sync.c.o
[ 19%] Building C object CMakeFiles/dsd.dir/src/dsd_main.c.o
[ 21%] Building C object CMakeFiles/dsd.dir/src/dsd_mbe.c.o
[ 23%] Building C object CMakeFiles/dsd.dir/src/dsd_serial.c.o
[ 25%] Building C object CMakeFiles/dsd.dir/src/dsd_symbol.c.o
[ 27%] Building C object CMakeFiles/dsd.dir/src/dsd_upsample.c.o
[ 29%] Building C object CMakeFiles/dsd.dir/src/dstar.c.o
[ 31%] Building C object CMakeFiles/dsd.dir/src/dstar_header.c.o
[ 33%] Building C object CMakeFiles/dsd.dir/src/nxdn96.c.o
[ 35%] Building C object CMakeFiles/dsd.dir/src/nxdn_data.c.o
[ 37%] Building C object CMakeFiles/dsd.dir/src/nxdn_voice.c.o
[ 39%] Building C object CMakeFiles/dsd.dir/src/p25_lcw.c.o
[ 41%] Building CXX object CMakeFiles/dsd.dir/src/p25p1_check_hdu.cpp.o
[ 43%] Building CXX object CMakeFiles/dsd.dir/src/p25p1_check_ldu.cpp.o
[ 45%] Building CXX object CMakeFiles/dsd.dir/src/p25p1_check_nid.cpp.o
[ 47%] Building C object CMakeFiles/dsd.dir/src/p25p1_hdu.c.o
[ 49%] Building C object CMakeFiles/dsd.dir/src/p25p1_heuristics.c.o
[ 50%] Building C object CMakeFiles/dsd.dir/src/p25p1_ldu.c.o
[ 52%] Building C object CMakeFiles/dsd.dir/src/p25p1_ldu1.c.o
[ 54%] Building C object CMakeFiles/dsd.dir/src/p25p1_ldu2.c.o
[ 56%] Building C object CMakeFiles/dsd.dir/src/p25p1_tdu.c.o
[ 58%] Building C object CMakeFiles/dsd.dir/src/p25p1_tdulc.c.o
[ 60%] Building C object CMakeFiles/dsd.dir/src/pa_devs.c.o
[ 62%] Building C object CMakeFiles/dsd.dir/src/provoice.c.o
[ 64%] Building C object CMakeFiles/dsd.dir/src/x2tdma_data.c.o
[ 66%] Building C object CMakeFiles/dsd.dir/src/x2tdma_voice.c.o
[ 68%] Building C object CMakeFiles/dsd.dir/git_ver.c.o
[ 70%] Linking CXX executable dsd
/usr/bin/ld: CMakeFiles/dsd.dir/src/p25p1_check_nid.cpp.o: in function itpp::bin::operator=(int const&)' p25p1_check_nid.cpp:(.text._ZN4itpp3binaSERKi[_ZN4itpp3binaSERKi]+0xd3): undefined reference to itpp::it_assert_f(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/dsd.dir/build.make:617: dsd] Error 1
make[1]: *** [CMakeFiles/Makefile2:188: CMakeFiles/dsd.dir/all] Error 2
make: *** [Makefile:160: all] Error 2

Anyone know what can it be

@szechyjs szechyjs added the build label Oct 21, 2021
@ChrisDev8
Copy link

Same error

@lwvmobile
Copy link

What OS are you using?

@ChrisDev8
Copy link

@ChrisDev8
Copy link

MacOS M1 Chip

@ChrisDev8
Copy link

ChrisDev8 commented May 15, 2022

It might be a problem with c++/C/C# compiling on M1 because literly every cmake command always generates some sort of error

@ChrisDev8
Copy link

You have any nightly builds?

@ChrisDev8
Copy link

If you compile a program on another computer or somebody does it for you it works great

@ChrisDev8
Copy link

Ohh this program is not made for arm64 architecture it seems like

@ChrisDev8
Copy link

ChrisDev8 commented May 15, 2022

You should advertise this program as MacOS MacOS Intel Chip ONLY

@lwvmobile
Copy link

I wouldn't be too quick to suggest that its an issue due to arm64 chip, these builds (usually) build okay on Raspberry Pi. That error is suggesting something with ITPP specifically, so I really don't know since I never attempted to build the software on an M1 Apple before. Were you able to build and install the ITPP library okay?

@ChrisDev8
Copy link

ChrisDev8 commented May 15, 2022

I think cmake worked but when I executed the make command it made this error. MacOS is totally different then raspberry pi
magnitudes different. Also Apple adds their own stuff alongsides arm64. I don't know what you mean by library. it was itpp library.
maybe itpp was made for amd64 instead of arm64 because it is kinda old software. Apple made their macbooks into arm64 in late 2020. way before itpp was updated. Compatibility error itpp for M1 arm64 architecture??? can yall take this issue for itpp for yourselfs because I need some sleep

@lwvmobile
Copy link

I've seen the manual download and install of ITPP fail on older x86-64 Ubuntu systems as well. I think its probably due to some changes in dependencies the cmake file for ITPP isn't looking for. You may have to take the issue up with whoever maintains ITPP currently. Debian/Ubuntu has a version of ITPP in their repo, so I usually suggest people use that instead of trying to build it anymore. In your case, I have no idea what to suggest except for try to take your issue up with ITPP at https://sourceforge.net/p/itpp/bugs/ or maybe try brew to install ITPP? Maybe that'll work? https://formulae.brew.sh/formula/itpp#default

@ChrisDev8
Copy link

Let me try brew

@ChrisDev8
Copy link

In your documentation for instillation, it says run brew install ... ittpp . people can get confused about manully installing itpp when you could use brew. BAM. found the problem

@ChrisDev8
Copy link

ChrisDev8 commented May 15, 2022

BREW INSTALL ITPP WORKS FLAWLESSLY`
Thanks so much!
Love, Christopher

Confirmed Documentation Problem

@ChrisDev8
Copy link

ChrisDev8 commented May 15, 2022

But one problem

Digital Speech Decoder 1.7.0-dev (build:v1.6.0-96-g59423fa)
mbelib version 1.3.0
Error, couldn't open /dev/audio

Using the command dsd

@ChrisDev8
Copy link

brew some coffee eeh lol

@lwvmobile
Copy link

what is the output of dsd -a

that should list any portaudio devices, the defaults in this version is OSS audio (ancient) and PortAudio (garbage) so, take your pick. I have no idea if either work in newer apples at all.

BTW, this isn't my software, I just try to help people when I can.

@ChrisDev8
Copy link

Digital Speech Decoder 1.7.0-dev (build:v1.6.0-96-g59423fa)
mbelib version 1.3.0

PortAudio version number = 1246976
PortAudio version text = 'PortAudio V19.7.0-devel, revision 147dd722548358763a8b649b3e4b41dfffbcfbb6'
Number of devices = 5
--------------------------------------- device #0
Name = BlackHole 64ch
Host API = Core Audio
Max inputs = 64, Max outputs = 64
Default sample rate = 44100.00
--------------------------------------- device #1
[ Default Input ]
Name = MacBook Air Microphone
Host API = Core Audio
Max inputs = 1, Max outputs = 0
Default sample rate = 48000.00
--------------------------------------- device #2
[ Default Output ]
Name = MacBook Air Speakers
Host API = Core Audio
Max inputs = 0, Max outputs = 2
Default sample rate = 44100.00
--------------------------------------- device #3
Name = rekordbox Aggregate Device
Host API = Core Audio
Max inputs = 0, Max outputs = 2
Default sample rate = 44100.00
--------------------------------------- device #4
Name = VB-Cable
Host API = Core Audio
Max inputs = 2, Max outputs = 2
Default sample rate = 44100.00

@lwvmobile
Copy link

If not mistaken, I believe the proper syntax is

dsd -i pa:4 -o pa:2

to set the audio input and output parameters properly, assuming you want the vbcable to be input and the speakers to be the output.

@ChrisDev8
Copy link

yeah

@ChrisDev8
Copy link

thank you and have a blessed day

ps - Christopher

Also please update that documentation on install dsd with MacOSX

@lwvmobile
Copy link

Yeah, I'll get right on updating that documentation that I don't have any access to updating. Maybe Szechy will come around eventually and get it going.

If you need any other help running this, check the wiki tab or the link
https://github.com/szechyjs/dsd/wiki/Operation#inputoutput-options

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

No branches or pull requests

4 participants