protonscr

Build error on macOS

protonclosed
ValveSoftware/Proton#1310 · opened 2018-09-08 by foxt · updated 2020-04-09 · 21 comments · github
1 matching comments, n / p to jump
Ffoxt 2018-09-08 github

Hi, I'm trying to build on macOS, but I've hit a brick wall.

Leos-iMac:proton thelmgn$ ./build_proton.sh 
-- Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR) 
-- Could NOT find OSS (missing: OSS_INCLUDE_DIR) 
-- Could NOT find AudioIO (missing: AUDIOIO_INCLUDE_DIR) 
-- Could NOT find SoundIO (missing: SOUNDIO_LIBRARY SOUNDIO_INCLUDE_DIR) 
-- Could NOT find QSA (missing: QSA_LIBRARY QSA_INCLUDE_DIR) 
-- Could NOT find PortAudio (missing: PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR) 
-- Could NOT find PulseAudio (missing: PULSEAUDIO_LIBRARY PULSEAUDIO_INCLUDE_DIR) 
-- Could NOT find JACK (missing: JACK_LIBRARY JACK_INCLUDE_DIR) 
CMake Warning at utils/alsoft-config/CMakeLists.txt:13 (find_package):
  By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Widgets", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.


-- Found unsuitable Qt version "" from NOTFOUND
-- Could NOT find SDL_sound (missing: SDL_SOUND_LIBRARIES SDL_SOUND_INCLUDE_DIR) 
-- Checking for module 'libavcodec'
--   No package 'libavcodec' found
-- Checking for module 'libavformat'
--   No package 'libavformat' found
-- Checking for module 'libavdevice'
--   No package 'libavdevice' found
-- Checking for module 'libavutil'
--   No package 'libavutil' found
-- Checking for module 'libswscale'
--   No package 'libswscale' found
-- Checking for module 'libswresample'
--   No package 'libswresample' found
-- Checking for module 'libpostproc'
--   No package 'libpostproc' found
-- 
-- Building OpenAL with support for the following backends:
--      CoreAudio, WaveFile, Null
-- 
-- Building with support for CPU extensions:
--     Default, SSE, SSE2, SSE3, SSE4.1
-- 
-- Installing sample configuration
-- 
-- Installing HRTF definitions
-- 
-- Installing AmbDec presets
-- 
-- Building utility programs
-- 
-- Building test programs
-- 
-- Building example programs
-- Building SDL+FFmpeg example programs
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/thelmgn/Documents/proton/build/openal.win32
/opt/local/bin/cmake -H/Users/thelmgn/Documents/proton/openal-soft -B/Users/thelmgn/Documents/proton/build/openal.win32 --check-build-system CMakeFiles/Makefile.cmake 0
/opt/local/bin/cmake -E cmake_progress_start /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/build_version.dir/build.make CMakeFiles/build_version.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/bsincgen.dir/build.make CMakeFiles/bsincgen.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/makehrtf.dir/build.make CMakeFiles/makehrtf.dir/depend
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/build_version.dir/DependInfo.cmake --color=
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/bsincgen.dir/DependInfo.cmake --color=
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/makehrtf.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/makehrtf.dir/build.make CMakeFiles/makehrtf.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/bsincgen.dir/build.make CMakeFiles/bsincgen.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/build_version.dir/build.make CMakeFiles/build_version.dir/build
cd /Users/thelmgn/Documents/proton/openal-soft && /opt/local/bin/cmake -D GIT_EXECUTABLE=/usr/bin/git -D LIB_VERSION=1.18.2 -D SRC=/Users/thelmgn/Documents/proton/openal-soft/version.h.in -D DST=/Users/thelmgn/Documents/proton/build/openal.win32/version.h -P /Users/thelmgn/Documents/proton/openal-soft/version.cmake
make[2]: Nothing to be done for `CMakeFiles/bsincgen.dir/build'.
make[2]: Nothing to be done for `CMakeFiles/makehrtf.dir/build'.
[  4%] Built target makehrtf
[  4%] Built target bsincgen
[  4%] Built target build_version
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/OpenAL.dir/build.make CMakeFiles/OpenAL.dir/depend
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/OpenAL.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/OpenAL.dir/build.make CMakeFiles/OpenAL.dir/build
make[2]: Nothing to be done for `CMakeFiles/OpenAL.dir/build'.
[ 70%] Built target OpenAL
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/openal-info.dir/build.make CMakeFiles/openal-info.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/alffplay.dir/build.make CMakeFiles/alffplay.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/alrecord.dir/build.make CMakeFiles/alrecord.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/altonegen.dir/build.make CMakeFiles/altonegen.dir/depend
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/openal-info.dir/DependInfo.cmake --color=
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/alrecord.dir/DependInfo.cmake --color=
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/alffplay.dir/DependInfo.cmake --color=
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/altonegen.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/openal-info.dir/build.make CMakeFiles/openal-info.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/altonegen.dir/build.make CMakeFiles/altonegen.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/alrecord.dir/build.make CMakeFiles/alrecord.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/alffplay.dir/build.make CMakeFiles/alffplay.dir/build
make[2]: Nothing to be done for `CMakeFiles/openal-info.dir/build'.
make[2]: Nothing to be done for `CMakeFiles/alrecord.dir/build'.
make[2]: Nothing to be done for `CMakeFiles/altonegen.dir/build'.
[ 83%] Built target openal-info
[ 90%] Built target alrecord
[ 91%] Built target altonegen
[ 92%] Linking CXX executable alffplay
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/alffplay.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -std=c++11  -O2 -g -D_DEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/alffplay.dir/examples/alffplay.cpp.o CMakeFiles/alffplay.dir/common/almalloc.c.o CMakeFiles/alffplay.dir/common/atomic.c.o CMakeFiles/alffplay.dir/common/rwlock.c.o CMakeFiles/alffplay.dir/common/threads.c.o CMakeFiles/alffplay.dir/common/uintmap.c.o  -o alffplay -Wl,-rpath,/Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/tools.win32/lib/libSDL2main.a /Users/thelmgn/Documents/proton/build/tools.win32/lib/libSDL2.dylib -framework Cocoa /usr/local/lib/libavformat.dylib /usr/local/lib/libavcodec.dylib /usr/local/lib/libavutil.dylib /usr/local/lib/libswscale.dylib /usr/local/lib/libswresample.dylib /usr/lib/libz.dylib libopenal.1.18.2.dylib -framework AudioToolbox -framework ApplicationServices -framework AudioUnit -framework CoreAudio -lpthread -ldl -lm 
ld: warning: ignoring file CMakeFiles/alffplay.dir/common/almalloc.c.o, file was built for i386 which is not the architecture being linked (x86_64): CMakeFiles/alffplay.dir/common/almalloc.c.o
ld: warning: ignoring file CMakeFiles/alffplay.dir/common/atomic.c.o, file was built for i386 which is not the architecture being linked (x86_64): CMakeFiles/alffplay.dir/common/atomic.c.o
ld: warning: ignoring file CMakeFiles/alffplay.dir/common/rwlock.c.o, file was built for i386 which is not the architecture being linked (x86_64): CMakeFiles/alffplay.dir/common/rwlock.c.o
ld: warning: ignoring file CMakeFiles/alffplay.dir/common/threads.c.o, file was built for i386 which is not the architecture being linked (x86_64): CMakeFiles/alffplay.dir/common/threads.c.o
ld: warning: ignoring file CMakeFiles/alffplay.dir/common/uintmap.c.o, file was built for i386 which is not the architecture being linked (x86_64): CMakeFiles/alffplay.dir/common/uintmap.c.o
ld: warning: ld: warning: ignoring file /Users/thelmgn/Documents/proton/build/tools.win32/lib/libSDL2.dylib, file was built for i386 which is not the architecture being linked (x86_64): /Users/thelmgn/Documents/proton/build/tools.win32/lib/libSDL2.dylibignoring file /Users/thelmgn/Documents/proton/build/tools.win32/lib/libSDL2main.a, file was built for archive which is not the architecture being linked (x86_64): /Users/thelmgn/Documents/proton/build/tools.win32/lib/libSDL2main.a

