google / earthenterprise

Google Earth Enterprise - Open Source
Apache License 2.0
2.67k stars 888 forks source link

Failed to build - libQtNetwork.so.4: undefined reference to `qt_safe_poll(pollfd*, int, int, bool)' #1870

Closed 102464 closed 3 years ago

102464 commented 3 years ago

Describe the bug

Failed to build GEE 5.3.7 on an Ubuntu 16.04 machine. libQtNetwork.so.4: undefined reference to `qt_safe_poll(pollfd*, int, int, bool)'

To Reproduce

Steps to reproduce the behavior:

Start the build: scons release=1 build

Expected behavior

The program should be built successfully.

Desktop

Additional context

$ scons -j8 release=1 build scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... cd src; python2.7 /usr/bin/scons -j8 release=1 third_party scons: Reading SConscript files ... date target: /home/ldl/earthenterprise/earth_enterprise/src/NATIVE-REL-x86_64/third_party/date/.extract date build_root: /home/ldl/earthenterprise/earth_enterprise/src/NATIVE-REL-x86_64/third_party/date/date-2.4.1 Checking for C library gtest... (cached) yes scons: done reading SConscript files. scons: Building targets ... set -x && cd /home/ldl/earthenterprise/earth_enterprise/src/NATIVE-REL-x86_64/third_party/mod_wsgi/mod_wsgi-4.5.14 && env CFLAGS="" CXXFLAGS="" ./configure --with-apxs=/home/ldl/earthenterprise/earth_enterprise/src/NATIVE-REL-x86_64/bin/apxs touch /home/ldl/earthenterprise/earth_enterprise/src/NATIVE-REL-x86_64/third_party/mod_wsgi/.configure

sent 467 bytes received 18 bytes 323.33 bytes/sec total size is 2,687,879 speedup is 5,542.02

sent 2,307 bytes received 24 bytes 4,662.00 bytes/sec total size is 118,141,982 speedup is 50,682.96 EmitLongVersion(/home/ldl/earthenterprise/earth_enterprise/src/NATIVE-REL-x86_64/gee_long_version.txt) EmitVersion(/home/ldl/earthenterprise/earth_enterprise/src/NATIVE-REL-x86_64/gee_version.txt) /home/ldl/earthenterprise/earth_enterprise/src/NATIVE-REL-x86_64/lib/libQtNetwork.so.4: undefined reference to `qt_safe_poll(pollfd*, int, int, bool)' collect2: error: ld returned 1 exit status scons: [NATIVE-REL-x86_64/bin/fusion] Error 1 scons: building terminated because of errors. scons: [build] Error 2 scons: building terminated because of errors.

102464 commented 3 years ago

It seems that the command lacks -lQtNetwork, how can I add it?

102464 commented 3 years ago

Solved: src/fusion/fusionui/SConscript +51

'QtCore', 'QtGui', 'Qt3Support', 'QtOpenGL',

should be: 'QtCore', 'QtGui', 'Qt3Support', 'QtOpenGL', 'QtNetwork',

tst-ccamp commented 3 years ago

Reopening pending PR approval

tst-lsavoie commented 3 years ago

Closed via PR #1871