• 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 ... 45 46 47 48 49 ... 116 Next »

Compilation error on Linux Mint 13
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Compilation error on Linux Mint 13
08-29-2013, 03:51 AM
#1
AutoFire Offline
Member
***
Posts: 85
Threads: 11
Joined: Nov 2011
I attempted to compile the Dolphin 3.5-2145 on Linux Mint 13 (based on Ubuntu 12.04, so no pre-compiled packages for me), and got the following error after running make:

Code:
/home/alec/dolphin-emu/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp: In constructor ‘OGL::FramebufferManager::FramebufferManager(int, int, int, int)’:
/home/alec/dolphin-emu/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp:177:20: error: ‘glClearDepthf’ was not declared in this scope
make[2]: *** [Source/Plugins/Plugin_VideoOGL/CMakeFiles/videoogl.dir/Src/FramebufferManager.cpp.o] Error 1
make[1]: *** [Source/Plugins/Plugin_VideoOGL/CMakeFiles/videoogl.dir/all] Error 2
make: *** [all] Error 2

It seems like the OpenGL plugin won't compile for some reason. I have all dependencies installed, so WTH?
Computer specs in profile
Find
Reply
08-29-2013, 09:28 AM
#2
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,828
Threads: 10
Joined: May 2012
Which version of glew have you installed? You could try to uninstall glew-dev to use the the one provided by dolphin itself.
Find
Reply
08-29-2013, 10:06 AM
#3
AutoFire Offline
Member
***
Posts: 85
Threads: 11
Joined: Nov 2011
(08-29-2013, 09:28 AM)degasus Wrote: Which version of glew have you installed? You could try to uninstall glew-dev to use the the one provided by dolphin itself.
Replacing libglew-dev with the latest version (1.6.0-4) fixed that compile error, but another one popped up:

Code:
/home/alec/dolphin-emu/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp: In constructor ‘OGL::Renderer::Renderer()’:
/home/alec/dolphin-emu/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp:469:42: error: ‘GLEW_ARB_shader_image_load_store’ was not declared in this scope
make[2]: *** [Source/Plugins/Plugin_VideoOGL/CMakeFiles/videoogl.dir/Src/Render.cpp.o] Error 1
make[1]: *** [Source/Plugins/Plugin_VideoOGL/CMakeFiles/videoogl.dir/all] Error 2
make: *** [all] Error 2

Help!
Computer specs in profile
Find
Reply
08-29-2013, 01:00 PM
#4
Shonumi Offline
Linux User/Tester
**********
Administrators
Posts: 6,505
Threads: 55
Joined: Dec 2011
AutoFire Wrote:Replacing libglew-dev with the latest version (1.6.0-4) fixed that compile error, but another one popped up:

Yeah I came across that one recently myself. While this isn't a real solution (afaik), I just replaced the "GLEW_ARB_shader_image_load_store" on line 469 of Render.cpp with "false". Compiles just fine and plays games normally. Dunno if I'm actually breaking something important though.
Website Find
Reply
08-29-2013, 02:14 PM (This post was last modified: 08-29-2013, 02:21 PM by pauldacheez.)
#5
pauldacheez Offline
hot take: fascism is bad
*******
Posts: 1,527
Threads: 1
Joined: Apr 2012
Use the included glew 1.9 by editing CMakeLists.txt so that it doesn't try to use your system glew. Should be as easy as commenting out line 642 ("check_lib(GLEW GLEW GL/glew.h)") with a #.

Or just do a distupgrade (but backup first!). If whatever you upgrade to has glew 1.8 or higher, you're good.
<@skid_au> fishing resort is still broken: http://i.imgur.com/dvPiQKg.png
<@neobrain> dafuq
<+JMC47> no dude, you're just holding the postcard upside down
----------------------------------------
<@Lioncash> pauldachz in charge of shitposting :^)
Website Find
Reply
08-29-2013, 05:18 PM
#6
Shonumi Offline
Linux User/Tester
**********
Administrators
Posts: 6,505
Threads: 55
Joined: Dec 2011
(08-29-2013, 02:14 PM)pauldacheez Wrote: Use the included glew 1.9 by editing CMakeLists.txt so that it doesn't try to use your system glew. Should be as easy as commenting out line 642 ("check_lib(GLEW GLEW GL/glew.h)") with a #.

I completely forgot that I used to statically build and link to the GLEW in externals. I haven't done that since the GLSL branch was in testing, and since it didn't complain about it again until recently, I never edited the CMakesList.txt :p

The OP's running Mint, which uses Ubuntu for it's packages (at least it does for GLEW), and Ubuntu's stuck on 1.8 since 1.9 apparently messes with Unity. Rather than upgrading, adding a simple "#" in one file seems like the best bet to me Wink
Website 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