ld: warning: ignoring file libopenal.1.18.2.dylib, file was built for i386 which is not the architecture being linked (x86_64): libopenal.1.18.2.dylib
Undefined symbols for architecture x86_64:
  "_SDL_AddTimer", referenced from:
      _main in alffplay.cpp.o
      (anonymous namespace)::MovieState::prepare() in alffplay.cpp.o
  "_SDL_CreateRenderer", referenced from:
      _main in alffplay.cpp.o
  "_SDL_CreateTexture", referenced from:
      _main in alffplay.cpp.o
  "_SDL_CreateWindow", referenced from:
      _main in alffplay.cpp.o
  "_SDL_Delay", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
  "_SDL_DestroyRenderer", referenced from:
      _main in alffplay.cpp.o
  "_SDL_DestroyTexture", referenced from:
      _main in alffplay.cpp.o
      std::__1::array<(anonymous namespace)::VideoState::Picture, 16ul>::~array() in alffplay.cpp.o
  "_SDL_DestroyWindow", referenced from:
      _main in alffplay.cpp.o
  "_SDL_GetError", referenced from:
      _main in alffplay.cpp.o
  "_SDL_GetRendererInfo", referenced from:
      _main in alffplay.cpp.o
  "_SDL_GetWindowSize", referenced from:
      _main in alffplay.cpp.o
  "_SDL_Init", referenced from:
      _main in alffplay.cpp.o
  "_SDL_LockTexture", referenced from:
      _main in alffplay.cpp.o
  "_SDL_PushEvent", referenced from:
      (anonymous namespace)::MovieState::parse_handler() in alffplay.cpp.o
      (anonymous namespace)::VideoState::sdl_refresh_timer_cb(unsigned int, void*) in alffplay.cpp.o
      (anonymous namespace)::VideoState::handler() in alffplay.cpp.o
  "_SDL_Quit", referenced from:
      _main in alffplay.cpp.o
  "_SDL_RenderCopy", referenced from:
      _main in alffplay.cpp.o
  "_SDL_RenderFillRect", referenced from:
      _main in alffplay.cpp.o
  "_SDL_RenderPresent", referenced from:
      _main in alffplay.cpp.o
  "_SDL_SetRenderDrawColor", referenced from:
      _main in alffplay.cpp.o
  "_SDL_SetWindowSize", referenced from:
      _main in alffplay.cpp.o
  "_SDL_SetWindowTitle", referenced from:
      (anonymous namespace)::MovieState::setTitle(SDL_Window*) in alffplay.cpp.o
  "_SDL_UnlockTexture", referenced from:
      _main in alffplay.cpp.o
  "_SDL_UpdateYUVTexture", referenced from:
      _main in alffplay.cpp.o
  "_SDL_WaitEvent", referenced from:
      _main in alffplay.cpp.o
  "_alBufferData", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
  "_alDeleteBuffers", referenced from:
      (anonymous namespace)::AudioState::~AudioState() in alffplay.cpp.o
  "_alDeleteSources", referenced from:
      (anonymous namespace)::AudioState::~AudioState() in alffplay.cpp.o
  "_alGenBuffers", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
  "_alGenSources", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
  "_alGetEnumValue", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
  "_alGetError", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
  "_alGetSourcei", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
      (anonymous namespace)::AudioState::getClock() in alffplay.cpp.o
  "_alIsExtensionPresent", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
  "_alSourcePlay", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
  "_alSourceQueueBuffers", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
  "_alSourceRewind", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
  "_alSourceUnqueueBuffers", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
  "_alSourcei", referenced from:
      (anonymous namespace)::AudioState::handler() in alffplay.cpp.o
  "_alcCloseDevice", referenced from:
      _main in alffplay.cpp.o
  "_alcCreateContext", referenced from:
      _main in alffplay.cpp.o
  "_alcDestroyContext", referenced from:
      _main in alffplay.cpp.o
  "_alcGetError", referenced from:
      _main in alffplay.cpp.o
  "_alcGetString", referenced from:
      _main in alffplay.cpp.o
  "_alcIsExtensionPresent", referenced from:
      _main in alffplay.cpp.o
  "_alcMakeContextCurrent", referenced from:
      _main in alffplay.cpp.o
  "_alcOpenDevice", referenced from:
      _main in alffplay.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [alffplay] Error 1
