roired / CudaText-Haiku

Haiku files for CudaText code/text editor
5 stars 0 forks source link

One step closer :) #5

Open Begasus opened 3 years ago

Begasus commented 3 years ago

Been looking into Lazarus a bit today (again) :) on 32bit no luck (linking issue) On 64bit ... ;) (no recipe though (yet))

Lazaus-2-0-12-x86-64

Alexey-T commented 3 years ago

Good to know. At least we will have x64!

Begasus commented 3 years ago

On 32bit we'll still need to figure out the issues, but with some luck I'm going to get some help there tomorrow, the build is still fine, but fails to launch

Begasus commented 3 years ago

@roired This should do it if you want to build Lazarus on 64bit:

Download lazarus source: https://sourceforge.net/projects/lazarus/files/Lazarus%20Zip%20_%20GZip/Lazarus%202.0.12/lazarus-2.0.12.tar.gz

Install: fpc,fpc_source and libqt5pas from haikuports (gdb for the debugger but that's not needed for the build)

Extract the source cd to the source and run the next commands from Terminal:

export FPCDIR=/boot/system/lib/fpc/3.2.2/src/
fpcmake -r
cd components/
fpcmake -r
cd ../lcl/
fpcmake -r
cd interfaces/
fpcmake -r
cd nogui/
fpcmake -r
cd ../../../tools/
fpcmake -r
cd ../lcl/interfaces/qt5/
fpcmake -r
cd ../../../
make LCL_PLATFORM=qt5 (to use with 'bigide' it needs more finetuning)
roired commented 3 years ago

Good day @Begasus,

Tried your path and it did work. Lazarus compiled without issues and boots. But then again, Lazarus still does not allow to install some of the required packages for CudaText to build properly. And some of those that allow install end up crashing Lazarus with the "Access Violation" that I get sometimes with Lazarus as well as with the CudaText package. @Alexey-T any idea why is this so?

Regards, RR

Alexey-T commented 3 years ago

I only have an idea that you installed IDE to non-writable dir, so complation fails to save stuff.

Begasus commented 3 years ago

I'm only handing the tools :) No idea about the violation, I saw RudolfC mentioning on the forum thread that he got his project to build with Lazarus, also no idea how to install/build CudaText (yet) :)