Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: No .so created

  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts

    No .so created

    Hi all,

    Im trying to compile mitch version of libcod
    Code:
    cd /ur/cod2/path
    git clone https://github.com/M-itch/libcod
    cd libcod
    ./doit.sh base
    ./doit.sh cod2_1_0
    However, there is no libcod.so file created inside the bin folder

    git clone https://github.com/M-itch/libcod gives me this result
    Code:
    Initialized empty Git repository in /home/olger/HIGHJUMP/libcod/.git/
    remote: Counting objects: 802, done.
    remote: Total 802 (delta 0), reused 0 (delta 0), pack-reused 802
    Receiving objects: 100% (802/802), 952.86 KiB | 785 KiB/s, done.
    Resolving deltas: 100% (544/544), done.
    /doit.sh base
    Code:
    ##### COMPILE GSC_ASTAR.CPP #####
    ##### COMPILE GSC_MYSQL.CPP #####
    ##### COMPILE SERVER.C #####
    ##### COMPILE GSC_MEMORY.CPP #####
    ##### COMPILE cracking.CPP #####
    ##### COMPILE GSC_MATH.CPP #####
    ##### COMPILE JAVA_EMBED.C #####
    Ignore java_embed.c, because java_enable==false (e.g. because the dir $java_jdk=/root/helper/openjdk8 does not exist)
    and ./doit.sh cod2_1_0
    Code:
    ##### COMPILE cod2_1_0 LIBCOD.CPP #####
    ##### COMPILE cod2_1_0 GSC.CPP #####
    ##### COMPILE cod2_1_0 GSC_PLAYER.CPP #####
    ##### COMPILE cod2_1_0 GSC_UTILS.CPP #####
    ##### LINK libcod2_1_0.so #####
    objects_normal/cracking.opp: could not read symbols: File in wrong format
    collect2: ld returned 1 exit status
    What is the problem?

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Did you install the prerequisites as per the github readme?
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  3. #3
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Its a centos linux, so i cant use those commands

  4. #4
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Kinda strange, maybe just recompile cracking.opp with ./doit.sh base
    timescale 0.01

  5. #5
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    So dont use./doit.sh cod2_1_0?

  6. #6
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Oh well, just do both commands again ^^

    "base" will compile the version independent files and the "cod2_1_0" the version dependent files + linking everything together. So yea, you gotta do both again (just takes a few seconds nonetheless)
    timescale 0.01

  7. #7
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Same result Again no .so

  8. #8
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Ni3ls View Post
    Its a centos linux, so i cant use those commands
    CentOS commands
    http://killtube.org/showthread.php?2...ll=1#post10702

  9. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (6th November 2015)

  10. #9
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Same. Still no .so

    But if i use the extra step mentioned in the other post
    http://killtube.org/showthread.php?2...ll=1#post10702

    where you link "mysql" files in "vendors" directory first
    mkdir vendors
    ln -s /usr/lib/mysql/ vendors/lib
    It will compile successfully but it will give a "segmentation fault" when I try to use the library

    Code:
    Package gcc-4.4.7-16.el6.x86_64 already installed and latest version
    Package libgcc-4.4.7-16.el6.i686 already installed and latest version
    Package gcc-c++-4.4.7-16.el6.x86_64 already installed and latest version
    Package glibc-devel-2.12-1.166.el6_7.3.i686 already installed and latest version
    Package mysql-server-5.1.73-5.el6_6.x86_64 already installed and latest version
    Package mysql-devel-5.1.73-5.el6_6.i686 already installed and latest version
    Dedi server is Centos 64 bit version.

  11. #10
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Try compiling it without any mysql, see if that changes things (obviously you'd have to change your .gsc files to NOT call the mysql functions)
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •