|
Post by tbird on Dec 30, 2019 11:27:51 GMT -6
I am having an issue with building the bob project 32 bit. I change the commands, to 32 folder and it keeps saying permission denied. Do either of you have an idea what to do with it, the 64 and 32 bit folders are in the same parent folder, 64 works fine, 32 permission denied.
I did a quick google check and I still have not found a solution....so hopefully either of you Linux guru's can help me out. I am running Lubuntu 18.04.
Thanks.
|
|
|
Post by n00b on Dec 30, 2019 12:43:51 GMT -6
I am a little confused on what you are talking about. Can you post a video or detailed explanation and I will look into it. Thanks.
|
|
|
Post by tbird on Dec 30, 2019 14:06:17 GMT -6
Sorry for the lack of details, in the build commands I switched from the 64 bit folder to the 32 bit and it just tells me permission denied. I would provide screenshots but I am not at home.
Will update later tonight when I get back.
Thanks.
|
|
|
Post by n00b on Dec 30, 2019 14:28:35 GMT -6
If you are on linux then all you should have to do is run the install script provided you are on a system that uses APT (ie. Ubuntu, Debian, Mint, Elementary, Pop OS, etc.).
If you are on windows then you should just run the batch file to start up geany with everything configured.
If you are trying to distribute your program and you are on linux then use the package tool I posted. If you are on windows then you should just use the distribute commands in the geany build menu. If those are not popping up then just bundle the *.cbc file with rcbasic.exe renamed to the *.cbc name (ie. if you have main.cbc then rename rcbasic.exe to main.exe) and include all the Dll files. I have decided to port that packaging tool to windows but that will take a week or 2 to complete so in the mean time that is the most preferable method if you are on windows.
|
|
|
Post by tbird on Dec 30, 2019 14:51:04 GMT -6
I cannot compile it, it just keeps saying permission denied when I use the rcbasic32. Build. I cannot produce a .cbc file as it wont compile. I will try and run geany as sudo when i get home
|
|
|
Post by johnno56 on Dec 30, 2019 14:56:27 GMT -6
Ok. Here is what I did. Note: I run with Linux Mint 19.2 (64bit). Firstly: I always compile and execute via the 64 bit Geany folder... I am going to assume that your machine is 64 bit and you are compiling for a 32 bit machine. Because, if you had a 32 bit machine and compilng for a 32 bit machine, you would have notified us long before this... lol Good guess? Anyway... I modified my Geany settings to both compile and execute a game that I know both compiled and executed successfully before the modification. Results: 1. Compilation failed just as you stated. Reason: By default (on my machine) the 'rcbasic_build' executable was 'not' set as an executable. Solution: Right click on the 'rcbasic_build' executable. Select 'Properties'. Select 'Permissions'. Then make sure that 'allow executing...' is flagged. I did this and then the game compiled successfully. 2. 'rcbasic_edit' executable was, by default, set as executable. Regardless of that fact, the game failed to 'run', producing the same error in regards to 'permission'... At this point in time, I am at a loss, as to why it will not run. I will continue to research... I hope that this helps... but I have my doubts... lol J
|
|
|
Post by tbird on Dec 30, 2019 15:10:40 GMT -6
Ah your a life saver johnno56 I bet that is it, makes complete sense! When I get home I will check the permissions..... Thank you!
|
|
|
Post by johnno56 on Dec 30, 2019 18:09:48 GMT -6
Oh. Don't get your hopes up too high... Compiling is only half of the solution... lol But you are welcome.
|
|
|
Post by tbird on Dec 30, 2019 22:38:56 GMT -6
Well it solved the compilation part but now I am having SDL2 shared library issue for running...but this is entirely my machines problem, I ran out of figuring out time, so maybe tomorrow night can get a handle on it.
|
|
|
Post by johnno56 on Dec 31, 2019 0:45:25 GMT -6
I'm going to go out on a limb here... Correct me if I am wrong... Compiling 32 bit on a 64 bit machine and a library error occurs which involves the presence or lack of presence of 'libSDL2_image-2.0.so.0'? If a search is performed the library actually exists, yes?
My primary guess would be that, 32 bit rcbasic is looking for the 32 bit libraries for libSDL2, but is only finding the 64 bit version library... Mind you, that's a guess... The 32 bit dev version of libSDL2 may have to be installed... I'm not entirely sure how to fix that yet, but I will continue to look...
J
|
|
|
Post by johnno56 on Dec 31, 2019 3:01:56 GMT -6
I now have my 32 bit version compiling AND running on my 64 bit machine.
There are 5 (five) 32 bit libraries that I had to install.
Use a 'terminal' to submit the following commands.
sudo apt-get install libsdl2-image-2.0-0:i386 sudo apt-get install libsdl2-gfx-1.0:i386 sudo apt-get install libsdl2-ttf-2.0-0:i386 sudo apt-get install libsdl2-mixer-2.0-0:i386 sudo apt-get install libsdl2-net-2.0-0:i386
Let me know if this helps?
J
|
|
|
Post by tbird on Jan 2, 2020 11:48:10 GMT -6
Thank you johnno56, that indeed solved my problem.
|
|
|
Post by n00b on Jan 2, 2020 11:59:14 GMT -6
tbird Is your system 64-bit? If so, why are you trying to run the 32-bit build on it?
|
|
|
Post by johnno56 on Jan 2, 2020 15:57:47 GMT -6
tbird,
Process of elimination. Geany complained about the missing 32 bit version of "image", then when that library was installed, Geany threw up another message. Installed the "gfx" library... and just kept doing that until it ran... But yes. I too am curious as to why you need to run 32 bit on a 64 bit machine... unless you are making it for a 32 bit user?
Regardless of the reason... Glad it now works...
|
|
|
Post by tbird on Jan 3, 2020 0:45:20 GMT -6
Reason being I like to test everything after a compile regardless if it "should" work or not...bugs me lol, since I dont have a 32 bit machine, now I can test both builds.
|
|