Raspberry Pi build

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angel: :angry: :beer: :bfg: :chaingun: :cheers: :blergh:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Expand view Topic review: Raspberry Pi build

Re: Raspberry Pi build

by Blzut3 » Fri Feb 22, 2019 6:15

lorecast162 wrote:
Thu Feb 21, 2019 14:54
as for the make install, I tried it yesterday and it didn't work,
Definitely works for me. Can you install strace and then do from your home directory (or any directory which isn't your build directory)?

Code: Select all

strace /usr/local/games/ecwolf &> log.txt
Send me log.txt. (Of course change the full path if you specified a different location to CMAKE_INSTALL_PREFIX.)

Also send me a log for make install.
lorecast162 wrote:
Thu Feb 21, 2019 14:54
INTERNAL_SDL_MIXER, does it mean I dont need to make it separately? to do that do I have to add the -INTERNAL_SDL_MIXER=ON option in commandline while running cmake?
-DINTERNAL_SDL_MIXER=ON but otherwise correct. Just note that this won't avoid the issue you were having just avoid the need to compile it separately. To avoid the issue do one of the two things that my previous post suggests.

Re: Raspberry Pi build

by lorecast162 » Thu Feb 21, 2019 14:54

as for the make install, I tried it yesterday and it didn't work, but I got around it by just making a little menu and different games into different folders and just run one exec or another with different configs, as of the INTERNAL_SDL_MIXER, does it mean I dont need to make it separately? to do that do I have to add the -INTERNAL_SDL_MIXER=ON option in commandline while running cmake?

Re: Raspberry Pi build

by Blzut3 » Thu Feb 21, 2019 2:09

If you do a make install then it should find ecwolf.pk3 automatically since the CMAKE_INSTALL_PREFIX is baked into the binary.

As for the error, in external/CMakeLists.txt look for the lines that set OPUS_ARCH_SOURCES and set the variable to an empty string. It's trying to compile the x86 sources on ARM which obviously won't work. I don't have a proper solution on hand, but making that change should work for you.

Edit:
Also worth noting that the latest ECWolf development version can compile SDL_mixer automatically for you. Set INTERNAL_SDL_MIXER to ON in CMake.

You also have another option for fixing the opus error and that's to install opus, opusfile, flac, vorbis, ogg, and modplug development libraries. If it can find all of the codecs on your system it should automatically skip building them.

Re: Raspberry Pi build

by lorecast162 » Wed Feb 20, 2019 23:02

btw is there a "default dir" for ecwolf.pk3? I dont want to change directory everytime since I did sudo make install

Re: Raspberry Pi build

by lorecast162 » Wed Feb 20, 2019 22:22

Well, sorry for bumping my old post but Im still having problems with compiling
Im trying to do this on my Pi zero this time, but when I do the make for the SDL_mixer it throws stuff about Opus x86 cpu stuff.
I did install all the dependencies listed before, including all opus things.
Image
This is a screenshot of the compile from my laptop via SSH

Re: Raspberry Pi build

by Blzut3 » Sun Jan 07, 2018 8:33

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

Re: Raspberry Pi build

by lorecast162 » Sat Jan 06, 2018 21:23

well, i did a fresh install of Ubuntu MATE so that shouldnt be a problem, also, how do I install the custom SDL_mixer?

Re: Raspberry Pi build

by Blzut3 » Sat Jan 06, 2018 19:55

Yes, but you need system files that aren't corrupted.

Re: Raspberry Pi build

by lorecast162 » Sat Jan 06, 2018 19:25

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

Re: Raspberry Pi build

by Blzut3 » Thu Jan 04, 2018 3:19

No. That file is severely messed up somehow.

Re: Raspberry Pi build

by lorecast162 » Wed Jan 03, 2018 19:14

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 2002 times
those squares (should be unidentified characters) are seen from nano directly from the pi too. is it supposed to be like this?

Re: Raspberry Pi build

by Blzut3 » Tue Jan 02, 2018 22:50

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.

Re: Raspberry Pi build

by lorecast162 » Tue Jan 02, 2018 20:11

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.

Re: Raspberry Pi build

by Blzut3 » Tue Jan 02, 2018 0:11

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.

Re: Raspberry Pi build

by lorecast162 » Mon Jan 01, 2018 16:18

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.

Top