make[1]: *** [CMakeFiles/alffplay.dir/all] Error 2
make: *** [all] Error 2
Leos-iMac:proton thelmgn$ 
Llieff 2018-09-08 github

Looks like openal build problem. It can be cmake related issue. Is it latest cmake from brew?
You can also check if vanilla version https://github.com/kcat/openal-soft builds on your system.

Ffoxt 2018-09-08 github

@lieff

Leos-iMac:proton thelmgn$ cmake --version
cmake version 3.12.1

Which is the latest version from brew

Llieff 2018-09-08 github

Try manual linker run

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -m32 -std=c++11  -O2 -g -D_DEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/alffplay.dir/examples/alffplay.cpp.o CMakeFiles/alffplay.dir/common/almalloc.c.o CMakeFiles/alffplay.dir/common/atomic.c.o CMakeFiles/alffplay.dir/common/rwlock.c.o CMakeFiles/alffplay.dir/common/threads.c.o CMakeFiles/alffplay.dir/common/uintmap.c.o  -o alffplay -Wl,-rpath,/Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/tools.win32/lib/libSDL2main.a /Users/thelmgn/Documents/proton/build/tools.win32/lib/libSDL2.dylib -framework Cocoa /usr/local/lib/libavformat.dylib /usr/local/lib/libavcodec.dylib /usr/local/lib/libavutil.dylib /usr/local/lib/libswscale.dylib /usr/local/lib/libswresample.dylib /usr/lib/libz.dylib libopenal.1.18.2.dylib -framework AudioToolbox -framework ApplicationServices -framework AudioUnit -framework CoreAudio -lpthread -ldl -lm 

