Opened 12 years ago
Closed 12 years ago
#10 closed task (fixed)
[LINUX] failure while linking rl
Reported by: | melon | Owned by: | melon |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | core | Version: | 0.1 |
Keywords: | Cc: | melon |
Description
melon@melon:~/nv/nv/trunk/rl$ make ==== Building nv (debug) ==== ==== Building rl (debug) ==== Linking rl bin/libnv.a(library.o): In function `nv::library::open()': /home/melon/nv/nv/trunk/gmake/../src/library.cc:73: undefined reference to `dlopen' bin/libnv.a(library.o): In function `nv::library::get(std::string const&)': /home/melon/nv/nv/trunk/gmake/../src/library.cc:84: undefined reference to `dlsym' bin/libnv.a(library.o): In function `nv::library::close()': /home/melon/nv/nv/trunk/gmake/../src/library.cc:96: undefined reference to `dlclose' bin/libnv.a(library.o): In function `nv::library::get_error()': /home/melon/nv/nv/trunk/gmake/../src/library.cc:123: undefined reference to `dlerror' collect2: error: ld returned 1 exit status make[1]: *** [bin/rl] Error 1 make: *** [rl] Error 2
Change History (6)
comment:1 Changed 12 years ago by melon
- Owner changed from epyon to melon
- Status changed from new to assigned
comment:2 Changed 12 years ago by melon
These have to be linked with:
-ldl
comment:3 Changed 12 years ago by melon
After modifying the rl premake, binary is created. Running it, result in:
melon@melon:~/nv/nv/trunk/rl/bin$ ./rl [NOTICE] Logging started [NOTICE] library : loading 'lua52.dll'... terminate called after throwing an instance of 'nv::library_error' what(): Library (lua52.dll.so) : Can't load library! [ lua52.dll.so: cannot open shared object file: No such file or directory ] Aborted (core dumped)
comment:4 Changed 12 years ago by melon
After installing package lua5.2-dev and making a link, the following error persists:
melon@melon:~/nv/nv/trunk/rl/bin$ ./rl [NOTICE] Logging started [NOTICE] library : loading 'lua52.dll'... [NOTICE] library : 'lua52.dll.so' loaded. [NOTICE] library : loading 'libSDL-1.2.so.0'... terminate called after throwing an instance of 'nv::library_error' what(): Library (libSDL-1.2.so.0.so) : Can't load library! [ libSDL-1.2.so.0.so: cannot open shared object file: No such file or directory ] Aborted (core dumped)
comment:5 Changed 12 years ago by melon
Installed SDL, now we have:
melon@melon:~/nv/nv/trunk/rl/bin$ ./rl [NOTICE] Logging started [NOTICE] library : loading 'lua52.dll'... [NOTICE] library : 'lua52.dll.so' loaded. [NOTICE] library : loading 'libSDL-1.2.so.0'... [NOTICE] library : 'libSDL-1.2.so.0.so' loaded. [NOTICE] library : loading 'libSDL_image-1.2.so.0'... [NOTICE] library : 'libSDL_image-1.2.so.0.so' loaded. [NOTICE] library : loading 'libfreetype.so'... terminate called after throwing an instance of 'nv::library_error' what(): Library (libfreetype.so) : Can't load library! [ libfreetype.so: cannot open shared object file: No such file or directory ] Aborted (core dumped)
And I really need to go to sleep. Good night!
comment:6 Changed 12 years ago by melon
- Resolution set to fixed
- Status changed from assigned to closed
I am setting this to fixed, as I have updated the wiki page for Linux in the result.
Now all the neccesary info should be there (except the source for rl)
Note: See
TracTickets for help on using
tickets.
Reassigning, this is Linux issue