g++ main.o help.o common.o oglperf.o cmdparser.o tests.o median.o lights.o draw.o scene.o scenecom.o scene1.o scene2.o scene3.o scene4.o scene5.o scene6.o scene7.o scene8.o -lGL -lGLU -lglut -lXmu -lX11 -lXi -L/usr/X11R6/lib -o oglperf draw.o: In function `setSwapInterval(int)': draw.cpp:(.text+0x17e): undefined reference to `glXSwapIntervalSGI' collect2: ld returned 1 exit status make: *** [oglperf] Error 1
#System: Linux #CPU0: Intel(R) Celeron(R) CPU 2.40GHz (2400.429 MHz) #MEM : 776448 kB #GPU : GeForce 6600/AGP/SSE2 (NVIDIA Corporation) #Driver: 2.0.2 NVIDIA 87.76 #Extensions: GL_ARB_multitexture GL_ARB_vertex_buffer_object GLX_SGI_swap_control # #Scene: triangle (classic) Timer: 1000 ms #Textures: none Lights: 0 Display list: OFF Z-buffer: GL_LESS #Blending: disabled Shading: smooth Swap buffers: ENABLED #Texture filtering: disabled #Scale: 1/1 Z-increment: 2 Median filter: 1 (a) # # #count wdth hght frame t[ms] fps vps[mil/s] pps[mil/s] 5000 2 2 171 816.01 209.6 6.287 4.191 4800 6 6 184 765.62 240.3 6.921 41.529 4600 10 10 186 784.38 237.1 6.545 109.080 4400 14 14 197 752.12 261.9 6.915 225.884 4200 18 18 171 783.30 218.3 5.501 297.071 4000 22 22 147 832.58 176.6 4.237 341.818 3800 26 26 132 843.06 156.6 3.570 402.205 3600 30 30 110 848.57 129.6 2.800 420.001 3400 34 34 94 862.22 109.0 2.224 428.497 3200 38 38 89 885.03 100.6 1.931 464.672 3000 42 42 78 885.79 88.1 1.585 465.995 2800 46 46 22 963.70 22.8 0.384 135.255 2600 50 50 59 905.04 65.2 1.017 423.738Nic moc, zítra zkusím upgradnout drivery, jsem zvědav jak/jestli se to změní.
#System: Linux #CPU0: Intel(R) Celeron(R) CPU 2.40GHz (2400.458 MHz) #MEM : 776448 kB #GPU : GeForce 6600/AGP/SSE2 (NVIDIA Corporation) #Driver: 2.1.0 NVIDIA 97.46 #Extensions: GL_ARB_multitexture GL_ARB_vertex_buffer_object GLX_SGI_swap_control # #Scene: triangle (classic) Timer: 1000 ms #Textures: none Lights: 0 Display list: OFF Z-buffer: GL_LESS #Blending: disabled Shading: smooth Swap buffers: ENABLED #Texture filtering: disabled #Scale: 1/1 Z-increment: 2 Median filter: 1 (a) # # oglperf:warning:dropping current results because of resize event #count wdth hght frame t[ms] fps vps[mil/s] pps[mil/s] 5000 2 2 198 753.53 262.8 7.883 5.255 4800 6 6 202 804.79 251.0 7.229 43.373 4600 10 10 216 819.52 263.6 7.275 121.242 4400 14 14 213 826.28 257.8 6.805 222.311 4200 18 18 202 784.58 257.5 6.488 350.357 4000 22 22 168 832.70 201.8 4.842 390.592 3800 26 26 142 820.39 173.1 3.946 444.631 3600 30 30 124 857.21 144.7 3.125 468.683 3400 34 34 111 909.66 122.0 2.489 479.600 3200 38 38 92 891.54 103.2 1.981 476.829 3000 42 42 89 893.13 99.6 1.794 527.346 2800 46 46 82 926.07 88.5 1.488 524.619 2600 50 50 78 899.01 86.8 1.353 563.956
#System: Linux #CPU0: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (2394.000 MHz) #CPU1: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (2394.000 MHz) #MEM : 2057576 kB #GPU : Radeon X1900 Series Generic (ATI Technologies Inc.) #Driver: 2.0.6234 (8.32.5) #Extensions: GL_ARB_multitexture # #Scene: triangle (classic) Timer: 1000 ms #Textures: none Lights: 0 Display list: OFF Z-buffer: GL_LESS #Blending: disabled Shading: smooth Swap buffers: ENABLED #Texture filtering: disabled #Scale: 1/1 Z-increment: 2 Median filter: 1 (a) # # oglperf:warning:dropping current results because of resize event #count wdth hght frame t[ms] fps vps[mil/s] pps[mil/s] 5000 2 2 739 812.21 909.9 27.296 18.197 4800 6 6 763 797.14 957.2 27.567 165.400 4600 10 10 744 815.95 911.8 25.166 419.440 4400 14 14 583 857.56 679.8 17.948 586.287 4200 18 18 451 887.13 508.4 12.811 691.802 4000 22 22 364 906.91 401.4 9.633 777.035 3800 26 26 309 919.74 336.0 7.660 863.028 3600 30 30 246 938.23 262.2 5.663 849.513 3400 34 34 237 939.18 252.3 5.148 991.832 3200 38 38 216 946.04 228.3 4.384 1055.023 3000 42 42 198 951.85 208.0 3.744 1100.815 2800 46 46 183 957.52 191.1 3.211 1132.343 2600 50 50 174 956.46 181.9 2.838 1182.489
#System: Linux #CPU0: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (2454.193 MHz) #CPU1: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (2454.193 MHz) #MEM : 2061036 kB #GPU : GeForce 8800 GTX/PCI/SSE2 (NVIDIA Corporation) #Driver: 2.1.0 NVIDIA 97.46 #Extensions: GL_ARB_multitexture GL_ARB_vertex_buffer_object GLX_SGI_swap_control # #Scene: triangle (classic) Timer: 1000 ms #Textures: none Lights: 0 Display list: OFF Z-buffer: GL_LESS #Blending: disabled Shading: smooth Swap buffers: ENABLED #Texture filtering: disabled #Scale: 1/1 Z-increment: 2 Median filter: 1 (a) # # oglperf:warning:dropping current results because of resize event #count wdth hght frame t[ms] fps vps[mil/s] pps[mil/s] 5000 2 2 771 938.44 821.6 24.647 16.431 4800 6 6 798 936.41 852.2 24.543 147.258 4600 10 10 830 933.74 888.9 24.534 408.894 4400 14 14 860 931.74 923.0 24.367 796.003 4200 18 18 900 928.29 969.5 24.432 1319.335 4000 22 22 939 925.79 1014.3 24.342 1963.619 3800 26 26 978 922.24 1060.5 24.179 2724.123 3600 30 30 1016 918.45 1106.2 23.894 3584.112 3400 34 34 1059 916.53 1155.4 23.571 4541.343 3200 38 38 1098 910.29 1206.2 23.159 855.415 3000 42 42 1137 909.90 1249.6 22.493 1892.560 2800 46 46 1169 905.38 1291.2 21.692 2906.084 2600 50 50 1177 904.38 1301.4 20.303 3710.318
g++ main.o help.o common.o oglperf.o cmdparser.o tests.o median.o lights.o draw.o scene.o scenecom.o scene1.o scene2.o scene3.o scene4.o scene5.o scene6.o scene7.o scene8.o -lGL -lGLU -lglut -lXmu -lX11 -lXi -L/usr/X11R6/lib -o oglperf /usr/bin/ld: warning: i386 architecture of input file `main.o' is incompatible with i386:x86-64 output [...] main.o: In function `main': main.cpp:(.text+0x12aa): undefined reference to `operator new(unsigned int)' [...]
--- makefile 2007-01-29 16:40:28.000000000 +0100
+++ makefile.64 2007-01-24 15:16:21.000000000 +0100
@@ -34,7 +34,7 @@
#CXXFLAGS = -pipe -ggdb -Wextra -Wall -ansi -pedantic
#CXXFLAGS = -pipe -ggdb -W -Wall -ansi -pedantic
-CXXFLAGS = -pipe -W -Wall -ansi -pedantic
+CXXFLAGS = -m32 -pipe -W -Wall -ansi -pedantic
LINK = g++
# Linker options for Win9x and WinXP. See the brutal OS detection below.
@@ -47,7 +47,7 @@
else
ifdef COMSPEC # is it Win9x?
else # well, it looks like a Linux => redefine linker options
- LDFLAGS = -lGL -lGLU -lglut -lXmu -lX11 -lXi -L/usr/X11R6/lib
+ LDFLAGS = -m32 -lGL -lGLU -lglut -lXmu -lX11 -lXi -L/usr/X11R6/lib
BIN = main
endif
endif
A GCC mám takovéto:
Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu Thread model: posix gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
--- makefile.original 2007-01-26 12:25:01.000000000 +0100
+++ makefile 2007-01-29 23:19:39.000000000 +0100
@@ -34,7 +34,7 @@
#CXXFLAGS = -pipe -ggdb -Wextra -Wall -ansi -pedantic
#CXXFLAGS = -pipe -ggdb -W -Wall -ansi -pedantic
-CXXFLAGS = -pipe -W -Wall -ansi -pedantic
+CXXFLAGS = -m32 -pipe -W -Wall -ansi -pedantic
LINK = g++
# Linker options for Win9x and WinXP. See the brutal OS detection below.
@@ -47,7 +47,7 @@
else
ifdef COMSPEC # is it Win9x?
else # well, it looks like a Linux => redefine linker options
- LDFLAGS = -lGL -lGLU -lglut -lXmu -lX11 -lXi -L/usr/X11R6/lib
+ LDFLAGS = -m32 -lGL -lGLU -lglut -lXmu -lX11 -lXi -L/usr/X11R6/lib
BIN = main
endif
endif
Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu Thread model: posix gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)Tentokrat to zahlasi toto:
g++ main.o help.o common.o oglperf.o cmdparser.o tests.o median.o lights.o draw.o scene.o scenecom.o scene1.o scene2.o scene3.o scene4.o scene5.o scene6.o scene7.o scene8.o -m32 -lGL -lGLU -lglut -lXmu -lX11 -lXi -L/usr/X11R6/lib -o oglperf /usr/bin/ld: skipping incompatible /usr/bin/../lib/libglut.so when searching for -lglut /usr/bin/ld: skipping incompatible /usr/bin/../lib/libglut.a when searching for -lglut /usr/bin/ld: skipping incompatible /usr/lib/libglut.so when searching for -lglut /usr/bin/ld: skipping incompatible /usr/lib/libglut.a when searching for -lglut /usr/bin/ld: cannot find -lglut collect2: ld returned 1 exit status make: *** [oglperf] Error 1Asi to bude chtit nejake voodoo s knihovnama, co... :-(