Not sure why it tries build 32bit and do not pass -m32 to the linker.

Ffoxt 2018-09-08 github

@lieff

Leos-iMac:proton thelmgn$ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -m32 -std=c++11  -O2 -g -D_DEBUG -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/alffplay.dir/examples/alffplay.cpp.o CMakeFiles/alffplay.dir/common/almalloc.c.o CMakeFiles/alffplay.dir/common/atomic.c.o CMakeFiles/alffplay.dir/common/rwlock.c.o CMakeFiles/alffplay.dir/common/threads.c.o CMakeFiles/alffplay.dir/common/uintmap.c.o  -o alffplay -Wl,-rpath,/Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/tools.win32/lib/libSDL2main.a /Users/thelmgn/Documents/proton/build/tools.win32/lib/libSDL2.dylib -framework Cocoa /usr/local/lib/libavformat.dylib /usr/local/lib/libavcodec.dylib /usr/local/lib/libavutil.dylib /usr/local/lib/libswscale.dylib /usr/local/lib/libswresample.dylib /usr/lib/libz.dylib libopenal.1.18.2.dylib -framework AudioToolbox -framework ApplicationServices -framework AudioUnit -framework CoreAudio -lpthread -ldl -lm
clang: error: no such file or directory: 'CMakeFiles/alffplay.dir/examples/alffplay.cpp.o'
clang: error: no such file or directory: 'CMakeFiles/alffplay.dir/common/almalloc.c.o'
clang: error: no such file or directory: 'CMakeFiles/alffplay.dir/common/atomic.c.o'
clang: error: no such file or directory: 'CMakeFiles/alffplay.dir/common/rwlock.c.o'
clang: error: no such file or directory: 'CMakeFiles/alffplay.dir/common/threads.c.o'
clang: error: no such file or directory: 'CMakeFiles/alffplay.dir/common/uintmap.c.o'
clang: error: no such file or directory: 'libopenal.1.18.2.dylib'
Llieff 2018-09-08 github

It must be run from cmake build directory, where CMakeFiles located and 'CMakeFiles/alffplay.dir/examples/alffplay.cpp.o' exists.

Ffoxt 2018-09-08 github

@lieff I ran this in build/openal.win32

ld: warning: ignoring file CMakeFiles/alffplay.dir/examples/alffplay.cpp.o, file was built for x86_64 which is not the architecture being linked (i386): CMakeFiles/alffplay.dir/examples/alffplay.cpp.o
ld: warning: ld: warning: ignoring file /usr/local/lib/libavformat.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libavformat.dylibignoring file /usr/local/lib/libavutil.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libavutil.dylibld: warning: ld: warning: 

ignoring file /usr/local/lib/libswscale.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libswscale.dylibignoring file /usr/local/lib/libavcodec.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libavcodec.dylibld: warning: 

ignoring file /usr/local/lib/libswresample.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libswresample.dylib
Undefined symbols for architecture i386:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)```
Llieff 2018-09-08 github

Now it makes more sense, cmake seems found 64bit libs and do not pass -m32. brew installed 64-bit ffmpeg interferes with 32bit build. Seems we need uninstall it or install 32bit version.

Ffoxt 2018-09-08 github

Ahh, that'd make sense. I'll uninstall my FFMPEG from Brew

Ffoxt 2018-09-08 github

I uninstalled FFMPEG and now I get a different error @lieff

Leos-iMac:proton thelmgn$ ./build_proton.sh 
-- Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR) 
-- Could NOT find OSS (missing: OSS_INCLUDE_DIR) 
-- Could NOT find AudioIO (missing: AUDIOIO_INCLUDE_DIR) 
-- Could NOT find SoundIO (missing: SOUNDIO_LIBRARY SOUNDIO_INCLUDE_DIR) 
-- Could NOT find QSA (missing: QSA_LIBRARY QSA_INCLUDE_DIR) 
-- Could NOT find PortAudio (missing: PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR) 
-- Could NOT find PulseAudio (missing: PULSEAUDIO_LIBRARY PULSEAUDIO_INCLUDE_DIR) 
-- Could NOT find JACK (missing: JACK_LIBRARY JACK_INCLUDE_DIR) 
CMake Warning at utils/alsoft-config/CMakeLists.txt:13 (find_package):
  By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Widgets", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.


-- Found unsuitable Qt version "" from NOTFOUND
-- Could NOT find SDL_sound (missing: SDL_SOUND_LIBRARIES SDL_SOUND_INCLUDE_DIR) 
-- Checking for module 'libavcodec'
--   No package 'libavcodec' found
-- Checking for module 'libavformat'
--   No package 'libavformat' found
-- Checking for module 'libavdevice'
--   No package 'libavdevice' found
-- Checking for module 'libavutil'
--   No package 'libavutil' found
-- Checking for module 'libswscale'
--   No package 'libswscale' found
-- Checking for module 'libswresample'
--   No package 'libswresample' found
-- Checking for module 'libpostproc'
--   No package 'libpostproc' found
-- 
-- Building OpenAL with support for the following backends:
--      CoreAudio, WaveFile, Null
-- 
-- Building with support for CPU extensions:
--     Default, SSE, SSE2, SSE3, SSE4.1
-- 
-- Installing sample configuration
-- 
-- Installing HRTF definitions
-- 
-- Installing AmbDec presets
-- 
-- Building utility programs
-- 
-- Building test programs
-- 
-- Building example programs
-- Building SDL+FFmpeg example programs
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/thelmgn/Documents/proton/build/openal.win32
/opt/local/bin/cmake -H/Users/thelmgn/Documents/proton/openal-soft -B/Users/thelmgn/Documents/proton/build/openal.win32 --check-build-system CMakeFiles/Makefile.cmake 0
/opt/local/bin/cmake -E cmake_progress_start /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/build_version.dir/build.make CMakeFiles/build_version.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/bsincgen.dir/build.make CMakeFiles/bsincgen.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/makehrtf.dir/build.make CMakeFiles/makehrtf.dir/depend
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/build_version.dir/DependInfo.cmake --color=
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/bsincgen.dir/DependInfo.cmake --color=
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/makehrtf.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/build_version.dir/build.make CMakeFiles/build_version.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/makehrtf.dir/build.make CMakeFiles/makehrtf.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/bsincgen.dir/build.make CMakeFiles/bsincgen.dir/build
cd /Users/thelmgn/Documents/proton/openal-soft && /opt/local/bin/cmake -D GIT_EXECUTABLE=/usr/bin/git -D LIB_VERSION=1.18.2 -D SRC=/Users/thelmgn/Documents/proton/openal-soft/version.h.in -D DST=/Users/thelmgn/Documents/proton/build/openal.win32/version.h -P /Users/thelmgn/Documents/proton/openal-soft/version.cmake
make[2]: Nothing to be done for `CMakeFiles/bsincgen.dir/build'.
make[2]: Nothing to be done for `CMakeFiles/makehrtf.dir/build'.
[  4%] Built target bsincgen
[  4%] Built target makehrtf
[  4%] Built target build_version
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/OpenAL.dir/build.make CMakeFiles/OpenAL.dir/depend
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/OpenAL.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/OpenAL.dir/build.make CMakeFiles/OpenAL.dir/build
make[2]: Nothing to be done for `CMakeFiles/OpenAL.dir/build'.
[ 70%] Built target OpenAL
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/openal-info.dir/build.make CMakeFiles/openal-info.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/alffplay.dir/build.make CMakeFiles/alffplay.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/alrecord.dir/build.make CMakeFiles/alrecord.dir/depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/altonegen.dir/build.make CMakeFiles/altonegen.dir/depend
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/openal-info.dir/DependInfo.cmake --color=
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/alrecord.dir/DependInfo.cmake --color=
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/altonegen.dir/DependInfo.cmake --color=
cd /Users/thelmgn/Documents/proton/build/openal.win32 && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/openal-soft /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32 /Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/alffplay.dir/DependInfo.cmake --color=
Dependee "/usr/local/include/libavcodec/avcodec.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavcodec/version.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavformat/avformat.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavformat/avio.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavformat/version.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/attributes.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/avconfig.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/avstring.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/avutil.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/buffer.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/channel_layout.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/common.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/cpu.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/dict.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/error.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/frame.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/hwcontext.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/intfloat.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/log.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/macros.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/mathematics.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/mem.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/pixfmt.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/rational.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/samplefmt.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/time.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libavutil/version.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libswresample/swresample.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libswresample/version.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Dependee "/usr/local/include/libswscale/swscale.h" does not exist for depender "CMakeFiles/alffplay.dir/examples/alffplay.cpp.o".
Clearing dependencies in "/Users/thelmgn/Documents/proton/build/openal.win32/CMakeFiles/alffplay.dir/depend.make".
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/openal-info.dir/build.make CMakeFiles/openal-info.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/altonegen.dir/build.make CMakeFiles/altonegen.dir/build
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/alrecord.dir/build.make CMakeFiles/alrecord.dir/build
Scanning dependencies of target alffplay
make[2]: Nothing to be done for `CMakeFiles/openal-info.dir/build'.
make[2]: Nothing to be done for `CMakeFiles/alrecord.dir/build'.
make[2]: Nothing to be done for `CMakeFiles/altonegen.dir/build'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/alffplay.dir/build.make CMakeFiles/alffplay.dir/build
[ 75%] Built target openal-info
[ 86%] Built target alrecord
make[2]: *** No rule to make target `/usr/local/lib/libavformat.dylib', needed by `alffplay'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 91%] Built target altonegen
[ 92%] Building CXX object CMakeFiles/alffplay.dir/examples/alffplay.cpp.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -DHAVE_STRUCT_TIMESPEC -D_LARGEFILE_SOURCE -D_LARGE_FILES -I/Users/thelmgn/Documents/proton/openal-soft/include -I/Users/thelmgn/Documents/proton/openal-soft/common -I/Users/thelmgn/Documents/proton/build/openal.win32 -I/Users/thelmgn/Documents/proton/build/tools.win32/include/SDL2 -I/usr/local/include  -std=c++11  -O2 -g -D_DEBUG    -Winline -Wall -Wextra -fno-math-errno -fvisibility=hidden -pthread -o CMakeFiles/alffplay.dir/examples/alffplay.cpp.o -c /Users/thelmgn/Documents/proton/openal-soft/examples/alffplay.cpp
/Users/thelmgn/Documents/proton/openal-soft/examples/alffplay.cpp:22:10: fatal error: 'libavcodec/avcodec.h' file not found
#include "libavcodec/avcodec.h"
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/alffplay.dir/examples/alffplay.cpp.o] Error 1
make[1]: *** [CMakeFiles/alffplay.dir/all] Error 2
make: *** [all] Error 2
Llieff 2018-09-08 github

