• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 51 52 53 54 55 ... 116 Next »

[Solved]Error building on GNU/Linux
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[Solved]Error building on GNU/Linux
05-10-2012, 12:49 PM (This post was last modified: 05-25-2012, 11:34 AM by zuargo.)
#1
zuargo Offline
Junior Member
**
Posts: 12
Threads: 4
Joined: Jan 2012
Hello everyone.

I am trying to build dolphin-emu git 20120509, but the process ends suddenly. Here the terminal output:

Code:
Starting build...
-- The C compiler identification is GNU 4.7.0
-- The CXX compiler identification is GNU 4.7.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Git: /usr/bin/git (found version "1.7.10")
fatal: Not a git repository (or any parent up to mount parent )
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount parent )
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount parent )
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
-- Performing Test NO_UNUSED_RESULT
-- Performing Test NO_UNUSED_RESULT - Success
-- Performing Test VISIBILITY_INLINES_HIDDEN
-- Performing Test VISIBILITY_INLINES_HIDDEN - Success
-- Performing Test VISIBILITY_HIDDEN
-- Performing Test VISIBILITY_HIDDEN - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- 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 OpenGL: /usr/lib/libGL.so  
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp  
OpenMP parallelization enabled
-- Found ALSA: /usr/lib/libasound.so (found version "1.0.25")
ALSA found, enabling ALSA sound backend
ao found, enabling ao sound backend
bluez found, enabling bluetooth support
PulseAudio found, enabling PulseAudio sound backend
-- Found OpenAL: /usr/lib/libopenal.so  
OpenAL found, enabling OpenAL sound backend
X11 found
Xrandr found
-- checking for modules 'libavcodec>=53.5.0;libavformat>=53.2.0;libswscale>=2.0.0;libavutil>=51.7.0'
--   found libavcodec, version 53.61.100
--   found libavformat, version 53.32.100
--   found libswscale, version 2.1.100
--   found libavutil, version 51.35.100
libav found, enabling AVI frame dumps
-- Performing Test PORTAUDIO
-- Performing Test PORTAUDIO - Success
PortAudio found, enabling mic support
Using shared lzo
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not 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 SDL: /usr/lib/libSDLmain.a;/usr/lib/libSDL.so;-lpthread  
Using shared SDL
Found SFML: /usr/include
Using static SFML 1.5 from Externals
Using static SOIL from Externals
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.6")
Using shared zlib
GLEW found
Cg found
CgGL found
-- Found wxWidgets: TRUE  
Found wxWidgets version 2.8.12
At least 2.9.4 is required; ignoring found version
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.4.9")
-- Found GTK2_GTK: /usr/lib/libgtk-x11-2.0.so  
Using static wxWidgets from Externals
gthread-2.0 found
pangocairo found
-- Found Gettext: /usr/bin/msgmerge (found version "0.18.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu-build
Scanning dependencies of target translations_1
[  1%] Generating ko.gmo                                                                                        
[  1%] Generating pt.gmo                                                                                        
[  1%] Generating de.gmo                                                                                        
[  1%] Generating en.gmo                                                                                        
[  1%] Generating es.gmo                                                                                        
[  1%] Generating it.gmo                                                                                        
[  1%] Generating ru.gmo                                                                                        
[  1%] Generating zh_TW.gmo                                                                                      
[  2%] Generating nb.gmo                                                                                        
[  2%] Generating ca.gmo                                                                                        
[  2%] Generating he.gmo                                                                                        
[  2%] Generating zh_CN.gmo                                                                                      
[  2%] Generating ar.gmo                                                                                        
[  2%] Generating pt_BR.gmo                                                                                      
[  2%] Generating el.gmo                                                                                        
[  2%] Generating fr.gmo                                                                                        
[  2%] Generating nl.gmo                                                                                        
[  3%] Generating fa.gmo                                                                                        
[  3%] Generating pl.gmo                                                                                        
[  3%] Generating ja.gmo                                                                                        
[  3%] Generating tr.gmo                                                                                        
[  3%] Generating hu.gmo                                                                                        
[  3%] Generating sr.gmo                                                                                        
[  3%] Generating cs.gmo                                                                                        
[  3%] Built target translations_1                                                                              
Scanning dependencies of target bdisasm
[  3%] Building CXX object Externals/Bochs_disasm/CMakeFiles/bdisasm.dir/dis_decode.cpp.o                        
[  3%] Building CXX object Externals/Bochs_disasm/CMakeFiles/bdisasm.dir/dis_groups.cpp.o                        
[  4%] Building CXX object Externals/Bochs_disasm/CMakeFiles/bdisasm.dir/resolve.cpp.o                          
[  4%] Building CXX object Externals/Bochs_disasm/CMakeFiles/bdisasm.dir/syntax.cpp.o                            
[  4%] Building CXX object Externals/Bochs_disasm/CMakeFiles/bdisasm.dir/PowerPCDisasm.cpp.o                    
Linking CXX static library libbdisasm.a                                                                          
[  4%] Built target bdisasm                                                                                      
Scanning dependencies of target sfml-network
[  5%] Building CXX object Externals/SFML/CMakeFiles/sfml-network.dir/src/SFML/Network/Ftp.cpp.o                
[  5%] Building CXX object Externals/SFML/CMakeFiles/sfml-network.dir/src/SFML/Network/Http.cpp.o                
[  5%] Building CXX object Externals/SFML/CMakeFiles/sfml-network.dir/src/SFML/Network/IPAddress.cpp.o          
[  5%] Building CXX object Externals/SFML/CMakeFiles/sfml-network.dir/src/SFML/Network/Packet.cpp.o              
[  5%] Building CXX object Externals/SFML/CMakeFiles/sfml-network.dir/src/SFML/Network/SelectorBase.cpp.o        
[  5%] Building CXX object Externals/SFML/CMakeFiles/sfml-network.dir/src/SFML/Network/SocketTCP.cpp.o          
[  5%] Building CXX object Externals/SFML/CMakeFiles/sfml-network.dir/src/SFML/Network/SocketUDP.cpp.o          
[  5%] Building CXX object Externals/SFML/CMakeFiles/sfml-network.dir/src/SFML/Network/Unix/SocketHelper.cpp.o  
Linking CXX static library libsfml-network.a                                                                    
[  5%] Built target sfml-network                                                                                
Scanning dependencies of target SOIL
[  5%] Building C object Externals/SOIL/CMakeFiles/SOIL.dir/image_DXT.c.o                                        
[  5%] Building C object Externals/SOIL/CMakeFiles/SOIL.dir/image_helper.c.o                                    
[  5%] Building C object Externals/SOIL/CMakeFiles/SOIL.dir/SOIL.c.o                                            
[  5%] Building C object Externals/SOIL/CMakeFiles/SOIL.dir/stb_image_aug.c.o                                    
/home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu/Externals/SOIL/stb_image_aug.c: In function 'parse_png_file':
/home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu/Externals/SOIL/stb_image_aug.c:2398:28: warning: variable 'invalid_chunk' set but not used [-Wunused-but-set-variable]
/home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu/Externals/SOIL/stb_image_aug.c: In function 'bmp_load':
/home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu/Externals/SOIL/stb_image_aug.c:2587:38: warning: variable 'fake_a' set but not used [-Wunused-but-set-variable]
Linking C static library libSOIL.a
[  5%] Built target SOIL                                                                                        
Scanning dependencies of target clrun
[  5%] Building C object Externals/CLRun/CMakeFiles/clrun.dir/clrun/clrun.c.o                                    
[  5%] Building C object Externals/CLRun/CMakeFiles/clrun.dir/clrun/dynamiclib.c.o                              
[  5%] Building C object Externals/CLRun/CMakeFiles/clrun.dir/clrun/gencl.c.o                                    
[  5%] Building C object Externals/CLRun/CMakeFiles/clrun.dir/clrun/genclgl.c.o                                  
Linking C static library libclrun.a                                                                              
[  5%] Built target clrun                                                                                        
Scanning dependencies of target wx
[  6%] Building CXX object Externals/wxWidgets3/CMakeFiles/wx.dir/src/aui/auibar.cpp.o                          
In file included from /home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu/Externals/wxWidgets3/include/wx/utils.h:21:0,
                 from /home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu/Externals/wxWidgets3/include/wx/cursor.h:66,
                 from /home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu/Externals/wxWidgets3/include/wx/event.h:22,
                 from /home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu/Externals/wxWidgets3/include/wx/window.h:19,
                 from /home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu/Externals/wxWidgets3/include/wx/control.h:23,
                 from /home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu/Externals/wxWidgets3/include/wx/statline.h:24,
                 from /home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu/Externals/wxWidgets3/src/aui/auibar.cpp:29:
/home/zuargo/Paquetes/dolphin-emu-git/src/dolphin-emu/Externals/wxWidgets3/include/wx/filefn.h:476:9: error: zero width for bit-field 'wxAssert_477::BadFileSizeType'
make[2]: *** [Externals/wxWidgets3/CMakeFiles/wx.dir/src/aui/auibar.cpp.o] Error 1
make[1]: *** [Externals/wxWidgets3/CMakeFiles/wx.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

I am on Archlinux x86, Linux kernel (PAE) 3.3.1.

I think this is related to wxWidgets, so, I have installed wxgtk 2.8.12.1 and also I tried installing wxgtk 2.9.3 but it did not work.

Likewise I have noticed this message in the terminal output:

Quote:-- Found wxWidgets: TRUE
Found wxWidgets version 2.8.12
At least 2.9.4 is required; ignoring found version

(I get the same message with wxgtk 2.9.3 installed)

So then I wanted install wxgtk 2.9.4 but at the official page http://wxwidgets.org/ just I see version 2.9.3 as the latest one.

How could I solve this trouble?

Thanks in advance.
Find
Reply
05-10-2012, 05:03 PM (This post was last modified: 05-10-2012, 05:03 PM by neobrain.)
#2
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
How are you calling cmake? Are you using a build directory?

Plus, how did you acquire the source code?
My blog
Me on Twitter
My wishlist on Amazon.de
Find
Reply
05-10-2012, 07:37 PM
#3
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
Yeah, this is not a recent copy of the source code. The check for wx 2.9.4 was changed to 2.9.3 on Linux several days ago.
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
05-12-2012, 01:57 PM
#4
zuargo Offline
Junior Member
**
Posts: 12
Threads: 4
Joined: Jan 2012
(05-10-2012, 05:03 PM)neobrain Wrote: How are you calling cmake? Are you using a build directory?

Plus, how did you acquire the source code?

I am using a simple bash script called PKGBUILD (Archlinux script), here is it:

Code:
# Maintainer: Lightning <sgsdxzy@gmail.com>
# Contributor: Joe Amenta <amentajo@msu.edu>
# Contributor:  Devin Cofer <ranguvar@archlinux.us>
# Contributor: Hans-Kristian Arntzen <maister@archlinux.us>
# Contributor: Zephyr
# Special thanks to Zhou Xin <soul916@hotmail.com> for rewriting this to use cmake

pkgname=dolphin-emu-git
pkgver=20120430
pkgrel=1
pkgdesc="A GameCube and Wii emulator (Dev tree Git version)"
arch=('i686' 'x86_64')
url="http://www.dolphin-emu.org/"
license=('GPL2')

makedepends=('git' 'cmake' 'glproto' 'opencl-headers')
depends=('sdl' 'libxxf86vm' 'nvidia-cg-toolkit' 'glew' 'mesa' 'libgl')
provides=("dolphin-emu=${pkgver}-${pkgrel}")
conflicts=('dolphin-emu' 'dolphin-emu-svn-bin' 'dolphin-emu-svn')
optdepends=('wiiuse: for use of real wiimote'
            'portaudio: for mic support'
            'ffmpeg: for dumping frames in AVI format'
            'libao: for aosound backend'
            'openal: for openal backend'
            'pulseaudio: for pulseaudio backend
            You need to install these optional dependencies and then rebuild dolphin to use them')
            

source=('dolphin-emu.desktop'
    'Dolphin_Logo.png'
    
)

sha256sums=('1cf1cc034ad03cf068d39fd3bac0103dfb663695966a6846e530d8b8cb363470'
            '4ef79175305df7bb9201931870c4bedc5eda9c94b65311973dfd41c1128784d1'
            )
_gitroot=http://code.google.com/p/dolphin-emu/
_gitname=dolphin-emu


build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [[ -d "${_gitname}" ]]; then
    cd "${_gitname}" && git pull origin
    msg "The local files are updated."
  else
    git clone "${_gitroot}" "${_gitname}"
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting build..."

  #Patch the source
  #cd ${srcdir}/${_gitname}
  #patch -Np1 < ${srcdir}/CMakePatch.diff
  
  rm -rf "${srcdir}/${_gitname}-build"
  #cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
  mkdir -p "${srcdir}/${_gitname}-build"
  cd "${srcdir}/${_gitname}-build"

  cmake ../${_gitname} -DCMAKE_INSTALL_PREFIX=/usr
  make

}
package() {
    cd "${srcdir}/${_gitname}-build"

    make DESTDIR=${pkgdir} install

    install -Dm644 "${srcdir}/dolphin-emu.desktop" "${pkgdir}/usr/share/applications/dolphin-emu.desktop"
    install -Dm644 "${srcdir}/Dolphin_Logo.png" "${pkgdir}/usr/share/icons/dolphin-emu.png"
}

You can download it from here:

http://aur.archlinux.org/packages.php?ID=51679

So, cmake is called by:

Quote:cmake ../dolphin-emu -DCMAKE_INSTALL_PREFIX=/usr

Yes, I am using a build directory. By default the PKGBUILD script makes a build directory for building the package

As you see at the PKGBUILD the source code is acquired by:

Quote:git pull origin

After accesing to the ${_gitname} folder (in this case a folder called dolphin-emu)

(05-10-2012, 07:37 PM)delroth Wrote: Yeah, this is not a recent copy of the source code. The check for wx 2.9.4 was changed to 2.9.3 on Linux several days ago.

If wx 2.9.3 is installed on the system, does the process report me whether is using it?. I ask because when I had installed wx 2.9.3 the terminal output kept saying:

Quote:-- Found wxWidgets: TRUE
Found wxWidgets version 2.8.12
At least 2.9.4 is required; ignoring found version

Please, note that Archlinux installs in the same directory the wx 2.9.3 libraries and wx 2.8.12 libraries. And, also, note that is not necessary uninstalling wx 2.8.12 for installing wx 2.9.3.

Thanks so much for responding.

Greetings.
Find
Reply
05-25-2012, 11:33 AM
#5
zuargo Offline
Junior Member
**
Posts: 12
Threads: 4
Joined: Jan 2012
I dont know why or how but git commit 20120522 was compiled without problems

Thanks
Find
Reply
05-25-2012, 01:16 PM
#6
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
Because it was fixed in http://code.google.com/p/dolphin-emu/source/detail?r=c83f87dfc4dccc5c847396fec935987b1a7315d8 . You're welcome Smile
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
05-25-2012, 01:44 PM
#7
zuargo Offline
Junior Member
**
Posts: 12
Threads: 4
Joined: Jan 2012
thanks a lot!!!
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode