project-navigation
Personal tools

Author Topic: Compiling with Solaris Express Developer Edition  (Read 4598 times)

murlock

  • Guest
Compiling with Solaris Express Developer Edition
« on: June 29, 2007, 11:12:06 pm »
Hi everyone,

I'm trying to compile UFO:AI 2.1 on my laptop with solaris express developer edition :

I've to modify configure at line 2318 to add solaris for target_os

elif test `echo $target_os | sed "s/\(solaris\).*/\1/"` = "solaris"
then
         TARGET_OS=solaris

after ./configure is done


with gmake, I've errors about :
src/ports/unix/qgl_unix.h
You shouldn't be including this file on non-Linux platform
I've removed it because all #defs seems to avoid windows (?)


src/ports/linux/gl_glx.c
sys/vt.h is missing


Anytips  to port UFO:AI to Solaris ?

Thanks in advance,
Murlock

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Compiling with Solaris Express Developer Edition
« Reply #1 on: June 30, 2007, 09:17:40 am »
the tip would be to join the irc and do it together with the devs. Would be cool to have a solaris port. the irc server is irc.freenode.org the channel #ufo:ai

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Compiling with Solaris Express Developer Edition
« Reply #2 on: June 30, 2007, 09:23:42 am »
i've added your changes to trunk now - please try again

murlock

  • Guest
Compiling with Solaris Express Developer Edition
« Reply #3 on: July 01, 2007, 06:59:28 pm »
I've tried SVN,

I've got an error :
Code: [Select]

 * [UFO] src/client/cl_actor.c
In file included from src/client/../qcommon/cmodel.h:29,
                 from src/client/../qcommon/qcommon.h:206,
                 from src/client/ref.h:34,
                 from src/client/client.h:32,
                 from src/client/cl_actor.c:25:
src/client/../qcommon/../qcommon/qfiles.h:195: error: conflicting types for 'index_t'
/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/include/sys/types.h:144: error: previous declaration of 'index_t' was here


index_t is a typedef of unsigned short in sys/types.h and unsigned int in qfiles.h
I've renamed index_t in qfiles to q_index_t : there are only 14 lines with index_t

There is also a little pb with SDL :
the src/ports/linux/snd_sdl.h doesn't seem to use the result of sdl_config --cflags to find library. I've make a symbolic link from my sdl include in /usr/include

Now, I've a lot of error about undefined object when linking ufo :
Code: [Select]

 * [UFO] ... linking  (-lz   -logg  -lvorbis  -lvorbisfile    -L/opt/perso/lib -R/opt/perso/lib -lSDL -lpthread -lposix4)
Undefined                       first referenced
 symbol                             in file
re                                  debug-solaris-i386/client/client/cl_actor.o
maxVidModes                         debug-solaris-i386/client/client/cl_main.o
main                                /usr/lib/crt1.o
recv                                debug-solaris-i386/client/client/cl_irc.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
send                                debug-solaris-i386/client/client/cl_irc.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
Sys_Init                            debug-solaris-i386/client/qcommon/common.o
Sys_Quit                            debug-solaris-i386/client/qcommon/common.o
Sys_ConsoleInput                    debug-solaris-i386/client/qcommon/common.o
Sys_DisableTray                     debug-solaris-i386/client/server/sv_ccmds.o
Sys_GetClipboardData                debug-solaris-i386/client/client/cl_keys.o
IN_GetMousePos                      debug-solaris-i386/client/client/cl_basemanagement.o
Sys_NormPath                        debug-solaris-i386/client/qcommon/files.o
sys_frame_time                      debug-solaris-i386/client/client/cl_input.o
NET_Config                          debug-solaris-i386/client/client/cl_main.o
Sys_AppActivate                     debug-solaris-i386/client/client/cl_main.o
NET_SendPacket                      debug-solaris-i386/client/client/cl_main.o
Sys_SendKeyEvents                   debug-solaris-i386/client/client/cl_keys.o
IN_Frame                            debug-solaris-i386/client/client/cl_main.o
Sys_OSPath                          debug-solaris-i386/client/qcommon/files.o
NET_SocketToString                  debug-solaris-i386/client/client/cl_irc.o
Sys_ConsoleOutput                   debug-solaris-i386/client/qcommon/common.o
Sys_ShowIP                          debug-solaris-i386/client/client/cl_main.o
NET_IsLocalAddress                  debug-solaris-i386/client/client/cl_main.o
Sys_UnloadGame                      debug-solaris-i386/client/server/sv_game.o
IN_Commands                         debug-solaris-i386/client/client/cl_main.o
gethostbyname                       debug-solaris-i386/client/client/cl_irc.o  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
Sys_GetHomeDirectory                debug-solaris-i386/client/qcommon/files.o
socket                              debug-solaris-i386/client/client/cl_irc.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
strlwr                              debug-solaris-i386/client/game/q_shared.o
Sys_Error                           debug-solaris-i386/client/client/cl_actor.o
Sys_Mkdir                           debug-solaris-i386/client/qcommon/files.o
Sys_Sleep                           debug-solaris-i386/client/qcommon/common.o
Sys_EnableTray                      debug-solaris-i386/client/server/sv_ccmds.o
NET_CompareBaseAdr                  debug-solaris-i386/client/server/sv_main.o
Sys_Vid_Init                        debug-solaris-i386/client/client/cl_vid.o
NET_Sleep                           debug-solaris-i386/client/server/sv_main.o
vid_modes                           debug-solaris-i386/client/client/cl_main.o
connect                             debug-solaris-i386/client/client/cl_irc.o  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
VID_Shutdown                        debug-solaris-i386/client/client/cl_main.o
VID_CheckChanges                    debug-solaris-i386/client/client/cl_main.o
NET_Init                            debug-solaris-i386/client/qcommon/common.o
curtime                             debug-solaris-i386/client/client/cl_main.o
Net_Stats_f                         debug-solaris-i386/client/qcommon/net_chan.o
Sys_LoadLibrary                     debug-solaris-i386/client/client/snd_ref.o
Sys_FreeLibrary                     debug-solaris-i386/client/client/snd_ref.o
NET_GetPacket                       debug-solaris-i386/client/client/cl_main.o
Sys_FindNext                        debug-solaris-i386/client/qcommon/files.o
Sys_Minimize                        debug-solaris-i386/client/server/sv_ccmds.o
NET_CompareAdr                      debug-solaris-i386/client/client/cl_main.o
Sys_Milliseconds                    debug-solaris-i386/client/client/cl_input.o
Sys_GetGameAPI                      debug-solaris-i386/client/server/sv_game.o
IN_Init                             debug-solaris-i386/client/client/cl_main.o
NET_StringToAdr                     debug-solaris-i386/client/client/cl_main.o
Sys_GetProcAddress                  debug-solaris-i386/client/client/snd_ref.o
NET_AdrToString                     debug-solaris-i386/client/client/cl_main.o
Sys_FindClose                       debug-solaris-i386/client/qcommon/files.o
IN_Shutdown                         debug-solaris-i386/client/client/cl_main.o
Sys_FindFirst                       debug-solaris-i386/client/qcommon/files.o
ld: fatal: Symbol referencing errors. No output written to ufo

it seems that files in src/ports/solaris was not compiled, I can't find  objets in debug.

Any tips ?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Compiling with Solaris Express Developer Edition
« Reply #4 on: July 01, 2007, 07:55:43 pm »
i will try to include the files in the solaris build chain - but as i said - it would be cool if you could maybe join the irc channel for this task

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Compiling with Solaris Express Developer Edition
« Reply #5 on: July 01, 2007, 09:01:03 pm »
ok, I've done that. please give it a try. i suppose there is still a lot broken - because the solaris ports currently has no renderer support at all - but i suppose we can just take the sdl code to make it work for solaris (or even the glx, i don't know).

murlock

  • Guest
Compiling with Solaris Express Developer Edition
« Reply #6 on: July 01, 2007, 09:07:58 pm »
I'll try to go on irc this week

edit:

I haven't seen your last post :
Solaris Express Developpement Edition have opengl (and nvidia opengl) and I've added SDL libs.
with SDL's testgl, I've got 2200 fps

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Compiling with Solaris Express Developer Edition
« Reply #7 on: July 01, 2007, 09:12:37 pm »
that would be really cool