It tries to access ffmpeg headers. Remove all temporary files and do fresh compilation, so ffmpeg should be cutted at configure step. Or we need 32bit ffmpeg installed if configure require it.

Ffoxt 2018-09-08 github

Alright, how would I do that? @lieff

Llieff 2018-09-08 github

Remove build folder with build/openal.win32 .

Ffoxt 2018-09-08 github
Leos-iMac:proton thelmgn$ ./build_proton.sh 
./build_proton.sh: line 455: meson: command not found

@lieff

Llieff 2018-09-08 github

So it's already dxvk build. Install meson/ninja/mingw for this. Not sure if mingw cross-compile goes well on macos at this point check https://github.com/doitsujin/dxvk/issues?utf8=✓&q=macos if there issues too.

Ffoxt 2018-09-08 github

@lieff After installing ninja/meson via Brew and minnow via ports

Leos-iMac:proton thelmgn$ ./build_proton.sh 
The Meson build system
Version: 0.47.2
Source dir: /Users/thelmgn/Documents/proton/dxvk
Build dir: /Users/thelmgn/Documents/proton/build/dxvk.win32
Build type: cross build
Project name: dxvk
Project version: v0.70
Native C compiler: cc (clang 9.1.0 "Apple LLVM version 9.1.0 (clang-902.0.39.2)")
Cross C compiler: i686-w64-mingw32-gcc (gcc 8.2.0)
Native C++ compiler: c++ (clang 9.1.0 "Apple LLVM version 9.1.0 (clang-902.0.39.2)")
Cross C++ compiler: i686-w64-mingw32-g++ (gcc 8.2.0)
Host machine cpu family: x86
Host machine cpu: x86
Target machine cpu family: x86
Target machine cpu: x86
Build machine cpu family: x86_64
Build machine cpu: x86_64
Library vulkan-1 found: YES
Library d3d11 found: YES
Library dxgi found: YES
Library d3dcompiler_43 found: YES
Library d3dcompiler_47 found: YES
Program glslangValidator found: YES (/Users/thelmgn/Documents/proton/glslang/bin/glslangValidator)
Dependency threads found: YES
Configuring setup_dxvk.sh using configuration
Build targets in project: 10
Found ninja-1.8.2 at /usr/local/bin/ninja
[4/177] Generating 'src/dxvk/src@dxvk@@dxvk@sta/dxvk_clear_buffer_u.h'.
FAILED: src/dxvk/src@dxvk@@dxvk@sta/dxvk_clear_buffer_u.h 
/Users/thelmgn/Documents/proton/glslang/bin/glslangValidator -V --vn dxvk_clear_buffer_u ../../dxvk/src/dxvk/shaders/dxvk_clear_buffer_u.comp -o src/dxvk/src@dxvk@@dxvk@sta/dxvk_clear_buffer_u.h
/bin/sh: /Users/thelmgn/Documents/proton/glslang/bin/glslangValidator: cannot execute binary file
[13/177] Compiling C++ object 'src/util/src@util@@util@sta/com_com_guid.cpp.obj'.
ninja: build stopped: subcommand failed.
Llieff 2018-09-08 github

Yep dxvk do not builds easily on macos, there already issue about this https://github.com/ValveSoftware/Proton/issues/497

Ffoxt 2018-09-08 github

@lieff I see, would it be possible to build on a Debian machine and then transfer that to my machine?

Llieff 2018-09-08 github

I think yes, but as mentioned in above issue, Proton wine doesn't support MoltenVK yet, so it can be helpful with vanilla wine, not Proton.

Ddinamic 2018-09-08 github

Had similar error messages. What I did was:

  • brew uninstall ffmpeg --force
  • rm -rf build/
  • ./build_proton.sh

I followed some guidelines located here, to replace glslang and fix meson.

Llieff 2018-09-08 github

glslang can be downloaded from here https://github.com/KhronosGroup/glslang/releases

Kkergoth 2018-09-08 github

https://github.com/ValveSoftware/Proton/commit/670a128d6a6d1fe915aa42ccd05463c45832b83d is an alternative to uninstalling ffmpeg from homebrew. Ignore the unintentional dxvk change in that commit.. :)

Launch options

Upstream links