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 while cross compiling from linux to win64 #22

Open
younlok opened this issue Feb 28, 2020 · 0 comments
Open

error while cross compiling from linux to win64 #22

younlok opened this issue Feb 28, 2020 · 0 comments

Comments

@younlok
Copy link

younlok commented Feb 28, 2020

i did profile setup for windows this is it
Details of profile win_64 OS : windows Arch : amd64 Static : false Qmake : /opt/Qt/5.14.1/gcc_64/bin/qmake Moc : /opt/Qt/5.14.1/gcc_64/bin/moc Rcc : /opt/Qt/5.14.1/gcc_64/bin/rcc Gcc : /home/younlok/mxe/usr/bin/x86_64-w64-mingw32.shared-gcc G++ : /home/younlok/mxe/usr/bin/x86_64-w64-mingw32.shared-g++ Objdump : /home/younlok/mxe/usr/bin/x86_64-w64-mingw32.shared-objdump Windres : /home/younlok/mxe/usr/bin/x86_64-w64-mingw32.shared-windres

but when i try to build with ./qamel build -p win_64 i get this
`Starting build process.

Load config file...done
Removing old build files...done
Generating binding files...
Failed to create cgo file: failed to create cgo flags: exit status 3
Info: creating stash file /home/younlok/go/src/github.com/go-qamel/qamel/.qmake.stash
Project ERROR: Cannot run compiler 'g++'. Output:

g++: error: command line option '-fno-keep-inline-dllexport' is not supported by this configuration
Using built-in specs.
COLLECT_GCC=g++
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-pkgversion='Arch Linux 9.2.1+20200130-2' --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --enable-shared --enable-threads=posix --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp --enable-cet=auto gdc_include_dir=/usr/include/dlang/gdc
Thread model: posix
gcc version 9.2.1 20200130 (Arch Linux 9.2.1+20200130-2)

Maybe you forgot to setup the environment?

`

any solution ??
i use arch linux building for linux works fine for me
thank you

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