Upbge: SOLVED: Unable to compile UPBGE in Ubuntu 14.04.

Created on 31 Jul 2017  Â·  13Comments  Â·  Source: UPBGE/upbge

Hello UPBGE team!

I have followed the instructions bellow and and I got some compilation errors. I'm using Ubuntu 14.04.

#

Compile from source :

First, download our git repository.
git clone https://github.com/UPBGE/blender && cd blender

Then, install dependencies :
./build_files/build_environment/install_deps.sh

Compile :
make

Then, run :
cd ../build_linux
./blender

#

Here is the full log if you want to check it out:

https://pastebin.com/M0uQHdCe

If you need additional details don't hesitate in asking. :)

Greetings,

Ortiz

All 13 comments

Hello,

I could not reproduce the compile error with BBPlayer enabled, could you provide your build_linux/CMakeCache.txt file please ?

Else you can disable the option WITH_GAMEENGINE_PPLAYER by running ccmake . or an other cmake gui in build_linux directory.

Could you update to last master commit and compile again?
I have committed a possible fix

Hello @panzergame, Thank you again. Here is my CMakeCache.txt: https://pastebin.com/02nJd7Rp

In which text the WITH_GAMEENGINE_PPLAYER is located? I need to comment or erase this option?
I'm really sorry to be such a noob regarding compiling Blender. (‘-’*)

@lordloki Thank you!

I'm sorry I don't know how to overwrite the Blender UPBGE folder. Could you help me?
git clone https://github.com/UPBGE/blender && cd blender
Gave me this: fatal: destination path 'blender' already exists and is not an empty directory.

EDIT: Allright. I simply deleted the older folders. Then I executed this commands again:


First, download our git repository.
git clone https://github.com/UPBGE/blender && cd blender

Then, install dependencies :
./build_files/build_environment/install_deps.sh

Compile :
make

Then, run :
cd ../build_linux
./blender.


But Blender did not compiled again. So I decided to delete the files again because I could not copy the whole log since it was to long and the terminal removed part of the registered processes. But I can't do that because (for some reason) now I have a locked blender file and I don't know how to change it's permissions yet. So here is the partial log that I have at the moment:

https://pastebin.com/y0LzdUcm

EDIT 2: Allright. That fixed my home directory permissions: sudo chown -R $USER: $HOME
Now I can return to the compilation game :)

The error comes from your compiler doesn't support C++11 features by default.
Possible solution:

  • You have to set on enabling WITH_C++11 on CMake (using cmake gui i.e.)

Hi @lordloki ! I now installed CMake from source.
Do you think that Code::Blocks will do it as the graphic user interface?
I don't know where to start. How should I open the project inside Code Blocks? And what is "WITH C++11"? Is ita a... "Flag"?

EDIT 1:
Mmmm... https://cmake.org/runningcmake/

Are you suggesting me to use ccmake by any chance? Does I need to use ccmake in conjunction with the UPGE folder? If so how does the command would look like? Something like... ./ccmake make WITH_C++11?

I'm on gcc 5.3 and this makes it work:

  1. Run ccmake . in the build folder (the one with CMakeCache.txt)
  2. Hit "t" for advanced mode
  3. Find WITH_CXX11 and toggle ON
  4. Configure/generate
  5. make -j4 && make install

Afaik this is required unless you have gcc 6.0 or newer.

Thank you @pqftgs ! I think I'm progressing.

After following your instructions now I'm stuck here:


[ 88%] Linking CXX static library ../../../lib/libbf_freestyle.a
[ 88%] Built target bf_freestyle
make: * [all] Error 2


