Code Monkey home page Code Monkey logo

Comments (7)

zaps166 avatar zaps166 commented on June 29, 2024

I don't know.

Now checked and works perfectly, hmm...

Do you have 32-bit SLD2 and GLIBC? Does /lib and /usr/lib are 32-bit libraries directories? Does your gcc and ld are able to generate 32-bit binaries? Maybe reorder object files: game-obj/NFS2SE.Linux.o *.o Also check this:

$ md5sum src/game-obj/NFS2SE.Linux.o 
2cfb2b1c50f86dc5b49c82c5eb10514f  src/game-obj/NFS2SE.Linux.o

from nfsiise.

mdeguzis avatar mdeguzis commented on June 29, 2024
root@debian-testing:/build/nfs2se-1.0.0+git+bsos# md5sum src/game-obj/NFS2SE.Linux.o 
2cfb2b1c50f86dc5b49c82c5eb10514f  src/game-obj/NFS2SE.Linux.o

I have the following packages in debian/control:

gcc:i386,
libsdl2-dev:i386

This also means any packages pulled in as dependencies of those. Same error if reordering. I tried correcting the path to /usr/lib/i386-linux-gnu/, no luck either. Still looking at things. I don't have paths you have hard-coded in linker steps, maybe that's it? I am building this in a i386 chroot. I read this thread about ordering the objects/linkering.

/lib/ld-linux.so.2

root@debian-testing:/build/nfs2se-1.0.0+git+bsos# file /usr/bin/ld
/usr/bin/ld: symbolic link to ld.bfd
root@debian-testing:/build/nfs2se-1.0.0+git+bsos# file /usr/bin/ld.bfd
/usr/bin/ld.bfd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=209b2d19f2a7282cf72373e0d7243d528937892f, stripped

from nfsiise.

mdeguzis avatar mdeguzis commented on June 29, 2024

I think this was my fault. I was using build steps in debian/rules from your master branch file, and I was using the v1.0.0 release...I'm sorry about that. I saw you made a lot of changes since then. On to the next steps! Can't wait to script the install further to get this prepped for my SteamOS repository.

from nfsiise.

mdeguzis avatar mdeguzis commented on June 29, 2024

Thing that makes the rest of packaging this rough, is the Need For Speed II SE directory having spaces. Is there a reason why it has to be this way? is it hardcoded?

from nfsiise.

mdeguzis avatar mdeguzis commented on June 29, 2024

Came up with a hack, since dh_install for Debian hates spaces in the install file. See here for more. SO what I did, was rename the folder at the end of the compile/link, added dashes, then used the install file with the dashes in the name. Added a postinst file that fires off after the user installs the deb package, which renames it back. On to the next stage :)

from nfsiise.

zaps166 avatar zaps166 commented on June 29, 2024

Hmm, v1.0.0 and master differs too much. I think I'll release it soon.

Thing that makes the rest of packaging this rough, is the Need For Speed II SE directory having spaces. Is there a reason why it has to be this way? is it hardcoded?

You can change the directory name after compilation or modify the compilation script :)

from nfsiise.

mdeguzis avatar mdeguzis commented on June 29, 2024

Ok, as long as the game will actually function with the directory name different, that is fine. I may just rename it and lowercase it after the compile/link. Thanks!

from nfsiise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.