TheRedScreen64 / radix-chat

The new era of social media — almost
GNU General Public License v3.0
2 stars 0 forks source link

Remake frontend as a static website - Can't compile #12

Closed TheRedScreen64 closed 8 months ago

TheRedScreen64 commented 8 months ago

It's unnecessary, stupid and just not a good practice to write the frontend in a way that it needs to be compiled so complicated like here with C. Please rewrite the frontend using either a frontend framework or just good old static html. @nosehad You can show off your libraries in many other places but PLEASE NOT IN FRONTEND!!!

For example the compilation is one, but not the only problem that then arrises:

Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
In file included from utils/SHashmap.h:12,
                 from utils/SHashmap.c:1:
utils/String/String.h:10:10: fatal error: malloc.h: No such file or directory
   10 | #include <malloc.h>
      |          ^~~~~~~~~~
compilation terminated.
In file included from utils/Convert.c:3:
utils/Convert.h:12:10: fatal error: stdlib.h: No such file or directory
   12 | #include <stdlib.h>
      |          ^~~~~~~~~~
compilation terminated.
In file included from utils/SString.c:1:
utils/SString.h:12:10: fatal error: stdlib.h: No such file or directory
   12 | #include <stdlib.h>
      |          ^~~~~~~~~~
compilation terminated.
In file included from utils/String/String.c:1:
utils/String/String.h:10:10: fatal error: malloc.h: No such file or directory
   10 | #include <malloc.h>
      |          ^~~~~~~~~~
compilation terminated.
In file included from utils/SQTree/SQTreeSlowLocal.c:1:
utils/SQTree/SQTreeSlowLocal.h:11:10: fatal error: malloc.h: No such file or directory
   11 | #include <malloc.h>
      |          ^~~~~~~~~~
compilation terminated.
In file included from utils/debug.c:1:
utils/debug.h:94:10: fatal error: time.h: No such file or directory
   94 | #include <time.h>
      |          ^~~~~~~~
compilation terminated.
app/RadixApplication.c:1:10: fatal error: gtk/gtk.h: No such file or directory
    1 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
compilation terminated.
In file included from app/RadixGTK.h:4,
                 from app/RadixGTK.c:2:
app/../utils/debug.h:94:10: fatal error: time.h: No such file or directory
   94 | #include <time.h>
      |          ^~~~~~~~
compilation terminated.
WSLocal.c:3:10: fatal error: microhttpd.h: No such file or directory
    3 | #include <microhttpd.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
Main.c:9:10: fatal error: stdio.h: No such file or directory
    9 | #include "stdio.h"
      |          ^~~~~~~~~
compilation terminated.

(ran on Linux Mint fresh install)

nosehad commented 8 months ago

I am very well knowing what I am doing my Goal with this is to create best possible User experience, i will soon create an detailed guide, how to build my software in a virtual machine. Then later I will add some guards to enable cross plattform compile, till then, you have to deal with the compile using a virtual machine and a guide which I will soon create. Please keep in mind that

All of the critics above are your own subjective and also just simply wrong assumptions proven wrong by countless objective performance and stability testing benchmarks. The problems you had lie in a wrong build system and the usage of an C++ compiler for C99 standard code.

When the project is finished, I will add a guide and complete build setup script, to give even gigantig goof-heads like you the possibility to build my systems. Till then learn to wait. Greetings Noah