Unable to compile svn revision 4789 in Fedora 14 x86_64
#1
Hi, I'm currently having issues trying to build PCSX2 on Fedora 14 x86_x64 after reading some related topics already posted and following some instructions I am still unable to compile revision 4789 I'm totally lost as to what the issue might be although I am able to run the binary posted by Draveyn here http://forums.pcsx2.net/Thread-pcsx2-on-...#pid171970

Installed dependencies:
Code:
yum install cmake bzip2.i686 bzip2-devel.i686 glew.i686 glew-devel.i686 mesa-libGL.i686 mesa-libGL-devel.i686 mesa-libGLU.i686 mesa-libGLU-devel.i686 mesa-libGLw.i686 mesa-libGLw-devel.i686 mesa-libOSMesa.i686 mesa-libOSMesa-devel.i686 alsa-lib.i686 alsa-lib-devel.i686 Cg Cg.i686 libXxf86vm.i686 libXxf86vm-devel.i686 xorg-x11-proto-devel libX11.i686 libX11-devel.i686 xorg-x11-xtrans-devel libCg.i686 SDL.i686 SDL-devel.i686 sparsehash-devel freetype.i686 freetype-devel.i686 gtk2.i686 gtk2-devel.i686 zlib.i686 zlib-devel.i686 libjpeg-devel libjpeg libjpeg-static wxGTK.i686 wxGTK-devel.i686 libCg.i686 portaudio.i686 portaudio-devel.i686 glib2-devel.i686 gdk-pixbuf2-devel.i686 gdk-pixbuf gdk-pixbuf-devel gdk-pixbuf.i686 gdk-pixbuf-devel.i686 atk-devel.i686 pango-devel.i686 cairo-devel.i686 libjpeg-turbo.i686 libjpeg-turbo-devel.i686

Here's what I get when trying to compile:

$ cmake CMakeLists.txt -DCMAKE_BUILD_TYPE=Release
Code:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib64/ccache/gcc
-- Check for working C compiler: /usr/lib64/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
--
            Please ensure that you have all 32bits dependency installed (.i686 packages).
            See http://code.google.com/p/pcsx2/wiki/ChrootAnd64bStatusLinux for more details.
-- Enable the stripping by default in Release build !!!
-- Use internal version of Soundtouch by default.
    Note: There have been issues in the past with sound quality depending on the version of Soundtouch
    Use -DFORCE_INTERNAL_SOUNDTOUCH=FALSE at your own risk
-- Install localization file in bin/Langs by default
-- Found Freetype: /usr/lib/libfreetype.so
-- Found GTK2_GTK: /usr/lib/libgtk-x11-2.0.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Found ALSA: /usr/lib/libasound.so
-- Found BZip2: /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so - found
-- Found JPEG: /usr/lib/libjpeg.so
-- Found OpenGL: /usr/lib/libGL.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Subversion: /usr/bin/svn (found version "1.6.17")
-- Found wxWidgets: TRUE
-- Found ZLIB: /usr/include (found version "1.2.5")
-- Found Cg: /usr/lib/libCg.so;/usr/lib/libCgGL.so
-- Found GLEW: /usr/lib/libGLEW.so
-- Found PortAudio: /usr/lib/libportaudio.so
-- Found SparseHash: /usr/include
-- Use internal pcsx2 SoundTouch library
-- Skip build of GSdx: miss some dependencies
-- check these libraries -> opengl, X11, pcsx2 SDL
-- Configuring done
-- Generating done
-- Build files have been written to: /home/DaMaGeLaB/Desktop/pcsx2-read-only revision 4789


$ make

