Raspberry Pi build

Advanced Wolfenstein 3D source port based upon Wolf4SDL and ZDoom.
[Home] [Download] [HG builds (Win)] [HG builds (Mac)] [Wiki] [Repo]

Moderator: Blzut3

lorecast162
Posts: 12
Joined: Sun Dec 31, 2017 0:26

Raspberry Pi build

Post by lorecast162 »

Hello, has anyone tried to build the source code on a Pi3, raspbian Jessie?
I only did cmake . and then make but it fails.
Do you have any advice or step I didnt take?
Also, if I succeed can I use saves from my windows PC?
Thanks
Blzut3
Developer
Developer
Posts: 491
Joined: Sun Jan 24, 2010 22:21

Re: Raspberry Pi build

Post by Blzut3 »

It has been compiled for the Pi before although it has been awhile. Yes saves are binary compatible although you'll likely have to start with the "--foreignsaves" option to override the game data checks due to bug that isn't quite trivial to solve.

First a side note: When using CMake you should create a build directory and run cmake in there like so:

Code: Select all

mkdir build
cd build
cmake ..
CMake is designed for "out of tree" usage so this allows you to easily cleanup and try again if something gets super messed up by just deleting the build directory.

What is the output that CMake gives you?
lorecast162
Posts: 12
Joined: Sun Dec 31, 2017 0:26

Re: Raspberry Pi build

Post by lorecast162 »

Here's what I get after doing cmake ..
pi@piserver:~/ecwolf-1.3.3-src/build $ cmake ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- 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
-- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.8")
-- Found BZip2: /usr/lib/arm-linux-gnueabihf/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found JPEG: /usr/lib/arm-linux-gnueabihf/libjpeg.so
-- /usr/include
-- /usr/include
-- /home/pi/ecwolf-1.3.3-src/lzma/C
CMake Warning (dev) at CMakeLists.txt:27 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target "zipdir". Use the
target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
wadsrc/CMakeLists.txt:3 (add_pk3)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at gdtoa/CMakeLists.txt:22 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target "arithchk". Use the
target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at gdtoa/CMakeLists.txt:31 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target "qnan". Use the
target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at src/CMakeLists.txt:5 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target "updaterevision". Use
the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.

This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- Looking for pthread.h
-- Looking for 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/arm-linux-gnueabihf/libSDLmain.a;/usr/lib/arm-linux-gnueabihf/libSDL.so;-lpthread (found version "1.2.15")
-- Found SDL_mixer: /usr/lib/arm-linux-gnueabihf/libSDL_mixer.so (found version "1.2.12")
-- Looking for stricmp
-- Looking for stricmp - not found
-- Looking for strnicmp
-- Looking for strnicmp - not found
-- Looking for atoll
-- Looking for atoll - found
-- Performing Test HAS_VA_COPY
-- Performing Test HAS_VA_COPY - Success
-- Checking for module 'gtk+-2.0'
-- Found gtk+-2.0, version 2.24.25
-- Configuring done
CMake Warning (dev) at gdtoa/CMakeLists.txt:48 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "/gd_qnan.h" of target "gdtoa" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at gdtoa/CMakeLists.txt:48 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "/home/pi/ecwolf-1.3.3-src/build/gdtoa/arith.h" of
target "gdtoa" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/pi/ecwolf-1.3.3-src/build
pi@piserver:~/ecwolf-1.3.3-src/build $
lorecast162
Posts: 12
Joined: Sun Dec 31, 2017 0:26

Re: Raspberry Pi build

Post by lorecast162 »

