Comments (14)
When you're getting this kind of errors, it means you-re trying to compile with your own g++, not the cross compiler.
from ppsspp.
Yes, its hardcoded to g++
, but its hard to fix blindly...
from ppsspp.
In Lakka, I build it using this https://github.com/libretro/ppsspp/blob/master/libretro/Makefile#L100-L112
Or like this
make platform=armv-gles-neon CC=$CC CXX=$CXX
from ppsspp.
We should try to remove the hardcoded version and use the correct ones which are present in the default configuration ?
from ppsspp.
Thanks for taking a look at this!
from ppsspp.
No problem, you are welcome.
New log after specifying CC and CXX.
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU -I../ffmpeg/linux/arm/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg -I../ffmpeg/linux/arm/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew -DARM -fPIC -DARM -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -DHAVE_OPENGL -DDYNAREC -D_ARCH_32 -ffunction-sections -fdata-sections -c -o../Core/FileLoaders/RamCachingFileLoader.o ../Core/FileLoaders/RamCachingFileLoader.cpp
In file included from ../ffmpeg/libavutil/avutil.h:288:0,
from ../ffmpeg/libavutil/samplefmt.h:24,
from ../ffmpeg/libavcodec/avcodec.h:31,
from ../Core/AVIDump.cpp:18:
../ffmpeg/libavutil/common.h:45:32: fatal error: libavutil/avconfig.h: No such file or directory
compilation terminated.
Makefile:449: recipe for target '../Core/AVIDump.o' failed
make: *** [../Core/AVIDump.o] Error 1
make: *** Waiting for unfinished jobs....
from ppsspp.
I suppose there is a problem with the ffmpeg submodule included, its missing or the Makefile is not using it for some reason?
from ppsspp.
Not sure if it is related to this include flags as it is not present elsewhere.
from ppsspp.
@gouchi Mind making an issue for an more current repo?
from ppsspp.
Here is a new build log.
BUILD CMD: make -f Makefile platform=unix -j6 platform=armv7-neon-hardfloat ARCH=arm CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU -I../ffmpeg/linux/x86_64/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew -DARM -fPIC -DARM -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL -DDYNAREC -ffunction-sections -fdata-sections -c -o../ext/snappy/snappy-c.o ../ext/snappy/snappy-c.cpp
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU -I../ffmpeg/linux/x86_64/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew -DARM -fPIC -DARM -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL -DDYNAREC -ffunction-sections -fdata-sections -c -o../ext/snappy/snappy.o ../ext/snappy/snappy.cpp
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU -I../ffmpeg/linux/x86_64/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew -DARM -fPIC -DARM -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL -DDYNAREC -ffunction-sections -fdata-sections -c -o../ext/xbrz/xbrz.o ../ext/xbrz/xbrz.cpp
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU -I../ffmpeg/linux/x86_64/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew -DARM -fPIC -DARM -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL -DDYNAREC -ffunction-sections -fdata-sections -c -o../ext/native/ext/vjson/json.o ../ext/native/ext/vjson/json.cpp
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU -I../ffmpeg/linux/x86_64/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew -DARM -fPIC -DARM -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL -DDYNAREC -ffunction-sections -fdata-sections -c -o../ext/native/ext/vjson/block_allocator.o ../ext/native/ext/vjson/block_allocator.cpp
arm-linux-gnueabihf-g++ -std=c++11 -O2 -D_NDEBUG -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU -I../ffmpeg/linux/x86_64/include -I. -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew -DARM -fPIC -DARM -marm -mfpu=neon -D__NEON_OPT -mfloat-abi=hard -D__arm__ -DARM_ASM -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL -DDYNAREC -ffunction-sections -fdata-sections -c -o../ext/native/ext/cityhash/city.o ../ext/native/ext/cityhash/city.cpp
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
Makefile:435: recipe for target '../ext/snappy/snappy-c.o' failed
make: *** [../ext/snappy/snappy-c.o] Error 1
make: *** Waiting for unfinished jobs....
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
Makefile:435: recipe for target '../ext/snappy/snappy.o' failed
make: *** [../ext/snappy/snappy.o] Error 1
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
Makefile:435: recipe for target '../ext/native/ext/cityhash/city.o' failed
make: *** [../ext/native/ext/cityhash/city.o] Error 1
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
Makefile:435: recipe for target '../ext/native/ext/vjson/block_allocator.o' failed
make: *** [../ext/native/ext/vjson/block_allocator.o] Error 1
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
Makefile:435: recipe for target '../ext/xbrz/xbrz.o' failed
make: *** [../ext/xbrz/xbrz.o] Error 1
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
Makefile:435: recipe for target '../ext/native/ext/vjson/json.o' failed
make: *** [../ext/native/ext/vjson/json.o] Error 1
BUILD CMD /home/buildbot/buildbot/linux_armhf/retrolink.sh ./ppsspp_libretro.so
readelf: Error: './ppsspp_libretro.so': No such file
readelf: Error: './ppsspp_libretro.so': No such file
COPY CMD: cp -v ./ppsspp_libretro.so /home/buildbot/buildbot/linux_armhf/dist/unix//ppsspp_libretro.so
cp: cannot stat './ppsspp_libretro.so': No such file or directory
from ppsspp.
We should not get
/ffmpeg/linux/x86_64/include
The compilation starts with
make -f Makefile platform=unix -j6 platform=armv7-neon-hardfloat ARCH=arm CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ clean
There are two platform variables.
from ppsspp.
Looks like that is a buildbot issue, I'll try to figure out where the extra platform=unix
is coming from.
from ppsspp.
platform=armv7-neon-hardfloat
is set in the recipe.
ppsspp libretro-ppsspp https://github.com/libretro/ppsspp.git master YES GENERIC_GL Makefile libretro platform=armv7-neon-hardfloat ARCH=arm CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++
https://github.com/libretro/libretro-super/blob/master/recipes/linux/cores-linux-armhf-generic
and platform=unix
is in the buildbot script.
eval "set -- ${HELPER} ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${CORE_ARGS}"
echo "BUILD CMD: $@" 2>&1 | tee -a "$LOGFILE"
"$@" 2>&1 | tee -a "$LOGFILE"
https://github.com/libretro/libretro-super/blob/master/libretro-buildbot-recipe.sh#L388
from ppsspp.
New log after this commit.
CPUFLAGS are wrong they are coming from Makefile.common from here because TARGET_ARCH is not arm.
I will be glad to know why there are those lines in the beginning of the Makefile.
from ppsspp.
Related Issues (20)
- Problem with folders and special-characters
- Segfault on startup HOT 1
- QuickSave(without call psp save/load menu screen) Broken HOT 2
- Toggling fullscreen breaks core HOT 2
- Core crashes with fast memory disabled. HOT 4
- Core crashes when opening a directory. HOT 1
- Black screen on OSX HOT 3
- windows buildbot build failure. HOT 7
- Game video intros are always broken HOT 10
- Switching to fullscreen turn screen to black HOT 3
- Build error if no .git folder (tarball) HOT 3
- Booting Game Fails
- Shaders causing issues HOT 10
- texture scaling causing black screen when launching multiple games
- Frame Pacing Problems
- ppsspp-libretro doesn't show the initial warning message on tekken 6. HOT 3
- ArmThunk HOT 1
- glu.h HOT 2
- ffmpeg and -fPIC HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ppsspp.