Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualFGFS

Posted 24 September 2013 - 01:33 AM

Hi

I get:
/usr/bin/ld: /usr/local/lib//libglfw3.a(context.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib//libglfw3.a: could not read symbols: Bad value

Hmm how to compile 3.02 with -fPIC on Ubuntu?
Thanks


#2FGFS

Posted 23 September 2013 - 06:01 AM

Hi

 glfw 2.7 is ok but in 3.02 I get tons of undeclared stuff on Ubuntu 13.04:

 

Invoking: GCC C++ Compiler
g++ -fPIC -std=c++11 -DLIN=1 -DXPLM200 -DXPLM210 -DIBM=0 -DAPL=0 -I/usr/include/GL -I/usr/local/include/GLFW -I/home/michael/CPP64/AntTweakBar/include -I/usr/include/qt5/QtCore/QtCore -I/usr/include/qt5 -I/usr/include/SDL -I/home/michael/CPP64/SDK/CHeaders/XPLM -O0 -g3 -Wall -c -fmessage-length=0 -pthread -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.cpp"
cc1plus: warning: /usr/include/qt5/QtCore/QtCore: not a directory [enabled by default]
../main.cpp:476:15: error: expected initializer before ‘WindowSizeCB’
../main.cpp: In function ‘void PCf1KeyCallback(void*)’:
../main.cpp:5260:51: error: ‘glfwOpenWindowHint’ was not declared in this scope

../main.cpp:5262:34: error: ‘glfwGetDesktopMode’ was not declared in this scope
../main.cpp:5264:45: error: ‘struct GLFWvidmode’ has no member named ‘RedBits’
../main.cpp:5264:59: error: ‘struct GLFWvidmode’ has no member named ‘GreenBits’
../main.cpp:5264:75: error: ‘struct GLFWvidmode’ has no member named ‘BlueBits’

...

 

changed:

 

#define GLFW_DLL
//#include "glfw.h"
#include <glfw3.h>

 

and linked to glfw3

 

So what am I doing wrong?

Many thanks


#1FGFS

Posted 23 September 2013 - 06:01 AM

Hi

 glfw 2.7 is ok but in 3.02 I get tons of undeclared stuff on Ubuntu 13.04:

 

Invoking: GCC C++ Compiler
g++ -fPIC -std=c++11 -DLIN=1 -DXPLM200 -DXPLM210 -DIBM=0 -DAPL=0 -I/usr/include/GL -I/usr/local/include/GLFW -I/home/michael/CPP64/AntTweakBar/include -I/usr/include/qt5/QtCore/QtCore -I/usr/include/qt5 -I/usr/include/SDL -I/home/michael/CPP64/SDK/CHeaders/XPLM -O0 -g3 -Wall -c -fmessage-length=0 -pthread -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.cpp"
cc1plus: warning: /usr/include/qt5/QtCore/QtCore: not a directory [enabled by default]
../main.cpp:476:15: error: expected initializer before ‘WindowSizeCB’
../main.cpp: In function ‘void PC12f1KeyCallback(void*)’:
../main.cpp:5260:51: error: ‘glfwOpenWindowHint’ was not declared in this scope

../main.cpp:5262:34: error: ‘glfwGetDesktopMode’ was not declared in this scope
../main.cpp:5264:45: error: ‘struct GLFWvidmode’ has no member named ‘RedBits’
../main.cpp:5264:59: error: ‘struct GLFWvidmode’ has no member named ‘GreenBits’
../main.cpp:5264:75: error: ‘struct GLFWvidmode’ has no member named ‘BlueBits’

...

 

changed:

 

#define GLFW_DLL
//#include "glfw.h"
#include <glfw3.h>

 

and linked to glfw3

 

So what am I doing wrong?

Many thanks

 

 


PARTNERS