Unable to build G3D on Linux.

102 views
Skip to first unread message

Venelin Vasilev

unread,
Feb 26, 2023, 12:28:18 AM2/26/23
to G3D Users
I got this error when I try to build G3D on Ubuntu 22.04:

Building libfreeimaged.a

Computing dependencies

Header not found: 'string'.

Header not found: 'list'.

Header not found: 'map'.

Header not found: 'set'.

Header not found: 'vector'.

Header not found: 'stack'.

Header not found: 'sstream'.

Header not found: 'algorithm'.

Header not found: 'limits'.

Header not found: 'memory'.

Header not found: 'iostream'.

Header not found: 'exception'.

Header not found: 'cstring'.

Header not found: 'iomanip'.

Header not found: 'cmath'.

Header not found: 'iosfwd'.

Header not found: 'cstddef'.

Header not found: 'fstream'.

Header not found: 'cassert'.

Header not found: 'cctype'.

Header not found: 'cstdlib'.

Iterated 5 times while trying to resolve dependencies and still could not find the following headers: ['string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'iostream', 'sstream', 'string', 'exception', 'list', 'sstream', 'string', 'exception', 'string', 'exception', 'sstream', 'string', 'exception', 'sstream', 'string', 'exception', 'sstream', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'cstring', 'iomanip', 'cmath', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'set', 'cstddef', 'vector', 'fstream', 'algorithm', 'sstream', 'string', 'exception', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'vector', 'cstddef', 'set', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'set', 'cstddef', 'vector', 'fstream', 'limits', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'map', 'string', 'sstream', 'exception', 'string', 'exception', 'sstream', 'iostream', 'map', 'string', 'sstream', 'exception', 'string', 'exception', 'sstream', 'iostream', 'cstddef', 'vector', 'map', 'iosfwd', 'set', 'fstream', 'map', 'set', 'string', 'exception', 'sstream', 'iostream', 'vector', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'set', 'cstddef', 'vector', 'fstream', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'algorithm', 'sstream', 'string', 'exception', 'cstring', 'cassert', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'set', 'cstddef', 'vector', 'limits', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'string', 'exception', 'sstream', 'iostream', 'map', 'sstream', 'string', 'exception', 'vector', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'fstream', 'string', 'exception', 'sstream', 'iostream', 'limits', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'cstddef', 'limits', 'string', 'exception', 'sstream', 'string', 'exception', 'sstream', 'iostream', 'vector', 'string', 'exception', 'sstream', 'iostream', 'cstddef', 'limits', 'cmath', 'algorithm', 'vector', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'fstream', 'set', 'cstddef', 'vector', 'algorithm', 'string', 'string', 'exception', 'sstream', 'iostream', 'cstring', 'iomanip', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'set', 'vector', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'set', 'cstring', 'iomanip', 'vector', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'cstring', 'iomanip', 'vector', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'set', 'cstddef', 'vector', 'limits', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'set', 'cstddef', 'vector', 'limits', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'cstring', 'iomanip', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'cstring', 'iomanip', 'cstddef', 'vector', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'cstring', 'iomanip', 'vector', 'vector', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'string', 'fstream', 'sstream', 'exception', 'iostream', 'sstream', 'string', 'exception', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'set', 'cstddef', 'vector', 'fstream', 'algorithm', 'limits', 'limits', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'cstring', 'iomanip', 'algorithm', 'string', 'fstream', 'sstream', 'exception', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'fstream', 'set', 'cstring', 'iomanip', 'vector', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'vector', 'string', 'exception', 'sstream', 'iostream', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'vector', 'set', 'cstddef', 'fstream', 'cstring', 'iomanip', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'fstream', 'set', 'cstddef', 'vector', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'map', 'set', 'vector', 'iostream', 'cstddef', 'map', 'set', 'string', 'exception', 'sstream', 'iosfwd', 'cstring', 'iomanip', 'cctype', 'cassert', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'cstring', 'iomanip', 'fstream', 'vector', 'cstddef', 'set', 'string', 'exception', 'sstream', 'iostream', 'map', 'set', 'string', 'sstream', 'exception', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'fstream', 'set', 'cstddef', 'vector', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'cstring', 'iomanip', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'fstream', 'cstddef', 'vector', 'set', 'cstring', 'iomanip', 'string', 'sstream', 'exception', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'cstring', 'iomanip', 'cstddef', 'vector', 'fstream', 'set', 'string', 'exception', 'sstream', 'iostream', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'fstream', 'vector', 'set', 'cstddef', 'algorithm', 'string', 'exception', 'sstream', 'iostream', 'vector', 'string', 'exception', 'sstream', 'iostream', 'map', 'iosfwd', 'cstring', 'iomanip', 'set', 'string', 'exception', 'sstream', 'iostream', 'cstddef', 'vector', 'map', 'set', 'limits', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'iostream', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'cstdlib', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'exception', 'iostream', 'iosfwd', 'fstream', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'iostream', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory', 'string', 'list', 'map', 'set', 'vector', 'stack', 'sstream', 'algorithm', 'limits', 'memory']

