pspdev / psplibraries Goto Github PK
View Code? Open in Web Editor NEWA script to automatically build open-source libraries for PSP homebrew development.
A script to automatically build open-source libraries for PSP homebrew development.
****************************************************************** DEPRECATED REPOSITORY USE https://github.com/pspdev/psp-packages INSTEAD ****************************************************************** ==================== What does this do? ==================== This program will automatically build and install libraries used in the creation of homebrew software for the Sony Playstation Portable handheld videogame system. ================== How do I use it? ================== 1) Set up your environment by installing the following software: autoconf, automake, cmake, libtool, make, psptoolchain, subversion, wget, doxygen, unzip 2) Run the library script: ./libraries.sh ========================== Where do I go from here? ========================== Visit the following sites to learn more: http://www.ps2dev.org http://forums.ps2dev.org
http://mikmod.shlomifish.org/files/libmikmod-3.2.0.tar.gz
redirect to
http://mikmod.sourceforge.net/files/libmikmod-3.2.0.tar.gz
which doesn't exists
^ broken link in the libmikmod.sh
https://github.com/pspdev/psplibraries/blob/master/scripts/libmikmod.sh
get_pspport pspgl
run_make -j `num_cpus`
Just tested on a fresh Arch Linux install. The relevant errors are:
./configure: line 17322: syntax error near unexpected token `$SDL_VERSION,'
./configure: line 17322: `AM_PATH_SDL($SDL_VERSION,'
Not sure what could be causing this...
The pthread-emb script overwrites the following include files:
sched.h
pthread.h
These files are already a part of newlib. The pthread-emb script replaces them with an older version(?).
Hey!
At compiling SDL_image I notice the following:
LIBPNG_CFLAGS='-I/usr/include/libpng16 '
LIBPNG_LIBS='-lpng16 '
And it compiles as:
/bin/sh ./libtool --tag=CC --mode=compile psp-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL_image\" -DVERSION=\"1.2.12\" -DLOAD_JPG=1 -DLOAD_PNG=1 -DLOAD_BMP=1 -DLOAD_GIF=1 -DLOAD_LBM=1 -DLOAD_PCX=1 -DLOAD_PNM=1 -DLOAD_TGA=1 -DLOAD_XCF=1 -DLOAD_XPM=1 -DLOAD_XV=1 -I. -I/usr/include/libpng16 -g -O2 -G0 -I"/usr/local/pspdev/psp/sdk/include" -I/usr/local/pspdev/psp/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -MT IMG_xv.lo -MD -MP -MF .deps/IMG_xv.Tpo -c -o IMG_xv.lo IMG_xv.c
(notice the /usr/include/libpng16). That is crearly wrong, it's picking up libpng files from my host system.
I noticed this cause I'm getting some crashes which print:
libpng warning: Application built with libpng-1.6.10 but running with 1.5.7
That is, it's using the wrong headers at compile time, which makes apps crash 💃
Could you give it a look? I'm no expert in auto tools otherwise I would submit a PR myself.
Thanks
Hello!
I am trying to install psplibraries on Ubuntu 10.04 (VM of course) and when running the ./libraries-sudo.sh script it clones smpeg-psp successfully from the source I told it to (http://jim.psp.sh/svn/psp/trunk/ smpeg-psp) make reports an error saying:
make: *** No rule to make target `clean'. Stop.
There are no makefiles on the smpeg-psp directory but there are makefiles in its sub-directories. How can I fix this?
Running an Ubuntu VM and tried to install the PSP Toolchain via pspdev/psptoolchain. However, part of Step 11 (installing OpenAL) fails with the following message:
/usr/local/pspdev/bin/psp-cmake: 6: /usr/local/pspdev/bin/psp-cmake: cmake: not found Failed installing openal!
According to ooPo the openTRI and Ruby build scripts are broken. The openTRI build script was working last time I tried it, and it should still be working as none of the URLs have changed. I'm going to build and install psplibraries now. I'll report back with any errors I encounter.
ooPo: Could I get some more information on why/how the build scripts failed for you?
I've created some fixes and did a verison bump to the latest release 3.2.0 for libmikmod
changed files are scripts/libmikmod.sh
and a new patch file libmikmod-3.2.0-PSP.patch obsoleting libmikmod-3.2.0-beta2-PSP.patch
I've added them in patches section of the libmikmod tracker:
http://sourceforge.net/tracker/download.php?group_id=40531&atid=428229&file_id=445333&aid=3532347
http://sourceforge.net/tracker/download.php?group_id=40531&atid=428229&file_id=445332&aid=3532347
Quick fix is to just disable examples (in scripts/openal.sh, add "-D EXAMPLES=OFF" to the psp-cmake line).
Although the individual libraries have their own licenses, the scripts, patches, etc. in this repo don't have a license (as far as I can tell).
Specifically I'm looking at distributing the PSP.cmake file, and unless it has a license I can't legally do that :(
If a build script for a library downloads a file conflicts can happen which will prevent the download from happening. If a file with the same filename as the filename of the download already exists, the download will not happen. This can cause problems later on with the way Github names tar archives for tags.
If you want to add a library and release version 1.1 on Github, the source download will be 1.1.tar.gz currently. This is too generic for our purposes.
I'm thinking of making the download function add the library name to the filename if it isn't already in there. Then instead of 1.1.zip, the file would be saved as library-1.1.zip. Any opinions on this?
Currently when using cmake there is no option to build a prx file. A prx file is required for debugging with psplink, which is really conventient. The build.mak file which is included in most make files does support building a prx file by setting BUILD_PRX = 1
in the makefile.
For reference, here is the build.mak file: https://github.com/pspdev/pspsdk/blob/master/src/base/build.mak
Currently when trying to use joystick support with SDL2 on the PSP, the system doesn't respond to it. It seems this should be at least partially implemented, though.
$ cd build/psplibraries/
$ ./libraries.sh SDL_image
--2017-09-26 18:01:44-- http://sourceforge.net/projects/libpng/files/libpng15/older-releases/1.5.7/libpng-1.5.7.tar.gz
Résolution de sourceforge.net (sourceforge.net)... 52.84.125.228, 52.84.125.204, 52.84.125.56, ...
Connexion vers sourceforge.net (sourceforge.net)|52.84.125.228|:80...connecté.
requête HTTP transmise, en attente de la réponse...302 Moved Temporarily
Emplacement: https://sourceforge.net/#!/projects/libpng/files/libpng15/older-releases/1.5.7/libpng-1.5.7.tar.gz [suivant]
--2017-09-26 18:01:45-- https://sourceforge.net/
Connexion vers sourceforge.net (sourceforge.net)|52.84.125.228|:443...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 652 [text/html]
Sauvegarde en : «libpng-1.5.7.tar.gz»
100%[=============================================================================================================================>] 652 --.-K/s ds 0s
2017-09-26 18:01:45 (64,5 MB/s) - «libpng-1.5.7.tar.gz» sauvegardé [652/652]
Extracting libpng-1.5.7.tar.gz...
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Couldn't install dependency libpng, aborting.
Failed installing SDL_image!
Installation finished.
Failed installing: SDL_image
$ file build/libpng-1.5.7.tar.gz
build/libpng-1.5.7.tar.gz: HTML document, ASCII text
$ cat build/libpng-1.5.7.tar.gz
<html><head>
<title>SourceForge</title>
<!-- <script src="/js/jquery.com/jquery-1.11.0.min.js"></script> -->
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="https://sourceforge.net/js/mirrors.js"></script>
<script src="/js/sf.js"></script>
<script>
var DR_loc = DR_parse_hash_url();
if (DR_loc) {
DR_sf_main(DR_loc);
} else {
window.location.href = 'https://sourceforge.net/home.html';
}
</script>
</head><body>
<noscript>
We're sorry -- the Sourceforge site is currently in Disaster Recovery mode, and currently requires
the use of javascript to function. Please check back later.
</noscript>
</body></html>
`
Solution at the root of pspdev,
$ cd build/psplibraries/
$ wget https://zlib.net/fossils/zlib-1.2.8.tar.gz
$ mv zlib-1.2.8.tar.gz build/zlib-1.2.8.tar.gz
$ ./libraries.sh zlib
Hope it help
Hello!
The homebrew game I am porting is a 256-color game with bpp 16 video clips. So repeated SDL_SetVideoMode calling is needed.
Although there is no problem of setting bpp to 8 for the first time and then setting bpp to 16 for the video clips, I found that once the bpp 8 SDL_SetVideoMode is called again, Display error appears. After that, bpp 16 SDL_SetVideoMode works but I can not get a correct bpp 8 Video Mode again.
Even setting bpp to 8 twice without bpp 16 Video Mode causes the error.
Thanks!
Currently this script will only check if a library is installed and then skip building it if it is. No version check is done. Even if in the cases where it would build a library which is already installed because of a bug, it won't overwrite what's already installed with copying the newly build version, it will fail instead.
I think we should, however, give users the option to at least rebuild their libraries, preferably even update, without making them delete the installed libraries by hand. I see the following ways we could accomplish this (although there may be more):
For both options, I think all copy actions in the build scripts should be made to overwrite the already installed files instead of showing an error. We could also make the depends scripts a bit smarter, so we can do a guaranteed full delete, but that would be significantly more work.
Since pthread is implemented by newlib, it would make sense if openal-soft could build without the pthread-emb library installed. This is unfortunately not the case.
Here the build log:
patching file Alc/ALc.c
patching file Alc/backends/alsa.c
patching file Alc/backends/dsound.c
patching file Alc/backends/mmdevapi.c
patching file Alc/backends/oss.c
patching file Alc/backends/solaris.c
patching file Alc/backends/wave.c
patching file Alc/backends/winmm.c
patching file OpenAL32/Include/alu.h
==> Starting build()...
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- The C compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/local/pspdev/bin/psp-gcc
-- Check for working C compiler: /usr/local/pspdev/bin/psp-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Performing Test HAVE_RESTRICT
-- Performing Test HAVE_RESTRICT - Success
-- Performing Test HAVE___RESTRICT
-- Performing Test HAVE___RESTRICT - Success
-- Checking if C compiler supports -Wextra
-- Checking if C compiler supports -Wextra - Success
-- Performing Test HAVE_GCC_DESTRUCTOR
-- Performing Test HAVE_GCC_DESTRUCTOR - Success
-- Performing Test HAVE_GCC_PROTECTED_VISIBILITY
-- Performing Test HAVE_GCC_PROTECTED_VISIBILITY - Success
-- Checking if C compiler supports -fvisibility=internal
-- Checking if C compiler supports -fvisibility=internal - Success
-- Performing Test HAVE_GCC_FORMAT
-- Performing Test HAVE_GCC_FORMAT - Success
-- Looking for fenv.h
-- Looking for fenv.h - not found
-- Looking for fpu_control.h
-- Looking for fpu_control.h - not found
-- Looking for float.h
-- Looking for float.h - found
-- Looking for ieeefp.h
-- Looking for ieeefp.h - found
-- Looking for guiddef.h
-- Looking for guiddef.h - not found
-- Looking for initguid.h
-- Looking for initguid.h - not found
-- Looking for arm_neon.h
-- Looking for arm_neon.h - not found
-- Looking for pow in m
-- Looking for pow in m - found
-- Looking for powf
-- Looking for powf - found
-- Looking for sqrtf
-- Looking for sqrtf - found
-- Looking for cosf
-- Looking for cosf - found
-- Looking for sinf
-- Looking for sinf - found
-- Looking for acosf
-- Looking for acosf - found
-- Looking for asinf
-- Looking for asinf - found
-- Looking for atanf
-- Looking for atanf - found
-- Looking for atan2f
-- Looking for atan2f - found
-- Looking for fabsf
-- Looking for fabsf - found
-- Looking for log10f
-- Looking for log10f - found
-- Looking for floorf
-- Looking for floorf - found
-- Looking for strtof
-- Looking for strtof - found
-- Looking for _controlfp
-- Looking for _controlfp - found
-- Looking for stat
-- Looking for stat - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for isfinite
-- Looking for isfinite - found
-- Looking for isnan
-- Looking for isnan - found
-- Looking for dlfcn.h
CMake Warning (dev) at /usr/share/cmake-3.13/Modules/CheckIncludeFile.cmake:70 (message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
CMAKE_REQUIRED_LIBRARIES is set to:
m
For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
CMakeLists.txt:325 (CHECK_INCLUDE_FILE)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for dlfcn.h - not found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Checking if C compiler supports -pthread
-- Checking if C compiler supports -pthread - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for include files pthread.h, pthread_np.h
-- Looking for include files pthread.h, pthread_np.h - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for pthread_setschedparam in pthread
-- Looking for pthread_setschedparam in pthread - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for timeGetTime in winmm
-- Looking for timeGetTime in winmm - not found.
-- Looking for alsa/asoundlib.h
-- Looking for alsa/asoundlib.h - not found
-- Looking for sys/soundcard.h
-- Looking for sys/soundcard.h - not found
-- Looking for sys/audioio.h
-- Looking for sys/audioio.h - not found
-- Looking for sndio.h
-- Looking for sndio.h - not found
-- Looking for dsound.h
-- Looking for dsound.h - not found
-- Looking for portaudio.h
-- Looking for portaudio.h - not found
-- Looking for pulse/pulseaudio.h
-- Looking for pulse/pulseaudio.h - not found
-- Looking for /System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h
-- Looking for /System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h - not found
-- Looking for include files SLES/OpenSLES.h, SLES/OpenSLES_Android.h
-- Looking for include files SLES/OpenSLES.h, SLES/OpenSLES_Android.h - not found
CMake Warning (dev) at CMakeLists.txt:692 (ADD_LIBRARY):
ADD_LIBRARY called with SHARED option but the target platform does not
support dynamic linking. Building a STATIC library instead. This may lead
to problems.
This warning is for project developers. Use -Wno-dev to suppress it.
--
-- Building OpenAL with support for the following backends:
-- WaveFile, Null
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14
Scanning dependencies of target openal
[ 3%] Building C object CMakeFiles/openal.dir/OpenAL32/alBuffer.c.obj
[ 14%] Building C object CMakeFiles/openal.dir/OpenAL32/alError.c.obj
[ 14%] Building C object CMakeFiles/openal.dir/OpenAL32/alExtension.c.obj
[ 14%] Building C object CMakeFiles/openal.dir/OpenAL32/alFilter.c.obj
[ 17%] Building C object CMakeFiles/openal.dir/OpenAL32/alListener.c.obj
[ 21%] Building C object CMakeFiles/openal.dir/OpenAL32/alAuxEffectSlot.c.obj
[ 25%] Building C object CMakeFiles/openal.dir/OpenAL32/alEffect.c.obj
[ 28%] Building C object CMakeFiles/openal.dir/OpenAL32/alSource.c.obj
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alListener.c:23:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:111:9: error: unknown type name ‘pthread_mutex_t’
111 | typedef pthread_mutex_t CRITICAL_SECTION;
| ^~~~~~~~~~~~~~~
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:345,
from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alListener.c:23:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h: In function ‘SetMixerFPUMode’:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h:242:16: warning: implicit declaration of function ‘_controlfp’ [-Wimplicit-function-declaration]
242 | fpuState = _controlfp(0, 0);
| ^~~~~~~~~~
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alBuffer.c:28:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:111:9: error: unknown type name ‘pthread_mutex_t’
111 | typedef pthread_mutex_t CRITICAL_SECTION;
| ^~~~~~~~~~~~~~~
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alError.c:25:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:111:9: error: unknown type name ‘pthread_mutex_t’
111 | typedef pthread_mutex_t CRITICAL_SECTION;
| ^~~~~~~~~~~~~~~
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alFilter.c:27:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:111:9: error: unknown type name ‘pthread_mutex_t’
111 | typedef pthread_mutex_t CRITICAL_SECTION;
| ^~~~~~~~~~~~~~~
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alExtension.c:28:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:111:9: error: unknown type name ‘pthread_mutex_t’
111 | typedef pthread_mutex_t CRITICAL_SECTION;
| ^~~~~~~~~~~~~~~
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alAuxEffectSlot.c:28:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:111:9: error: unknown type name ‘pthread_mutex_t’
111 | typedef pthread_mutex_t CRITICAL_SECTION;
| ^~~~~~~~~~~~~~~
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:345,
from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alBuffer.c:28:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h: In function ‘SetMixerFPUMode’:
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:345,
from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alError.c:25:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h: In function ‘SetMixerFPUMode’:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h:242:16: warning: implicit declaration of function ‘_controlfp’ [-Wimplicit-function-declaration]
242 | fpuState = _controlfp(0, 0);
| ^~~~~~~~~~
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h:242:16: warning: implicit declaration of function ‘_controlfp’ [-Wimplicit-function-declaration]
242 | fpuState = _controlfp(0, 0);
| ^~~~~~~~~~
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:345,
from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alFilter.c:27:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h: In function ‘SetMixerFPUMode’:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h:242:16: warning: implicit declaration of function ‘_controlfp’ [-Wimplicit-function-declaration]
242 | fpuState = _controlfp(0, 0);
| ^~~~~~~~~~
make[2]: *** [CMakeFiles/openal.dir/build.make:141: CMakeFiles/openal.dir/OpenAL32/alListener.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:345,
from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alExtension.c:28:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h: In function ‘SetMixerFPUMode’:
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alSource.c:26:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:111:9: error: unknown type name ‘pthread_mutex_t’
111 | typedef pthread_mutex_t CRITICAL_SECTION;
| ^~~~~~~~~~~~~~~
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h:242:16: warning: implicit declaration of function ‘_controlfp’ [-Wimplicit-function-declaration]
242 | fpuState = _controlfp(0, 0);
| ^~~~~~~~~~
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:345,
from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alAuxEffectSlot.c:28:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h: In function ‘SetMixerFPUMode’:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h:242:16: warning: implicit declaration of function ‘_controlfp’ [-Wimplicit-function-declaration]
242 | fpuState = _controlfp(0, 0);
| ^~~~~~~~~~
make[2]: *** [CMakeFiles/openal.dir/build.make:102: CMakeFiles/openal.dir/OpenAL32/alError.c.obj] Error 1
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:345,
from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alSource.c:26:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h: In function ‘SetMixerFPUMode’:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h:242:16: warning: implicit declaration of function ‘_controlfp’ [-Wimplicit-function-declaration]
242 | fpuState = _controlfp(0, 0);
| ^~~~~~~~~~
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alExtension.c:25:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alExtension.c: In function ‘alIsExtensionPresent’:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alExtension.c:359:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
359 | (ptr[len] == '\0' || isspace(ptr[len])))
| ~~~^~~~~
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alExtension.c:368:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
368 | } while(isspace(*ptr));
| ^~~~
make[2]: *** [CMakeFiles/openal.dir/build.make:115: CMakeFiles/openal.dir/OpenAL32/alExtension.c.obj] Error 1
make[2]: *** [CMakeFiles/openal.dir/build.make:128: CMakeFiles/openal.dir/OpenAL32/alFilter.c.obj] Error 1
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alEffect.c:28:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:111:9: error: unknown type name ‘pthread_mutex_t’
111 | typedef pthread_mutex_t CRITICAL_SECTION;
| ^~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/openal.dir/build.make:63: CMakeFiles/openal.dir/OpenAL32/alAuxEffectSlot.c.obj] Error 1
In file included from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alMain.h:345,
from /home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/alEffect.c:28:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h: In function ‘SetMixerFPUMode’:
/home/wouter/Sources/psplibraries/openal-soft/src/openal-soft-1.14/OpenAL32/Include/alu.h:242:16: warning: implicit declaration of function ‘_controlfp’ [-Wimplicit-function-declaration]
242 | fpuState = _controlfp(0, 0);
| ^~~~~~~~~~
make[2]: *** [CMakeFiles/openal.dir/build.make:154: CMakeFiles/openal.dir/OpenAL32/alSource.c.obj] Error 1
make[2]: *** [CMakeFiles/openal.dir/build.make:89: CMakeFiles/openal.dir/OpenAL32/alEffect.c.obj] Error 1
make[2]: *** [CMakeFiles/openal.dir/build.make:76: CMakeFiles/openal.dir/OpenAL32/alBuffer.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/openal.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
No idea what could be causing this. Running in a fresh Ubuntu (Linux Mint) VM.
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
configure: WARNING: unrecognized options: --disable-esd
/home/uppfinnarn/psptoolchain/build/psplibraries/build/libmikmod-3.2.0/missing: Unknown `--run' option
Try `/home/uppfinnarn/psptoolchain/build/psplibraries/build/libmikmod-3.2.0/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
configure: WARNING: using cross tools not prefixed with host triplet
cat: macintosh/_libmikmodversion.r: No such file or directory
config.status: WARNING: 'libmikmod/Makefile.in' seems to ignore the --datarootdir setting
configure: WARNING: unrecognized options: --disable-esd
../libtool: 1549: ../libtool: preserve_args+= --silent: not found
../libtool: 1: eval: base_compile+= psp-gcc: not found
../libtool: 1: eval: base_compile+= -DHAVE_CONFIG_H: not found
../libtool: 1: eval: base_compile+= -g: not found
../libtool: 1: eval: base_compile+= -O2: not found
../libtool: 1: eval: base_compile+= -fno-strength-reduce: not found
../libtool: 1: eval: base_compile+= -funroll-loops: not found
../libtool: 1: eval: base_compile+= -ffast-math: not found
../libtool: 1: eval: base_compile+= -Wall: not found
../libtool: 1: eval: base_compile+= -G0: not found
../libtool: 1549: ../libtool: preserve_args+= --silent: not found
../libtool: 1: eval: base_compile+= -I/usr/local/pspdev/psp/sdk/include: not found
../libtool: 1: eval: base_compile+= -Dunix: not found
../libtool: 1: eval: base_compile+= -I../include: not found
../libtool: 1: eval: base_compile+= psp-gcc: not found
../libtool: 1: eval: base_compile+= -DHAVE_CONFIG_H: not found
../libtool: 1: eval: base_compile+= -g: not found
../libtool: 1: eval: base_compile+= -O2: not found
../libtool: 1: eval: base_compile+= -fno-strength-reduce: not found
../libtool: 1: eval: base_compile+= -funroll-loops: not found
../libtool: 1: eval: base_compile+= -ffast-math: not found
../libtool: 1: eval: base_compile+= -Wall: not found
../libtool: 1: eval: base_compile+= -G0: not found
../libtool: 1549: ../libtool: preserve_args+= --silent: not found
../libtool: 1: eval: base_compile+= psp-gcc: not found
../libtool: 1: eval: base_compile+= -DHAVE_CONFIG_H: not found
../libtool: 1: eval: base_compile+= -g: not found
../libtool: 1: eval: base_compile+= -O2: not found
../libtool: 1: eval: base_compile+= -fno-strength-reduce: not found
../libtool: 1: eval: base_compile+= -funroll-loops: not found
../libtool: 1: eval: base_compile+= -ffast-math: not found
../libtool: 1: eval: base_compile+= -Wall: not found
../libtool: 1: eval: base_compile+= -G0: not found
../libtool: 1: eval: base_compile+= -I/usr/local/pspdev/psp/sdk/include: not found
../libtool: 1: eval: base_compile+= -Dunix: not found
../libtool: 1549: ../libtool: preserve_args+= --silent: not found
../libtool: 1: eval: base_compile+= -I../include: not found
../libtool: 1: eval: base_compile+= psp-gcc: not found
../libtool: 1: eval: base_compile+= -DHAVE_CONFIG_H: not found
../libtool: 1: eval: base_compile+= -g: not found
../libtool: 1: eval: base_compile+= -O2: not found
../libtool: 1: eval: base_compile+= -fno-strength-reduce: not found
../libtool: 1: eval: base_compile+= -funroll-loops: not found
../libtool: 1: eval: base_compile+= -ffast-math: not found
../libtool: 1: eval: base_compile+= -Wall: not found
../libtool: 1: eval: base_compile+= -G0: not found
../libtool: 1: eval: base_compile+= -I/usr/local/pspdev/psp/sdk/include: not found
../libtool: 1: eval: base_compile+= -I/usr/local/pspdev/psp/sdk/include: not found
../libtool: 1: eval: base_compile+= -DMIKMOD_H=../include/mikmod.h: not found
../libtool: 1: eval: base_compile+= -c: not found
libtool: compile: you must specify a compilation command
libtool: compile: Try `libtool --help --mode=compile' for more information.
make[2]: *** [drv_AF.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
../libtool: 1: eval: base_compile+= -Dunix: not found
../libtool: 1: eval: base_compile+= -Dunix: not found
../libtool: 1: eval: base_compile+= -I../include: not found
../libtool: 1: eval: base_compile+= -I..: not found
../libtool: 1: eval: base_compile+= -I../include: not found
../libtool: 1: eval: base_compile+= -I../include: not found
../libtool: 1: eval: base_compile+= -DMIKMOD_H=../include/mikmod.h: not found
../libtool: 1: eval: base_compile+= -I..: not found
../libtool: 1: eval: base_compile+= -c: not found
libtool: compile: you must specify a compilation command
libtool: compile: Try `libtool --help --mode=compile' for more information.
../libtool: 1: eval: base_compile+= -I../include: not found
make[2]: *** [drv_aiff.lo] Error 1
../libtool: 1: eval: base_compile+= -I..: not found
../libtool: 1: eval: base_compile+= -I../include: not found
../libtool: 1: eval: base_compile+= -I../include: not found
../libtool: 1: eval: base_compile+= -DMIKMOD_H=../include/mikmod.h: not found
../libtool: 1: eval: base_compile+= -DMIKMOD_H=../include/mikmod.h: not found
../libtool: 1: eval: base_compile+= -c: not found
libtool: compile: you must specify a compilation command
libtool: compile: Try `libtool --help --mode=compile' for more information.
../libtool: 1: eval: base_compile+= -c: not found
libtool: compile: you must specify a compilation command
libtool: compile: Try `libtool --help --mode=compile' for more information.
make[2]: *** [drv_aix.lo] Error 1
make[2]: *** [drv_alsa.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
[isage@seven-swords pthreads-emb-1.0]$ make -C platform/psp/
make: Entering directory '/media/2TB/dev/pspdev/build/psplibraries/build/pthreads-emb-1.0/platform/psp'
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -g -fno-strict-aliasing -I../.. -I../helper -D_PSP_FW_VERSION=150 -c -o pthread_mutex_unlock.o ../../pthread_mutex_unlock.c
In file included from /usr/local/pspdev/psp/include/sys/_pthreadtypes.h:23,
from /usr/local/pspdev/psp/include/sys/types.h:223,
from /usr/local/pspdev/psp/include/stdio.h:61,
from ../../pthread_mutex_unlock.c:45:
../../sched.h:90:3: error: expected identifier before numeric constant
90 | SCHED_OTHER = 0,
| ^~~~~~~~~~~
In file included from ../../pthread.h:49,
from ../../pthread_mutex_unlock.c:48:
../../sched.h:97:8: error: redefinition of ‘struct sched_param’
97 | struct sched_param
| ^~~~~~~~~~~
In file included from /usr/local/pspdev/psp/include/sys/_pthreadtypes.h:23,
from /usr/local/pspdev/psp/include/sys/types.h:223,
from /usr/local/pspdev/psp/include/stdio.h:61,
from ../../pthread_mutex_unlock.c:45:
/usr/local/pspdev/psp/include/sys/sched.h:48:8: note: originally defined here
48 | struct sched_param {
| ^~~~~~~~~~~
In file included from ../../pthread_mutex_unlock.c:48:
../../pthread.h:401:39: error: conflicting types for ‘pthread_t’
401 | typedef /* pte_handle_t */ void * pthread_t;
| ^~~~~~~~~
In file included from /usr/local/pspdev/psp/include/sys/types.h:223,
from /usr/local/pspdev/psp/include/stdio.h:61,
from ../../pthread_mutex_unlock.c:45:
/usr/local/pspdev/psp/include/sys/_pthreadtypes.h:32:20: note: previous declaration of ‘pthread_t’ was here
32 | typedef __uint32_t pthread_t; /* identify a thread */
| ^~~~~~~~~
In file included from ../../pthread_mutex_unlock.c:48:
../../pthread.h:402:38: error: conflicting types for ‘pthread_attr_t’
402 | typedef struct pthread_attr_t_ * pthread_attr_t;
| ^~~~~~~~~~~~~~
In file included from /usr/local/pspdev/psp/include/sys/types.h:223,
from /usr/local/pspdev/psp/include/stdio.h:61,
from ../../pthread_mutex_unlock.c:45:
/usr/local/pspdev/psp/include/sys/_pthreadtypes.h:75:3: note: previous declaration of ‘pthread_attr_t’ was here
75 | } pthread_attr_t;
| ^~~~~~~~~~~~~~
In file included from ../../pthread_mutex_unlock.c:48:
../../pthread.h:403:36: error: conflicting types for ‘pthread_once_t’
403 | typedef struct pthread_once_t_ pthread_once_t;
| ^~~~~~~~~~~~~~
In file included from /usr/local/pspdev/psp/include/sys/types.h:223,
from /usr/local/pspdev/psp/include/stdio.h:61,
from ../../pthread_mutex_unlock.c:45:
/usr/local/pspdev/psp/include/sys/_pthreadtypes.h:195:3: note: previous declaration of ‘pthread_once_t’ was here
195 | } pthread_once_t; /* dynamic package initialization */
| ^~~~~~~~~~~~~~
In file included from ../../pthread_mutex_unlock.c:48:
../../pthread.h:404:37: error: conflicting types for ‘pthread_key_t’
404 | typedef struct pthread_key_t_ * pthread_key_t;
| ^~~~~~~~~~~~~
In file included from /usr/local/pspdev/psp/include/sys/types.h:223,
from /usr/local/pspdev/psp/include/stdio.h:61,
from ../../pthread_mutex_unlock.c:45:
/usr/local/pspdev/psp/include/sys/_pthreadtypes.h:190:20: note: previous declaration of ‘pthread_key_t’ was here
190 | typedef __uint32_t pthread_key_t; /* thread-specific data keys */
| ^~~~~~~~~~~~~
In file included from ../../pthread_mutex_unlock.c:48:
../../pthread.h:405:39: error: conflicting types for ‘pthread_mutex_t’
405 | typedef struct pthread_mutex_t_ * pthread_mutex_t;
| ^~~~~~~~~~~~~~~
In file included from /usr/local/pspdev/psp/include/sys/types.h:223,
from /usr/local/pspdev/psp/include/stdio.h:61,
from ../../pthread_mutex_unlock.c:45:
/usr/local/pspdev/psp/include/sys/_pthreadtypes.h:154:20: note: previous declaration of ‘pthread_mutex_t’ was here
154 | typedef __uint32_t pthread_mutex_t; /* identify a mutex */
| ^~~~~~~~~~~~~~~
In file included from ../../pthread_mutex_unlock.c:48:
../../pthread.h:406:43: error: conflicting types for ‘pthread_mutexattr_t’
406 | typedef struct pthread_mutexattr_t_ * pthread_mutexattr_t;
| ^~~~~~~~~~~~~~~~~~~
In file included from /usr/local/pspdev/psp/include/sys/types.h:223,
from /usr/local/pspdev/psp/include/stdio.h:61,
from ../../pthread_mutex_unlock.c:45:
/usr/local/pspdev/psp/include/sys/_pthreadtypes.h:169:3: note: previous declaration of ‘pthread_mutexattr_t’ was here
169 | } pthread_mutexattr_t;
| ^~~~~~~~~~~~~~~~~~~
In file included from ../../pthread_mutex_unlock.c:48:
../../pthread.h:407:38: error: conflicting types for ‘pthread_cond_t’
407 | typedef struct pthread_cond_t_ * pthread_cond_t;
| ^~~~~~~~~~~~~~
In file included from /usr/local/pspdev/psp/include/sys/types.h:223,
from /usr/local/pspdev/psp/include/stdio.h:61,
from ../../pthread_mutex_unlock.c:45:
/usr/local/pspdev/psp/include/sys/_pthreadtypes.h:176:20: note: previous declaration of ‘pthread_cond_t’ was here
176 | typedef __uint32_t pthread_cond_t; /* identify a condition variable */
| ^~~~~~~~~~~~~~
In file included from ../../pthread_mutex_unlock.c:48:
../../pthread.h:408:42: error: conflicting types for ‘pthread_condattr_t’
408 | typedef struct pthread_condattr_t_ * pthread_condattr_t;
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/local/pspdev/psp/include/sys/types.h:223,
from /usr/local/pspdev/psp/include/stdio.h:61,
from ../../pthread_mutex_unlock.c:45:
/usr/local/pspdev/psp/include/sys/_pthreadtypes.h:186:3: note: previous declaration of ‘pthread_condattr_t’ was here
186 | } pthread_condattr_t; /* a condition attribute object */
| ^~~~~~~~~~~~~~~~~~
../../pthread.h:428:7: error: expected identifier before numeric constant
428 | PTHREAD_CREATE_JOINABLE = 0, /* Default */
| ^~~~~~~~~~~~~~~~~~~~~~~
make: *** [<builtin>: pthread_mutex_unlock.o] Error 1
reproducible with both newlib 3.3 and newlib 4.1
Moreover, pthread-emb build script doesn't actually check compile result, which leads to headers being installed, but library, obviously, not.
Hi,
As in the title, OpenAL installation fails with the following errors:
--2020-12-25 16:04:05-- http://kcat.strangesoft.net/openal-releases/openal-soft-1.14.tar.bz2
Resolving kcat.strangesoft.net (kcat.strangesoft.net)... failed: Name or service not known.
wget: unable to resolve host address ‘kcat.strangesoft.net’
--2020-12-25 16:04:06-- http://kcat.strangesoft.net/openal-releases/openal-soft-1.14.tar.bz2
Resolving kcat.strangesoft.net (kcat.strangesoft.net)... failed: Name or service not known.
wget: unable to resolve host address ‘kcat.strangesoft.net’
../common.sh: line 87: cd: openal-soft-1.14: No such file or directory
Failed installing openal!
It looks like kcat.strangesoft.net is not available anymore, but there are alternatives:
after libmikmod-3.2.0 get install, the last two that fail are pixman and SDL_ttf.
pixman fail with cannot find -lpng15
/usr/local/pspdev/lib/gcc/psp/4.6.3/../../../../psp/bin/ld: cannot find -lpng15
collect2: ld returned 1 exit status
make[2]: *** [a1-trap-test] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/local/pspdev/lib/gcc/psp/4.6.3/../../../../psp/bin/ld: cannot find -lpng15
collect2: ld returned 1 exit status
make[2]: *** [pdf-op-test] Error 1
/usr/local/pspdev/lib/gcc/psp/4.6.3/../../../../psp/bin/ld: cannot find -lpng15
collect2: ld returned 1 exit status
make[2]: *** [region-test] Error 1
/usr/local/pspdev/lib/gcc/psp/4.6.3/../../../../psp/bin/ld: cannot find -lpng15
collect2: ld returned 1 exit status
make[2]: *** [region-translate-test] Error 1
SDL_ttf fail with bits/wordsize.h: No such file or directory
/usr/include/freetype2/freetype/config/ftconfig.h:4:27: fatal error: bits/wordsize.h: No such file or directory
When building the latest toolchain on Debian 10, OpenAL fails to build for me. Here is the log: https://gist.github.com/sharkwouter/f39f9e9891f95ed5855b302d5831df75
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.