-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue compiling on Ubuntu #19
Comments
This is due to an issue with Genesis-Plus-Gx ekeeke/Genesis-Plus-GX/issues/125 . |
@timgriffin, My last commit should fix this issue. |
Still having trouble compiling on Ubuntu on AWS. |
Please copy the make log so I can have a look. |
ubuntu@ip-171-39-66-4: |
Well it looks like you compiled everything. |
Sorry. I was confused by all of the warnings. I installed the Python interface instead using pip install --user . command. The install seemed successful. However, I got the following error when I tried to import RLEInterface In [1]: from rle_python_interface import RLEInterfaceOSError Traceback (most recent call last) /home/ubuntu/Retro-Learning-Environment/rle_python_interface/rle_python_interface.py in () /home/ubuntu/anaconda3/lib/python3.5/ctypes/init.py in LoadLibrary(self, name) /home/ubuntu/anaconda3/lib/python3.5/ctypes/init.py in init(self, name, mode, handle, use_errno, use_last_error) OSError: /home/ubuntu/Retro-Learning-Environment/rle_python_interface/librle_c.so: cannot open shared object file: No such file or directory Note I think I have found librle_c.so here: /home/ubuntu/.local/lib/python3.5/site-packages/rle_python_interface/librle_c.so |
Looks like while you've installed the library in You should open Python from a different dir such that the imported rle_python_interface.py file is the installed on. |
Thanks, I tried from a different directory and I got this error: In [1]: from rle_python_interface import RLEInterfaceImportError Traceback (most recent call last) ImportError: cannot import name 'RLEInterface' |
These errors are usually caused due to circular dependencies or PYTHONPATH issues. |
Yes, I think everything is working now. Thanks a lot! |
Great. |
Hi,
I'm able to get to 99% but unfortunately it fails at the end. Any ideas?
tim@matlab:
/Downloads/Retro-Learning-Environment$ mkdir build && cd build/Downloads/Retro-Learning-Environment/build$ cmake -DUSE_SDL=ON -DBUILD_EXAMPLES=ON ..tim@matlab:
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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
-- 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/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15")
sdl_library:/usr/lib/x86_64-linux-gnu/libSDLmain.a/usr/lib/x86_64-linux-gnu/libSDL.so-lpthread
-- INCLUDE_DIR /usr/local/include/rle
-- LIBRARY_DIR /usr/local/lib
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tim/Downloads/Retro-Learning-Environment/build
tim@matlab:~/Downloads/Retro-Learning-Environment/build$ make -j 4
Scanning dependencies of target stella_libretro
Scanning dependencies of target rle-lib
Scanning dependencies of target rle-c-lib
Scanning dependencies of target snes9x2010_libretro
[ 0%] Creating directories for 'stella_libretro'
[ 1%] Creating directories for 'snes9x2010_libretro'
[ 2%] Building CXX object CMakeFiles/rle-lib.dir/src/rle_interface.cpp.o
[ 3%] Building CXX object CMakeFiles/rle-c-lib.dir/rle_python_interface/rle_c_wrapper.cpp.o
[ 4%] Performing download step (git clone) for 'stella_libretro'
[ 5%] Performing download step (git clone) for 'snes9x2010_libretro'
Cloning into 'snes9x2010'...
Cloning into 'stella-libretro'...
[ 6%] Building CXX object CMakeFiles/rle-c-lib.dir/src/rle_interface.cpp.o
[ 6%] Building CXX object CMakeFiles/rle-lib.dir/src/common/ScreenExporter.cpp.o
[ 7%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/ScreenExporter.cpp.o
[ 8%] Building CXX object CMakeFiles/rle-lib.dir/src/common/Log.cpp.o
[ 9%] Building CXX object CMakeFiles/rle-lib.dir/src/common/SoundExporter.cpp.o
[ 9%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/Log.cpp.o
[ 10%] Building CXX object CMakeFiles/rle-lib.dir/src/common/Constants.cpp.o
[ 11%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/SoundExporter.cpp.o
[ 12%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/Constants.cpp.o
[ 13%] Building CXX object CMakeFiles/rle-lib.dir/src/common/display_screen.cpp.o
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ 14%] No patch step for 'stella_libretro'
[ 15%] No update step for 'stella_libretro'
[ 16%] No configure step for 'stella_libretro'
[ 17%] Building CXX object CMakeFiles/rle-c-lib.dir/src/common/display_screen.cpp.o
[ 18%] Performing build step for 'stella_libretro'
[ 19%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/RetroAgent.cpp.o
[ 20%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/RetroAgent.cpp.o
[ 20%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/RleSystem.cxx.o
[ 21%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/RleSystem.cxx.o
[ 22%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/Deserializer.cxx.o
/home/tim/Downloads/Retro-Learning-Environment/src/environment/Deserializer.cxx: In member function ‘void Deserializer::getIntArray(int*, size_t&)’:
/home/tim/Downloads/Retro-Learning-Environment/src/environment/Deserializer.cxx:100:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < size ; i++){
^
[ 23%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/retro_environment.cpp.o
[ 23%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/Deserializer.cxx.o
/home/tim/Downloads/Retro-Learning-Environment/src/environment/Deserializer.cxx: In member function ‘void Deserializer::getIntArray(int*, size_t&)’:
/home/tim/Downloads/Retro-Learning-Environment/src/environment/Deserializer.cxx:100:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < size ; i++){
^
[ 24%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/retro_environment.cpp.o
[ 25%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/phosphor_blend.cpp.o
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ 26%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/phosphor_blend.cpp.o
[ 27%] No patch step for 'snes9x2010_libretro'
[ 27%] No update step for 'snes9x2010_libretro'
[ 28%] No configure step for 'snes9x2010_libretro'
[ 29%] Performing build step for 'snes9x2010_libretro'
src/apu.c: In function ‘spc_copier_copy_int’:
src/apu.c:1240:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
SET_LE16( s, state );
^
src/apu.c:1242:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return GET_LE16( s );
^
[ 30%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/Random.cxx.o
[ 31%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/rle_screen.cpp.o
[ 32%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/Random.cxx.o
[ 33%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/rle_screen.cpp.o
[ 33%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/rle_ram.cpp.o
[ 34%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/rle_state.cpp.o
[ 35%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/rle_ram.cpp.o
[ 35%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/rle_state.cpp.o
[ 36%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/FSNode.cxx.o
[ 37%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/FSNode.cxx.o
[ 38%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/Serializer.cxx.o
[ 39%] Building CXX object CMakeFiles/rle-lib.dir/src/environment/Settings.cxx.o
[ 40%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/Serializer.cxx.o
[ 41%] Building CXX object CMakeFiles/rle-c-lib.dir/src/environment/Settings.cxx.o
[ 41%] Building CXX object CMakeFiles/rle-lib.dir/src/games/SnesSettings.cpp.o
[ 42%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/SnesSettings.cpp.o
[ 43%] Building CXX object CMakeFiles/rle-lib.dir/src/games/GenesisSettings.cpp.o
[ 43%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/GenesisSettings.cpp.o
[ 44%] Building CXX object CMakeFiles/rle-lib.dir/src/games/RomSettings.cpp.o
[ 45%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/RomSettings.cpp.o
[ 46%] Building CXX object CMakeFiles/rle-lib.dir/src/games/RomUtils.cpp.o
[ 47%] Building CXX object CMakeFiles/rle-lib.dir/src/games/AtariSettings.cpp.o
[ 48%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/RomUtils.cpp.o
[ 49%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/AtariSettings.cpp.o
[ 50%] Building CXX object CMakeFiles/rle-lib.dir/src/games/Roms.cpp.o
[ 51%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/Roms.cpp.o
[ 51%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/SuperMarioWorld.cpp.o
[ 52%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/SuperMarioWorld.cpp.o
[ 53%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/AtariCollection.cpp.o
src/memmap.c: In function ‘HeaderRemove’:
src/memmap.c:747:3: warning: value computed is not used [-Wunused-value]
(headerCount)++;
^
[ 53%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/AtariCollection.cpp.o
[ 54%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/SonicTheHedgehog.cpp.o
[ 55%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/SonicTheHedgehog.cpp.o
[ 56%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/FZeroNoSpeed.cpp.o
[ 57%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/FZeroNoSpeed.cpp.o
[ 58%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/Seaquest.cpp.o
[ 59%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/Seaquest.cpp.o
[ 60%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/BustAMove.cpp.o
[ 61%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/BustAMove.cpp.o
[ 61%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/MortalKombat2Players.cpp.o
[ 62%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/MortalKombat2Players.cpp.o
[ 63%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/Wolfenstein.cpp.o
[ 63%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/Wolfenstein.cpp.o
[ 64%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/SuperMarioAllStars.cpp.o
[ 65%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/SuperMarioAllStars.cpp.o
[ 66%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/MortalKombat.cpp.o
[ 67%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/MortalKombat.cpp.o
[ 68%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/Aladdin.cpp.o
[ 69%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/Aladdin.cpp.o
[ 70%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/Boxing.cpp.o
[ 71%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/Boxing.cpp.o
[ 72%] No install step for 'stella_libretro'
[ 73%] Completed 'stella_libretro'
[ 73%] Built target stella_libretro
Scanning dependencies of target genesis_plus_gx_libretro
[ 74%] Creating directories for 'genesis_plus_gx_libretro'
[ 74%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/TetrisAndDrMario.cpp.o
[ 75%] Performing download step (git clone) for 'genesis_plus_gx_libretro'
Cloning into 'Genesis-Plus-GX'...
[ 76%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/TetrisAndDrMario.cpp.o
[ 77%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/NBAGiveNGo.cpp.o
[ 77%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/NBAGiveNGo.cpp.o
[ 78%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/FinalFight.cpp.o
[ 79%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/FinalFight.cpp.o
[ 80%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/GradiusIII.cpp.o
[ 81%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/GradiusIII.cpp.o
[ 82%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/StreetFighterII.cpp.o
[ 83%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/StreetFighterII.cpp.o
[ 83%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/FZero.cpp.o
[ 84%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/FZero.cpp.o
[ 85%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/ClassicKong.cpp.o
[ 85%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/ClassicKong.cpp.o
[ 86%] Building CXX object CMakeFiles/rle-lib.dir/src/games/supported/SuperMarioAllStarsNoRight.cpp.o
[ 87%] Building CXX object CMakeFiles/rle-c-lib.dir/src/games/supported/SuperMarioAllStarsNoRight.cpp.o
[ 88%] Building C object CMakeFiles/rle-lib.dir/src/external/TinyMT/tinymt32.c.o
[ 89%] Building CXX object CMakeFiles/rle-lib.dir/src/os_dependent/FSNodePOSIX.cxx.o
[ 90%] Building C object CMakeFiles/rle-c-lib.dir/src/external/TinyMT/tinymt32.c.o
[ 91%] Building CXX object CMakeFiles/rle-c-lib.dir/src/os_dependent/FSNodePOSIX.cxx.o
[ 92%] Linking CXX shared library ../librle.so
[ 93%] Linking CXX shared library ../rle_python_interface/librle_c.so
[ 93%] Built target rle-lib
Scanning dependencies of target sharedLibraryInterfaceExample
[ 93%] Building CXX object CMakeFiles/sharedLibraryInterfaceExample.dir/doc/examples/sharedLibraryInterfaceExample.cpp.o
[ 93%] Built target rle-c-lib
libretro/libretro.c: In function ‘snes_init’:
libretro/libretro.c:619:4: warning: ignoring return value of ‘posix_memalign’, declared with attribute warn_unused_result [-Wunused-result]
posix_memalign((void*)&GFX.Screen, 16, GFX.Pitch * 512 * sizeof(uint16));
^
[ 94%] Linking CXX executable ../doc/examples/sharedLibraryInterfaceExample
[ 94%] Built target sharedLibraryInterfaceExample
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ 95%] No update step for 'genesis_plus_gx_libretro'
[ 95%] No patch step for 'genesis_plus_gx_libretro'
[ 96%] No configure step for 'genesis_plus_gx_libretro'
[ 97%] Performing build step for 'genesis_plus_gx_libretro'
make[3]: *** No targets specified and no makefile found. Stop.
CMakeFiles/genesis_plus_gx_libretro.dir/build.make:111: recipe for target 'genesis_plus_gx_libretro-prefix/src/genesis_plus_gx_libretro-stamp/genesis_plus_gx_libretro-build' failed
make[2]: *** [genesis_plus_gx_libretro-prefix/src/genesis_plus_gx_libretro-stamp/genesis_plus_gx_libretro-build] Error 2
CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/genesis_plus_gx_libretro.dir/all' failed
make[1]: *** [CMakeFiles/genesis_plus_gx_libretro.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 98%] No install step for 'snes9x2010_libretro'
[ 99%] Completed 'snes9x2010_libretro'
[ 99%] Built target snes9x2010_libretro
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: