ValveSoftware / voglperf

Benchmarking tool for Linux OpenGL games. Spews frame information, logs frametimes.
Other
201 stars 31 forks source link

Unable to build 32bit binary on openSUSE 13.1 x86_64 #13

Closed Shished closed 10 years ago

Shished commented 10 years ago
$ LANG=C make -j5 voglperf32

cmake options:
  -DCMAKE_BUILD_TYPE='Release': Build debug or release. (Debug|Release)
  -DCMAKE_VERBOSE='OFF': Spew cmake project options. (On|Off)
  -DBUILD_X64='False': Build 32 or 64-bit. (On|Off)

Building 32-bit voglperf...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yuri/voglperf/build32
make[1]: Entering directory `/home/yuri/voglperf/build32'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
make[2]: Entering directory `/home/yuri/voglperf/build32'
make[3]: Entering directory `/home/yuri/voglperf/build32'
make[3]: Leaving directory `/home/yuri/voglperf/build32'
make[3]: Entering directory `/home/yuri/voglperf/build32'
Linking C shared library /home/yuri/voglperf/bin/libvoglperf32.so
/usr/lib64/libGL.so: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[3]: *** [/home/yuri/voglperf/bin/libvoglperf32.so] Error 1
make[3]: Leaving directory `/home/yuri/voglperf/build32'
make[2]: *** [CMakeFiles/voglperf.dir/all] Error 2
make[2]: Leaving directory `/home/yuri/voglperf/build32'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/yuri/voglperf/build32'
make: *** [voglperf32] Error 2

The cmake script seeks for libGL.so in a wrong directory: /usr/lib64 instead of /usr/lib. As a result, script uses lib with wrong arch and binary cannot be built.

mikesart commented 10 years ago

I think ef890f4 should fix this. Please let me know if not. Thanks.