Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-05-06, 06:54 AM   #1
sdima135
Registered User
 
Join Date: Sep 2006
Posts: 4
Default x86_64-1.0-8774 GL.so loading problem

I have problem with 64 bit NV drivers.
I've compiled same simple program on 32 & 64 bit plathform & get crash with 64 bit in libGL.so
so it very simple program:

#include <iostream.h>
#include <iomanip.h>
#include <GL/gl.h>
using namespace std;
#define PRINT(x) cout<<""<<setw(15)<<(x)<<" " #x "\n"<<flush

void* test1(void*)
{
PRINT("Test1");
glGetError();
PRINT("Test2");
return (void*)NULL;
};

int main()
{
void *res;
pthread_t m_thread_handle;

PRINT(glGetError());

pthread_create(&m_thread_handle,NULL,&test1,(void* )NULL);
sleep(1);
pthread_join(m_thread_handle,&res);

PRINT(glGetError());
return 0;
}
// command time
//g++ test.cpp -lGL -lpthread -o gltest; ./gltest
sdima135 is offline   Reply With Quote
Old 09-05-06, 09:47 AM   #2
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: x86_64-1.0-8774 GL.so loading problem

You have to create a GLX context and make it current before you can use OpenGL functions.
AaronP is offline   Reply With Quote
Old 09-05-06, 10:15 AM   #3
sdima135
Registered User
 
Join Date: Sep 2006
Posts: 4
Default Re: x86_64-1.0-8774 GL.so loading problem

Thanks, but
1.The code is working ok on 32 bit plathform
2.I've get the code after stripping full code with the same problem
sdima135 is offline   Reply With Quote
Old 09-05-06, 10:27 AM   #4
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: x86_64-1.0-8774 GL.so loading problem

You still need to make a context current before you can use OpenGL. Attached is your code with some modifications to make it work.
Attached Files
File Type: zip test.zip (802 Bytes, 123 views)

Last edited by AaronP; 09-05-06 at 10:29 AM. Reason: Forgot to make a context current before the last glGetError()
AaronP is offline   Reply With Quote
Old 09-05-06, 10:30 AM   #5
sdima135
Registered User
 
Join Date: Sep 2006
Posts: 4
Default Re: x86_64-1.0-8774 GL.so loading problem

Thank You very much - I going to incorporate the code.
sdima135 is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
X Failed to load NVdriver c00lr4c3r NVIDIA Linux 13 10-22-02 01:44 PM
Error messages... HELP!!!! Imperito NVIDIA Linux 3 09-24-02 10:46 PM
GForce drivers installed...but dont work tomfullery NVIDIA Linux 6 09-22-02 08:23 AM
Need help to get the X to work on my Acer TravelMate 630 knchee NVIDIA Linux 16 09-19-02 10:16 PM
RH7.3 and nForce - can't find the module dmw400 NVIDIA Linux 4 08-05-02 12:14 PM

All times are GMT -5. The time now is 05:56 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.