Ancurio / mkxp

Free Software implementation of the Ruby Game Scripting System (RGSS)
GNU General Public License v2.0
532 stars 140 forks source link

How compile? and another dunno #231

Closed inukaze closed 4 years ago

inukaze commented 4 years ago

Hi there, i am under Slackware(64) 14.2 i want to compile this engine but i can't, i try the follow in the cli

mkdir -p /media/2Compartir/zzz_cdf
cd /media/2Compartir/zzz_cdf
git clone https://github.com/Ancurio/mkxp
cd mkxp/
ls

First Try :

qmake mkxp.pro 
Project ERROR: Package SDL_sound not found

Trying to fix it :

su -c "slpkg -s alien --rebuild --reinstall SDL_sound ; ldconfig" root
Contraseña: 
Reading package lists... Done
Resolving dependencies... Done

The following packages will be automatically installed or upgraded 
with new version:

+==============================================================================
| Package                 New Version        Arch    Build  Repos          Size
+==============================================================================
Installing:
  SDL_sound-1.0.3         1.0.3              x86_64  2      alien         212 K
['212'] ['570']
Kb Kb 212 570

Installing summary
===============================================================================
Total 1 package.
0 package will be installed, 1 will be upgraded and 0 will be reinstalled.
Need to get 212 Kb of archives.
After this process, 570 Kb of additional disk space will be used.

Would you like to continue [y/N]? y

[1/1][ Download ] --> SDL_sound-1.0.3-x86_64-2alien.tgz

--2020-06-18 01:09:36--  http://bear.alienbase.nl/mirrors/people/alien/sbrepos/14.2/x86_64/SDL_sound/SDL_sound-1.0.3-x86_64-2alien.tgz
Resolviendo bear.alienbase.nl... 163.172.25.142
Conectando con bear.alienbase.nl[163.172.25.142]:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 214942 (210K) [application/x-gzip]
Grabando a: “/tmp/slpkg/packages/SDL_sound-1.0.3-x86_64-2alien.tgz”

SDL_sound-1.0.3-x86_64-2al 100%[======================================>] 209,90K  43,3KB/s    en 4,3s    

2020-06-18 01:10:25 (49,3 KB/s) - “/tmp/slpkg/packages/SDL_sound-1.0.3-x86_64-2alien.tgz” guardado [214942/214942]

+==============================================================================
| MD5SUM check for SDL_sound-1.0.3-x86_64-2alien.tgz [ PASSED ]
+==============================================================================

[ upgrading ] --> SDL_sound-1.0.3-x86_64-2alien.tgz

+==============================================================================
| Upgrading SDL_sound-1.0.3-x86_64-1_slonly package using /tmp/slpkg/packages/SDL_sound-1.0.3-x86_64-2alien.tgz
+==============================================================================

Pre-installing package SDL_sound-1.0.3-x86_64-2alien...

Removing package /var/log/packages/SDL_sound-1.0.3-x86_64-1_slonly-upgraded-2020-06-18,01:10:25...

Verifying package SDL_sound-1.0.3-x86_64-2alien.tgz.
Installing package SDL_sound-1.0.3-x86_64-2alien.tgz:
PACKAGE DESCRIPTION:
# SDL_sound (a library to handle the decoding of sound filetypes)
#
# SDL_sound is a library that handles the decoding of several popular
# sound file formats, such as .WAV and .MP3.
# SDL_sound is an add-on to Simple Directmedia Layer, and as such,
# you'll need it to use SDL_sound.
#
# SDL_sound home: http://icculus.org/SDL_sound/
#
Executing install script for SDL_sound-1.0.3-x86_64-2alien.tgz.
Package SDL_sound-1.0.3-x86_64-2alien.tgz installed.

Package SDL_sound-1.0.3-x86_64-1_slonly upgraded with new package /tmp/slpkg/packages/SDL_sound-1.0.3-x86_64-2alien.tgz.

Completed!

+==============================================================================
| Total 0 package installed and 1 package upgraded
+==============================================================================
| Package SDL_sound-1.0.3 upgraded successfully
+==============================================================================

Second Try :

qmake mkxp.pro 
Project ERROR: Package SDL_sound not found

Third Try :

mkdir build ; cd build
cmake ..cmake ..
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- 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 PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'sigc++-2.0'
--   Found sigc++-2.0, version 2.6.2
-- Checking for module 'pixman-1'
--   Found pixman-1, version 0.34.0
-- Checking for module 'physfs>=2.1'
--   Found physfs, version 3.0.1
-- Checking for module 'vorbisfile'
--   Found vorbisfile, version 1.3.6
-- Checking for module 'sdl2'
--   Found sdl2, version 2.0.12
-- Checking for module 'SDL2_ttf'
--   Found SDL2_ttf, version 2.0.15
-- Checking for module 'SDL2_image'
--   Found SDL2_image, version 2.0.5
-- Checking for module 'SDL_sound'
--   No package 'SDL_sound' found
CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)
  CMakeLists.txt:93 (pkg_check_modules)

-- Configuring incomplete, errors occurred!
See also "/media/2Compartir/zzz_cdf/mkxp/build/CMakeFiles/CMakeOutput.log".

Log Attached : CMakeOutput.log

And well i go to the url -> http://ancurio.bplaced.net/mkxp/generic/ And i had download the file mkxp-20180121.tar.xz

i extract and i use chmod a+o+x on the mkxp binaries executables. i and i put a copy of all files and folders in to of the follow game -> https://astralshiftpro.itch.io/pocket-mirror

i make a symbolic link to the "Ini" file but when try to start 1 - AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse" That is very logic because i purge pulseaudio because i don't like it and i don't need it

2 - Can't find "Data\Scripts.rvdata2", that is specified on the ini file with the follow line : Scripts=Data\Scripts.rvdata2

pm

But if you download the game don't exist any folder called Data, and well with the binary executable for windows, can start using "wine is not emulator" but is slow

Because of that things my dunnos are 1 - How i can compile under Slackware 14.2 (32 Bits & 64 Bits, i had both version installed on sepated partitions)

2 - From where i can get "Data\Scripts.rvdata2" for test if this game can be run using "mkxp" engine like a native game for GNU/Linux.

cremno commented 4 years ago
  1. You have to use the SDL_sound fork mentioned in the README.
  2. OpenAL Soft apparently prefers PulseAudio before falling back to whatever you're using. It's just a warning anyway and doesn't have to do anything with mkxp itself.
  3. Either Data\Scripts.rvdata2 exists or it's in the encrypted archive (*.rgss3a). Usually the archive's and the general game basename is Game. If it isn't then you have to (create and) edit the mkxp.conf configuration file.
Ancurio commented 4 years ago

Basically, what cremno said. If that doesn't work and you need further help, feel free to reopen this issue.