OpenTechEngine / OpenTechBFG

Engine based on (RB) Doom 3 BFG aiming to allow the creation of standalone games
Other
85 stars 11 forks source link

can't compile it #42

Closed BielBdeLuna closed 9 years ago

BielBdeLuna commented 9 years ago

I'm on branch cegui_rebase

i've compiled with: on the folder where I have it

mkdir build

cd build

cmake ../neo/

make

here is the error:

[ 30%] Building CXX object CMakeFiles/OpenTechEngine.dir/framework/Common.cpp.o
/usr/local/share/d3bfg/src/OpenTechBFGceGUI/neo/framework/Common.cpp: In member function ‘void idCommonLocal::LoadGameDLL()’:
/usr/local/share/d3bfg/src/OpenTechBFGceGUI/neo/framework/Common.cpp:1066:45: error: no matching function for call to ‘idFileSystem::FindDLL(const char [5], char [256], bool)’
  fileSystem->FindDLL( "game", dllPath, true );
                                             ^
/usr/local/share/d3bfg/src/OpenTechBFGceGUI/neo/framework/Common.cpp:1066:45: note: candidate is:
In file included from /usr/local/share/d3bfg/src/OpenTechBFGceGUI/neo/framework/Common.cpp:47:0:
/usr/local/share/d3bfg/src/OpenTechBFGceGUI/neo/framework/../framework/FileSystem.h:173:17: note: virtual void idFileSystem::FindDLL(const char*, char*)
  virtual void   FindDLL( const char* basename, char dllPath[ MAX_OSPATH ] ) = 0;
                 ^
/usr/local/share/d3bfg/src/OpenTechBFGceGUI/neo/framework/../framework/FileSystem.h:173:17: note:   candidate expects 2 arguments, 3 provided
/usr/local/share/d3bfg/src/OpenTechBFGceGUI/neo/framework/Common.cpp:1086:11: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
   gameDLL = NULL;
           ^
/usr/local/share/d3bfg/src/OpenTechBFGceGUI/neo/framework/Common.cpp:1110:11: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
   gameDLL = NULL;
           ^
/usr/local/share/d3bfg/src/OpenTechBFGceGUI/neo/framework/Common.cpp: In member function ‘void idCommonLocal::UnloadGameDLL()’:
/usr/local/share/d3bfg/src/OpenTechBFGceGUI/neo/framework/Common.cpp:1159:11: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
   gameDLL = NULL;
           ^
/usr/local/share/d3bfg/src/OpenTechBFGceGUI/neo/framework/Common.cpp: In member function ‘virtual void idCommonLocal::Shutdown()’:
/usr/local/share/d3bfg/src/OpenTechBFGceGUI/neo/framework/Common.cpp:1526:2: error: ‘idCEGUI’ has not been declared
  idCEGUI::Destroy();
  ^