25s

Note: build target failed with code 11


Any idea why I get this error ?

Linwan Song

unread,
Mar 14, 2023, 6:46:47 PM3/14/23
to G3D Users
Follow the build instructions for Linux. You didn't run the apt command in Listing 2 which means you have none of the standard libraries installed.
- Linwan

zzompmzz

unread,
Apr 24, 2024, 9:41:36 AM4/24/24
to G3D Users
Encountered same issue in Ubuntu 22.04 despite having ran the apt command in Listing 2. Below are the dependencies version. The source tree was checked out at revision 7244. Any advice? Thanks.

build-essential is already the newest version (12.9ubuntu3).
xorg-dev is already the newest version (1:7.7+23ubuntu2).
clang is already the newest version (1:14.0-55~exp2).
doxygen is already the newest version (1.9.1-2ubuntu2).
freeglut3-dev is already the newest version (2.8.1-6).
libzip-dev is already the newest version (1.7.3-1ubuntu2).
lldb is already the newest version (1:14.0-55~exp2).
yasm is already the newest version (1.3.0-2.1).
apt-utils is already the newest version (2.4.12).
exuberant-ctags is already the newest version (1:5.9~svn20110310-16ubuntu0.22.04.1).
libgtk-3-dev is already the newest version (3.24.33-1ubuntu2).
subversion is already the newest version (1.14.1-3ubuntu0.22.04.1).

Linwan Song

unread,
Apr 24, 2024, 4:44:51 PM4/24/24
to g3d-...@googlegroups.com
Did you add the environment variables in Listing 3 to your ~/.bashrc? If you run `gcc --version` what's the output?  Make sure libc++ and libc++abi are installed. 
- Linwan

--
You received this message because you are subscribed to the Google Groups "G3D Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to g3d-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/g3d-users/b94c81f4-7e5b-4701-bc58-34a03934ceddn%40googlegroups.com.
Message has been deleted

zzompmzz

unread,
Apr 25, 2024, 7:04:05 AM4/25/24
to G3D Users
Yes, I did added the environmetal variables in Listing 3 to my ~/.bashrc. My gcc version is gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 and i do have libc++ and libc++abi installed.

I managed to resolve the compilation in a brute force manner.

For the 1st error as per this thread, I needed to add /usr/include/c++/11 into the INCLUDE environmental variables. Afterwards, I encountered a 2nd error which stated 'Missing bits/c++config.h'. Likewise, i added /usr/include/x86_64-linux-gnu/c++/11/ into the INCLUDE environmental variable. 

Lastly, I encountered a 3rd error which stated '/usr/bin/ld: cannot find -lstdc++'. Reading a solution from Andy B. in https://stackoverflow.com/questions/67712376/after-updating-gcc-clang-cant-find-libstdc-anymore, i temporarily moved /usr/lib/gcc/x86_64-linux-gnu/12 out somewhere while leaving /usr/lib/gcc/x86_64-linux-gnu/11 and everything managed to compile fine.

Being curious, I cleaned up the entire build and tried building again with only the last step and it seemed to work! Being relatively inexperienced in all of these building concepts, I cant explain why it worked but it seems fine now. Sharing my solution for those who encounter similar. Thanks.

Regards.
Reply all
Reply to author
Forward
0 new messages