-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python configure.py build fails #3
Comments
Same here. Not sure, but it might be because libBulletDynamics.so.2.87 and libBulletCollision.so.2.87 depend on libLinearMath.so.2.87 (also a part of Bullet), but it isn't included. Haven't gotten further than this yet... :|
|
For me it's going ballistic while wiring in libphx64r.so.
Edit: The offending line is in src/Physics.cpp on line 274. I commented it out and now |
Ok, so then you succeeded in linking libphx64r.so (that this issue is about). Care to enlighten us? |
Well, I simply followed the build instructions, i.e.
I commented out line 274 in
Linking still didn't go as smoothly after all... Maybe relatedly I noticed, CMakeList.txt of libphx is missing the part where it's supposed to pull in external libraries for Linux.
|
Strange that it works for you but not for others... Regarding the run-time error (cannot open shared...), that could be worked around by setting |
I ended up emulating what the cmake script does on Windows: copy the libraries from
|
Regarding your Bulletphysics problems: The only possible difference that I can think of is, that I have bulletphysics installed as a distro package. Maybe that provides -> I just checked I have |
Ah, I see. Yes having a globally-installed I did try (before) downloading the deb for 2.87 and putting that in the same |
Btw, you can run No idea on the lua stuff, I'm completely useless in that area. :( |
I eventually managed to get to the following upon running lt64r
|
mind writing the steps/commands you took to get passed it? i dont quite follow what you did |
That's "simply" include files and lib from different versions. You mentioned you needed to copy from system to LT directory, so, it didn't find the system-installed SDL ? |
It was not using system-installed SDL. I manually copied Now the error is
Could this be because I obtained libSDL2 from https://altlinux.pkgs.org/p9/classic-x86_64/libSDL2-2.0.14-alt4.x86_64.rpm.html despite my distro being openSUSE Leap 15.4? |
I also got this error, because lt ships with headers for sdl 2.0.14 but is missing the actual I have to agree, though, replacing libLinearMath.so with the system version isn't going to work... The proper way to go, would be to fix up the CmakeList.txt to use the system libraries and headers. Half of the necessary libraries seem to be missing anyway. |
As noted here: Which highlights how much of a noob I am, I ran a-ground when attempting the previous step to you, i.e. Can you advise which version of Cmake you used to get to the next hurdle? |
I have cmake version 3.23. the |
Has anyone solved this lua error in IOEx.lua on line 14 yet?
I have installed the luafilesystem package via the package manager of my gnu/linux distro, which did nothing to fix the error. I also tried installing the package via luarocks with the same effect. When commenting out line 14, it obviously throws the next error, that it cannot check if the directory env/ext/ exists. |
On ubuntu 2022 I can't get
so I do
not sure what the issue is. |
|
wtf... can't edit my message? :( the second row isn't supposed to be a quote... |
ah yeah. I though cmake would come with build essentials. my bad. I did what @insta256 did and removed ".exe" in the configure.py I also ran :
but it seems most of these dependencies aren't available as-is on linux. now when I try configure :
didn't find anything interesting in the log. |
[I guess you're using a debian-derived distro] Most (if not all) of those dependencies are named with |
I'm using ubuntu, I'm just fairly green when it comes to compiling source. thanks I'm assuming I should prioritize 32 bit libs? (ubuntu doesn't install those unless you kinda force it to) here's the maximum I was able to install :
(those that are not in this list as their 64 bit version it's because they were incompatible with the 32 bit version, and those that aren't present as their 32 bit version, it's because the 32 bit version didn't exist and those that aren't present in this list as -dev it's because they didn't have a -dev) please tell me if I should revert this and use only 64 bit versions instead. |
Not sure why you think you need 32bit libs? The native architecture is 64bit, for sure? |
it is yeah. it's just I heard with a lot of dev projects like games (and in this case a 11 year old game and a windows one in particular) that they use 32 bit dependencies profusely and that for whatever reason the 64bit counterparts are incompatible. If my assumption is wrong, all the better, i'll delete the 32bit libs and put the default instead |
Yeah, if it involves wine it is sometimes 32bit (especially for older games)..But here you're compiling from source, so I don't see a reason for not using the native arch. |
awesome thanks!
and with this I think I have all the dependencies I will need? |
You didn't find |
oh my bad. I didn't test with both lib in front and -dev at the back at the same time. that worked.
should I uninstall the non -dev version or will the compiler know which to pick? |
as for configure, I'm still getting the same error : it wants me to have a CMakeLists.txt file ? |
so now someone just needs to go in an redo the source entirely to not use FMOD but SDL_audio instead what about if I had a license to FMOD? |
Not really familiar with the fmod license, but yeah, something else would be preferable. |
Don't think you need a license per se just to run applications using it, though. |
? do you have an example? |
Example of an application? No, not at the moment. From their license faq:
|
you could just copy the fmod library files from libphx/ext/lib/linux64/ into your bin/ folder. |
Hm... I don't have an "ext" directory, in the redux fork at least. |
Oh yeah right, it seems, that the redux version doesn't have an ext dir. |
Yeah, I did... now I can run it, but instead apparently have mixed SDL versions :( |
Try copying the SDL.h from your system (located in /usr/include/SDL2/SDL.h) into libphx/include for the redux version. |
I did all of that, with all three steps, configure, configure build and configure run and yet still :
should I empty out all the cache ? |
did you copy the libfmod*.so.10 back into the bin/ folder after the rebuild? |
no but the file wasn't there to begin with (and it was still there after build) so I would've assumed it wasn't touched. I copied them back over (and renamed them) again, no change. |
I had to run with |
what's the full path on that (so that I can adapt to what's mine) what i've been doing this entire time is
but I imagine you can only have one exported value on that so mine isn't correct? BTW @dw0xaa55 on ubuntu the SDL.h I already had was working. replacing it made a new build fail. |
Interesting, @tatsujb, I didn't expect other distros to handle the copied SDL versions so differently, since you are just copying the system's SDL version, against which you compile so the build and system use the same one. |
oh wow, that's a big difference. I did not know that. |
so yeah. for me the 95 bytes one (original) results in a successful compile.
|
oh, that's just the error, that it also wants SDL_main.h. Otherwise, if it works for you, just leave it the way it is :D |
ok but the problem still is |
or use LD_LIBRARY_PATH=path/to/original/ltheory/shared/object/files |
alright so I tried with the whole folder copied over
which is a new error! |
yeah, that*s the problem with which I am stuck, too. I guess from here on out we need someone, who understands lua. :D |
I made a condensed little guide of how to get here in bash/shell format :
could be useful to those who follow in our wake. |
actually should I break this into a new issue? The title of this issue is "build fails" maybe we need an issue titled "./script/env/ext/IOEx.lua:14: attempt to index global 'lfs'" or is it better to just keep everything grouped for now? I do have a "discussion" over on the redux : Limit-Theory-Redux/ltheory#7 |
I would open this under a new issue here and in addition over at the redux and link it, because it happens to be the exact same error in the original ltheory build. At least for me. |
@dw0xaa55 there's no "issue" tab in redux. I opened a "discussion" there because that's all I could find |
here's the new issue at least : #8 |
We've just merged official Ubuntu support in Redux, and updated the README with instructions to get the right development libraries installed: https://github.com/Limit-Theory-Redux/ltheory |
following the example process when running
python configure.py build
this is the following outputThe text was updated successfully, but these errors were encountered: