This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ubuntu 16.04 compile failing
#1
Hi All,
My first post so please be nice. I searched the forum but couldn't find an answer.
I'm having trouble compiling on ubuntu 16.01, fresh install. has gcc version 5.4.0 installed. here is what I did;
sudo apt install git
git clone https://github.com/RPCS3/rpcs3.git
git submodule update --init
cd rpcs3 && cmake CMakeLists.txt && make && cd ../

The compile seems to go ok up to the point of failure;
Code:
-- cotire 1.7.3 loaded.
-- Initializing RPCS3_SRC_DIR=/home/ian/games/rpcs3/rpcs3
CMake Warning at CMakeLists.txt:83 (find_package):
  Could not find a package configuration file provided by "LLVM" (requested
  version 3.8) with any of the following names:

    LLVMConfig.cmake
    llvm-config.cmake

  Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
  "LLVM_DIR" to a directory containing one of the above files.  If "LLVM"
  provides a separate development package or SDK, be sure it has been
  installed.


-- RPCS3: using builtin libpng
-- RPCS3: using builtin ffmpeg
LLVM not found! LLVM 3.8 is required. RPCS3 will be compiled without LLVM support.
-- dir='/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0'
-- dir='/usr/include/wx-3.0'
-- dir='/home/ian/games/rpcs3/rpcs3/../3rdparty/libpng'
-- dir='/home/ian/games/rpcs3/rpcs3/../3rdparty/ffmpeg/linux/x86_64/include'
-- dir='/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0'
-- dir='/usr/include/wx-3.0'
-- dir='/usr/include'
-- dir='/usr/include/AL'
-- dir='/home/ian/games/rpcs3/rpcs3/../3rdparty/pugixml/src'
-- dir='/home/ian/games/rpcs3/rpcs3'
-- dir='/home/ian/games/rpcs3/rpcs3/Loader'
-- dir='/home/ian/games/rpcs3/rpcs3/Crypto'
-- dir='/home/ian/games/rpcs3/rpcs3/..'
-- dir='/home/ian/games/rpcs3/rpcs3/../Utilities/yaml-cpp/include'
-- dir='/home/ian/games/rpcs3/rpcs3/../asmjit/src/asmjit'
-- dir='/home/ian/games/rpcs3/rpcs3/../3rdparty/GSL/include'
-- dir='/home/ian/games/rpcs3/rpcs3/../rsx_program_decompiler/rsx_decompiler'
-- dir='/home/ian/games/rpcs3/rpcs3/../rsx_program_decompiler/shader_code'
-- dir='/home/ian/games/rpcs3/rpcs3/../Vulkan/Vulkan-LoaderAndValidationLayers/include'
-- dir='/home/ian/games/rpcs3/rpcs3/../Vulkan/glslang/glslang/Public'
-- dir='/home/ian/games/rpcs3/rpcs3/../3rdparty/GL'
-- dir='/home/ian/games/rpcs3/rpcs3/../3rdparty/stblib'
-- dir='/home/ian/games/rpcs3/rpcs3/../rsx_program_decompiler/rsx_decompiler'
-- dir='/home/ian/games/rpcs3/rpcs3/../rsx_program_decompiler/shader_code'
-- dir='/home/ian/games/rpcs3/rpcs3/../3rdparty/cereal/include'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ian/games/rpcs3/rpcs3
[  0%] Generating something_that_never_exists
-- Found Git: /usr/bin/git (found version "2.7.4")
-- GIT_VERSION: 4731-5f15c66
[  0%] Built target GitVersion
[  1%] Linking CXX executable rpcs3
CMakeFiles/rpcs3.dir/CMakeFiles/3.5.1/CompilerIdCXX/CMakeCXXCompilerId.cpp.o: In function `main':
CMakeCXXCompilerId.cpp:(.text+0x0): multiple definition of `main'
CMakeFiles/rpcs3.dir/rpcs3.cpp.o:rpcs3.cpp:(.text+0x514): first defined here
/usr/bin/ld: cannot find -lpng16_static
/usr/bin/ld: cannot find -lrsx_decompiler
/usr/bin/ld: cannot find -lshader_code
collect2: error: ld returned 1 exit status
CMakeFiles/rpcs3.dir/build.make:10589: recipe for target 'rpcs3' failed
make[2]: *** [rpcs3] Error 1
CMakeFiles/Makefile2:200: recipe for target 'CMakeFiles/rpcs3.dir/all' failed
make[1]: *** [CMakeFiles/rpcs3.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

ls -l /usr/bin/ld gives the output below.
lrwxrwxrwx 1 root root 19 Aug 7 16:43 /usr/bin/ld -> x86_64-linux-gnu-ld

I thought it may be a permission issue as root is the owner of the sim link, so I tried compiling from a root terminal, same error.

Any Ideas?
Many thanks
Ian
Reply
#2
Did you install every dependency?

Quote:sudo apt-get install cmake build-essential libopenal-dev libwxgtk3.0-dev libglew-dev zlib1g-dev libedit-dev libvulkan-dev
PC: i5-4690K | RX 480 | 16GB RAM
Reply
#3
(09-01-2016, 12:58 PM)Nezarn Wrote: Did you install every dependency?

Quote:sudo apt-get install cmake build-essential libopenal-dev libwxgtk3.0-dev libglew-dev zlib1g-dev libedit-dev libvulkan-dev

Thanks for the reply,
I tried your suggestion and they are already installed;
Code:
build-essential is already the newest version (12.1ubuntu2).
libedit-dev is already the newest version (3.1-20150325-1ubuntu2).
libglew-dev is already the newest version (1.13.0-2).
zlib1g-dev is already the newest version (1:1.2.8.dfsg-2ubuntu4).
libopenal-dev is already the newest version (1:1.16.0-3).
libvulkan-dev is already the newest version (1.0.8.0+dfsg1-0ubuntu1).
libwxgtk3.0-dev is already the newest version (3.0.2+dfsg-1.3).
cmake is already the newest version (3.5.1-1ubuntu2).

Not sure what to try next?
Thanks
Ian
Reply
#4
okay after reading your error again

Quote:/usr/bin/ld: cannot find -lpng16_static
/usr/bin/ld: cannot find -lrsx_decompiler
/usr/bin/ld: cannot find -lshader_code

looks like git submodule update --init didn't clone some submodules correctly (check the folders if theres any empty), and also install libpng1.6 (i don't know what is its package called on ubuntu)
PC: i5-4690K | RX 480 | 16GB RAM
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)