Ubuntu 16.04 compile failing
Started by evozero




3 posts in this topic
evozero
Unregistered


 
09-01-2016, 12:18 PM -
#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


Messages In This Thread
RE: Ubuntu 16.04 compile failing - by evozero - 09-01-2016, 12:18 PM
RE: Ubuntu 16.04 compile failing - by Nezarn - 09-01-2016, 12:58 PM
RE: Ubuntu 16.04 compile failing - by evozero - 09-07-2016, 11:20 AM
RE: Ubuntu 16.04 compile failing - by Nezarn - 09-07-2016, 12:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)