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

How do I change target os when configure? #524

Closed
Scarlett13 opened this issue Jul 28, 2018 · 1 comment
Closed

How do I change target os when configure? #524

Scarlett13 opened this issue Jul 28, 2018 · 1 comment

Comments

@Scarlett13
Copy link

Hi, I'm trying to build litecoin project using WSL for windows 10 (Ubuntu Xenial 16), But it always give me linux as the targeted OS, how can I change it to windows? I think I'm following what in windows build tutorial.

Here are the options after I run ./configure:

Options used to compile and link:
with wallet = yes
with gui / qt = yes
qt version = 5
with qr = yes
with zmq = yes
with test = yes
with bench = yes
with upnp = yes
use asm = yes
scrypt sse2 = no
debug enabled = no
werror = no

target os = linux
build os =

CC = gcc
CFLAGS = -g -O2
CPPFLAGS = -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS
CXX = g++ -std=c++11
CXXFLAGS = -g -O2 -Wall -Wextra -Wformat -Wvla -Wformat-security -Wno-unused-parameter
LDFLAGS =
ARFLAGS = cr

Thank You

@Scarlett13
Copy link
Author

Well, the issue is gone after I run once again <CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/> command.

but I got another issue:

.libs/libbitcoinconsensus_la-utilstrencodings.o: In function tinyformat::detail::FormatArg::format(std::ostream&, char const*, char const*, int) const': /usr/src/gfr-build3/litecoin/src/./tinyformat.h:515: undefined reference to __assert_fail'
.libs/libbitcoinconsensus_la-utilstrencodings.o: In function __gnu_cxx::new_allocator<unsigned char>::allocate(unsigned long, void const*)': /usr/include/c++/5/ext/new_allocator.h:104: undefined reference to operator new(unsigned long)'
/usr/include/c++/5/ext/new_allocator.h:104: undefined reference to operator new(unsigned long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function void tinyformat::detail::formatTruncated(std::ostream&, long const&, int)':
/usr/src/gfr-build3/litecoin/src/./tinyformat.h:279: undefined reference to std::ostream::write(char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function std::basic_ostream<char, std::char_traits >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char)':
/usr/include/c++/5/ostream:509: undefined reference to std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function void tinyformat::detail::formatTruncated(std::ostream&, int const&, int)':
/usr/src/gfr-build3/litecoin/src/./tinyformat.h:279: undefined reference to std::ostream::write(char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function std::basic_ostream<char, std::char_traits >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char)':
/usr/include/c++/5/ostream:509: undefined reference to std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)' .libs/libbitcoinconsensus_la-utilstrencodings.o: In function __static_initialization_and_destruction_0':
/usr/include/c++/5/iostream:74: undefined reference to __dso_handle' /usr/include/c++/5/iostream:74: undefined reference to __cxa_atexit'
.libs/libbitcoinconsensus_la-utilstrencodings.o: In function __static_initialization_and_destruction_0': /usr/src/gfr-build3/litecoin/src/utilstrencodings.cpp:15: undefined reference to __dso_handle'
/usr/src/gfr-build3/litecoin/src/utilstrencodings.cpp:15: undefined reference to __cxa_atexit' /usr/src/gfr-build3/litecoin/src/utilstrencodings.cpp:17: undefined reference to __dso_handle'
/usr/src/gfr-build3/litecoin/src/utilstrencodings.cpp:17: undefined reference to __cxa_atexit' .libs/libbitcoinconsensus_la-utilstrencodings.o:(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to __gxx_personality_v0'
collect2: error: ld returned 1 exit status
Makefile:3616: recipe for target 'libbitcoinconsensus.la' failed
make[2]: *** [libbitcoinconsensus.la] Error 1
make[2]: Leaving directory '/usr/src/gfr-build3/litecoin/src'
Makefile:9544: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/gfr-build3/litecoin/src'
Makefile:748: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Thanks.

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