halpz / re3

2.13k stars 370 forks source link

Issue building re3 miami branch #24

Closed alexthelion335 closed 1 week ago

alexthelion335 commented 1 month ago

I have an issue compiling the miami branch under Manjaro linux. I have all the dependencies installed, I'm just stuck at linking. It doesn't want to link my libraries because they are supposedly incompatible. Is there an easy fix to this? I attached my make error below. For reference, I used premake5 to make the makefile.

[alex@alex-zephy build]$ make
==== Building reVC (debug_linux-x86-librw_gl3_glfw-oal) ====
Running prebuild commands
"./../printHash.sh" "./../src/extras/GitSHA1.cpp"
GitSHA1.cpp
Linking reVC
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../libopenal.so when searching for -lopenal
/usr/bin/ld: skipping incompatible /usr/lib/libopenal.so when searching for -lopenal
/usr/bin/ld: cannot find -lopenal: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../libopenal.so when searching for -lopenal
/usr/bin/ld: skipping incompatible /usr/lib/libopenal.so when searching for -lopenal
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../libmpg123.so when searching for -lmpg123
/usr/bin/ld: skipping incompatible /usr/lib/libmpg123.so when searching for -lmpg123
/usr/bin/ld: cannot find -lmpg123: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../libmpg123.so when searching for -lmpg123
/usr/bin/ld: skipping incompatible /usr/lib/libmpg123.so when searching for -lmpg123
/usr/bin/ld: cannot find -lrw: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../libglfw.so when searching for -lglfw
/usr/bin/ld: skipping incompatible /usr/lib/libglfw.so when searching for -lglfw
/usr/bin/ld: cannot find -lglfw: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../libglfw.so when searching for -lglfw
/usr/bin/ld: skipping incompatible /usr/lib/libglfw.so when searching for -lglfw
collect2: error: ld returned 1 exit status
make[1]: *** [reVC.make:629: ../bin/linux-x86-librw_gl3_glfw-oal/Debug/reVC] Error 1
make: *** [Makefile:48: reVC] Error 2
[alex@alex-zephy build]$ ls
Makefile  obj  reVC.make
joyel24 commented 1 month ago

Try this to update dependancies "git submodule update -f --init --recursive". Also, most of the libs you can be installd with pacman or yaourt except the rw lib witch is librw i guess.

Try to install these packages as mentionned here https://github.com/Jai-JAP/re-GTA/wiki/Building-on-Linux:

    openal / libopenal-dev
    GLEW / libglew-dev (i386 unavailable on apt after Ubuntu 19.10)
    glfw / libglfw3-dev (min. 3.3 is required, i386 unavailable on apt after Ubuntu 19.10)
    libsndfile1-dev (Caution: install this before libmpg123-dev, optional)
    libmpg123-dev

Are you able to build the master branch ?

alexthelion335 commented 1 month ago

Sorry I didn't close the issue, but I fixed it by just cloning recursively. I didn't read all of the instructions before cloning.

--

Alex Kinch

On Wed, May 29, 2024, 13:10 joyel24 @.***> wrote:

Try this to update dependancies "git submodule update -f --init --recursive". Also, most of the libs you can be installd with pacman except the rw lib with is librw i guess.

— Reply to this email directly, view it on GitHub https://github.com/halpz/re3/issues/24#issuecomment-2137895107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFI3OHTEAETEFVLRUGYGFETZEYDZJAVCNFSM6AAAAABHHCIVCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZXHA4TKMJQG4 . You are receiving this because you authored the thread.Message ID: @.***>