🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.os.linux.programowanie
3 messages
3 total messages Started by Jacek Maciejewski Sat, 06 Aug 2016 08:24
Skompilowanie apulse
#72810
Author: Jacek Maciejewski
Date: Sat, 06 Aug 2016 08:24
99 lines
4202 bytes
Witam
Na https://github.com/i-rinat/apulse jest zamieszczony projekt programu
emulującego pulseaudio. Chciałbym go skompilować (mój OS to Mint 18 64b)
ale próba wygląda tak:

jacek@jacek-desktop ~/build $ CFLAGS=-m32 cmake -DAPULSEPATH=/usr/lib
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
-- 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 -- broken
CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61
(message):
  The C compiler "/usr/bin/cc" is not able to compile a simple test
program.

  It fails with the following output:

   Change Dir: /home/jacek/build/CMakeFiles/CMakeTmp

   Run Build Command:"/usr/bin/make" "cmTC_7cc7c/fast"

  /usr/bin/make -f CMakeFiles/cmTC_7cc7c.dir/build.make
  CMakeFiles/cmTC_7cc7c.dir/build

  make[1]: Wejście do katalogu '/home/jacek/build/CMakeFiles/CMakeTmp'

  Building C object CMakeFiles/cmTC_7cc7c.dir/testCCompiler.c.o

  /usr/bin/cc -m32 -o CMakeFiles/cmTC_7cc7c.dir/testCCompiler.c.o -c
  /home/jacek/build/CMakeFiles/CMakeTmp/testCCompiler.c

  Linking C executable cmTC_7cc7c

  /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7cc7c.dir/link.txt
  --verbose=1

  /usr/bin/cc -m32 CMakeFiles/cmTC_7cc7c.dir/testCCompiler.c.o -o
cmTC_7cc7c
  -rdynamic

  /usr/bin/ld: cannot find crt1.o: Nie ma takiego pliku ani katalogu

  /usr/bin/ld: cannot find crti.o: Nie ma takiego pliku ani katalogu

  /usr/bin/ld: opuszczanie niekompatybilnego
  /usr/lib/gcc/x86_64-linux-gnu/5/libgcc.a, gdy szukane jest -lgcc

  /usr/bin/ld: cannot find -lgcc

  /usr/bin/ld: opuszczanie niekompatybilnego
  /usr/lib/gcc/x86_64-linux-gnu/5/libgcc_s.so, gdy szukane jest -lgcc_s

  /usr/bin/ld: cannot find -lgcc_s

  /usr/bin/ld: cannot find -lc

  /usr/bin/ld: opuszczanie niekompatybilnego
  /usr/lib/gcc/x86_64-linux-gnu/5/libgcc.a, gdy szukane jest -lgcc

  /usr/bin/ld: cannot find -lgcc

  /usr/bin/ld: opuszczanie niekompatybilnego
  /usr/lib/gcc/x86_64-linux-gnu/5/libgcc_s.so, gdy szukane jest -lgcc_s

  /usr/bin/ld: cannot find -lgcc_s

  /usr/bin/ld: cannot find crtn.o: Nie ma takiego pliku ani katalogu

  collect2: error: ld returned 1 exit status

  CMakeFiles/cmTC_7cc7c.dir/build.make:97: polecenia dla obiektu
'cmTC_7cc7c'
  nie powiodły się

  make[1]: *** [cmTC_7cc7c] Błąd 1

  make[1]: Opuszczenie katalogu '/home/jacek/build/CMakeFiles/CMakeTmp'

  Makefile:126: polecenia dla obiektu 'cmTC_7cc7c/fast' nie powiodły się

  make: *** [cmTC_7cc7c/fast] Błąd 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:1 (project)

-- Configuring incomplete, errors occurred!
See also "/home/jacek/build/CMakeFiles/CMakeOutput.log".
See also "/home/jacek/build/CMakeFiles/CMakeError.log".
jacek@jacek-desktop ~/build $ 

Czy ktoś nie zechciałby pomóc? Dodam że nie jestem informatykiem i
trzeba mi mówić prosto :)

-- 
Jacek
"Wszelka izolacja jest glebą, na której wyrasta nienawiść do obcych, a
jej owoc jest gorzki" - Frank Herbert
Re: Skompilowanie apulse
#72811
Author: Piecia aka dracorp
Date: Tue, 16 Aug 2016 08:19
9 lines
1796 bytes
W dniu sobota, 6 sierpnia 2016 10:24:35 UTC+2 użytkownik Jacek Maciejewski napisał:
> Czy ktoś nie zechciałby pomóc? Dodam że nie jestem informatykiem i
> trzeba mi mówić prosto :)
Spróbuj poleceń dla paczki z Archlinuksa:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=lib32-apulse
U mnie #SOA1.

-- 
Piotr
Re: Skompilowanie apulse
#72812
Author: Bogdan (bogdro)
Date: Tue, 16 Aug 2016 10:15
59 lines
3278 bytes
W dniu 06.08.2016 o 10:24, Jacek Maciejewski pisze:
> Witam
> Na https://github.com/i-rinat/apulse jest zamieszczony projekt programu
> emulującego pulseaudio. Chciałbym go skompilować (mój OS to Mint 18 64b)
> ale próba wygląda tak:
> 
> jacek@jacek-desktop ~/build $ CFLAGS=-m32 cmake -DAPULSEPATH=/usr/lib
> -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
> -- 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 -- broken
> CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61
> (message):
>   The C compiler "/usr/bin/cc" is not able to compile a simple test
> program.
> 
>   It fails with the following output:

[...]

> 
>   /usr/bin/ld: cannot find crt1.o: Nie ma takiego pliku ani katalogu
> 
>   /usr/bin/ld: cannot find crti.o: Nie ma takiego pliku ani katalogu
> 
>   /usr/bin/ld: opuszczanie niekompatybilnego
>   /usr/lib/gcc/x86_64-linux-gnu/5/libgcc.a, gdy szukane jest -lgcc
> 
>   /usr/bin/ld: cannot find -lgcc
> 
>   /usr/bin/ld: opuszczanie niekompatybilnego
>   /usr/lib/gcc/x86_64-linux-gnu/5/libgcc_s.so, gdy szukane jest -lgcc_s
> 
>   /usr/bin/ld: cannot find -lgcc_s
> 
>   /usr/bin/ld: cannot find -lc

[...]

> 
> Czy ktoś nie zechciałby pomóc? Dodam że nie jestem informatykiem i
> trzeba mi mówić prosto :)
> 

 Po wybranych przeze mnie powyżej komunikatach błędów strzelałbym, że
brakuje w systemie pakietów "dla programistów", czyli z końcówką
-devel, w szczególności glibc-devel (brakujące "-lc") i podobnych.
 Być może nie są zainstalowane dla odpowiedniej architektury (stąd
"niekomaptybilność").
 Być może domyślna kompilacja jest uruchamiana pod niewłaściwą
architekturę (tu być może trzeba byłoby ustawić zmienne środowiskowe
na odpowiedni kompilator).

-- 
Pozdrawiam/Regards - Bogdan                     (GNU/Linux & FreeDOS)
Kurs asemblera x86 (DOS, GNU/Linux):            http://bogdro.evai.pl
Grupy dyskusyjne o asm:  pl.comp.lang.asm alt.pl.asm alt.pl.asm.win32
www.Xiph.org www.TorProject.org  Soft(EN): http://bogdro.evai.pl/soft
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads