Emulator Issues #3742
closedUnable to Compile
0%
Description
What steps will reproduce the problem?
- Checkout the fresh code using svn checkout http://dolphin-emu.googlecode.com/svn/trunk/ dolphin-emu-read-only
- compiled using scon
What is the expected output? What do you see instead?
Expected I guess should have compiled.
Instead I see the following error
Source/Core/Common/Src/OpenCL.cpp: At global scope:
Source/Core/Common/Src/OpenCL.cpp:136: error: ‘cl_context’ does not name a type
Source/Core/Common/Src/OpenCL.cpp:141: error: ‘cl_command_queue’ does not name a type
Source/Core/Common/Src/OpenCL.cpp:146: error: ‘cl_program’ does not name a type
Source/Core/Common/Src/OpenCL.cpp:189: error: ‘cl_kernel’ does not name a type
Source/Core/Common/Src/OpenCL.cpp: In function ‘void OpenCL::Destroy()’:
Source/Core/Common/Src/OpenCL.cpp:212: error: ‘g_cmdq’ was not declared in this scope
Source/Core/Common/Src/OpenCL.cpp:214: error: ‘clReleaseCommandQueue’ was not declared in this scope
Source/Core/Common/Src/OpenCL.cpp:217: error: ‘g_context’ was not declared in this scope
Source/Core/Common/Src/OpenCL.cpp:219: error: ‘clReleaseContext’ was not declared in this scope
Source/Core/Common/Src/OpenCL.cpp: At global scope:
Source/Core/Common/Src/OpenCL.cpp:226: error: variable or field ‘HandleCLError’ declared void
Source/Core/Common/Src/OpenCL.cpp:226: error: ‘cl_int’ was not declared in this scope
Source/Core/Common/Src/OpenCL.cpp:226: error: expected primary-expression before ‘const’
Source/Core/Common/Src/OpenCL.cpp:289: error: expected ‘}’ at end of input
cc1plus: warning: unrecognized command line option "-Wno-unused-result"
scons: *** [Build/Linux-i686-release/Source/Core/Common/Src/OpenCL.o] Error 1
scons: building terminated because of errors.
Dolphin version with the problem? Other Dolphin version without the
problem?
32-bit or 64-bit and any other build parameters?
32 bit
OS version and versions of tools/libraries used?
Linux virus 2.6.34.7-63.fc13.i686.PAE #1 SMP Fri Dec 3 12:28:58 UTC 2010 i686 i686 i386 GNU/Linux
Please provide any additional information below.
Updated by utiba.ajeet about 14 years ago
now tried it with cmake
Please wait while cmake processes CMakeLists.txt files....
ALSA found, enabling ALSA sound backend
ao NOT found, disabling ao sound backend
bluez found, enabling bluetooth support
PulseAudio NOT found, disabling PulseAudio sound backend
OpenAL NOT found, disabling OpenAL sound backend
X11 found
Xrandr found
libav not found, disabling AVI frame dumps
xdg-screensaver found, enabling screensaver inhibition
PortAudio not found, disabling mic support
Shared lzo not found, falling back to the static library
Using shared SDL
Shared sfml-network not found, falling back to the static library
Shared SOIL not found, falling back to the static library
Using shared zlib
GLEW not found
Shared GLEW not found, falling back to the static library
Cg found
CgGL found
gtk+-2.0 found
wxWidgets found, enabling GUI build
It got compiled, but error while running the binary.
[ajeets@virus dolphin-emu-read-only]$ Binaries/dolphin-emu
31:22:571 /home/ajeets/workspace/Emulator/dolphin-emu-read-only/Source/Core/Common/Src/FileUtil.cpp:328 W[COMMON]: GetSize: failed /home/ajeets/.dolphin-emu/Wii/shared2/sys/SYSCONF: No such file
31:22:601 /home/ajeets/workspace/Emulator/dolphin-emu-read-only/Source/Core/Common/Src/FileUtil.cpp:98 W[COMMON]: IsDirectory: stat failed on /home/ajeets/.dolphin-emu/Wii/title/00000001/00000002/content:
31:22:792 /home/ajeets/workspace/Emulator/dolphin-emu-read-only/Source/Core/DolphinWX/Src/X11Utils.cpp:178 N[Video]: XRRExtension-Version 1.3
31:22:888 /home/ajeets/workspace/Emulator/dolphin-emu-read-only/Source/Core/DolphinWX/Src/X11Utils.cpp:220 N[Video]: Fullscreen Resolution 1366x768
Segmentation fault (core dumped)
[ajeets@virus dolphin-emu-read-only]$
Updated by Anonymous about 14 years ago
- Status changed from New to Invalid
run make install
and you should be fine.
scons is no longer supported on linux.
Updated by utiba.ajeet about 14 years ago
i did make install but it is always ending up with Segmentation fault
[root@virus dolphin-emu-read-only]# dolphin-emu
40:49:067 /home/ajeets/workspace/Emulator/dolphin-emu-read-only/Source/Core/Common/Src/FileUtil.cpp:98 W[COMMON]: IsDirectory: stat failed on /root/.dolphin-emu/Wii/title/00000001/00000002/content:
40:49:679 /home/ajeets/workspace/Emulator/dolphin-emu-read-only/Source/Core/DolphinWX/Src/X11Utils.cpp:178 N[Video]: XRRExtension-Version 1.3
40:49:769 /home/ajeets/workspace/Emulator/dolphin-emu-read-only/Source/Core/DolphinWX/Src/X11Utils.cpp:220 N[Video]: Fullscreen Resolution 1366x768
Segmentation fault (core dumped)
[root@virus dolphin-emu-read-only]# dolphin-emu
41:08:423 /home/ajeets/workspace/Emulator/dolphin-emu-read-only/Source/Core/Common/Src/FileUtil.cpp:98 W[COMMON]: IsDirectory: stat failed on /root/.dolphin-emu/Wii/title/00000001/00000002/content:
41:08:650 /home/ajeets/workspace/Emulator/dolphin-emu-read-only/Source/Core/DolphinWX/Src/X11Utils.cpp:178 N[Video]: XRRExtension-Version 1.3
41:08:739 /home/ajeets/workspace/Emulator/dolphin-emu-read-only/Source/Core/DolphinWX/Src/X11Utils.cpp:220 N[Video]: Fullscreen Resolution 1366x768
Segmentation fault (core dumped)
[root@virus dolphin-emu-read-only]#