CMake Error when building the last version Citra

This week when I update Ubuntu 18.04 I watched it change some curl version .I don’t know if that would be the problem .Although when I try to use Citra it couldn’t run .

So I reinstall it ,and when I tried to build using : cmake …/ -DUSE_SYSTEM_CURL=1

,that happen .I follow all the step which are shown ,but I can’t fix it .Thanks in advance .

That show me the Ubuntu terminal :

CMake Error at externals/cryptopp/CMakeLists.txt:204 (add_library):
Cannot find source file:

/home/tyuio/citra/externals/cryptopp/cryptopp/rijndael-simd.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx

CMake Error: Cannot determine link language for target “cryptopp”.
CMake Error: CMake can not determine linker language for target: cryptopp
– Generating done

System Information

  • Operating System: Ubuntu 18.04
  • CPU: Core i7
  • GPU: GEFORCE GT 730
  • Citra Version (found in title bar): the last of git clone --recursive https://github.com/citra-emu/citra at 09/03/2018
  • Game:
  • Screenshot of Issue (include the full Citra window including titlebar):

Log:

:~/citra/build$ cmake …/ -DUSE_SYSTEM_CURL=1
– The C compiler identification is GNU 7.3.0
– The CXX compiler identification is GNU 7.3.0
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - 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
– Detecting CXX compile features
– Detecting CXX compile features - done
– Target architecture: x86_64
– Boost 1.63.0 or newer not found, falling back to externals
– Looking for pthread.h
– Looking for pthread.h - found
– Looking for pthread_create
– Looking for pthread_create - not found
– Check if compiler accepts -pthread
– Check if compiler accepts -pthread - yes
– Found Threads: TRUE
<FindSDL2.cmake>
</FindSDL2.cmake>
– Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so;-pthread
CMake Warning at CMakeLists.txt:304 (message):
Clang format not found! Disabling the clang format target

– Check if the system is big endian
– Searching 16 bit integer
– Looking for sys/types.h
– Looking for sys/types.h - found
– Looking for stdint.h
– Looking for stdint.h - found
– Looking for stddef.h
– Looking for stddef.h - found
– Check size of unsigned short
– Check size of unsigned short - done
– Using unsigned short
– Check if the system is big endian - little endian
– Defaulting to a Release build
– Target architecture: x86_64
– CMake version: 3.10.2
– Version: 3.0.2
– Build type: Release
– Performing Test HAVE_STD_CPP11_FLAG
– Performing Test HAVE_STD_CPP11_FLAG - Success
– Performing Test FMT_CPP11_CMATH
– Performing Test FMT_CPP11_CMATH - Success
– Performing Test FMT_CPP11_UNISTD_H
– Performing Test FMT_CPP11_UNISTD_H - Success
– Performing Test FMT_CPP11_SNPRINTF
– Performing Test FMT_CPP11_SNPRINTF - Success
– Performing Test SUPPORTS_VARIADIC_TEMPLATES
– Performing Test SUPPORTS_VARIADIC_TEMPLATES - Success
– Performing Test SUPPORTS_INITIALIZER_LIST
– Performing Test SUPPORTS_INITIALIZER_LIST - Success
– Performing Test SUPPORTS_ENUM_BASE
– Performing Test SUPPORTS_ENUM_BASE - Success
– Performing Test SUPPORTS_TYPE_TRAITS
– Performing Test SUPPORTS_TYPE_TRAITS - Success
– Performing Test SUPPORTS_USER_DEFINED_LITERALS
– Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
– Looking for open
– Looking for open - found
– Looking for fcntl
– Looking for fcntl - found
– Looking for poll
– Looking for poll - found
– Looking for getaddrinfo
– Looking for getaddrinfo - found
– Looking for getnameinfo
– Looking for getnameinfo - found
– Looking for gethostbyname_r
– Looking for gethostbyname_r - found
– Looking for gethostbyaddr_r
– Looking for gethostbyaddr_r - found
– Looking for inet_pton
– Looking for inet_pton - found
– Looking for inet_ntop
– Looking for inet_ntop - found
– Performing Test HAS_MSGHDR_FLAGS
– Performing Test HAS_MSGHDR_FLAGS - Success
– Check size of socklen_t
– Check size of socklen_t - done
– Checking compiler flags for C++11 support.
– Performing Test COMPILER_SUPPORTS_CXX11
– Performing Test COMPILER_SUPPORTS_CXX11 - Success
– Performing Test COMPILER_SUPPORTS_CXX0X
– Performing Test COMPILER_SUPPORTS_CXX0X - Success
– C++11 is supported.
– C++ Requests CMake Options
– =======================================================
– USE_SYSTEM_CURL: 1
– BUILD_CPR_TESTS: OFF
– GENERATE_COVERAGE: OFF
– CPR_CURL_NOSIGNAL: OFF
– USE_SYSTEM_GTEST: OFF
– CMAKE_USE_OPENSSL: ON
– =======================================================
– Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version “7.58.0”)
– Set CURL_FOUND to TRUE.
– Set CURL_LIBRARIES to /usr/lib/x86_64-linux-gnu/libcurl.so.
– Set CURL_INCLUDE_DIRS to /usr/include/x86_64-linux-gnu.
– Using CURL_INCLUDE_DIRS: /usr/include/x86_64-linux-gnu.
– Using CURL_LIBRARIES: /usr/lib/x86_64-linux-gnu/libcurl.so.
– Configuring done
CMake Error at externals/cryptopp/CMakeLists.txt:204 (add_library):
Cannot find source file:

/home/tyuio/citra/externals/cryptopp/cryptopp/rijndael-simd.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx

CMake Error: Cannot determine link language for target “cryptopp”.
CMake Error: CMake can not determine linker language for target: cryptopp
– Generating done

Did you follow these instructions?

Thanks for your answer .

I’m used to keeping update the whole of my system with :

sudo apt-get update && sudo apt-get upgrade

So I have the last version of cmake for Ubuntu : 3.10.2
And that instruction are for Ubuntu 16.04 the previous stable version .

I’ve always follow the instruction of https://citra-emu.org/wiki/building-for-linux/ and sometime similar happen a year ago (when I couldn’t build Citra) .I remember what change with in the instructions was the dependencies of Curl .And this week Ubuntu update some libraries and other app ,which I can’t recall .

And I have to say I’m installing the main version of Citra .I download it of :git clone --recursive https://github.com/citra-emu/citra

Try updating the git submodules
git submodule update --init --recursive
For more support on building, Join our discord channel.

1 Like

I did it ,of course .Anytime when I want to have what new have happened with Citra (just with the main updates ,not nightly) .I just type:

in the library where is Citra .

-------git pull origin---------- ,and that update the whole citra .And many months ago I’d added the submodules :init and update ,if citra can’t do it for itself typing --recursive .

I keep thinking that trouble is about the change have made Ubuntu more than something done for Citra .Perhaps it’ll be needed to install more libraries or programs .

Thanks for your answer CaptV0rte3x.

Now It’s solved

I tried to compile Citra ,one more time today ,and I watched the line : /home/tyuio/citra/externals/cryptopp/cryptopp/rijndael-simd.cpp

Despite I used to type only : ----git pull origin---- ,for one year .I should typed git submodule init ,git submodule update once again .Because the ------rijndael-simd.cpp----- were missing .

Then I wrote git submodule update ,that file were copied :

$ git submodule update
Ruta de submódulo ‘externals/boost’: check out realizado a ‘7310c95e2320ed262b0600315fa2f762c4b6cc54’
Ruta de submódulo ‘externals/cryptopp/cryptopp’: check out realizado a ‘5be140bcea453a00f7f2fec09fb9e37849d65d98’
Ruta de submódulo ‘externals/fmt’: check out realizado a ‘4d35f94133ed14794e53c9f8627d047b408e0dc7’

Finally I followed the usual step ,and that’s all OK .

I don’t know what happened when I update the whole of my system one week ago .But that’s all good as well as I say .Thanks CaptV0rt3x ,your answer were near to the solved .