the GLUI2 library을 설치하려고합니다.GLUI2 라이브러리 (Ubuntu) 빌드
GLUI의 루트 디렉토리로 이동하여 Make를 실행하는 ReadMe의 지침을 따르고 있습니다. 내가 메이크 파일에서 컴파일 라인 모두에서 -fPIC을 포함하여 시도
/usr/bin/ld: Glui2/stb_image.o: relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
, 나는이 오류 메시지가 얻을 : 나는 다음과 같은 오류가 난 정말 이러한 오류가 무엇인지 전혀 모르는
/usr/bin/ld: Glui2/g2Button.o: relocation R_X86_64_32S against `_ZTV8g2Button' can not be used when making a shared object; recompile with -fPIC
Glui2/g2Button.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
을 내게 말하거나 내가 그들을 해결하기 위해해야 할 일. 난 당신이 GLUT 작동하는 다른 라이브러리를 건의 할 것입니다 경우, 내가 OpenGL을에서 만들고있어 게임을위한 작은 UI를 구축하는 데 사용하고
, 나는 ... 너무 그 제안을 감사하겠습니다