audetto / AppleWin

Apple II emulator for Linux
GNU General Public License v2.0
50 stars 12 forks source link

Debian 10 Buster - cmake failed #36

Closed nerun closed 3 years ago

nerun commented 3 years ago

Debian 10 Buster - kernel 4.19.0-17-686-pae (32 bits)

CMAKE failed to compile, missing yaml-0.1

There's a libyaml-0-2 but doesn't help.

Any clue?

nerun commented 3 years ago

After installing many packages, one by one, trying to put this to compile, i realize that i need at least these packages to run:

sudo aptitude install build-essential cmake libyaml-dev libminizip-dev libslirp-dev libpcap-dev libncursesw5-dev libevdev-dev libboost-all-dev qtdeclarative5-dev libqt5gamepad5-dev qtmultimedia5-dev libudev-dev libsdl2-dev libsdl2-image-dev

But it's not enough, got some errors:

CMAKE_BUILD_TYPE:                RELEASE
CMAKE_CXX_FLAGS:                 
CMAKE_CXX_FLAGS_RELEASE:         -O3 -DNDEBUG
CMAKE_CXX_FLAGS_DEBUG:           -g
CMAKE_CXX_FLAGS_RELWITHDEBINFO:  -O2 -g -DNDEBUG
-- Checking for module 'libpcap'
--   No package 'libpcap' found
Found 'libpcap' via pcap-config
-- Boost version: 1.67.0
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   program_options
CMake Error at source/frontends/qt/CMakeLists.txt:11 (add_subdirectory):
  The source directory

    /home/daniel/Documents/AppleWin-master/source/frontends/qt/QHexView

  does not contain a CMakeLists.txt file.

-- Checking for one of the modules 'SDL2_image'
CMake Warning at source/frontends/libretro/CMakeLists.txt:51 (message):
  Bad LIBRETRO_COMMON_PATH=NONE, skipping 'libretro' core

-- Configuring incomplete, errors occurred!
nerun commented 3 years ago

Just now i have seen sudo apt-get -y install $(cat raspbian.list.txt), but no difference. Anyway, this list is more compact.

audetto commented 3 years ago

Can you post the cmake output after you have installed all packages from the list

nerun commented 3 years ago

It's above. Nothing changed.

nerun commented 3 years ago

Here is the output in Debian 11 Bullseye - kernel 5.10.0-8-amd64:

CMAKE_BUILD_TYPE:                RELEASE
CMAKE_CXX_FLAGS:                 
CMAKE_CXX_FLAGS_RELEASE:         -O3 -DNDEBUG
CMAKE_CXX_FLAGS_DEBUG:           -g
CMAKE_CXX_FLAGS_RELWITHDEBINFO:  -O2 -g -DNDEBUG
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0")  
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: program_options 
CMake Error at source/frontends/qt/CMakeLists.txt:11 (add_subdirectory):
  The source directory

    /home/daniel/Downloads/AppleWin-master/source/frontends/qt/QHexView

  does not contain a CMakeLists.txt file.

CMake Warning at source/frontends/libretro/CMakeLists.txt:51 (message):
  Bad LIBRETRO_COMMON_PATH=NONE, skipping 'libretro' core

-- Configuring incomplete, errors occurred!
See also "/home/daniel/Downloads/AppleWin-master/build/CMakeFiles/CMakeOutput.log".
audetto commented 3 years ago

Did you checkout the submodules?

https://github.com/audetto/AppleWin/blob/master/linux.md#checkout

nerun commented 3 years ago

Did you checkout the submodules?

https://github.com/audetto/AppleWin/blob/master/linux.md#checkout

Still in desktop 64 bits, i did a fresh install. And yes, added --recursive to clone. Then, inside AppleWin/build folder executed cmake -DCMAKE_BUILD_TYPE=RELEASE .. with 2 dots at end.

~/Downloads/AppleWin/build$ cmake -DCMAKE_BUILD_TYPE=RELEASE ..
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMAKE_BUILD_TYPE:                RELEASE
CMAKE_CXX_FLAGS:                 
CMAKE_CXX_FLAGS_RELEASE:         -O3 -DNDEBUG
CMAKE_CXX_FLAGS_DEBUG:           -g
CMAKE_CXX_FLAGS_RELWITHDEBINFO:  -O2 -g -DNDEBUG
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'yaml-0.1'
--   Found yaml-0.1, version 0.2.2
-- Checking for module 'minizip'
--   Found minizip, version 1.2.8
-- Checking for module 'slirp'
--   Found slirp, version 4.4.0
-- Checking for module 'libpcap'
--   Found libpcap, version 1.10.0
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0")  
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: program_options 
-- Checking for one of the modules 'ncursesw'
-- Checking for one of the modules 'libevdev'
CMake Error at source/frontends/qt/CMakeLists.txt:11 (add_subdirectory):
  The source directory

    /home/daniel/Downloads/AppleWin/source/frontends/qt/QHexView

  does not contain a CMakeLists.txt file.

-- Checking for one of the modules 'SDL2_image'
-- Checking for one of the modules 'glesv2'
CMake Warning at source/frontends/libretro/CMakeLists.txt:51 (message):
  Bad LIBRETRO_COMMON_PATH=NONE, skipping 'libretro' core

-- Configuring incomplete, errors occurred!
See also "/home/daniel/Downloads/AppleWin/build/CMakeFiles/CMakeOutput.log".
~/Downloads/AppleWin/build$   
~/Downloads/AppleWin/build$ make -j12
make: *** Nenhum alvo indicado e nenhum arquivo make encontrado.  Pare.
~/Downloads/AppleWin/build$ make     
make: *** Nenhum alvo indicado e nenhum arquivo make encontrado.  Pare.
~/Downloads/AppleWin/build$ 

