Compile errors on Ubuntu 20.04

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

Compile errors on Ubuntu 20.04

Postby legluondunet » Sun Oct 11, 2020 4:19 am

Hello,
could someone help me to compile GZDoom on Ubuntu 20.04?
I compiled ZMusic OK
But GZDoom not terminated compilation, it failed at 99%! with this error message:

Code: Select allExpand view
[ 99%] Building CXX object src/CMakeFiles/zdoom.dir/common/thirdparty/math/fastsin.cpp.o
make[2]: *** No rule to make target '/home/legluondunet/Autres_applications/Jeux/GZDOOM/ZMusic/libzmusic.So', needed by 'gzdoom'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 99%] Building CXX object src/CMakeFiles/zdoom.dir/zzautozend.cpp.o
In member function 'void FStringData::Dealloc()',
    inlined from 'void FStringData::Release()' at /home/legluondunet/Autres_applications/Jeux/GZDOOM/gzdoom/src/common/utility/zstring.h:100:11,
    inlined from 'FString::~FString()' at /home/legluondunet/Autres_applications/Jeux/GZDOOM/gzdoom/src/common/utility/zstring.cpp:158:17,
    inlined from 'void FString::Split(TArray<FString>&, const char*, FString::EmptyTokenType) const' at /home/legluondunet/Autres_applications/Jeux/GZDOOM/gzdoom/src/common/utility/zstring.cpp:1276:16:
/home/legluondunet/Autres_applications/Jeux/GZDOOM/gzdoom/src/common/utility/zstring.cpp:1398:7: warning: attempt to free a non-heap object 'FString::NullString' [-Wfree-nonheap-object]
 1398 |  free (this);
      |  ~~~~~^~~~~~
make[1]: *** [CMakeFiles/Makefile2:860: src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [Makefile:130: all] Error 2


Thank you for your help.
User avatar
legluondunet
 
Joined: 02 Oct 2020
Github ID: legluondunet
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Compile errors on Ubuntu 20.04

Postby _mental_ » Sun Oct 11, 2020 8:38 am

ZMusic library file should be named libzmusic.so, not libzmusic.So. Linux filesystems are case sensitive usually.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Compile errors on Ubuntu 20.04

Postby legluondunet » Sun Oct 11, 2020 5:53 pm

you are right, but even with the correct case, it changes nothing, same compilation error message.
User avatar
legluondunet
 
Joined: 02 Oct 2020
Github ID: legluondunet
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Compile errors on Ubuntu 20.04

Postby _mental_ » Mon Oct 12, 2020 12:18 am

There is no other error in the output you posted. Please provide complete compilation log.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Compile errors on Ubuntu 20.04

Postby legluondunet » Mon Oct 12, 2020 5:41 am

Finally I found what I did wrong: I would not install ZMusic library, so I compiled it and just add path to the library to GZDoom cmake.

But it was not enough, I had to install it for GZDoom compiled with success.

I don't like to install software or library like this, when there is no "make uninstall" script available and avoid to keep your Linux system clean.
User avatar
legluondunet
 
Joined: 02 Oct 2020
Github ID: legluondunet
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit
Graphics Processor: nVidia with Vulkan support


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest