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

Not installing portaudio correctly (no prior installation) on Windows 10 anniv. #145

Open
ottworks opened this issue Aug 22, 2016 · 2 comments

Comments

@ottworks
Copy link

error: linking with `gcc` failed: exit code: 1
note: "gcc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-nostdlib" "-m64" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\crt2.o" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "-L" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "E:\\Scripts\\audiomosaic\\target\\debug\\audiomosaic.0.o" "-o" "E:\\Scripts\\audiomosaic\\target\\debug\\audiomosaic.exe" "-Wl,--gc-sections" "-nodefaultlibs" "-L" "E:\\Scripts\\audiomosaic\\target\\debug" "-L" "E:\\Scripts\\audiomosaic\\target\\debug\\deps" "-L" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "E:\\Scripts\\audiomosaic\\target\\debug\\deps\\libportaudio-1bf15fa533ab075f.rlib" "E:\\Scripts\\audiomosaic\\target\\debug\\deps\\liblibc-0270f77cad87e663.rlib" "E:\\Scripts\\audiomosaic\\target\\debug\\deps\\libnum-ae79611c5e8ad7f3.rlib" "E:\\Scripts\\audiomosaic\\target\\debug\\deps\\libbitflags-10d625c8a1ca3e9d.rlib" "E:\\Scripts\\audiomosaic\\target\\debug\\deps\\libnum_iter-5766581f7597a504.rlib" "E:\\Scripts\\audiomosaic\\target\\debug\\deps\\libnum_integer-8f7844108d7e0eab.rlib" "E:\\Scripts\\audiomosaic\\target\\debug\\deps\\libnum_traits-09cac71020209ebb.rlib" "E:\\Scripts\\audiomosaic\\target\\debug\\deps\\libsample-7dae7bc32e7a730f.rlib" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-d16b8f0e.rlib" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcollections-d16b8f0e.rlib" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_unicode-d16b8f0e.rlib" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librand-d16b8f0e.rlib" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-d16b8f0e.rlib" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc_system-d16b8f0e.rlib" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-d16b8f0e.rlib" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-d16b8f0e.rlib" "-l" "portaudio" "-l" "gcc_eh" "-l" "ws2_32" "-l" "userenv" "-l" "shell32" "-l" "advapi32" "-l" "compiler-rt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "E:\\Rust stable GNU 1.9\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
note: ld: cannot find -lportaudio

error: aborting due to previous error

Running 0.7.0.

@cramertj
Copy link
Contributor

Also running into this issue.

@cramertj
Copy link
Contributor

After some investigation, it seems that the real issue is that stderr doesn't get printed during builds, so the message "Don't know how to build portaudio on Windows yet. Sources and build instructions available at: http://www.portaudio.com" is getting lost. Either Windows builds should be fixed, or this should be changed to a panic so that it shows up during cargo build. Thoughts, @mitchmindtree? I'll take a look at getting a build on windows, but it seems like the implementation will either have to depend on a pre-built binary or case on whether MSYS or MSVC is available.

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

2 participants