Do you know any workaround? :)
BTW
chico@chico-linux:/build_linux$ gcc version
gcc ( Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.

UPDATE

Tried a simple "make" (inside build_linux) that lead me to:

(https://pastebin.com/NhQxR0HK)


[ 92%] Building CXX object source/gameengine/GameLogic/CMakeFiles/ge_logic.dir/SCA_KeyboardSensor.cpp.o
/home/chico/blender/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp:41:19: fatal error: codecvt: No such file or directory
#include
^
compilation terminated.
make[2]: * [source/gameengine/GameLogic/CMakeFiles/ge_logic.dir/SCA_KeyboardSensor.cpp.o] Error 1
make[1]:
[source/gameengine/GameLogic/CMakeFiles/ge_logic.dir/all] Error 2
make: *
* [all] Error 2
chico@chico-linux:~/build_linux$


https://gcc.gnu.org/onlinedocs/gcc-4.6.2/libstdc++/api/a00807_source.html


https://www.google.com/url?q=https%3A%2F%2Fpackages.ubuntu.com%2Fsearch%3Fsearchon%3Dcontents%26keywords%3Dcodecvt.h%26mode%3Dexactfilename%26suite%3Dtrusty%26arch%3Dany&sa=D&sntz=1&usg=AFQjCNFXWprQYwtwKFPfZ7mQPvObQnItuw


apt-cache policy libstdc++-4.8-dev
(https://pastebin.com/fJGDrb2h)

chico@chico-linux:/build_linux$ apt-cache policy libstdc++-4.8-dev
libstdc++-4.8-dev:
Installed: 4.8.4-2ubuntu1 14.04.3
Candidate: 4.8.4-2ubuntu1 14.04.3
Version table:
* 4.8.4-2ubuntu1~14.04.3 0
500 http://br.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
4.8.2-19ubuntu1 0
500 http://br.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages


chico@chico-linux: /build_linux$ dpkg -L libstdc++-4.8-dev | grep codecvt.h
/usr/include/c++/4.8/bits/codecvt.h

Irrc i get this issue on the builbot because of an older gcc version, @chicortiz : Could you try an higher version, 6.3 or so ?

gcc 5x should be enought.

@panzergame : Sure thing panzergame! I was suspicious of this gcc version. I will update and try again soon.

Updated to gcc (Ubuntu 5.4.1-2ubuntu1~14.04) 5.4.1 20160904
Whoa! Close?


[ 98%] Building CXX object source/gameengine/Rasterizer/RAS_OpenGLRasterizer/CMakeFiles/ge_oglrasterizer.dir/RAS_StorageVBO.cpp.o
/home/chico/blender/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_StorageVBO.cpp: In member function ‘void VBO::DrawBatching(const std::vector&, const std::vector&)’:
/home/chico/blender/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_StorageVBO.cpp:271 : 100: error: invalid conversion from ‘void’ to ‘const GLvoid {aka const void}’ [-fpermissive]
_mode, counts.data(), GL_UNSIGNED_INT, (void *)indices.data(), counts.size());
^
make[2]: *
[source/gameengine/Rasterizer/RAS_OpenGLRasterizer/CMakeFiles/ge_oglrasterizer.dir/RAS_StorageVBO.cpp.o] Error 1
make[1]:
[source/gameengine/Rasterizer/RAS_OpenGLRasterizer/CMakeFiles/ge_oglrasterizer.dir/all] Error 2
make: *
[all] Error 2


Full log:
https://pastebin.com/1rJfEB9i

Greetings!

Ortiz

it should be fine in master now.

Yay! Problem SOLVED! :) Thank you so much for your patience guys!!!

goo.gl/793aiy


Here is how I'm proceeding at the moment (critics are VERY welcome):

1) Deleted the old folders (blender and build_linux).
2) git clone https://github.com/UPBGE/blender && cd blender
3) ./build_files/build_environment/install_deps.sh
4) make
4.1) Error
5) Run ccmake . in the build folder (the one with CMakeCache.txt)
6) Hit "t" for advanced mode
7) Find WITH_CXX11 and toggle ON
8) Configure/generate
make -j4 && make install


Forgive me mine "bulldozer" kind of logic. In the end I'm a redneck.
It's even an insult to name that as logic.
xD

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vlad0337187 picture vlad0337187  Â·  7Comments

marechal-p picture marechal-p  Â·  6Comments

RomStef picture RomStef  Â·  7Comments

IzaZed picture IzaZed  Â·  6Comments

UnidayStudio picture UnidayStudio  Â·  4Comments