Can't compile on Linux (something about ZMusic)

Can't compile on Linux (something about ZMusic)

Postby axredneck » Sat Feb 29, 2020 10:24 am

CMake output:
Code: Select allExpand view
Using system zlib, includes found at /usr/include
Using system jpeg library, includes found at /usr/include
Using system bzip2 library, includes found at /usr/include
Architecture is x86_64
Could NOT find ZMusic (missing: ZMUSIC_LIBRARIES ZMUSIC_INCLUDE_DIR)
Found OpenMP_C: -fopenmp 
Found OpenMP_CXX: -fopenmp 
Found OpenMP: TRUE   
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ZMUSIC_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/redneck/games/Raze-git/source
   used as include directory in directory /home/redneck/games/Raze-git/source
   used as include directory in directory /home/redneck/games/Raze-git/source
   used as include directory in directory /home/redneck/games/Raze-git/source
   used as include directory in directory /home/redneck/games/Raze-git/source
   used as include directory in directory /home/redneck/games/Raze-git/source
   used as include directory in directory /home/redneck/games/Raze-git/source
   used as include directory in directory /home/redneck/games/Raze-git/source
   used as include directory in directory /home/redneck/games/Raze-git/source/duke3d
   used as include directory in directory /home/redneck/games/Raze-git/source/duke3d
   used as include directory in directory /home/redneck/games/Raze-git/source/duke3d
   used as include directory in directory /home/redneck/games/Raze-git/source/duke3d
   used as include directory in directory /home/redneck/games/Raze-git/source/duke3d
   used as include directory in directory /home/redneck/games/Raze-git/source/duke3d
   used as include directory in directory /home/redneck/games/Raze-git/source/duke3d
   used as include directory in directory /home/redneck/games/Raze-git/source/blood
   used as include directory in directory /home/redneck/games/Raze-git/source/blood
   used as include directory in directory /home/redneck/games/Raze-git/source/blood
   used as include directory in directory /home/redneck/games/Raze-git/source/blood
   used as include directory in directory /home/redneck/games/Raze-git/source/blood
   used as include directory in directory /home/redneck/games/Raze-git/source/blood
   used as include directory in directory /home/redneck/games/Raze-git/source/blood
   used as include directory in directory /home/redneck/games/Raze-git/source/rr
   used as include directory in directory /home/redneck/games/Raze-git/source/rr
   used as include directory in directory /home/redneck/games/Raze-git/source/rr
   used as include directory in directory /home/redneck/games/Raze-git/source/rr
   used as include directory in directory /home/redneck/games/Raze-git/source/rr
   used as include directory in directory /home/redneck/games/Raze-git/source/rr
   used as include directory in directory /home/redneck/games/Raze-git/source/rr
   used as include directory in directory /home/redneck/games/Raze-git/source/sw
   used as include directory in directory /home/redneck/games/Raze-git/source/sw
   used as include directory in directory /home/redneck/games/Raze-git/source/sw
   used as include directory in directory /home/redneck/games/Raze-git/source/sw
   used as include directory in directory /home/redneck/games/Raze-git/source/sw
   used as include directory in directory /home/redneck/games/Raze-git/source/sw
   used as include directory in directory /home/redneck/games/Raze-git/source/sw
   used as include directory in directory /home/redneck/games/Raze-git/source/exhumed
   used as include directory in directory /home/redneck/games/Raze-git/source/exhumed
   used as include directory in directory /home/redneck/games/Raze-git/source/exhumed
   used as include directory in directory /home/redneck/games/Raze-git/source/exhumed
   used as include directory in directory /home/redneck/games/Raze-git/source/exhumed
   used as include directory in directory /home/redneck/games/Raze-git/source/exhumed
   used as include directory in directory /home/redneck/games/Raze-git/source/exhumed
ZMUSIC_LIBRARIES (ADVANCED)
    linked by target "raze" in directory /home/redneck/games/Raze-git/source

Configuring incomplete, errors occurred!

What i am doing wrong?
User avatar
axredneck
excuse me for my bad English
 
Joined: 11 Dec 2017
Location: Russia
Github ID: axredneck
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Can't compile on Linux (something about ZMusic)

