eclipse-efx / efxclipse-drift

Eclipse Public License 2.0
147 stars 17 forks source link

build error #10

Closed xqdd closed 5 years ago

xqdd commented 5 years ago
[ 90%] Linking CXX shared library cygdriftfx.dll
[ 90%] Built target driftfx
[ 93%] Building CXX object samples/CMakeFiles/samples.dir/SimpleColorRenderer.cpp.o
[ 96%] Building CXX object samples/CMakeFiles/samples.dir/SimpleTriangleRenderer.cpp.o
cc1plus: warning: command line option '-std=gnu11' is valid for C/ObjC but not for C++
cc1plus: warning: command line option '-std=gnu11' is valid for C/ObjC but not for C++
[100%] Linking CXX shared library cygsamples.dll
CMakeFiles/samples.dir/SimpleColorRenderer.cpp.o:SimpleColorRenderer.cpp:(.text$_ZN19SimpleColorRendererC1EP8_jobject[_ZN19SimpleColorRendererC1EP8_jobject]+0x146): undefined reference
 to `driftfx::DriftFX::Get()'
CMakeFiles/samples.dir/SimpleColorRenderer.cpp.o:SimpleColorRenderer.cpp:(.text$_ZN19SimpleColorRendererC1EP8_jobject[_ZN19SimpleColorRendererC1EP8_jobject]+0x146): relocation truncate
d to fit: R_X86_64_PC32 against undefined symbol `driftfx::DriftFX::Get()'
CMakeFiles/samples.dir/SimpleTriangleRenderer.cpp.o:SimpleTriangleRenderer.cpp:(.text$_ZN22SimpleTriangleRendererC1EP8_jobject[_ZN22SimpleTriangleRendererC1EP8_jobject]+0xdb): undefine
d reference to `driftfx::DriftFX::Get()'
CMakeFiles/samples.dir/SimpleTriangleRenderer.cpp.o:SimpleTriangleRenderer.cpp:(.text$_ZN22SimpleTriangleRendererC1EP8_jobject[_ZN22SimpleTriangleRendererC1EP8_jobject]+0xdb): relocati
on truncated to fit: R_X86_64_PC32 against undefined symbol `driftfx::DriftFX::Get()'
collect2: error: ld returned 1 exit status
make[2]: *** [samples/CMakeFiles/samples.dir/build.make:110: samples/cygsamples.dll] Error 1
make[1]: *** [CMakeFiles/Makefile2:259: samples/CMakeFiles/samples.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
xqdd commented 5 years ago

1560061941(1)

System: win10, use cygwin64. Is ${DRIFTFX_INCLUDE_DIRS} empty cause?

xqdd commented 5 years ago

should not be use cygwin

xqdd commented 5 years ago

image

God! thanks😭

tomsontom commented 5 years ago

This is right. No need for cygwin - you can see this also in our travis config

xqdd commented 5 years ago

Got it, I will try, thanks a lot. not bad, use cygwin let me learn a lot at least😄