Open miminashi opened 5 years ago
Did you install libad9361 and libiio? See more details in the mac section here: https://wiki.analog.com/sdrseminars
I have been trying to install this using brew install --HEAD tfcollins/homebrew-formulae/iio-oscilloscope
on Big Sur 11.3.1 without any success. I have installed the packages libiio (version 0.17) and libad9361 as per the Wiki before the brew installation. However, brew tries to install libiio 0.21
which results in a make error, the last few lines of which are:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/lib/libpthread.tbd
ld: library not found for -licui18n
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [iio.framework/Versions/0.21/iio] Error 1
make[1]: *** [CMakeFiles/iio.dir/all] Error 2
make: *** [all] Error 2
xcode-select --install
does not fix this.
I would appreciate it if there are any pointers to fix this.
Thanks.
What version of libxml2 you do have installed?
xml2-config --version
Thanks for your response. It is 2.9.10
With macOS 10.15+ you can just use the taps to install everything. So I would remove the frameworks installed by the pkgs. They are in /Library/Frameworks. If you continue to get this error you need to track down the cmake recipe or pkg-config file that is providing that flag. I cannot repeat this on any of my systems.
Thanks I will give it a try and report back.
Like @hasantahir, I've also been trying to install using brew install --HEAD tfcollins/homebrew-formulae/iio-oscilloscope
on MacOS Big Sur 11.4. My make error, however, relates to a type name in the gtkdatabox package that it can't find:
==> make install
Last 15 lines from /Users/jonathan.m/Library/Logs/Homebrew/iio-oscilloscope/02.make:
/usr/local/Cellar/gtkdatabox/1.0.0/include/gtkdatabox_graph.h:105:4: error: unknown type name 'GdkRGBA'
GdkRGBA *gtk_databox_graph_get_rgba (GtkDataboxGraph * graph);
^
4 errors generated.
4 errors generated.
make[2]: *** [CMakeFiles/osc.dir/plugins/fir_filter.c.o] Error 1
make[2]: *** [CMakeFiles/osc.dir/dialogs.c.o] Error 1
12 errors generated.
4 errors generated.
make[2]: *** [CMakeFiles/osc.dir/osc.c.o] Error 1
make[2]: *** [CMakeFiles/osc.dir/plugins/dac_data_manager.c.o] Error 1
12 errors generated.
make[2]: *** [CMakeFiles/osc.dir/oscplot.c.o] Error 1
make[1]: *** [CMakeFiles/osc.dir/all] Error 2
make: *** [all] Error 2
I've tried removing and reinstalling the gtkdatabox package with no luck. Any suggestions on resolving this? Much appreciated.
@jmichel3 I've just hit this myself on Saturday. gtkdatabox updated and broke IIO-Scope. brew from what I can tell doesn't have a great way to pin old versions.
I see. Thank you for the quick reply. Would this gtkdatabox update affect installs and makes on other platforms?
We are looking into this in general across Windows/Linux/macOS.
I've tracked it down and this is the same problem that I have been having!
For a temporary workaround, I've added an old variant of the gtkdatabox recipe to try here: https://github.com/tfcollins/homebrew-formulae/tree/fix-gtk-upgrade
Hi, has anyone find a solution to the build issue with the icu4c library not being found? I keep getting the error below - I am on Catalina 10.15.7
[ 47%] Linking C shared library iio.framework/iio
/usr/local/Cellar/cmake/3.21.2/bin/cmake -E cmake_link_script CMakeFiles/iio.dir/link.txt --verbose=1
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -Wall -Wextra -pedantic -Wno-unused-parameter -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -dynamiclib -Wl,-headerpad_max_install_names -current_version 0.21.0 -o iio.framework/Versions/0.21/iio -install_name @rpath/iio.framework/Versions/0.21/iio CMakeFiles/iio.dir/backend.c.o CMakeFiles/iio.dir/channel.c.o CMakeFiles/iio.dir/device.c.o CMakeFiles/iio.dir/context.c.o CMakeFiles/iio.dir/buffer.c.o CMakeFiles/iio.dir/utilities.c.o CMakeFiles/iio.dir/scan.c.o CMakeFiles/iio.dir/sort.c.o CMakeFiles/iio.dir/usb.c.o CMakeFiles/iio.dir/serial.c.o CMakeFiles/iio.dir/network.c.o CMakeFiles/iio.dir/dns_sd_bonjour.c.o CMakeFiles/iio.dir/dns_sd.c.o CMakeFiles/iio.dir/xml.c.o CMakeFiles/iio.dir/lock.c.o CMakeFiles/iio.dir/iiod-client.c.o /usr/local/lib/libusb-1.0.dylib /usr/local/lib/libserialport.dylib -framework CoreServices -L/opt/local/lib -lxml2 /usr/local/lib/liblzma.dylib /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libz.tbd -L/opt/local/lib -licui18n -licuuc -licudata -liconv -lm /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libpthread.tbd
ld: library not found for -licui18n
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [iio.framework/Versions/0.21/iio] Error 1
make[1]: *** [CMakeFiles/iio.dir/all] Error 2
make: *** [all] Error 2
@mbound have you run the suggested branch?
@mbound have you run the suggested branch?
@tfcollins isn't that for the gtkdatabox issue?
I haven't tried that branch yet.
@tfcollins Hi I have same issue while installing the gtkdatabox-prev1 I first checkout to the "fix-gtk-upgrade" branch in "/usr/local/Homebrew/Library/Taps/tfcollins/homebrew-formulae" Then install iio-oscilloscope, but get stuck with following msg:
==> Downloading https://ghcr.io/v2/homebrew/core/gtkdatabox-prev1/manifests/0.9.3.1_1
curl: (22) The requested URL returned error: 404 Error: Failed to download resource "gtkdatabox-prev1_bottle_manifest" Download failed: https://ghcr.io/v2/homebrew/core/gtkdatabox-prev1/manifests/0.9.3.1_1
https://ghcr.io/v2/homebrew/core seems no longer valid for homebrew.
the url in gtkdatabox-prev1.rb exists, it's able to download and make install manually. But just can't install successfully with brew install. btw, I use "HOMEBREW_NO_AUTO_UPDATE=1" to prevent redirecting git branch to master, otherwise gtkdatabox-prev1 will disappear.
Do you have any suggestion?
Thanks
@ycjustin-msoc in your post you said you were able to install it manually. What remaining issue do you have?
@tfcollins I've tested the fix-gtk-upgrade
branch but I get the same error as before when installing libiio. I believe we are talking about two separate issues, the thread has been somewhat hijacked from the OP issue about libicu4c
, which is the issue I am having.
==> cmake .. -DOSX_INSTALL_FRAMEWORKSDIR=/usr/local/Cellar/libiio/0.21/Frameworks -DOSX_PACKAGE=OFF
==> make
Last 15 lines from /Users/lucalodigiani/Library/Logs/Homebrew/libiio/02.make:
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -DLIBIIO_EXPORTS=1 -D_DARWIN_C_SOURCE -D_POSIX_C_SOURCE=200809L -D__XSI_VISIBLE=500 -Diio_EXPORTS -I/usr/local/include/libusb-1.0 -I/tmp/libiio-20210905-34475-obu0wj/libiio-0.21 -I/tmp/libiio-20210905-34475-obu0wj/libiio-0.21/build -I/opt/local/include -I/opt/local/include/libxml2 -Wall -Wextra -pedantic -Wno-unused-parameter -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -std=c99 -MD -MT CMakeFiles/iio.dir/xml.c.o -MF CMakeFiles/iio.dir/xml.c.o.d -o CMakeFiles/iio.dir/xml.c.o -c /tmp/libiio-20210905-34475-obu0wj/libiio-0.21/xml.c
[ 41%] Building C object CMakeFiles/iio.dir/lock.c.o
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -DLIBIIO_EXPORTS=1 -D_DARWIN_C_SOURCE -D_POSIX_C_SOURCE=200809L -D__XSI_VISIBLE=500 -Diio_EXPORTS -I/usr/local/include/libusb-1.0 -I/tmp/libiio-20210905-34475-obu0wj/libiio-0.21 -I/tmp/libiio-20210905-34475-obu0wj/libiio-0.21/build -I/opt/local/include -I/opt/local/include/libxml2 -Wall -Wextra -pedantic -Wno-unused-parameter -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -std=c99 -MD -MT CMakeFiles/iio.dir/lock.c.o -MF CMakeFiles/iio.dir/lock.c.o.d -o CMakeFiles/iio.dir/lock.c.o -c /tmp/libiio-20210905-34475-obu0wj/libiio-0.21/lock.c
[ 44%] Building C object CMakeFiles/iio.dir/iiod-client.c.o
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -DLIBIIO_EXPORTS=1 -D_DARWIN_C_SOURCE -D_POSIX_C_SOURCE=200809L -D__XSI_VISIBLE=500 -Diio_EXPORTS -I/usr/local/include/libusb-1.0 -I/tmp/libiio-20210905-34475-obu0wj/libiio-0.21 -I/tmp/libiio-20210905-34475-obu0wj/libiio-0.21/build -I/opt/local/include -I/opt/local/include/libxml2 -Wall -Wextra -pedantic -Wno-unused-parameter -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -std=c99 -MD -MT CMakeFiles/iio.dir/iiod-client.c.o -MF CMakeFiles/iio.dir/iiod-client.c.o.d -o CMakeFiles/iio.dir/iiod-client.c.o -c /tmp/libiio-20210905-34475-obu0wj/libiio-0.21/iiod-client.c
Copying OS X content iio.framework/Versions/0.21/Headers/iio.h
/usr/local/Cellar/cmake/3.21.2/bin/cmake -E copy /tmp/libiio-20210905-34475-obu0wj/libiio-0.21/iio.h iio.framework/Versions/0.21/Headers/iio.h
[ 47%] Linking C shared library iio.framework/iio
/usr/local/Cellar/cmake/3.21.2/bin/cmake -E cmake_link_script CMakeFiles/iio.dir/link.txt --verbose=1
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -Wall -Wextra -pedantic -Wno-unused-parameter -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -dynamiclib -Wl,-headerpad_max_install_names -current_version 0.21.0 -o iio.framework/Versions/0.21/iio -install_name @rpath/iio.framework/Versions/0.21/iio CMakeFiles/iio.dir/backend.c.o CMakeFiles/iio.dir/channel.c.o CMakeFiles/iio.dir/device.c.o CMakeFiles/iio.dir/context.c.o CMakeFiles/iio.dir/buffer.c.o CMakeFiles/iio.dir/utilities.c.o CMakeFiles/iio.dir/scan.c.o CMakeFiles/iio.dir/sort.c.o CMakeFiles/iio.dir/usb.c.o CMakeFiles/iio.dir/serial.c.o CMakeFiles/iio.dir/network.c.o CMakeFiles/iio.dir/dns_sd_bonjour.c.o CMakeFiles/iio.dir/dns_sd.c.o CMakeFiles/iio.dir/xml.c.o CMakeFiles/iio.dir/lock.c.o CMakeFiles/iio.dir/iiod-client.c.o /usr/local/lib/libusb-1.0.dylib /usr/local/lib/libserialport.dylib -framework CoreServices -L/opt/local/lib -lxml2 /usr/local/lib/liblzma.dylib /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libz.tbd -L/opt/local/lib -licui18n -licuuc -licudata -liconv -lm /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libpthread.tbd
ld: library not found for -licui18n
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [iio.framework/Versions/0.21/iio] Error 1
make[1]: *** [CMakeFiles/iio.dir/all] Error 2
make: *** [all] Error 2
I don't think it's related to the gtkdatabox issue reported later in the thread?
@tfcollins Hi I have same issue while installing the gtkdatabox-prev1 I first checkout to the "fix-gtk-upgrade" branch in "/usr/local/Homebrew/Library/Taps/tfcollins/homebrew-formulae" Then install iio-oscilloscope, but get stuck with following msg:
==> Downloading https://ghcr.io/v2/homebrew/core/gtkdatabox-prev1/manifests/0.9.3.1_1 ##O#- # curl: (22) The requested URL returned error: 404 Error: Failed to download resource "gtkdatabox-prev1_bottle_manifest" Download failed: https://ghcr.io/v2/homebrew/core/gtkdatabox-prev1/manifests/0.9.3.1_1
https://ghcr.io/v2/homebrew/core seems no longer valid for homebrew.
the url in gtkdatabox-prev1.rb exists, it's able to download and make install manually. But just can't install successfully with brew install. btw, I use "HOMEBREW_NO_AUTO_UPDATE=1" to prevent redirecting git branch to master, otherwise gtkdatabox-prev1 will disappear.
Do you have any suggestion?
Thanks
How did you get around this one? I have gtkdatabox@9.3.1 installed manually, but brew still breaks at this phase - it does not pick up the installed gtkdatabox.
@shreejithshanker can you open a new issue and provide more detail on your setup? Primarily what macOS version and brew version.
this is the
brew install
log