Postby sinisterseed » Sat Feb 29, 2020 10:27 am

I could be very wrong, but I think you'll have to compile ZMusic as well: https://github.com/coelckers/ZMusic
User avatar
sinisterseed
GZDoom RO Translator & Raze Tester
 
Joined: 05 Nov 2019
Twitch ID: sixhundredsixteen
Github ID: sinisterseed
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Can't compile on Linux (something about ZMusic)

Postby Graf Zahl » Sat Feb 29, 2020 10:30 am

Yea, surely. It complains that it cannot find the needed files from that.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Can't compile on Linux (something about ZMusic)

Postby axredneck » Sat Feb 29, 2020 10:43 am

Where i need to place ZMusic?
User avatar
axredneck
excuse me for my bad English
 
Joined: 11 Dec 2017
Location: Russia
Github ID: axredneck
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Can't compile on Linux (something about ZMusic)

Postby Manuel-K » Sat Feb 29, 2020 11:10 am

Where you want. Then you set the path with -DZMUSIC_INCLUDE_DIR=… and -DZMUSIC_LIBRARIES=….
Manuel-K
 
Joined: 15 Mar 2017

Re: Can't compile on Linux (something about ZMusic)

Postby Graf Zahl » Sat Feb 29, 2020 11:13 am

The ZMusic setup still needs some refinement. But for that I need a bit of help from the resident CMake experts.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Can't compile on Linux (something about ZMusic)

Postby axredneck » Sat Feb 29, 2020 11:34 am

Also this should be mentioned in readme and/or Wiki
User avatar
axredneck
excuse me for my bad English
 
Joined: 11 Dec 2017
Location: Russia
Github ID: axredneck
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Can't compile on Linux (something about ZMusic)

Postby sinisterseed » Sat Feb 29, 2020 2:50 pm

axredneck wrote:Also this should be mentioned in readme and/or Wiki

All in due time.

There is some info regarding ZMusic here - viewtopic.php?f=49&t=67489
User avatar
sinisterseed
GZDoom RO Translator & Raze Tester
 
Joined: 05 Nov 2019
Twitch ID: sixhundredsixteen
Github ID: sinisterseed
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Can't compile on Linux (something about ZMusic)

Postby Rachael » Sat Feb 29, 2020 3:38 pm

axredneck wrote:Where i need to place ZMusic?

"make install" is normally sufficient for placing it where it needs to go, in my experience. You can try that.
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Can't compile on Linux (something about ZMusic)

Postby axredneck » Sat Feb 29, 2020 3:53 pm

I see there is "zmusic" pkgbuild in AUR, i installed it and now all works.
User avatar
axredneck
excuse me for my bad English
 
Joined: 11 Dec 2017
Location: Russia
Github ID: axredneck
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Can't compile on Linux (something about ZMusic)

Postby Rachael » Sat Feb 29, 2020 7:25 pm

That works too :)
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Can't compile on Linux (something about ZMusic)

Postby LitterboxGremlin » Wed Oct 21, 2020 6:51 am

I'm using debian, and I wonder if there is a way to statically link the zmusic library when I compile? I'm unwilling to install zmusic outside my user directory.
LitterboxGremlin
 
Joined: 31 Mar 2016

Re: Can't compile on Linux (something about ZMusic)

Postby _mental_ » Wed Oct 21, 2020 6:55 am

This topic already has the answer to your question.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Can't compile on Linux (something about ZMusic)

Postby LitterboxGremlin » Wed Oct 21, 2020 7:34 am

I already tried that. It doesn't statically link to the library, it just allows you to give an arbitrary path. It still expects the library to be there. I basically want to statically link the library at compile time so I don't have to have the library separate on my system.
LitterboxGremlin
 
Joined: 31 Mar 2016

Re: Can't compile on Linux (something about ZMusic)

Postby _mental_ » Wed Oct 21, 2020 8:29 am

There is an option to create ZMusic static library by setting BUILD_SHARED_LIBS CMake variable to OFF.
However, it won't create a library with all dependencies included. They need to be explicitly linked to an executable.
_mental_
 
 
 
Joined: 07 Aug 2011

Next

Return to General

Who is online

Users browsing this forum: No registered users and 0 guests