Here after i run make in the build folder:
pi@piserver:~/ecwolf-1.3.3-src/build $ make
Scanning dependencies of target lzma
[ 0%] Building C object lzma/CMakeFiles/lzma.dir/C/7zArcIn.o
[ 1%] Building C object lzma/CMakeFiles/lzma.dir/C/7zBuf.o
[ 2%] Building C object lzma/CMakeFiles/lzma.dir/C/7zCrc.o
[ 2%] Building C object lzma/CMakeFiles/lzma.dir/C/7zCrcOpt.o
[ 3%] Building C object lzma/CMakeFiles/lzma.dir/C/7zDec.o
[ 4%] Building C object lzma/CMakeFiles/lzma.dir/C/7zStream.o
[ 4%] Building C object lzma/CMakeFiles/lzma.dir/C/Bcj2.o
[ 5%] Building C object lzma/CMakeFiles/lzma.dir/C/Bra.o
[ 5%] Building C object lzma/CMakeFiles/lzma.dir/C/Bra86.o
[ 6%] Building C object lzma/CMakeFiles/lzma.dir/C/BraIA64.o
[ 7%] Building C object lzma/CMakeFiles/lzma.dir/C/CpuArch.o
[ 7%] Building C object lzma/CMakeFiles/lzma.dir/C/Delta.o
[ 8%] Building C object lzma/CMakeFiles/lzma.dir/C/LzFind.o
[ 8%] Building C object lzma/CMakeFiles/lzma.dir/C/Lzma2Dec.o
[ 9%] Building C object lzma/CMakeFiles/lzma.dir/C/LzmaDec.o
[ 10%] Building C object lzma/CMakeFiles/lzma.dir/C/LzmaEnc.o
[ 10%] Building C object lzma/CMakeFiles/lzma.dir/C/Ppmd7.o
[ 11%] Building C object lzma/CMakeFiles/lzma.dir/C/Ppmd7Dec.o
[ 12%] Linking C static library liblzma.a
[ 12%] Built target lzma
Scanning dependencies of target zipdir
[ 13%] Building C object tools/zipdir/CMakeFiles/zipdir.dir/zipdir.o
[ 14%] Linking C executable zipdir
[ 14%] Built target zipdir
Scanning dependencies of target updaterevision
[ 15%] Building C object tools/updaterevision/CMakeFiles/updaterevision.dir/updaterevision.o
[ 15%] Linking C executable updaterevision
CMakeFiles/updaterevision.dir/updaterevision.o: In function `main':
updaterevision.c:(.text+0x148): warning: the use of `tempnam' is dangerous, better use `mkstemp'
[ 15%] Built target updaterevision
Scanning dependencies of target revision_check
sh: 1: hg: not found
Failed to get current revision: Success
/home/pi/ecwolf-1.3.3-src/src/svnrevision.h updated to revision 0.
[ 15%] Built target revision_check
Scanning dependencies of target arithchk
[ 15%] Building C object gdtoa/CMakeFiles/arithchk.dir/arithchk.o
[ 16%] Linking C executable arithchk
[ 16%] Built target arithchk
[ 17%] Generating arith.h
Scanning dependencies of target qnan
[ 17%] Building C object gdtoa/CMakeFiles/qnan.dir/qnan.o
[ 18%] Linking C executable qnan
[ 18%] Built target qnan
[ 18%] Generating gd_qnan.h
Scanning dependencies of target gdtoa
[ 19%] Building C object gdtoa/CMakeFiles/gdtoa.dir/dmisc.o
[ 20%] Building C object gdtoa/CMakeFiles/gdtoa.dir/dtoa.o
[ 20%] Building C object gdtoa/CMakeFiles/gdtoa.dir/misc.o
[ 21%] Linking C static library libgdtoa.a
[ 22%] Built target gdtoa
Scanning dependencies of target ecwolf
[ 22%] Building CXX object src/CMakeFiles/ecwolf.dir/dosbox/dbopl.o
[ 23%] Building CXX object src/CMakeFiles/ecwolf.dir/g_shared/a_deathcam.o
[ 24%] Building CXX object src/CMakeFiles/ecwolf.dir/g_shared/a_inventory.o
[ 24%] Building CXX object src/CMakeFiles/ecwolf.dir/g_shared/a_keys.o
[ 25%] Building CXX object src/CMakeFiles/ecwolf.dir/g_shared/a_patrolpoint.o
[ 25%] Building CXX object src/CMakeFiles/ecwolf.dir/g_shared/a_playerpawn.o
[ 26%] Building CXX object src/CMakeFiles/ecwolf.dir/g_shared/a_randomspawner.o
[ 27%] Building CXX object src/CMakeFiles/ecwolf.dir/g_wolf/a_spearofdestiny.o
[ 27%] Building CXX object src/CMakeFiles/ecwolf.dir/g_wolf/wolf_sbar.o
[ 28%] Building CXX object src/CMakeFiles/ecwolf.dir/r_2d/r_draw.o
[ 29%] Building CXX object src/CMakeFiles/ecwolf.dir/r_2d/r_drawt.o
[ 29%] Building CXX object src/CMakeFiles/ecwolf.dir/r_2d/r_main.o
[ 30%] Building CXX object src/CMakeFiles/ecwolf.dir/r_2d/r_things.o
[ 30%] Building CXX object src/CMakeFiles/ecwolf.dir/r_data/colormaps.o
[ 31%] Building CXX object src/CMakeFiles/ecwolf.dir/r_data/r_translate.o
[ 32%] Building CXX object src/CMakeFiles/ecwolf.dir/r_data/renderstyle.o
[ 32%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/resourcefile.o
[ 33%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/ancientzip.o
[ 33%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_7z.o
[ 34%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_audiot.o
[ 35%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_directory.o
[ 35%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_gamemaps.o
[ 36%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_grp.o
[ 37%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_pak.o
[ 37%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_rff.o
[ 38%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_rtl.o
[ 38%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_lump.o
[ 39%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_macbin.o
[ 40%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_vgagraph.o
[ 40%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_vswap.o
[ 41%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_wad.o
[ 41%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/file_zip.o
[ 42%] Building CXX object src/CMakeFiles/ecwolf.dir/resourcefiles/wolfmapcommon.o
[ 43%] Building CXX object src/CMakeFiles/ecwolf.dir/sfmt/SFMT.o
[ 43%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/anim_switches.o
[ 44%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/animations.o
[ 45%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/automaptexture.o
[ 45%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/bitmap.o
[ 46%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/ddstexture.o
[ 46%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/emptytexture.o
[ 47%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/flattexture.o
[ 48%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/imgztexture.o
[ 48%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/jpegtexture.o
[ 49%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/multipatchtexture.o
[ 50%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/patchtexture.o
[ 50%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/pcxtexture.o
[ 51%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/pngtexture.o
[ 51%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/rawpagetexture.o
[ 52%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/rottflattexture.o
[ 53%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/solidtexture.o
[ 53%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/texture.o
[ 54%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/texturemanager.o
[ 54%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/tgatexture.o
[ 55%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/warptexture.o
[ 56%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/wolfrawtexture.o
[ 56%] Building CXX object src/CMakeFiles/ecwolf.dir/textures/wolfshapetexture.o
[ 57%] Building CXX object src/CMakeFiles/ecwolf.dir/thingdef/thingdef.o
[ 58%] Building CXX object src/CMakeFiles/ecwolf.dir/thingdef/thingdef_codeptr.o
[ 58%] Building CXX object src/CMakeFiles/ecwolf.dir/thingdef/thingdef_expression.o
[ 59%] Building CXX object src/CMakeFiles/ecwolf.dir/thingdef/thingdef_properties.o
[ 59%] Building CXX object src/CMakeFiles/ecwolf.dir/thingdef/thingdef_type.o
[ 60%] Building CXX object src/CMakeFiles/ecwolf.dir/actor.o
[ 61%] Building CXX object src/CMakeFiles/ecwolf.dir/am_map.o
[ 61%] Building CXX object src/CMakeFiles/ecwolf.dir/colormatcher.o
[ 62%] Building CXX object src/CMakeFiles/ecwolf.dir/config.o
[ 62%] Building CXX object src/CMakeFiles/ecwolf.dir/c_cvars.o
[ 63%] Building CXX object src/CMakeFiles/ecwolf.dir/dobject.o
[ 64%] Building CXX object src/CMakeFiles/ecwolf.dir/dobjgc.o
[ 64%] Building CXX object src/CMakeFiles/ecwolf.dir/farchive.o
[ 65%] Building CXX object src/CMakeFiles/ecwolf.dir/files.o
[ 66%] Building CXX object src/CMakeFiles/ecwolf.dir/filesys.o
[ 66%] Building CXX object src/CMakeFiles/ecwolf.dir/filesys_steam.o
[ 67%] Building CXX object src/CMakeFiles/ecwolf.dir/g_conversation.o
[ 67%] Building CXX object src/CMakeFiles/ecwolf.dir/g_intermission.o
[ 68%] Building CXX object src/CMakeFiles/ecwolf.dir/g_mapinfo.o
[ 69%] Building CXX object src/CMakeFiles/ecwolf.dir/gamemap.o
[ 69%] Building CXX object src/CMakeFiles/ecwolf.dir/gamemap_planes.o
[ 70%] Building CXX object src/CMakeFiles/ecwolf.dir/gamemap_uwmf.o
[ 71%] Building CXX object src/CMakeFiles/ecwolf.dir/id_ca.o
[ 71%] Building CXX object src/CMakeFiles/ecwolf.dir/id_in.o
[ 72%] Building CXX object src/CMakeFiles/ecwolf.dir/id_sd.o
[ 72%] Building CXX object src/CMakeFiles/ecwolf.dir/id_us_1.o
[ 73%] Building CXX object src/CMakeFiles/ecwolf.dir/id_vh.o
[ 74%] Building CXX object src/CMakeFiles/ecwolf.dir/id_vl.o
[ 74%] Building CXX object src/CMakeFiles/ecwolf.dir/language.o
[ 75%] Building CXX object src/CMakeFiles/ecwolf.dir/lnspec.o
[ 75%] Building CXX object src/CMakeFiles/ecwolf.dir/lumpremap.o
[ 76%] Building CXX object src/CMakeFiles/ecwolf.dir/m_alloc.o
[ 77%] Building CXX object src/CMakeFiles/ecwolf.dir/m_classes.o
[ 77%] Building CXX object src/CMakeFiles/ecwolf.dir/m_random.o
[ 78%] Building CXX object src/CMakeFiles/ecwolf.dir/m_png.o
[ 79%] Building CXX object src/CMakeFiles/ecwolf.dir/name.o
[ 79%] Building CXX object src/CMakeFiles/ecwolf.dir/p_switch.o
[ 80%] Building CXX object src/CMakeFiles/ecwolf.dir/r_sprites.o
[ 80%] Building CXX object src/CMakeFiles/ecwolf.dir/scanner.o
/home/pi/ecwolf-1.3.3-src/src/scanner.cpp: In member function ‘void Scanner::MustGetToken(char)’:
/home/pi/ecwolf-1.3.3-src/src/scanner.cpp:611:18: warning: comparison is always false due to limited range of data type [-Wtype-limits]
if(state.token == TK_NoToken)
^
[ 81%] Building CXX object src/CMakeFiles/ecwolf.dir/sdlvideo.o
[ 82%] Building CXX object src/CMakeFiles/ecwolf.dir/sndinfo.o
[ 82%] Building CXX object src/CMakeFiles/ecwolf.dir/sndseq.o
[ 83%] Building CXX object src/CMakeFiles/ecwolf.dir/thinker.o
[ 83%] Building CXX object src/CMakeFiles/ecwolf.dir/v_draw.o
[ 84%] Building CXX object src/CMakeFiles/ecwolf.dir/v_font.o
[ 85%] Building CXX object src/CMakeFiles/ecwolf.dir/v_palette.o
[ 85%] Building CXX object src/CMakeFiles/ecwolf.dir/v_pfx.o
[ 86%] Building CXX object src/CMakeFiles/ecwolf.dir/v_text.o
[ 87%] Building CXX object src/CMakeFiles/ecwolf.dir/v_video.o
[ 87%] Building CXX object src/CMakeFiles/ecwolf.dir/w_wad.o
[ 88%] Building CXX object src/CMakeFiles/ecwolf.dir/weaponslots.o
[ 88%] Building CXX object src/CMakeFiles/ecwolf.dir/wl_act2.o
[ 89%] Building CXX object src/CMakeFiles/ecwolf.dir/wl_agent.o
[ 90%] Building CXX object src/CMakeFiles/ecwolf.dir/wl_atmos.o
[ 90%] Building CXX object src/CMakeFiles/ecwolf.dir/wl_cloudsky.o
[ 91%] Building CXX object src/CMakeFiles/ecwolf.dir/wl_debug.o
[ 91%] Building CXX object src/CMakeFiles/ecwolf.dir/wl_draw.o
[ 92%] Building CXX object src/CMakeFiles/ecwolf.dir/wl_floorceiling.o
[ 93%] Building CXX object src/CMakeFiles/ecwolf.dir/wl_game.o
[ 93%] Building CXX object src/CMakeFiles/ecwolf.dir/wl_inter.o
[ 94%] Building CXX object src/CMakeFiles/ecwolf.dir/wl_iwad.o
[ 95%] Building CXX object src/CMakeFiles/ecwolf.dir/wl_loadsave.o
[ 95%] Building CXX object src/CMakeFiles/ecwolf.dir/wl_main.o
In file included from /usr/include/c++/4.9/clocale:42:0,
from /home/pi/ecwolf-1.3.3-src/src/wl_main.cpp:49:
/usr/include/locale.h:1:1: error: unterminated comment
/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
^
In file included from /home/pi/ecwolf-1.3.3-src/src/wl_main.cpp:49:0:
/usr/include/c++/4.9/clocale:53:11: error: ‘::lconv’ has not been declared
using ::lconv;
^
/usr/include/c++/4.9/clocale:54:11: error: ‘::setlocale’ has not been declared
using ::setlocale;
^
/usr/include/c++/4.9/clocale:55:11: error: ‘::localeconv’ has not been declared
using ::localeconv;
^
/home/pi/ecwolf-1.3.3-src/src/wl_main.cpp: In function ‘int WL_Main(int, char**)’:
/home/pi/ecwolf-1.3.3-src/src/wl_main.cpp:1210:12: error: ‘LC_ALL’ was not declared in this scope
setlocale(LC_ALL, "C");
^
/home/pi/ecwolf-1.3.3-src/src/wl_main.cpp:1210:23: error: ‘setlocale’ was not declared in this scope
setlocale(LC_ALL, "C");
^
src/CMakeFiles/ecwolf.dir/build.make:2894: recipe for target 'src/CMakeFiles/ecwolf.dir/wl_main.o' failed
make[2]: *** [src/CMakeFiles/ecwolf.dir/wl_main.o] Error 1
CMakeFiles/Makefile2:444: recipe for target 'src/CMakeFiles/ecwolf.dir/all' failed
make[1]: *** [src/CMakeFiles/ecwolf.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
pi@piserver:~/ecwolf-1.3.3-src/build $
Blzut3
Developer
Developer
Posts: 491
Joined: Sun Jan 24, 2010 22:21

Re: Raspberry Pi build

Post by Blzut3 »

lorecast162 wrote: Sun Dec 31, 2017 15:00

Code: Select all

In file included from /usr/include/c++/4.9/clocale:42:0,
                 from /home/pi/ecwolf-1.3.3-src/src/wl_main.cpp:49:
/usr/include/locale.h:1:1: error: unterminated comment
 /* Copyright (C) 1991-2014 Free Software Foundation, Inc.
 ^
This looks quite odd to me. I can't imagine your system headers are actually flawed unless you modified them before for some reason. But it looks like whatever is causing this is your only compilation issue.
lorecast162
Posts: 12
Joined: Sun Dec 31, 2017 0:26

Re: Raspberry Pi build

Post by lorecast162 »

Then, what should I do? I can maybe try doing a fresh install on another SD card and see what appens, and maybe copying the binary to this one.
Blzut3
Developer
Developer
Posts: 491
Joined: Sun Jan 24, 2010 22:21

Re: Raspberry Pi build

Post by Blzut3 »

Unless you can show that the problem isn't in your system header files, there's not much I can tell you besides there appears to be a missing "*/" near the top of /usr/include/locale.h.
lorecast162
Posts: 12
Joined: Sun Dec 31, 2017 0:26

Re: Raspberry Pi build

Post by lorecast162 »

Uhm... There is a /* , but isn't // used to comment code? BTW I modified /* to //, ran make again, but it failed, mentioning locale.h many times. I did cmake .. again, failed another time, the include.h files looks weird tho.
Blzut3
Developer
Developer
Posts: 491
Joined: Sun Jan 24, 2010 22:21

Re: Raspberry Pi build

Post by Blzut3 »

Everything between "/*" and "*/" is a comment in C. C++ added the single line "//" comments and then C got them later.

Unless there's something usual about that file, everything up until the first line starting with a "#" should be commented out.
lorecast162
Posts: 12
Joined: Sun Dec 31, 2017 0:26

Re: Raspberry Pi build

Post by lorecast162 »

if this can help, this is a screenshot made from my XP machine while SFTPing to the pi and looking at the locale.h file
include.h.gif
include.h.gif (31.52 KiB) Viewed 4911 times
those squares (should be unidentified characters) are seen from nano directly from the pi too. is it supposed to be like this?
Blzut3
Developer
Developer
Posts: 491
Joined: Sun Jan 24, 2010 22:21

Re: Raspberry Pi build

Post by Blzut3 »

No. That file is severely messed up somehow.
lorecast162
Posts: 12
Joined: Sun Dec 31, 2017 0:26

Re: Raspberry Pi build

Post by lorecast162 »

mh... i'm worrying quite a bit
building it in Ubuntu MATE should be fine right? I mean the Pi ver., since they are both Debian-based
Blzut3
Developer
Developer
Posts: 491
Joined: Sun Jan 24, 2010 22:21

Re: Raspberry Pi build

Post by Blzut3 »

Yes, but you need system files that aren't corrupted.
lorecast162
Posts: 12
Joined: Sun Dec 31, 2017 0:26

Re: Raspberry Pi build

Post by lorecast162 »

well, i did a fresh install of Ubuntu MATE so that shouldnt be a problem, also, how do I install the custom SDL_mixer?
Blzut3
Developer
Developer
Posts: 491
Joined: Sun Jan 24, 2010 22:21

Re: Raspberry Pi build

Post by Blzut3 »

For the customized SDL_mixer, make sure you have the development libraries for libogg, libflac, libvorbis, libvorbisfile, libopus, libopusfile, libfluidsynth, and libmikmod. Clone my repository. Use CMake and to make your life a little be easier you can configure it to build a shared library:

Code: Select all

cmake .. -DMAKE_SHARED=ON
make
That should make a libSDL_mixer.so in the build directory which you should copy to your ECWolf build directory. Now switch to your ECWolf build directory and do:

Code: Select all

cmake .. -DSDL_MIXER_LIBRARY=$(pwd)/libSDL_mixer.so -DSDL_MIXER_INCLUDE_DIR=/path/to/your/sdl_mixer-for-ecwolf-clone
Post Reply

Return to “ECWolf”