QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: johnno56 on June 26, 2020, 05:41:53 am

Title: c++ compliation failed
Post by: johnno56 on June 26, 2020, 05:41:53 am
I do not believe this to be a bug with QB64...

Just upgraded to Linux Mint 19.3 from LM 18.1 and may not have installed everything that QB64 requires.

The logfile states:

In file included from libqb.cpp:16460:0:
parts/zlib/src.c:1:10: fatal error: zlib.h: No such file or directory
 #include <zlib.h>
          ^~~~~~~~
compilation terminated.
g++: error: libqb/os/lnx/libqb_1_4_0001010010001.o: No such file or directory

---------------------------------------

g++ is installed (version 7.5.0)
john@john-H81M-DS2:~$ g++ --version
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Title: Re: c++ compliation failed
Post by: jack on June 26, 2020, 07:04:14 am
just guessing, perhaps you are missing the zlib headers?
I suggest you apt install zlib-dev, don't know if it's zlib or libzlib but hopefully one is right
Title: Re: c++ compliation failed
Post by: FellippeHeitor on June 26, 2020, 07:34:28 am
Alternatively, try running the setup script again.

Code: [Select]
./setup_lnx.sh
Title: Re: c++ compliation failed
Post by: johnno56 on June 26, 2020, 11:28:40 am
Thanks guys. Running the 'setup' should have been my first action... My apologies for wasting your time. Thanks Jack and Fellippe. Much appreciated.