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

Build issues #1

Open
pythoninthegrass opened this issue Aug 31, 2022 · 0 comments
Open

Build issues #1

pythoninthegrass opened this issue Aug 31, 2022 · 0 comments

Comments

@pythoninthegrass
Copy link

Hi @sandsmark.

Thoroughly enjoyed your README.md and wanna get this working as-is. Current build issues:

M1 Pro macOS 12.5.1

# vanilla make
mkdir -p build
make ..             # kills my terminal altogether w/o any build artifacts

# cmake
λ cd build

λ cmake ..
-- The C compiler identification is AppleClang 13.1.6.13160021
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lance/git/sponsoryeet/build

λ cmake --build .
[ 33%] Building CXX object CMakeFiles/sponsoryeet.dir/main.cc.o
In file included from /Users/lance/git/sponsoryeet/main.cc:21:
/Users/lance/git/sponsoryeet/connection.h:58:49: error: use of undeclared identifier 'TCP_USER_TIMEOUT'
        int ret = ::setsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &timeout, sizeof timeout);
                                                ^
In file included from /Users/lance/git/sponsoryeet/main.cc:25:
In file included from /Users/lance/git/sponsoryeet/chromecast.h:5:
In file included from /Users/lance/git/sponsoryeet/castchannel.h:3:
/Users/lance/git/sponsoryeet/ec_protobuf.h:33:10: fatal error: 'byteswap.h' file not found
#include <byteswap.h>
         ^~~~~~~~~~~~
2 errors generated.
gmake[2]: *** [CMakeFiles/sponsoryeet.dir/build.make:76: CMakeFiles/sponsoryeet.dir/main.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/sponsoryeet.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Intel NUC Fedora 35

# make
$ make
g++ -MD -MP -Wall -Wextra -pedantic -std=c++17 -fPIC -g -Wno-variadic-macros -o main.o -c main.cc
g++ -MD -MP -Wall -Wextra -pedantic -std=c++17 -fPIC -g -Wno-variadic-macros -o ssl.o -c ssl.cc
g++ -o sponsoryeet main.o ssl.o -ldl -Wall -Wextra -pedantic -std=c++17 -fPIC -g -Wno-variadic-macros
$ sudo make install
[sudo] password for lance:
install -D -m755 sponsoryeet /usr/bin/sponsoryeet
$ sponsoryeet
Failed to find any valid openssl (last error: (null)
)

# cmake
$ cmake ..
-- The C compiler identification is GNU 11.2.1
-- The CXX compiler identification is GNU 11.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lance/git/sponsoryeet/build
$ cmake --build .
[ 33%] Building CXX object CMakeFiles/sponsoryeet.dir/main.cc.o
[ 66%] Building CXX object CMakeFiles/sponsoryeet.dir/ssl.cc.o
[100%] Linking CXX executable sponsoryeet
[100%] Built target sponsoryeet
./sponsoryeet
Failed to find any valid openssl (last error: (null)
)
$ openssl version
OpenSSL 1.1.1q  FIPS 5 Jul 2022

Appreciate your help 🙏

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