Code:
Scanning dependencies of target translations_pcsx2_Iconized
[  0%] Generating zh_CN__pcsx2_Iconized.gmo
[  0%] Generating tr_TR__pcsx2_Iconized.gmo
[  0%] Generating cs_CZ__pcsx2_Iconized.gmo
[  0%] Generating it_IT__pcsx2_Iconized.gmo
[  0%] Generating zh_TW__pcsx2_Iconized.gmo
[  0%] Generating ja_JP__pcsx2_Iconized.gmo
[  0%] Generating es_ES__pcsx2_Iconized.gmo
[  0%] Generating ru_RU__pcsx2_Iconized.gmo
[  0%] Generating pt_BR__pcsx2_Iconized.gmo
[  0%] Generating hu_HU__pcsx2_Iconized.gmo
[  0%] Generating pl_PL__pcsx2_Iconized.gmo
[  0%] Generating sv_SE__pcsx2_Iconized.gmo
[  0%] Generating de_DE__pcsx2_Iconized.gmo
[  3%] Built target translations_pcsx2_Iconized
Scanning dependencies of target translations_pcsx2_Main
[  3%] Generating zh_CN__pcsx2_Main.gmo
[  3%] Generating tr_TR__pcsx2_Main.gmo
[  3%] Generating cs_CZ__pcsx2_Main.gmo
[  3%] Generating it_IT__pcsx2_Main.gmo
[  3%] Generating zh_TW__pcsx2_Main.gmo
[  3%] Generating ja_JP__pcsx2_Main.gmo
[  3%] Generating es_ES__pcsx2_Main.gmo
[  3%] Generating ru_RU__pcsx2_Main.gmo
[  3%] Generating pt_BR__pcsx2_Main.gmo
[  3%] Generating hu_HU__pcsx2_Main.gmo
[  3%] Generating pl_PL__pcsx2_Main.gmo
[  3%] Generating sv_SE__pcsx2_Main.gmo
[  3%] Generating de_DE__pcsx2_Main.gmo
[  6%] Built target translations_pcsx2_Main
Scanning dependencies of target pcsx2_SoundTouch
[  7%] Building CXX object 3rdparty/SoundTouch/CMakeFiles/pcsx2_SoundTouch.dir/AAFilter.cpp.o
[  7%] Building CXX object 3rdparty/SoundTouch/CMakeFiles/pcsx2_SoundTouch.dir/FIFOSampleBuffer.cpp.o
[  7%] Building CXX object 3rdparty/SoundTouch/CMakeFiles/pcsx2_SoundTouch.dir/FIRFilter.cpp.o
/home/DaMaGeLaB/Desktop/pcsx2-read-only revision 4789/3rdparty/SoundTouch/FIRFilter.cpp: In static member function ‘static void* soundtouch::FIRFilter::operator new(size_t)’:
/home/DaMaGeLaB/Desktop/pcsx2-read-only revision 4789/3rdparty/SoundTouch/FIRFilter.cpp:226:12: warning: ‘operator new’ must not return NULL unless it is declared ‘throw()’ (or -fcheck-new is in effect)
[  7%] Building CXX object 3rdparty/SoundTouch/CMakeFiles/pcsx2_SoundTouch.dir/RateTransposer.cpp.o
/home/DaMaGeLaB/Desktop/pcsx2-read-only revision 4789/3rdparty/SoundTouch/RateTransposer.cpp: In static member function ‘static void* soundtouch::RateTransposer::operator new(size_t)’:
/home/DaMaGeLaB/Desktop/pcsx2-read-only revision 4789/3rdparty/SoundTouch/RateTransposer.cpp:112:12: warning: ‘operator new’ must not return NULL unless it is declared ‘throw()’ (or -fcheck-new is in effect)
[  8%] Building CXX object 3rdparty/SoundTouch/CMakeFiles/pcsx2_SoundTouch.dir/SoundTouch.cpp.o
[  8%] Building CXX object 3rdparty/SoundTouch/CMakeFiles/pcsx2_SoundTouch.dir/TDStretch.cpp.o
/home/DaMaGeLaB/Desktop/pcsx2-read-only revision 4789/3rdparty/SoundTouch/TDStretch.cpp: In static member function ‘static void* soundtouch::TDStretch::operator new(size_t)’:
/home/DaMaGeLaB/Desktop/pcsx2-read-only revision 4789/3rdparty/SoundTouch/TDStretch.cpp:744:12: warning: ‘operator new’ must not return NULL unless it is declared ‘throw()’ (or -fcheck-new is in effect)
[  8%] Building CXX object 3rdparty/SoundTouch/CMakeFiles/pcsx2_SoundTouch.dir/cpu_detect_x86_gcc.cpp.o
[  8%] Building CXX object 3rdparty/SoundTouch/CMakeFiles/pcsx2_SoundTouch.dir/mmx_optimized.cpp.o
[  9%] Building CXX object 3rdparty/SoundTouch/CMakeFiles/pcsx2_SoundTouch.dir/sse_optimized.cpp.o
Linking CXX static library libpcsx2_SoundTouch.a
[  9%] Built target pcsx2_SoundTouch
Scanning dependencies of target Utilities
[  9%] Building CXX object common/src/Utilities/CMakeFiles/Utilities.dir/AlignedMalloc.cpp.o
In file included from /usr/include/wx-2.8/wx/defs.h:21:0,
                 from /usr/include/wx-2.8/wx/string.h:25,
                 from /home/DaMaGeLaB/Desktop/pcsx2-read-only revision 4789/common/include/Utilities/Dependencies.h:182,
                 from /home/DaMaGeLaB/Desktop/pcsx2-read-only revision 4789/common/src/Utilities/PrecompiledHeader.h:21,
                 from /home/DaMaGeLaB/Desktop/pcsx2-read-only revision 4789/common/src/Utilities/AlignedMalloc.cpp:19:

