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:
If you need additional details don't hesitate in asking. :)
Greetings,
Ortiz
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:
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:
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:
ccmake . in the build folder (the one with CMakeCache.txt)make -j4 && make installAfaik 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
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
/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