nikp123 / xava

X11 Audio Visualizer for ALSA
http://nikp123.github.io/xava
Other
133 stars 15 forks source link

CMake Error at CMakeLists.txt #4

Closed banancc closed 5 years ago

banancc commented 5 years ago

I tryed to install xava and that happened: cmake .. -DCMAKE_BUILD_TYPE=Release

-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.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
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- iniparser not found on system, building from source.
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
-- Checking for module 'fftw3'
--   Found fftw3, version 3.3.7
-- Not a Windows platform, can use POSIX now!
-- portaudio library not found
-- Configuring done
CMake Error at CMakeLists.txt:27 (add_library):
  Cannot find source file:

    lib/iniparser/src/dictionary.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx

CMake Error at CMakeLists.txt:27 (add_library):
  No SOURCES given to target: iniparser

CMake Generate step failed.  Build files cannot be regenerated correctly.

Please help! Thanks!

nikp123 commented 5 years ago

fatal: not a git repository (or any parent up to mount point /)

This shouldn't happen.....

nikp123 commented 5 years ago

Try cloning the repository instead of downloading it

I think you're missing the git submodules file

banancc commented 5 years ago

Try cloning the repository instead of downloading it

It's still the same :(

nikp123 commented 5 years ago

Can't reproduce. Do you mind sharing your configuration?

Workaround: try installing iniparser independently.

banancc commented 5 years ago

Do you mind sharing your configuration?

Intel® Pentium(R) CPU G6950 @ 2.80GHz × 2 integrated graphics

nikp123 commented 5 years ago

Apologies, I meant OS/distro.

nikp123 commented 5 years ago

Also interesting to note is:

Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Are you using a remote filesystem by any chance?

Try below before running cmake.

export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
banancc commented 5 years ago

Apologies, I meant OS/distro.

Ubuntu Budgie 18.04.3 LTS

banancc commented 5 years ago

Are you using a remote filesystem by any chance?

Nop

banancc commented 5 years ago

Try below before running cmake.

export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
cmake .. -DCMAKE_BUILD_TYPE=Release 
-- iniparser not found on system, building from source.
fatal: not a git repository (or any of the parent directories): .git
-- Not a Windows platform, can use POSIX now!
-- portaudio library not found
-- Configuring done
CMake Error at CMakeLists.txt:27 (add_library):
  Cannot find source file:

    lib/iniparser/src/dictionary.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx

CMake Error at CMakeLists.txt:27 (add_library):
  No SOURCES given to target: iniparser

CMake Generate step failed.  Build files cannot be regenerated correctly.
nikp123 commented 5 years ago

are you sure there's a .git folder in the root directory of the project?

fxp. /home/banancc/Downloads/xava/.git

because that's really not supposed to happen.....

banancc commented 5 years ago

are you sure there's a .git folder in the root directory of the project?

Screenshot from 2019-08-24 17-41-48

I think yes

nikp123 commented 5 years ago

xava-master - thats the zip file (not clone)

nikp123 commented 5 years ago

But I'll try to fix it for those who hadn't cloned anyway

banancc commented 5 years ago

xava-master - thats the zip file (not clone)

so i need to just zip it right?

nikp123 commented 5 years ago

No just do the following in the terminal:

git clone https://github.com/nikp123/xava
banancc commented 5 years ago

Screenshot from 2019-08-24 18-19-47

I'm too dumb for that or what? :|

nikp123 commented 5 years ago

try that but with export GIT_DISCOVERY_ACROSS_FILESYSTEM=1

banancc commented 5 years ago

export GIT_DISCOVERY_ACROSS_FILESYSTEM=1

when i need to type that command?

nikp123 commented 5 years ago

just before you run cmake

banancc commented 5 years ago

I replaced my cmakelists.txt with the one you attached

banancc commented 5 years ago

just before you run cmake

-- iniparser not found on system, building from source.
fatal: not a git repository (or any of the parent directories): .git
-- Not a Windows platform, can use POSIX now!
-- portaudio library not found
-- Configuring done
CMake Error at CMakeLists.txt:27 (add_library):
  Cannot find source file:

    lib/iniparser/src/dictionary.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx

CMake Error at CMakeLists.txt:27 (add_library):
  No SOURCES given to target: iniparser

CMake Generate step failed.  Build files cannot be regenerated correctly.
nikp123 commented 5 years ago

Do these steps instead:

export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
git clone https://github.com/nikp123/xava
mkdir -p xava/build
cd xava/build
cmake ..
make -j$(nproc)

and that should be it. If that fails, then I seriously have no idea.

EDIT: You're trying to run cmake in a wrong directory. Of course it's going to fail. You forgot to cd xava before you did the mkdir command.

banancc commented 5 years ago

EDIT: You're trying to run cmake in a wrong directory. Of course it's going to fail. You forgot to cd xava before you did the mkdir command.

Thanks a lot! :) But now i have that:

qwerty@ubuntu:~/xava/build$ make -j$(nproc)
make: *** No targets specified and no makefile found.  Stop.
nikp123 commented 5 years ago

did cmake succeed? show me the entire log if you can

banancc commented 5 years ago

I deleted all xava files on my pc and started again with

Do these steps instead:

these commands and all worked fine!

Thanks a lot for your support! Screenshot from 2019-08-25 18-23-52

banancc commented 5 years ago

So how can i run xava on my desktop? Or i need something more?

nikp123 commented 5 years ago

just do ./xava

or to install do: make install

banancc commented 5 years ago

qwerty@ubuntu:~/xava/build$ cmake ..
-- iniparser not found on system, building from source.
-- Not a Windows platform, can use POSIX now!
-- portaudio library not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/qwerty/xava/build
qwerty@ubuntu:~/xava/build$ make -j$(nproc)
[ 21%] Built target iniparser
[100%] Built target xava
qwerty@ubuntu:~/xava/build$ make install
[ 21%] Built target iniparser
[100%] Built target xava
Install the project...
-- Install configuration: "Debug"
-- Installing: /usr/local/bin/xava
CMake Error at cmake_install.cmake:47 (file):
  file INSTALL cannot copy file "/home/qwerty/xava/build/xava" to
  "/usr/local/bin/xava".

Makefile:117: recipe for target 'install' failed
make: *** [install] Error 1
qwerty@ubuntu:~/xava/build$ 
nikp123 commented 5 years ago

you need to run it as sudo

banancc commented 5 years ago

Screenshot from 2019-08-25 19-06-38 OMG! It works! Thanks a lot! I hope to understand how to configure it!