ValyriaTear Ubuntu 18.04 Git compilation

ValyriaTear Ubuntu 18.04 Git compilation

Postby eliodilar » 13 Dec 2019, 13:10

hie,

I try to realise compilation of the github repository and i have that error.
Someone know where i can find that file?

-- Detected Debian System
-- Build type: Release
-- l10n support enabled
-- Using included luabind files
-- Using included utils files
CMake Error: File /home/ti/Software/valdev/ValyriaTear/src/luabind/build_information.hpp.cmake_in does not exist.
CMake Error at src/CMakeLists.txt:156 (CONFIGURE_FILE):
CONFIGURE_FILE Problem configuring file


-- Configured luabind information file...
-- Configuring incomplete, errors occurred!
See also "/home/ti/Software/valdev/Valbuild/CMakeFiles/CMakeOutput.log".
See also "/home/ti/Software/valdev/Valbuild/CMakeFiles/CMakeError.log".
eliodilar
 
Posts: 14
Joined: 09 Dec 2019, 14:10

Re: ValyriaTear Ubuntu 18.04 Git compilation

Postby eliodilar » 13 Dec 2019, 13:13

howw i have find i think, i must extract luabind-1.1.0 in src of valyriatear
eliodilar
 
Posts: 14
Joined: 09 Dec 2019, 14:10

Re: ValyriaTear Ubuntu 18.04 Git compilation

Postby Bertram » 13 Dec 2019, 15:29

Hey,

ValyriaTear has submodule. It means you have to initialize them the first time.
See the readme.md: git submodule update --init --remote --force

Cheers,
User avatar
Bertram
VT Moderator
 
Posts: 1652
Joined: 09 Nov 2012, 12:26

Re: ValyriaTear Ubuntu 18.04 Git compilation

Postby eliodilar » 13 Dec 2019, 22:34

oki thanks
eliodilar
 
Posts: 14
Joined: 09 Dec 2019, 14:10

Re: ValyriaTear Ubuntu 18.04 Git compilation

Postby eliodilar » 14 Dec 2019, 20:24

doesn't ok.

what i do :
git clone https://github.com/ValyriaTear/ValyriaTear.git
cd ValyriaTear
git submodule update --init --remote --force
cd ..
cmake -S $(pwd)/ValyriaTear -B $(pwd)/../new


result:
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /snap/cmake/192/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler

"/usr/bin/cc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/ti/Software/new/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_1be99/fast && /usr/bin/make -f CMakeFiles/cmTC_1be99.dir/build.make CMakeFiles/cmTC_1be99.dir/build
make[1] : on entre dans le répertoire « /home/ti/Software/new/CMakeFiles/CMakeTmp »
Building C object CMakeFiles/cmTC_1be99.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_1be99.dir/testCCompiler.c.o -c /home/ti/Software/new/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_1be99
/snap/cmake/192/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1be99.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_1be99.dir/testCCompiler.c.o -o cmTC_1be99
collect2: fatal error: ld terminated with signal 11 [Erreur de segmentation], core dumped
compilation terminated.
CMakeFiles/cmTC_1be99.dir/build.make:86: recipe for target 'cmTC_1be99' failed
make[1]: *** [cmTC_1be99] Error 1
make[1] : on quitte le répertoire « /home/ti/Software/new/CMakeFiles/CMakeTmp »
Makefile:121: recipe for target 'cmTC_1be99/fast' failed
make: *** [cmTC_1be99/fast] Error 2





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:4 (PROJECT)


-- Configuring incomplete, errors occurred!
See also "/home/ti/Software/new/CMakeFiles/CMakeOutput.log".
See also "/home/ti/Software/new/CMakeFiles/CMakeError.log".
eliodilar
 
Posts: 14
Joined: 09 Dec 2019, 14:10

Re: ValyriaTear Ubuntu 18.04 Git compilation

Postby GunChleoc » 15 Dec 2019, 11:54

Have you tried following the standard procedure before doing our own? Maybe it doesn't like that you're i the superdirectory.

{l Code}: {l Select All Code}
git clone https://github.com/ValyriaTear/ValyriaTear.git
cd ValyriaTear
git submodule update --init --remote --force
cmake .
make
User avatar
GunChleoc
 
Posts: 502
Joined: 20 Sep 2012, 22:45

Re: ValyriaTear Ubuntu 18.04 Git compilation

Postby eliodilar » 15 Dec 2019, 12:44

yep,

hello yes i have make that, but in experience i know that is no ggod to make compilation ans c make in git repository.
i have successufully cmake and , compile, but i have a probleme on data location, i have see that there is something about that in readme, i will see that.
i dont know why, but the problem, was, that Luabind whas install at top level from valyria tear O_o, i have also remove some glib and make a new installation of that.

know i have only a problem of data location when i execute ./valyriatear.

ERROR:/home/ti/Software/Valdev/ValyriaTear/src/main.cpp:main:518:
EXCEPTION:/home/ti/Software/Valdev/ValyriaTear/src/main.cpp:main:493: ERROR: failed to change directory to data location
eliodilar
 
Posts: 14
Joined: 09 Dec 2019, 14:10

Re: ValyriaTear Ubuntu 18.04 Git compilation

Postby eliodilar » 15 Dec 2019, 12:50

#elif (defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(SOLARIS)) && !defined(RELEASE_BUILD)
// Look for data files in DATADIR only if they are not available in the current directory.
if(!std::ifstream("data/config/settings.lua").good()) {
if(chdir(PKG_DATADIR) != 0) {
throw Exception("ERROR: failed to change directory to data location",
__FILE__, __LINE__, __FUNCTION__);
}
}


main.cpp

there is a probleme with PKG_DATADIR in cmake_file,
i have the path "data/config/settings.lua", but it does nt find, so i think there is a probleme during cmake $PKG_DATADIR declaration.
eliodilar
 
Posts: 14
Joined: 09 Dec 2019, 14:10

Re: ValyriaTear Ubuntu 18.04 Git compilation

Postby eliodilar » 15 Dec 2019, 19:46

Ok i have understand!....

you use src/valyriatear to launch the game from valyriatear folder, so there is no problème to find data/config/settings.lua.
Me i go to src and do ./valyriatear, and as i'm not in valyriatear folder, the launcher can"t find data/config/settings.lua, because data is accessible from a top level and the real line should be to execute it from src "../data/config/settings.lua"
the game have begin, jha has ust a warning on joystick miss.

WARNING:/home/ti/Software/Valdev/ValyriaTear/src/engine/input.cpp:InitializeJoysticks:140:
No joysticks found, couldn't initialize the joystick subsystem.



the probleme is solved and topic is closed .
eliodilar
 
Posts: 14
Joined: 09 Dec 2019, 14:10

Who is online

Users browsing this forum: No registered users and 1 guest