CMakeFiles/OpenTechEngine.dir/build.make:468: recipe for target 'CMakeFiles/OpenTechEngine.dir/framework/Common.cpp.o' failed
make[2]: *** [CMakeFiles/OpenTechEngine.dir/framework/Common.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/OpenTechEngine.dir/all' failed
make[1]: *** [CMakeFiles/OpenTechEngine.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
BielBdeLuna commented 9 years ago

BFG doesn't use DLL so it's strange

and also IdCEGUI not declared?

if I try to compile the master branch I get the same error in Common.cpp, if I want to try the new ceGUIs I have to compile the cegui_rebase branch isn't it? has someone compiled it succesfully?

kortemik commented 9 years ago

Hey @BielBdeLuna you should be running cmake ../ not cmake ../neo/ Please use the bat-scripts in scripts directory they should get you to the goal

BielBdeLuna commented 9 years ago

ah ok, I hadn't seen the scripts...

I did cmake-eclipse-linux-profile.sh (with SDL2 off)

and got the following message:

biel@Biel-laptop:/usr/local/share/d3bfg/src/OpenTechBFGceGUI/scripts$ ./cmake-eclipse-linux-profile.sh 
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Could not determine Eclipse version, assuming at least 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong.
-- 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
-- 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
-- CMAKE_BUILD_TYPE:RelWithDebInfo
-- CMAKE_BUILD_TYPE:RelWithDebInfo
-- CMAKE_BUILD_TYPE:RelWithDebInfo
-- CMAKE_BUILD_TYPE:RelWithDebInfo
-- CMAKE_BUILD_TYPE:RelWithDebInfo
CMake Error at libs/cegui/CMakeLists.txt:124 (add_subdirectory):
  The source directory

    /usr/local/share/d3bfg/src/OpenTechBFGceGUI/libs/cegui/CEGUI.git

  does not contain a CMakeLists.txt file.

-- CMAKE_BUILD_TYPE:RelWithDebInfo
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15") 
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so  
-- Configuring incomplete, errors occurred!
See also "/usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeOutput.log".
See also "/usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeError.log".

and then tried to compile it but obviously....

cd ..
cd build
make
make: *** No targets specified and no makefile found.  Stop.
kortemik commented 9 years ago

I see, it's not been fixed but the debug is. We only use debug builds at the moment, but it's possible to fix that one too np. Would you like me to do it?

On Thu, Jul 2, 2015 at 7:08 PM, Biel Bestué de Luna < notifications@github.com> wrote:

ah ok, I hadn't seen the scripts...

I did cmake-eclipse-linux-profile.sh

and got the following message:

biel@Biel-laptop:/usr/local/share/d3bfg/src/OpenTechBFGceGUI/scripts$ ./cmake-eclipse-linux-profile.sh -- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- Could not determine Eclipse version, assuming at least 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong. -- 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 -- 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 -- CMAKE_BUILD_TYPE:RelWithDebInfo -- CMAKE_BUILD_TYPE:RelWithDebInfo -- CMAKE_BUILD_TYPE:RelWithDebInfo -- CMAKE_BUILD_TYPE:RelWithDebInfo -- CMAKE_BUILD_TYPE:RelWithDebInfo CMake Error at libs/cegui/CMakeLists.txt:124 (add_subdirectory): The source directory

/usr/local/share/d3bfg/src/OpenTechBFGceGUI/libs/cegui/CEGUI.git

does not contain a CMakeLists.txt file.

-- CMAKE_BUILD_TYPE:RelWithDebInfo -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found SDL: /usr/lib/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15") -- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so -- Configuring incomplete, errors occurred! See also "/usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeOutput.log". See also "/usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeError.log".

and then tried to compile it but obviously....

cd .. cd build make make: *\ No targets specified and no makefile found. Stop.

— Reply to this email directly or view it on GitHub https://github.com/OpenTechEngine/OpenTechBFG/issues/42#issuecomment-117989283 .

BielBdeLuna commented 9 years ago

no, let me first try to compile a debug build...

I get the same error compiling with debug (SDL2 off):

/scripts$ ./cmake-eclipse-linux-debug.sh 
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Could not determine Eclipse version, assuming at least 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong.
-- 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
-- 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
-- CMAKE_BUILD_TYPE:Debug
-- CMAKE_BUILD_TYPE:Debug
-- CMAKE_BUILD_TYPE:Debug
-- CMAKE_BUILD_TYPE:Debug
-- CMAKE_BUILD_TYPE:Debug
CMake Error at libs/cegui/CMakeLists.txt:124 (add_subdirectory):
  The source directory

    /usr/local/share/d3bfg/src/OpenTechBFGceGUI/libs/cegui/CEGUI.git

  does not contain a CMakeLists.txt file.

-- CMAKE_BUILD_TYPE:Debug
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15") 
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so  
-- Configuring incomplete, errors occurred!
See also "/usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeOutput.log".
See also "/usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeError.log".

here is CMakeError.log:

Determining if the pthread_create exist failed with the following output:
Change Dir: /usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec2928253292/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2928253292.dir/build.make CMakeFiles/cmTryCompileExec2928253292.dir/build
make[1]: Entering directory '/usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2928253292.dir/CheckSymbolExists.c.o
/usr/bin/cc    -o CMakeFiles/cmTryCompileExec2928253292.dir/CheckSymbolExists.c.o   -c /usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec2928253292
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2928253292.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTryCompileExec2928253292.dir/CheckSymbolExists.c.o  -o cmTryCompileExec2928253292 -rdynamic 
CMakeFiles/cmTryCompileExec2928253292.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTryCompileExec2928253292.dir/build.make:88: recipe for target 'cmTryCompileExec2928253292' failed
make[1]: *** [cmTryCompileExec2928253292] Error 1
make[1]: Leaving directory '/usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeTmp'
Makefile:118: recipe for target 'cmTryCompileExec2928253292/fast' failed
make: *** [cmTryCompileExec2928253292/fast] Error 2

File /usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec2794973584/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2794973584.dir/build.make CMakeFiles/cmTryCompileExec2794973584.dir/build
make[1]: Entering directory '/usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2794973584.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec2794973584.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.0/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2794973584
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2794973584.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec2794973584.dir/CheckFunctionExists.c.o  -o cmTryCompileExec2794973584 -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTryCompileExec2794973584.dir/build.make:88: recipe for target 'cmTryCompileExec2794973584' failed
make[1]: Leaving directory '/usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec2794973584] Error 1
Makefile:118: recipe for target 'cmTryCompileExec2794973584/fast' failed
make: *** [cmTryCompileExec2794973584/fast] Error 2
kortemik commented 9 years ago

you need to run git submodule init git submodule update

BielBdeLuna commented 9 years ago

ok, compiled! :) what is git submodule?

kortemik commented 9 years ago

git submodule is a reference to another repository

like we have OpenTechBFG and we still need CEGUI to build it, we reference that directory libs/cegui/CEGUI should have contents from another repository.

We don't want to mix their code with ours but we still need it to build our standalone kit.

[kordex@attitude OpenTechBFG]$ cat .gitmodules [submodule "libs/cegui/CEGUI.git"] path = libs/cegui/CEGUI.git url = https://github.com/OpenTechEngine/CEGUI.git

BielBdeLuna commented 9 years ago

If I try to play start the engine I get this:

$ ./OpenTechEngine 
./OpenTechEngine: error while loading shared libraries: libCEGUIBase-0.so.2: cannot open shared object file: No such file or directory

and if I "sudo make install" it doesn't install it successfully:

$ sudo make install
sudo: unable to resolve host Biel-laptop
[sudo] password for biel: 
[  7%] Built target jpeg
[  8%] Built target minizip
[ 11%] Built target zlib
[ 13%] Built target png
[ 13%] Built target glew
[ 36%] Built target CEGUIBase-0
[ 39%] Built target CEGUIOpenGLRenderer-0
[ 39%] Built target CEGUIRapidXMLParser
[ 40%] Built target CEGUISTBImageCodec
[ 44%] Built target CEGUICoreWindowRendererSet
[ 45%] Built target CEGUICommonDialogs-0
[ 54%] Built target idlib
[100%] Built target OpenTechEngine
Install the project...
-- Install configuration: "Debug"
CMake Error at libs/cegui/CEGUI.git/cmake_install.cmake:36 (file):
  file INSTALL cannot find
  "/usr/local/share/d3bfg/src/OpenTechBFGceGUI/build/cegui/CEGUI-0.pc".
Call Stack (most recent call first):
  libs/cegui/cmake_install.cmake:37 (include)
  cmake_install.cmake:41 (include)

Makefile:66: recipe for target 'install' failed
make: *** [install] Error 1

where do I should put any additional generated libs?

kortemik commented 9 years ago

I have never tried the install target aka "make install" so let's forget that for now.

About the libs I think they must locate right by the side of the binary. If I recall right, you should rather copy the base to the folder where you compiled the OpenTechEngine and not the way around.

We have a fix for this too but currently I think it's like this.

BielBdeLuna commented 9 years ago

copied "lib" and "libs" and "OpenTechEngine" from the Build directory to the d3bfg directory and it works

copied the "cegui" directory from the gitrespositorydirectory/base/ to the d3bfgdirectory/base/

then I tried it: $ ./OpenTechEngine

it works, although the menu is a black menu

kortemik commented 9 years ago

shouldn't be black. perhaps well it might be due to fullscreen but well console works?

BielBdeLuna commented 9 years ago

the console works

BielBdeLuna commented 9 years ago

it's not only black it has a "main menu" text in the middle in white,

I see that the console doesn't auto-complete the commands

kortemik commented 9 years ago

yea the autocomplete is an enchanment, of small work. It will be there, the code in the old console system was bit too hacky to use with cegui.

I wonder why it shows you just the "main menu" text, the layout definition has as of

https://github.com/OpenTechEngine/OpenTechBFG/blob/cegui_assets/base/cegui/layouts/MainMenu/MainMenu.layout

"Welcome To OpenTechEngine. This is the Main Menu. Find out more at https://github.com/OpenTechEngine"

And button bar at the top of the window to show Campaign/Multiplayer/Settings/Credits/Quit

Oh well, I will see it though once I get a decent computer nearby.

One thing I was left to wonder with is are the binaries still built the latest commit of cegui_layout branch?

Past layout was shaped like this but the latest should be bit different. Perhaps it's due to resolution issues.

http://i.imgur.com/xTtn142.png

BielBdeLuna commented 9 years ago

After copying the contents of "cegui" in the cegui_assets branch to the base folder I get a "double fault Segmentation fault":

$ ./OpenTechEngine
QA Timing INIT: 000141ms
BFG $Id: dcd8e55779c1e60db3a45f80c3acbcc89691f688 $.1401-debug linux-x86_86 Jul  3 2015 17:10:11
found interface lo - loopback
found interface wlan0 - 192.168.1.133/255.255.255.0
------ Initializing File System ------
Loaded resource file _common.resources
Loaded resource file _ordered.resources
Loaded resource file _sound_pc.resources
Loaded resource file _sound_pc_en.resources
Loaded resource file maps/admin.resources
Loaded resource file maps/alphalabs1.resources
Loaded resource file maps/alphalabs2.resources
Loaded resource file maps/alphalabs3.resources
Loaded resource file maps/alphalabs4.resources
Loaded resource file maps/caverns1.resources
Loaded resource file maps/caverns2.resources
Loaded resource file maps/comm1.resources
Loaded resource file maps/commoutside.resources
Loaded resource file maps/cpu.resources
Loaded resource file maps/cpuboss.resources
Loaded resource file maps/d3ctf1.resources
Loaded resource file maps/d3ctf2.resources
Loaded resource file maps/d3ctf3.resources
Loaded resource file maps/d3ctf4.resources
Loaded resource file maps/d3dm1.resources
Loaded resource file maps/d3dm2.resources
Loaded resource file maps/d3dm3.resources
Loaded resource file maps/d3dm4.resources
Loaded resource file maps/d3dm5.resources
Loaded resource file maps/d3xpdm1.resources
Loaded resource file maps/d3xpdm2.resources
Loaded resource file maps/d3xpdm3.resources
Loaded resource file maps/d3xpdm4.resources
Loaded resource file maps/delta1.resources
Loaded resource file maps/delta2a.resources
Loaded resource file maps/delta2b.resources
Loaded resource file maps/delta3.resources
Loaded resource file maps/delta4.resources
Loaded resource file maps/delta5.resources
Loaded resource file maps/deltax.resources
Loaded resource file maps/enpro.resources
Loaded resource file maps/erebus1.resources
Loaded resource file maps/erebus2.resources
Loaded resource file maps/erebus3.resources
Loaded resource file maps/erebus4.resources
Loaded resource file maps/erebus5.resources
Loaded resource file maps/erebus6.resources
Loaded resource file maps/hell.resources
Loaded resource file maps/hell1.resources
Loaded resource file maps/hellhole.resources
Loaded resource file maps/le_enpro1.resources
Loaded resource file maps/le_enpro2.resources
Loaded resource file maps/le_exis1.resources
Loaded resource file maps/le_exis2.resources
Loaded resource file maps/le_hell.resources
Loaded resource file maps/le_hell_post.resources
Loaded resource file maps/le_underground.resources
Loaded resource file maps/le_underground2.resources
Loaded resource file maps/mars_city1.resources
Loaded resource file maps/mars_city2.resources
Loaded resource file maps/mc_underground.resources
Loaded resource file maps/monorail.resources
Loaded resource file maps/phobos1.resources
Loaded resource file maps/phobos2.resources
Loaded resource file maps/phobos3.resources
Loaded resource file maps/phobos4.resources
Loaded resource file maps/recycling1.resources
Loaded resource file maps/recycling2.resources
Loaded resource file maps/site3.resources
Current search path:
/home/biel/.rbdoom3bfg/base
/usr/local/share/d3bfg/base
_common.resources
_ordered.resources
_sound_pc.resources
_sound_pc_en.resources
maps/admin.resources
maps/alphalabs1.resources
maps/alphalabs2.resources
maps/alphalabs3.resources
maps/alphalabs4.resources
maps/caverns1.resources
maps/caverns2.resources
maps/comm1.resources
maps/commoutside.resources
maps/cpu.resources
maps/cpuboss.resources
maps/d3ctf1.resources
maps/d3ctf2.resources
maps/d3ctf3.resources
maps/d3ctf4.resources
maps/d3dm1.resources
maps/d3dm2.resources
maps/d3dm3.resources
maps/d3dm4.resources
maps/d3dm5.resources
maps/d3xpdm1.resources
maps/d3xpdm2.resources
maps/d3xpdm3.resources
maps/d3xpdm4.resources
maps/delta1.resources
maps/delta2a.resources
maps/delta2b.resources
maps/delta3.resources
maps/delta4.resources
maps/delta5.resources
maps/deltax.resources
maps/enpro.resources
maps/erebus1.resources
maps/erebus2.resources
maps/erebus3.resources
maps/erebus4.resources
maps/erebus5.resources
maps/erebus6.resources
maps/hell.resources
maps/hell1.resources
maps/hellhole.resources
maps/le_enpro1.resources
maps/le_enpro2.resources
maps/le_exis1.resources
maps/le_exis2.resources
maps/le_hell.resources
maps/le_hell_post.resources
maps/le_underground.resources
maps/le_underground2.resources
maps/mars_city1.resources
maps/mars_city2.resources
maps/mc_underground.resources
maps/monorail.resources
maps/phobos1.resources
maps/phobos2.resources
maps/phobos3.resources
maps/phobos4.resources
maps/recycling1.resources
maps/recycling2.resources
maps/site3.resources
file system initialized.
--------------------------------------
WARNING: Unable to open resource file maps/_startup.resources
----- Initializing Decls -----
------------------------------
Couldn't open journal files
/proc/cpuinfo CPU processors: 4
/proc/cpuinfo CPU logical cores: 2
execing default.cfg
execing D3BFGConfig.cfg
couldn't exec autoexec.cfg
----- R_InitOpenGL -----
Initializing OpenGL subsystem
Using 8 color bits, 24 depth, 8 stencil display
Using GLEW 1.10.0
CEGUI::UnknownObjectException in function 'CEGUI::NamedElement* CEGUI::NamedElement::getChildElement(const CEGUI::String&) const' (/usr/local/share/d3bfg/src/OpenTechBFGceGUI/libs/cegui/CEGUI.git/cegui/src/NamedElement.cpp:150) : The Element object referenced by 'DemoMapClickArea' is not attached to Element at 'root/MainMenu'.
terminate called after throwing an instance of 'CEGUI::UnknownObjectException'
  what():  CEGUI::UnknownObjectException in function 'CEGUI::NamedElement* CEGUI::NamedElement::getChildElement(const CEGUI::String&) const' (/usr/local/share/d3bfg/src/OpenTechBFGceGUI/libs/cegui/CEGUI.git/cegui/src/NamedElement.cpp:150) : The Element object referenced by 'DemoMapClickArea' is not attached to Element at 'root/MainMenu'.
signal caught: Aborted
si_code -6
Trying to exit gracefully..
session->GetSaveGameManager().CancelToTerminate();
soundSystem->StopAllSounds();
Stop();
--------- Game Map Shutdown ----------
--------------------------------------
Setup OpenAL device and context... Done.
OpenAL vendor: OpenAL Community
OpenAL renderer: OpenAL Soft
OpenAL version: 1.1 ALSOFT 1.15.1
OpenAL extensions: AL_EXT_ALAW AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXT_source_distance_model AL_LOKI_quadriphonic AL_SOFT_buffer_samples AL_SOFT_buffer_sub_data AL_SOFTX_deferred_updates AL_SOFT_direct_channels AL_SOFT_loop_points AL_SOFT_source_latency
CleanupShell();
delete loadGUI;
idCEGUI::Destroy();
double fault Segmentation fault, bailing out
AL lib: (EE) alc_cleanup: 1 device not closed
BielBdeLuna commented 9 years ago

for the others Mikko informed me that I was using the wrong branch for the engine, the correct branch is cegui_layout

and for the assets cegui_assets

now I tried to compile with SDL2 on and got this error:

[ 99%] Building CXX object neo/CMakeFiles/OpenTechEngine.dir/sys/sdl/sdl_events.cpp.o
/usr/local/share/d3bfg/src/OTEengine/neo/sys/sdl/sdl_events.cpp: In function ‘int BFG::SDLScanCodeToKeyNum(SDL_Scancode)’:
/usr/local/share/d3bfg/src/OTEengine/neo/sys/sdl/sdl_events.cpp:170:9: error: ‘scanCodeToKeyNum’ was not declared in this scope
  return scanCodeToKeyNum[idx];
         ^
/usr/local/share/d3bfg/src/OTEengine/neo/sys/sdl/sdl_events.cpp:170:9: note: suggested alternative:
In file included from /usr/local/share/d3bfg/src/OTEengine/neo/sys/sdl/sdl_events.cpp:163:0:
/usr/local/share/d3bfg/src/OTEengine/neo/sys/sdl/sdl2_scancode_mappings.h:35:12: note:   ‘BFG::BFG::scanCodeToKeyNum’
 static int scanCodeToKeyNum[SDL_NUM_SCANCODES] =
            ^
/usr/local/share/d3bfg/src/OTEengine/neo/sys/sdl/sdl_events.cpp: In function ‘SDL_Scancode BFG::KeyNumToSDLScanCode(int)’:
/usr/local/share/d3bfg/src/OTEengine/neo/sys/sdl/sdl_events.cpp:179:8: error: ‘scanCodeToKeyNum’ was not declared in this scope
    if( scanCodeToKeyNum[i] == keyNum )
        ^
/usr/local/share/d3bfg/src/OTEengine/neo/sys/sdl/sdl_events.cpp:179:8: note: suggested alternative:
In file included from /usr/local/share/d3bfg/src/OTEengine/neo/sys/sdl/sdl_events.cpp:163:0:
/usr/local/share/d3bfg/src/OTEengine/neo/sys/sdl/sdl2_scancode_mappings.h:35:12: note:   ‘BFG::BFG::scanCodeToKeyNum’
 static int scanCodeToKeyNum[SDL_NUM_SCANCODES] =
            ^
/usr/local/share/d3bfg/src/OTEengine/neo/sys/sdl/sdl_events.cpp: In function ‘int BFG::SDLScanCodeToKeyNum(SDL_Scancode)’:
/usr/local/share/d3bfg/src/OTEengine/neo/sys/sdl/sdl_events.cpp:171:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
neo/CMakeFiles/OpenTechEngine.dir/build.make:6885: recipe for target 'neo/CMakeFiles/OpenTechEngine.dir/sys/sdl/sdl_events.cpp.o' failed
make[2]: *** [neo/CMakeFiles/OpenTechEngine.dir/sys/sdl/sdl_events.cpp.o] Error 1
CMakeFiles/Makefile2:795: recipe for target 'neo/CMakeFiles/OpenTechEngine.dir/all' failed
make[1]: *** [neo/CMakeFiles/OpenTechEngine.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

now I'm compiling with SDL2 off...