/usr/include/wx-2.8/wx/platform.h:196:22: fatal error: wx/setup.h: No such file or directory
compilation terminated.
make[2]: *** [common/src/Utilities/CMakeFiles/Utilities.dir/AlignedMalloc.cpp.o] Error 1
make[1]: *** [common/src/Utilities/CMakeFiles/Utilities.dir/all] Error 2
make: *** [all] Error 2

Any help would be greatly appreciated, if you need more detailed information just let me know, Kindest regards.
Reply

Sponsored links

#2
Are you building in 64-bit Fedora and is there (yet again) a missing library in the list I wonder?

Do you have wxGTK.i686? See if it's missing by typing:

Code:
rpm -aq | grep wxGTK | sort
Reply
#3
(07-05-2011, 10:43 AM)Gumbo Wrote: Are you building in 64-bit Fedora

Thanks for your reply Gumbo, Yes I'm running Fedora 14 x86_x64.

Code:
$ uname -r
2.6.35.13-92.fc14.x86_64

Code:
$ rpm -aq | grep wxGTK | sort
wxGTK-2.8.12-1.fc14.i686
wxGTK-2.8.12-1.fc14.x86_64
wxGTK-devel-2.8.12-1.fc14.i686
wxGTK-devel-2.8.12-1.fc14.x86_64

I'm completely stumped I'm not sure if this is important but the path wx/setup.h seems to vary for me. Do you think creating a symbolic link could possibly fix that? if indeed that is the issue.

Quote:/usr/include/wx-2.8/wx/platform.h:196:22: fatal error: wx/setup.h: No such file or directory compilation terminated.

Code:
$ locate setup.h
/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h
/usr/lib64/wx/include/gtk2-unicode-release-2.8/wx/setup.h
Reply
#4
Please, use this patch to print additional cmake debug info. And rerun the cmake phase.

--- cmake/SearchForStuff.cmake (revision 4788)
+++ cmake/SearchForStuff.cmake (working copy)
@@ -168,6 +168,7 @@

# Wx
if(wxWidgets_FOUND)
+ message("DEBUG BEFORE : ${wxWidgets_INCLUDE_DIRS}")
if(Linux)
# Force the use of 32 bit library configuration on
# 64 bits machine with 32 bits library in /usr/lib32
@@ -184,6 +185,7 @@
endif (EXISTS "/usr/lib")
endif(CMAKE_SIZEOF_VOID_P MATCHES "8")
endif(Linux)
+ message("DEBUG AFTER : ${wxWidgets_INCLUDE_DIRS}")

include(${wxWidgets_USE_FILE})
endif(wxWidgets_FOUND)
Reply
#5
(07-05-2011, 06:34 PM)gregory Wrote: Please, use this patch to print additional cmake debug info.

Hi, Gregory. Sorry for asking such a n00b question but how and where do I apply the patch exactly? "Face Palm"

Kindest Regards.

Reply
#6
Well just add the line with a + in front to cmake/SearchForStuff.cmake.
Otherwise copy data into a file (greg.patch) and do (at root)
patch -p1 < greg.patch
Reply
#7
(07-05-2011, 11:22 PM)gregory Wrote: Just add the line with a + in front to cmake/SearchForStuff.cmake.

I dont think i did that correctly but it has certainly changed the output:

Code:
$ cmake ../CMakeLists.txt -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib64/ccache/gcc
-- Check for working C compiler: /usr/lib64/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
--
            Please ensure that you have all 32bits dependency installed (.i686 packages).
            See http://code.google.com/p/pcsx2/wiki/ChrootAnd64bStatusLinux for more details.
-- Enable the stripping by default in Release build !!!
-- Use internal version of Soundtouch by default.
    Note: There have been issues in the past with sound quality depending on the version of Soundtouch
    Use -DFORCE_INTERNAL_SOUNDTOUCH=FALSE at your own risk
-- Install localization file in bin/Langs by default
CMake Error: Error in cmake code at
/home/DaMaGeLaB/Desktop/pcsx2-read-only/cmake/SearchForStuff.cmake:171:
Parse error.  Expected a command name, got unquoted argument with text "+".
CMake Error at CMakeLists.txt:54 (include):
  include could not find load file:

    /home/DaMaGeLaB/Desktop/pcsx2-read-only/cmake/SearchForStuff.cmake


-- Skip build of common libraries: miss some dependencies
-- check these libraries -> wxWidgets (>=2.8.10), sparsehash (>=1.5)
-- Skip build of pcsx2 core: miss some dependencies
-- check these libraries -> wxWidgets (>=2.8.10), gtk2 (>=2.16), zlib (>=1.2.4), pcsx2 common libs
-- Skip build of pcsx2 core: miss some dependencies
-- check these libraries -> wxWidgets (>=2.8.10), gtk2 (>=2.16), zlib (>=1.2.4), pcsx2 common libs
-- Skip build of CDVDiso: miss some dependencies
-- check these libraries -> bzip2 (>=1.0.5), gtk2 (>=2.16)
-- Skip build of GSdx: miss some dependencies
-- check these libraries -> opengl, X11, pcsx2 SDL
-- Skip build of zerogs: miss some dependencies
-- check these libraries -> glew (>=1.5), opengl, X11, nvidia-cg-toolkit (>=2.1)
-- Skip build of zzogl: miss some dependencies
-- check these libraries -> glew (>=1.5), jpeg (>=6.2), opengl, X11, nvidia-cg-toolkit (>=2.1), pcsx2 common libs
-- Skip build of onepad: miss some dependencies
-- check these libraries -> sdl (>=1.2)
-- Skip build of zeropad: miss some dependencies
-- check these libraries -> sdl (>=1.2)
-- Skip build of spu2-x: miss some dependencies
-- check these libraries -> soundtouch (>=1.5), alsa, portaudio (>=1.9), pcsx2 common libs
-- Skip build of zerospu2: miss some dependencies
-- check these libraries -> soundtouch (>=1.5), alsa
-- Configuring incomplete, errors occurred!

As a side note do you think I would stand a better chance trying to build on fc15_x86_64? if so i may give that a try. thanks in advance Gregory =D
Reply
#8
You need to remove the + :d
Reply
#9
Quote:As a side note do you think I would stand a better chance trying to build on fc15_x86_64?

I'd stick with fc14 until fedora 15 is more mature. My setup seems the same as yours and pcsx2 runs very nicely Smile
Reply
#10
I do not think F15 will solve your issue and it will probably add new ones. Moreover I think it only a small issue with the include directory detection.

I gzip the cmake file, so extract it and replace your version with this one. Then redo the cmake phase.
Reply




Users browsing this thread: 1 Guest(s)