Home > Archive > Unix Programming > September 2006 > creating a .so file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
creating a .so file
|
|
| Gernot Frisch 2006-09-19, 7:02 pm |
|
I'm new to this goup, so - hello first.
I've written some small games for linux on the xbox. I use OpenGL
(mostly 2D) and only have software emulation on xbox linux. Now, mesa
is quite slow and I have my own OpenGL implementation for PocketPC.
My questions now:
- can I create a libopengl.so from my files
- how would I do this
- will it be loaded instead of mesa, when placed in
program's directory?
Thanks a lot,
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
| |
| Damian 'legion' Szuberski 2006-09-19, 7:02 pm |
| On 2006-09-19, Gernot Frisch wrote:
> I'm new to this goup, so - hello first.
Yo!
> I've written some small games for linux on the xbox. I use OpenGL
> (mostly 2D) and only have software emulation on xbox linux. Now, mesa
> is quite slow and I have my own OpenGL implementation for PocketPC.
Sounds exciting.
> My questions now:
> - can I create a libopengl.so from my files
Which files?
> - how would I do this
What do you really want to do?
> - will it be loaded instead of mesa, when placed in
> program's directory?
No.
> Thanks a lot,
You're welcome.
--
Damian Szuberski
| |
| Gernot Frisch 2006-09-19, 7:02 pm |
|
> Which files?
I have a working set of .h and .c files, that (if compiled/linked)
will make an OpenGL program. Now I want the glDoSomething functions in
a .so file, thus replacing the original libopengl.so (which usually is
just a symbolic link to something else)
> What do you really want to do?
gcc -make_so myfile.c mylib.so
XD
> No.
OK, I'll make a symbolic link and overwrite mine for default OpenGL.
It's just for the xbox anyway.
Thank you,
-Gernot
| |
| Damian 'legion' Szuberski 2006-09-19, 7:02 pm |
| On 2006-09-19, Gernot Frisch wrote:
> I have a working set of .h and .c files, that (if compiled/linked)
> will make an OpenGL program. Now I want the glDoSomething functions in
> a .so file, thus replacing the original libopengl.so (which usually is
> just a symbolic link to something else)
> gcc -make_so myfile.c mylib.so
www.linuxfocus.org/English/November1997/article6.html
Here you are link. Why didn't you use google before?
If something is unclear don't hesitate to ask.
--
Damian Szuberski
| |
| Gernot Frisch 2006-09-20, 4:00 am |
|
> Here you are link. Why didn't you use google before?
> If something is unclear don't hesitate to ask.
Got a problem with my cross compiler here:
#: g++ -shared -L.
tinygl.o -olibtinygl.so.001.006.263 -Wl,-soname,libtinygl.so.001
collect2: cannot find 'ld'
I can start ld manually. Is there any way of making the ld call after
I've got the compiled .o file?
I also have ranlib - if that is of any help...
| |
| Damian 'legion' Szuberski 2006-09-20, 4:00 am |
| On 2006-09-20, Gernot Frisch wrote:
> Got a problem with my cross compiler here:
> #: g++ -shared -L.
> tinygl.o -olibtinygl.so.001.006.263 -Wl,-soname,libtinygl.so.001
> collect2: cannot find 'ld'
Strange. Maybe you mixed options. Try use ld instead:
ld -shared -soname xxx.111 -o xxx.111.222.333 [list of .o files]
--
Damian Szuberski
|
|
|
|
|