question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error configuring libsodium os macOS

See original GitHub issue
MacBook-Pro-2011:~ rex$ git clone https://github.com/ZcashFoundation/zec-qt-wallet.git
Cloning into 'zec-qt-wallet'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 3979 (delta 6), reused 8 (delta 3), pack-reused 3965
Receiving objects: 100% (3979/3979), 6.38 MiB | 797.00 KiB/s, done.
Resolving deltas: 100% (2876/2876), done.
MacBook-Pro-2011:~ rex$ cd zec-qt-wallet/
MacBook-Pro-2011:zec-qt-wallet rex$ qmake zec-qt-wallet.pro CONFIG+=debug
Info: creating stash file /Users/rex/zec-qt-wallet/.qmake.stash
MacBook-Pro-2011:zec-qt-wallet rex$ make -j8
res/libsodium/buildlibsodium.sh
Building libsodium
/opt/local/libexec/qt5/bin/uic src/mainwindow.ui -o src/ui_mainwindow.h
/opt/local/libexec/qt5/bin/uic src/settings.ui -o src/ui_settings.h
/opt/local/libexec/qt5/bin/uic src/about.ui -o src/ui_about.h
--2019-02-22 08:45:36--  https://download.libsodium.org/libsodium/releases/libsodium-1.0.16.tar.gz
/opt/local/libexec/qt5/bin/uic src/confirm.ui -o src/ui_confirm.h
/opt/local/libexec/qt5/bin/uic src/turnstile.ui -o src/ui_turnstile.h
/opt/local/libexec/qt5/bin/uic src/turnstileprogress.ui -o src/ui_turnstileprogress.h
/opt/local/libexec/qt5/bin/uic src/privkey.ui -o src/ui_privkey.h
/opt/local/libexec/qt5/bin/uic src/memodialog.ui -o src/ui_memodialog.h
/opt/local/libexec/qt5/bin/uic src/connection.ui -o src/ui_connection.h
/opt/local/libexec/qt5/bin/uic src/zboard.ui -o src/ui_zboard.h
/opt/local/libexec/qt5/bin/uic src/addressbook.ui -o src/ui_addressbook.h
/opt/local/libexec/qt5/bin/uic src/mobileappconnector.ui -o src/ui_mobileappconnector.h
/opt/local/libexec/qt5/bin/uic src/createzcashconfdialog.ui -o src/ui_createzcashconfdialog.h
/opt/local/libexec/qt5/bin/uic src/recurringdialog.ui -o src/ui_recurringdialog.h
/opt/local/libexec/qt5/bin/uic src/newrecurring.ui -o src/ui_newrecurring.h
/opt/local/libexec/qt5/bin/rcc -name application application.qrc -o qrc_application.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -pipe -stdlib=libc++ -g -std=gnu++1y -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.12 -Wall -W -fPIC -DQT_DEPRECATED_WARNINGS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Isrc/3rdparty -Ires -I/opt/local/libexec/qt5/lib/QtWidgets.framework/Headers -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers -I/opt/local/libexec/qt5/lib/QtWebSockets.framework/Headers -I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers -Ibin -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AGL.framework/Headers -Isrc -I/opt/local/libexec/qt5/mkspecs/macx-clang -F/opt/local/libexec/qt5/lib -x c++-header -c src/precompiled.h -o bin/zec-qt-wallet/c++_x86_64.pch
Resolving download.libsodium.org (download.libsodium.org)... 37.59.238.213
Connecting to download.libsodium.org (download.libsodium.org)|37.59.238.213|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1910835 (1.8M) [application/binary]
Saving to: 'libsodium-1.0.16.tar.gz'

libsodium-1.0.16.tar.gz               100%[=======================================================================>]   1.82M  1.68MB/s    in 1.1s    

2019-02-22 08:45:37 (1.68 MB/s) - 'libsodium-1.0.16.tar.gz' saved [1910835/1910835]

checking build system type... x86_64-apple-darwin17.7.0
checking host system type... x86_64-apple-darwin17.7.0
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '501' is supported by ustar format... yes
checking whether GID '20' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/rex/zec-qt-wallet/res/libsodium/libsodium-1.0.16':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[1]: *** No rule to make target `clean'.  Stop.
make[1]: *** No targets specified and no makefile found.  Stop.
cp: libsodium-1.0.16/src/libsodium/.libs/libsodium.a: No such file or directory
make: *** [/Users/rex/zec-qt-wallet/res/libsodium.a] Error 1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rex4539commented, Feb 22, 2019

Latest commit fixed it.

Thanks!

1reaction
adityapk00commented, Feb 22, 2019

OK, I tried something. Can you git pull and see if it works?

The problem is that some of the Qt variables are leaking into the subprojects. If it still doesn’t work, can you

cd res/libsodium
./buildlibsodium.sh
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error configuring libsodium os macOS · Issue #111 - GitHub
This is my main developing machine. It has everything installed. All reactions.
Read more >
Cannot install libsodium via commandline - Ask Different
Try installing using homebrew: brew install libsodium. Homebrew will deal with all the dependencies for you. You can also review the recipe ...
Read more >
Install libsodium on macOS - Stack Overflow
It seems that the configure, make and install processes go smoothly. I expected the next steps to link to Xcode would be clear,...
Read more >
Installation - Libsodium documentation - GitBook
The library is built using Autotools, making it easy to package. Installation is trivial, and both compilation and ...
Read more >
libsodium - Homebrew Formulae
libsodium. Install command: brew install libsodium. NaCl networking and cryptography library. https://libsodium.org/. License: ISC.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found