I'm guessing maybe one of the dylibs is not exactly right - needs a patch maybe?
I've tried compiling it myself but after many tries the farthest I get is make error: 'Sound_GetDuration' was not declared in this scope (for cdrom_image)
Thanks! 😀
Last edited by DrNobody on 2016-07-16, 00:10. Edited 1 time in total.
You can do a search, I think we figured this out for an earlier build. But really Daum is broken and the way he linked those libs is not the slightest ideal. I tried to help him make a better static build but he seems to not have listened 😉
Thanks, I'll just keep playing around with it. I fixed the DOS line endings in the source so I'll post that to the link above if it helps anyone else get started.
1*************************************************************** 2Summary: 3libsndfile: no (raw audio file rendering only) 4D-Bus: no 5PulseAudio: no 6JACK: no 7ALSA: no 8PortAudio: no 9OSS: no 10MidiShare: no 11CoreAudio: yes 12CoreMIDI: yes 13LADSPA support: no 14LASH support: no 15LADCCA support: no 16OS/2 DART support: no 17Audio to file driver: yes 18Readline: yes (NOTE: GPL library) 19Profiling: no 20Debug: no 21Trap on FPE (debug): no 22Check FPE (debug): no 23***************************************************************
I'm guessing I might want libsndfile before I install..not sure.
EDIT: I'm going to roll with this and see if it works:
1*************************************************************** 2Summary: 3libsndfile: yes (with ogg vorbis support) 4D-Bus: no 5PulseAudio: yes 6JACK: yes 7ALSA: no 8PortAudio: yes 9OSS: no 10MidiShare: no 11CoreAudio: yes 12CoreMIDI: yes 13LADSPA support: no 14LASH support: no 15LADCCA support: no 16OS/2 DART support: no 17Audio to file driver: yes 18Readline: yes (NOTE: GPL library) 19Profiling: no 20Debug: no 21Trap on FPE (debug): no 22Check FPE (debug): no 23***************************************************************
I'm real close to compiling this and I want to make a nice .app to share with everyone.
Here's where I'm stuck....in the original instructions we have:
******** libtbb
This library will be used by xbrz scaler. (Don't compile it!)
Get the latest version of tbb from the official we […] Show full quote
******** libtbb
This library will be used by xbrz scaler. (Don't compile it!)
Get the latest version of tbb from the official website http://threadingbuildingblocks.org/
Extract it to /usr/local/
Copy everything from /usr/local/lib/ia32/gcc4.4 to /usr/local/lib
I'm lost on what the purpose is here. If we're compiling on OSX with gcc46 where does tbb fit into the picture? Obviously I don't have an '..ia32/gcc4.4' directory. It's not a directory I see in the tbb source code anyway.
Alright. I have all of the libraries installed, patched, etc. Here's as far as 'make' gets:
1In file included from sdlmain.cpp:51: 2./xBRZ/xbrz.h:43: error: expected identifier before ‘class’ 3./xBRZ/xbrz.h:45: error: ISO C++ forbids declaration of ‘ARGB’ with no type 4./xBRZ/xbrz.h:46: error: ISO C++ forbids declaration of ‘RGB’ with no type 5./xBRZ/xbrz.h:47: error: expected unqualified-id before ‘}’ token 6./xBRZ/xbrz.h:47: error: multiple types in one declaration 7sdlmain.cpp: In function ‘void GFX_ResetScreen()’: 8sdlmain.cpp:691: warning: NULL used in arithmetic 9sdlmain.cpp: In function ‘void opengl_init()’: 10sdlmain.cpp:1321: warning: NULL used in arithmetic 11sdlmain.cpp: In function ‘bool GFX_StartUpdate(Bit8u*&, Bitu&)’: 12sdlmain.cpp:1668: error: ‘nullptr’ was not declared in this scope 13sdlmain.cpp: In function ‘void GFX_EndUpdate(const Bit16u*)’: 14sdlmain.cpp:1810: error: expected primary-expression before ‘[’ token 15sdlmain.cpp:1810: error: expected primary-expression before ‘=’ token 16sdlmain.cpp:1810: error: expected primary-expression before ‘]’ token 17sdlmain.cpp:1827: error: expected primary-expression before ‘[’ token 18sdlmain.cpp:1827: error: expected primary-expression before ‘=’ token 19sdlmain.cpp:1827: error: expected primary-expression before ‘]’ token 20sdlmain.cpp:1827: error: expected primary-expression before ‘const’ 21sdlmain.cpp:1849: error: expected primary-expression before ‘[’ token 22sdlmain.cpp:1849: error: expected primary-expression before ‘]’ token 23sdlmain.cpp:1849: error: expected primary-expression before ‘const’ 24make[3]: *** [sdlmain.o] Error 1 25make[2]: *** [all-recursive] Error 1 26make[1]: *** [all-recursive] Error 1 27make: *** [all] Error 2
I suspect something with TBB since it is related to the xBRZ scaler, and I don't have instructions on how to install it or what version.
The problem above was solved by compiling with C++, but although it was happy with the tbb headers it couldn't find the library at the end. It took me while to figure out how where that goes. All of that can be solved with one line:
1export CXX="/opt/local/bin/g++ -std=c++0x -ltbb"
(That is the Macports location of gcc46 - your mileage may vary).
So, now that it works...did I build it with all of the pieces?
1checking for sdl-config... /usr/local/bin/sdl-config 2checking for SDL - version >= 1.2.0... cross compiling; assumed OK... 3yes 4checking SDL version only being 1.2.X... yes 5checking for an ANSI C-conforming const... yes 6checking for inline... inline 7checking for grep that handles long lines and -e... /usr/bin/grep 8checking for egrep... /usr/bin/grep -E 9checking for ANSI C header files... yes 10checking for sys/types.h... yes 11checking for sys/stat.h... yes 12checking for stdlib.h... yes 13checking for string.h... yes 14checking for memory.h... yes 15checking for strings.h... yes 16checking for inttypes.h... yes 17checking for stdint.h... yes 18checking for unistd.h... yes 19checking for size_t... yes 20checking whether struct tm is in sys/time.h or time.h... time.h 21checking size of unsigned char... 1 22checking size of unsigned short... 2 23checking size of unsigned int... 4 24checking size of unsigned long... 4 25checking size of unsigned long long... 8 26checking size of int *... 4 27checking for stdlib.h... (cached) yes 28checking for sys/types.h... (cached) yes 29checking for sys/socket.h... yes 30checking for netinet/in.h... yes 31checking for pwd.h... yes 32checking if environ can be included... no 33checking if environ can be linked... yes 34checking if dirent includes d_type... yes 35checking for powf in libm... yes 36checking if compiler allows __attribute__... yes 37checking if compiler allows __attribute__((always_inline)) ... yes 38checking if compiler allows __attribute__((fastcall)) ... yes 39checking if compiler allows __builtin_expect... yes 40checking if compiler supports -mno-ms-bitfields... yes 41checking for ALSA CFLAGS... 42checking for ALSA LDFLAGS... -lasound -lm -ldl -lpthread 43checking for libasound headers version >= 0.9.0... not present. 44checking for snd_ctl_open in -lasound... no 45checking whether byte ordering is bigendian... no 46enabling inlined memory handling in CPU Core 47checking for target cpu type... x86 compatible 48checking whether x86 dynamic cpu core will be enabled... yes 49checking whether recompiling cpu core will be enabled... no, using dynamic-x86 50checking whether fpu emulation will be enabled... yes 51checking whether x86 assembly fpu core will be enabled... yes 52checking whether to enable unaligned memory access... yes 53checking png.h usability... yes 54checking png.h presence... yes 55checking for png.h... yes 56checking for png_get_io_ptr in -lpng... yes 57checking for freetype-config... /usr/local/bin/freetype-config 58checking pcap.h usability... yes 59checking pcap.h presence... yes 60checking for pcap.h... yes
…Show last 32 lines
61checking for pcap_open_live in -lpcap... yes 62checking SDL_net.h usability... yes 63checking SDL_net.h presence... yes 64checking for SDL_net.h... yes 65checking for SDLNet_Init in -lSDL_net... yes 66checking for main in -lX11... no 67checking X11/XKBlib.h usability... yes 68checking X11/XKBlib.h presence... yes 69checking for X11/XKBlib.h... yes 70checking for XKBlib support... no 71checking for main in -lGL... no 72checking for main in -lopengl32... no 73checking GL/gl.h usability... no 74checking GL/gl.h presence... no 75checking for GL/gl.h... no 76checking whether opengl display output will be enabled... yes 77checking fluidsynth.h usability... yes 78checking fluidsynth.h presence... yes 79checking for fluidsynth.h... yes 80checking for new_fluid_synth in -lfluidsynth... yes 81checking SDL_sound.h usability... yes 82checking SDL_sound.h presence... yes 83checking for SDL_sound.h... yes 84checking for Sound_Init in -lSDL_sound... yes 85checking for Sound_Seek in -lSDL_sound... yes 86checking sys/mman.h usability... yes 87checking sys/mman.h presence... yes 88checking for sys/mman.h... yes 89checking for mprotect... yes 90checking for setpriority support... yes 91checking for PHYSFS_init in -lphysfs... yes
Do I need to go back and work on any of these headers it couldn't find?
If we're all good I will bundle in the libraries and make the app.
I can also try updating the xBRZ scaler or any suggested tweaks to the code and see if it still compiles. Let me know.
Since Daum is broken in other ways, I don't see a reason to mess with it anymore. It got tweaked too many times and is using unfinished dosbox-x code...