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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 277 278 279 280 281 ... 1189 Next »

CMAKE fails
View New Posts | View Today's Posts

Thread Closed 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
CMAKE fails
03-16-2017, 08:22 AM
#1
bbuske
Unregistered
 
Hello,

I am trying to use cmake to compile Dolphin on openSUSE Leap 42.2. I encountered some errors and issues, mainly due to outdated compilers and missing dependencies. However, now with all that, the process is running nearly fine, until an error again jumps in. This time however, I have no idea, what causes it or how to fix it. See here:  

Code:
bbuske@linux-9igo:~/Downloads/Build/dolphin-emu/dolphin$ cmake ..
-- Detected architecture: x86_64
-- X11 support enabled
-- Xrandr found
-- Checking for module 'xi>=1.5.0'
--  
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:363 (message):
 A required package was not found
Call Stack (most recent call first):
 /usr/share/cmake/Modules/FindPkgConfig.cmake:528 (_pkg_check_modules_internal)
 CMakeLists.txt:470 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/bbuske/Downloads/Build/dolphin-emu/dolphin/CMakeFiles/CMakeOutput.log".
See also "/home/bbuske/Downloads/Build/dolphin-emu/dolphin/CMakeFiles/CMakeError.log".
bbuske@linux-9igo:~/Downloads/Build/dolphin-emu/dolphin$


Any ideas or suggestions?



Edit: Attached the error.log which I had forgotten.


Attached Files
.pdf   CMakeError.pdf (Size: 22.87 KB / Downloads: 197)
03-18-2017, 05:00 AM
#2
bbuske
Unregistered
 
48 Views and no reply?
Now that's surprising...
03-18-2017, 06:42 AM
#3
Neui Offline
Quiet
***
Posts: 174
Threads: 1
Joined: Apr 2015
It says right there:
Code:
-- Checking for module '[b]xi>=1.5.0[/b]'
--  
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:363 (message):
[b]A required package was not found[b]
xi seems to be a library for X. Maybe try to install libXi-devel and/or libXext-devel or whatever they are named in openSUSE.
Find
03-20-2017, 01:19 AM
#4
bbuske
Unregistered
 
Hello,

thanks for your reply. This (with adding some more missing packages) worked. I think I just struggled finding the name of the missing package. libXi actually did it. However, CMAKE terminated fine, but the final make install fails with the following error:

Code:
[100%] Linking CXX executable ../../../Binaries/dolphin-emu
../../../Externals/wxWidgets3/libwx.a(utilsgtk.cpp.o): In function `GetSM()':
utilsgtk.cpp:(.text+0xdb1): undefined reference to `SmcOpenConnection'
utilsgtk.cpp:(.text+0xdc9): undefined reference to `SmcVendor'
utilsgtk.cpp:(.text+0xded): undefined reference to `SmcCloseConnection'
collect2: error: ld returned 1 exit status
Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/build.make:2174: recipe for target 'Binaries/dolphin-emu' failed
make[2]: *** [Binaries/dolphin-emu] Error 1
CMakeFiles/Makefile2:1507: recipe for target 'Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all' failed
make[1]: *** [Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Any idea on fixing this?
03-25-2017, 12:07 PM
#5
bbuske
Unregistered
 
Still no fix on this one..
Despite several attempts and trying.
12-28-2017, 11:48 PM
#6
freky
Unregistered
 
From the guide for building on Linux: https://wiki.dolphin-emu.org/index.php?title=Building_Dolphin_on_Linux

"The development version of Dolphin requires at least WxWidgets 3.1.0, so you don't need install libwxbase3.0-dev and libwxgtk3.0-dev; Dolphin will build it from Externals folder.

Add -DUSE_SHARED_ENET=ON on cmake line if you want to build dolphin against shared libenet-dev."

You need to have the libenet-dev installed on openSUSE; I think this is "libenet7" and "enet-devel". openSUSE doesn't have the latest libwxgtk3.0 or WxWidgets 3.1 packaged, nor does it have the static libraries, which is why you get the error messages:

"../../../Externals/wxWidgets3/libwx.a(utilsgtk.cpp.o): In function `GetSM()':"

The linker is looking for a static library that just isn't there. There hasn't been a static library for openSUSE in a long time, but if you use the flag mentioned above with cmake, Dolphin will correctly compile and link the shared enet libraries. This works for me on openSUSE Leap 42.3 as of 12/2017 and Dolphin version Dolphin 5.0-6084 from GIT on x64 using gcc-5 and g++-5.

Hope that helps!
12-29-2017, 01:07 AM (This post was last modified: 12-29-2017, 01:09 AM by Neui. Edit Reason: rewording linking )
#7
Neui Offline
Quiet
***
Posts: 174
Threads: 1
Joined: Apr 2015
(12-28-2017, 11:48 PM)freky Wrote: openSUSE doesn't have the latest libwxgtk3.0 or WxWidgets 3.1 packaged, nor does it have the static libraries, which is why you get the error messages:

"../../../Externals/wxWidgets3/libwx.a(utilsgtk.cpp.o): In function `GetSM()':"

The linker is looking for a static library that just isn't there.

But the text you quoted says something different:

(12-28-2017, 11:48 PM)freky Wrote: The development version of Dolphin requires at least WxWidgets 3.1.0, so you don't need install libwxbase3.0-dev and libwxgtk3.0-dev; Dolphin will build it from Externals folder.

Aka Dolphin already ship with WxWidget 3.1 sources that is compiled. The line just says that the linker that links with the self-build WxWidget library can't find the 3 functions "SmcOpenConnection", "SmcVendor" and "SmcOpenConnection", which appear in the function GetSM() of that library.

Probably the author installed the development packages, but maybe not the binary packages. It seems the "SmcOpenConnection" function is in libSM (part of X). On the openSUSE package search I can find libSM and libSM6.
Find
12-29-2017, 03:09 AM
#8
Shonumi Offline
Linux User/Tester
**********
Administrators
Posts: 6,502
Threads: 55
Joined: Dec 2011
Please see our rules about necroposting:

Quote:Necroposting: In the "Dolphin Emulator Discussion and Support" and "Dolphin Site" subforums, do not revive a discussion older than 6 months unless your post adds something meaningful or otherwise contributes to the thread. Please create a new thread about your subject instead. Stickied threads and all other subforums are exempt, however, and users can freely post there regardless of how old the topics are.

It's been a while since the OP was on the Dolphin Forums. If they haven't solved their problems in the meantime time, it'd be better to make a new thread if they come back asking about CMake, especially with updated info on their situation.

Closed.
Website Find
« Next Oldest | Next Newest »
Thread Closed 


  • 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