(04-05-2013, 11:55 PM)bl0 Wrote: [ -> ]I've looked into this. It's a problem with gcc on OSes which don't have _POSIX_TIMEOUTS, including NetBSD. It was fixed in gcc 4.7 which is also in pkgsrc.
Would definitely be good to document that requirement on gcc>=4.7.
(04-05-2013, 11:55 PM)bl0 Wrote: [ -> ]First, this doesn't do what you want. It calls
find_path(SOIL_INCLUDE SOIL.h SOIL/SOIL.h)
The short syntax is
find_path(<VAR> name1 [path1 path2 ...])
See cmake docs.
Second, a change to CMakeLists.txt is not enough. Dolphin source files do "#include <SOIL/SOIL.h>".
Hmm, well my patch there works and any modification based on that documentation doesn't seem to find SOIL. What are your suggestions? Also, there's just one Dolphin source file that references the SOIL include directly (Source/Core/VideoCommon/Src/HiresTextures.cpp). Would be good to not hardcode that include path too, but replace it based on which location is found during configure.
(04-05-2013, 11:55 PM)bl0 Wrote: [ -> ]It searches for libCg.so too. (It only checks for presence of the library files, it doesn't test if the library is usable.)
I'm not seeing the test for libCg.so in the build scripts. Where is this happening?
So, better news! Build makes it to 93%:
http://filebin.ca/f97H2FWBQkB/bnew.txt
but fails here:
[ 93%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/Src/HW/BBA-TAP/TAP_Unix.cpp.o
/usr/pkgsrc/dev/wip/dolphin/work/dolphin-3.5/Source/Core/Core/Src/HW/BBA-TAP/TAP_Unix.cpp: In function 'void ReadThreadHandler(CEXIETHERNET*)':
/usr/pkgsrc/dev/wip/dolphin/work/dolphin-3.5/Source/Core/Core/Src/HW/BBA-TAP/TAP_Unix.cpp:126:13: error: 'class CEXIETHERNET' has no member named 'fd'
/usr/pkgsrc/dev/wip/dolphin/work/dolphin-3.5/Source/Core/Core/Src/HW/BBA-TAP/TAP_Unix.cpp:131:3: error: 'class CEXIETHERNET' has no member named 'fd'
/usr/pkgsrc/dev/wip/dolphin/work/dolphin-3.5/Source/Core/Core/Src/HW/BBA-TAP/TAP_Unix.cpp:131:3: error: 'class CEXIETHERNET' has no member named 'fd'
/usr/pkgsrc/dev/wip/dolphin/work/dolphin-3.5/Source/Core/Core/Src/HW/BBA-TAP/TAP_Unix.cpp:136:20: error: 'class CEXIETHERNET' has no member named 'fd'
/usr/pkgsrc/dev/wip/dolphin/work/dolphin-3.5/Source/Core/Core/Src/HW/BBA-TAP/TAP_Unix.cpp:139:30: error: 'class CEXIETHERNET' has no member named 'fd'
/usr/pkgsrc/dev/wip/dolphin/work/dolphin-3.5/Source/Core/Core/Src/HW/BBA-TAP/TAP_Unix.cpp:144:18: error: 'class CEXIETHERNET' has no member named 'readEnabled'
gmake[2]: *** [Source/Core/Core/CMakeFiles/core.dir/Src/HW/BBA-TAP/TAP_Unix.cpp.o] Error 1
gmake[1]: *** [Source/Core/Core/CMakeFiles/core.dir/all] Error 2
gmake: *** [all] Error 2
*** Error code 2
Seems like that tunneling part is very Linux-specific. The tunnel device is /dev/tun* on the *BSDs, for example. The whole interesting part of the networking includes is wrapped in an #if __linux__ block.

I couldn't find CEXIETHERNET in FXR, so i'm not sure exactly what that code wants.