Thank you for your attention.

nerun commented 3 years ago

I have found a solution!

Right cloning should be: git clone --recurse-submodules --recursive https://github.com/audetto/AppleWin.git

Should use both --recurse-submodules and --recursive. I have tried just one of them alternately and doesn't works.

Now it compiled very well, make also worked.

If you could update instructions would be better.

You can close this when you wish. Helped very much.

audetto commented 3 years ago

Must be a recent change in git, I will double check. Thanks.

audetto commented 3 years ago

It does work for me. Can you show me the full output of a new git clone using

git clone https://github.com/audetto/AppleWin.git --recursive

and tell me your version of git as well.

Screenshot from 2021-10-09 08-39-15

nerun commented 3 years ago

My System:

Linux: Debian 11 (bullseye)
Kernel: 5.10.0-8-amd64 x86_64
GIT version 2.30.2

Output

git clone https://github.com/audetto/AppleWin.git --recursive

Cloning into 'AppleWin'...
remote: Enumerating objects: 21071, done.
remote: Counting objects: 100% (1699/1699), done.
remote: Compressing objects: 100% (484/484), done.
remote: Total 21071 (delta 1248), reused 1638 (delta 1213), pack-reused 19372
Receiving objects: 100% (21071/21071), 12.35 MiB | 8.99 MiB/s, done.
Resolving deltas: 100% (15536/15536), done.
Submodule 'source/frontends/qt/QHexView' (https://github.com/Dax89/QHexView.git) registered for path 'source/frontends/qt/QHexView'
Submodule 'source/frontends/sdl/imgui/imgui' (https://github.com/ocornut/imgui) registered for path 'source/frontends/sdl/imgui/imgui'
Submodule 'source/frontends/sdl/imgui/imgui_club' (https://github.com/ocornut/imgui_club) registered for path 'source/frontends/sdl/imgui/imgui_club'
Cloning into '/home/daniel/Downloads/AppleWin/source/frontends/qt/QHexView'...
remote: Enumerating objects: 903, done.        
remote: Counting objects: 100% (50/50), done.        
remote: Compressing objects: 100% (40/40), done.        
remote: Total 903 (delta 22), reused 21 (delta 10), pack-reused 853        
Receiving objects: 100% (903/903), 488.67 KiB | 1.42 MiB/s, done.
Resolving deltas: 100% (570/570), done.
Cloning into '/home/daniel/Downloads/AppleWin/source/frontends/sdl/imgui/imgui'...
remote: Enumerating objects: 41806, done.        
remote: Counting objects: 100% (1087/1087), done.        
remote: Compressing objects: 100% (456/456), done.        
remote: Total 41806 (delta 829), reused 828 (delta 630), pack-reused 40719        
Receiving objects: 100% (41806/41806), 73.94 MiB | 17.00 MiB/s, done.
Resolving deltas: 100% (31595/31595), done.
Cloning into '/home/daniel/Downloads/AppleWin/source/frontends/sdl/imgui/imgui_club'...
remote: Enumerating objects: 265, done.        
remote: Counting objects: 100% (36/36), done.        
remote: Compressing objects: 100% (17/17), done.        
remote: Total 265 (delta 16), reused 28 (delta 10), pack-reused 229        
Receiving objects: 100% (265/265), 88.74 KiB | 1.89 MiB/s, done.
Resolving deltas: 100% (83/83), done.
Submodule path 'source/frontends/qt/QHexView': checked out '4d06da87e7e9202d1d760afaee6f4a4b297612fc'
Submodule path 'source/frontends/sdl/imgui/imgui': checked out '17ec4f1f6fa64a08892d8dcfa61ace684bae53fc'
Submodule path 'source/frontends/sdl/imgui/imgui_club': checked out '02e679b7f4cfb01f9480dcbcac59552879f96573'

Compiling

cmake -DCMAKE_BUILD_TYPE=RELEASE ..

-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMAKE_BUILD_TYPE:                RELEASE
CMAKE_CXX_FLAGS:                 
CMAKE_CXX_FLAGS_RELEASE:         -O3 -DNDEBUG
CMAKE_CXX_FLAGS_DEBUG:           -g
CMAKE_CXX_FLAGS_RELWITHDEBINFO:  -O2 -g -DNDEBUG
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'yaml-0.1'
--   Found yaml-0.1, version 0.2.2
-- Checking for module 'minizip'
--   Found minizip, version 1.2.8
-- Checking for module 'slirp'
--   Found slirp, version 4.4.0
-- Checking for module 'libpcap'
--   Found libpcap, version 1.10.0
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0")  
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: program_options 
-- Checking for one of the modules 'ncursesw'
-- Checking for one of the modules 'libevdev'
-- Checking for one of the modules 'SDL2_image'
-- Checking for one of the modules 'glesv2'
CMake Warning at source/frontends/libretro/CMakeLists.txt:51 (message):
  Bad LIBRETRO_COMMON_PATH=NONE, skipping 'libretro' core

-- Configuring done
-- Generating done
-- Build files have been written to: /home/daniel/Downloads/AppleWin/build

Worked!

And this time... It worked?! I don't understand, truly. Seriously, I'm not kidding, I didn't understand why this time it worked. I downloaded it all over again, in a new folder. I don't know why now it managed to compile, it doesn't make any sense.

So sorry.