Skip to content

update: flagtool#2

Open
darwincereska wants to merge 1 commit into40476:mainfrom
darwincereska:main
Open

update: flagtool#2
darwincereska wants to merge 1 commit into40476:mainfrom
darwincereska:main

Conversation

@darwincereska
Copy link
Contributor

  • fixed breaking changes from flagtool update
  • fixed flagtool in makefile
  • made flagtool updater in makefile

@40476
Copy link
Owner

40476 commented Jan 31, 2026

Does not compile:

usr_40476@2xeon:~/Projects/G510s/durr> git clone https://github.com/darwincereska/g510s                                   
Cloning into 'g510s'...
remote: Enumerating objects: 237, done.
remote: Counting objects: 100% (237/237), done.
remote: Compressing objects: 100% (145/145), done.
remote: Total 237 (delta 137), reused 179 (delta 83), pack-reused 0 (from 0)
Receiving objects: 100% (237/237), 127.76 KiB | 130.00 KiB/s, done.
Resolving deltas: 100% (137/137), done.
usr_40476@2xeon:~/Projects/G510s/durr> cd g510s 
usr_40476@2xeon:~/Projects/G510s/durr/g510s> killall g510s && make && sudo make install && nohup g510s &
gcc  -fcommon -Wall `pkg-config --cflags gtk+-3.0 appindicator3-0.1` -c g510s.c -o g510s.o
gcc  -fcommon -Wall -c g510s-clock.c -o g510s-clock.o
g510s-clock.c: In function ‘render_scripted_display’:
g510s-clock.c:490:29: warning: unused variable ‘tmp’ [-Wunused-variable]
  490 |                         int tmp = fill_y0;
      |                             ^~~
g510s-clock.c:545:25: warning: unused variable ‘px’ [-Wunused-variable]
  545 |                     int px = x;
      |                         ^~
g510s-clock.c:458:45: warning: unused variable ‘h0’ [-Wunused-variable]
  458 |                 int x0 = x, y0 = y, w0 = w, h0 = h;
      |                                             ^~
g510s-clock.c:458:37: warning: unused variable ‘w0’ [-Wunused-variable]
  458 |                 int x0 = x, y0 = y, w0 = w, h0 = h;
      |                                     ^~
g510s-clock.c:458:29: warning: variable ‘y0’ set but not used [-Wunused-but-set-variable]
  458 |                 int x0 = x, y0 = y, w0 = w, h0 = h;
      |                             ^~
g510s-clock.c:458:21: warning: variable ‘x0’ set but not used [-Wunused-but-set-variable]
  458 |                 int x0 = x, y0 = y, w0 = w, h0 = h;
      |                     ^~
g510s-clock.c:126:16: warning: unused variable ‘last_line_y’ [-Wunused-variable]
  126 |     static int last_line_y[MAX_SCRIPT_LINES] = {0}; // For line graph state
      |                ^~~~~~~~~~~
gcc  -fcommon -Wall -c g510s-config.c -o g510s-config.o
g510s-config.c: In function ‘check_dir’:
g510s-config.c:147:17: warning: the comparison will always evaluate as ‘false’ for the address of ‘home_path’ will never be NULL [-Waddress]
  147 |   if (home_path == NULL) {
      |                 ^~
g510s-config.c:140:8: note: ‘home_path’ declared here
  140 |   char home_path[255];
      |        ^~~~~~~~~
g510s-config.c: In function ‘load_config’:
g510s-config.c:401:19: warning: the comparison will always evaluate as ‘false’ for the address of ‘home_path’ will never be NULL [-Waddress]
  401 |     if (home_path == NULL) {
      |                   ^~
g510s-config.c:395:10: note: ‘home_path’ declared here
  395 |     char home_path[255];
      |          ^~~~~~~~~
g510s-config.c: In function ‘save_config’:
g510s-config.c:440:19: warning: the comparison will always evaluate as ‘false’ for the address of ‘home_path’ will never be NULL [-Waddress]
  440 |     if (home_path == NULL) {
      |                   ^~
g510s-config.c:435:10: note: ‘home_path’ declared here
  435 |     char home_path[255];
      |          ^~~~~~~~~
gcc  -fcommon -Wall -c g510s-keys.c -o g510s-keys.o
gcc  -fcommon -Wall -c g510s-list.c -o g510s-list.o
gcc  -fcommon -Wall -c g510s-misc.c -o g510s-misc.o
gcc  -fcommon -Wall -c g510s-net.c -o g510s-net.o
g510s-net.c: In function ‘g15_recv’:
g510s-net.c:223:9: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
  223 |         memset(msgbuf, 0, 20);
      |         ^~~~~~
gcc  -fcommon -Wall `pkg-config --cflags gtk+-3.0` -c g510s-signals.c -o g510s-signals.o
gcc  -fcommon -Wall `pkg-config --cflags appindicator3-0.1` -c g510s-threads.c -o g510s-threads.o
echo "Downloading latest code from main branch..."
Downloading latest code from main branch...
wget https://github.com/darwincereska/flagtool/archive/refs/heads/main.zip -O latest.zip
--2026-01-31 18:38:04--  https://github.com/darwincereska/flagtool/archive/refs/heads/main.zip
Resolving github.com (github.com)... 140.82.112.3
Connecting to github.com (github.com)|140.82.112.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/darwincereska/flagtool/zip/refs/heads/main [following]
--2026-01-31 18:38:05--  https://codeload.github.com/darwincereska/flagtool/zip/refs/heads/main
Resolving codeload.github.com (codeload.github.com)... 140.82.114.10
Connecting to codeload.github.com (codeload.github.com)|140.82.114.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘latest.zip’

latest.zip                                                     [ <=>                                                                                                                                     ]   9.15K  --.-KB/s    in 0.004s  

2026-01-31 18:38:05 (2.09 MB/s) - ‘latest.zip’ saved [9374]

echo "Extracting latest.zip..."
Extracting latest.zip...
unzip latest.zip
Archive:  latest.zip
6e1ddf61519b800a1227c7afd1ef361b5d68bea6
   creating: flagtool-main/
 extracting: flagtool-main/.gitignore  
 extracting: flagtool-main/LICENSE   
  inflating: flagtool-main/Makefile  
  inflating: flagtool-main/README.md  
   creating: flagtool-main/examples/
  inflating: flagtool-main/examples/example.c  
   creating: flagtool-main/include/
  inflating: flagtool-main/include/flagtool.h  
   creating: flagtool-main/src/
  inflating: flagtool-main/src/flagtool.c  
   creating: flagtool-main/tests/
  inflating: flagtool-main/tests/test_flagtool.c  
echo "Building the library..."
Building the library...
echo "Copying files..."
Copying files...
cp flagtool-main/src/flagtool.c ./
cp flagtool-main/include/flagtool.h ./
echo "Cleaning up..."
Cleaning up...
rm -rf flagtool-main latest.zip
echo "Files copied successfully."
Files copied successfully.
gcc  -fcommon -Wall g510s.o g510s-clock.o g510s-config.o g510s-keys.o g510s-list.o g510s-misc.o g510s-net.o g510s-signals.o g510s-threads.o flagtool.o -o g510s -lg15 -lg15render -lpthread -rdynamic `pkg-config --libs gtk+-3.0 appindicator3-0.1` -lm
/usr/lib64/gcc/x86_64-suse-linux/15/../../../../x86_64-suse-linux/bin/ld: cannot find flagtool.o: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:38: g510s] Error 1
usr_40476@2xeon:~/Projects/G510s/durr/g510s> ls
.rw-r--r--  412 usr_40476 31 Jan 18:37 --  99-g510s.rules
.rw-r--r--  17k usr_40476 31 Jan 18:38 --  flagtool.c
.rw-r--r-- 1.1k usr_40476 31 Jan 18:38 --  flagtool.h
.rw-r--r--  93k usr_40476 31 Jan 18:37 -- 󰕙 g510s-alert.svg
.rw-r--r--  28k usr_40476 31 Jan 18:37 --  g510s-clock.c
.rw-r--r--  22k usr_40476 31 Jan 18:38 -I  g510s-clock.o
.rw-r--r--  19k usr_40476 31 Jan 18:37 --  g510s-config.c
.rw-r--r--  28k usr_40476 31 Jan 18:38 -I  g510s-config.o
.rw-r--r--  13k usr_40476 31 Jan 18:37 --  g510s-keys.c
.rw-r--r-- 8.7k usr_40476 31 Jan 18:38 -I  g510s-keys.o
.rw-r--r-- 3.6k usr_40476 31 Jan 18:37 --  g510s-list.c
.rw-r--r-- 3.4k usr_40476 31 Jan 18:38 -I  g510s-list.o
.rw-r--r-- 4.3k usr_40476 31 Jan 18:37 --  g510s-misc.c
.rw-r--r-- 4.9k usr_40476 31 Jan 18:38 -I  g510s-misc.o
.rw-r--r-- 7.2k usr_40476 31 Jan 18:37 --  g510s-net.c
.rw-r--r-- 6.5k usr_40476 31 Jan 18:38 -I  g510s-net.o
.rw-r--r--  19k usr_40476 31 Jan 18:37 --  g510s-signals.c
.rw-r--r--  27k usr_40476 31 Jan 18:38 -I  g510s-signals.o
.rw-r--r-- 9.0k usr_40476 31 Jan 18:37 --  g510s-threads.c
.rw-r--r-- 9.2k usr_40476 31 Jan 18:38 -I  g510s-threads.o
.rw-r--r--  49k usr_40476 31 Jan 18:37 --  g510s.c
.rw-r--r--  178 usr_40476 31 Jan 18:37 --  g510s.desktop
.rw-r--r-- 168k usr_40476 31 Jan 18:37 --  g510s.glade
.rw-r--r-- 4.0k usr_40476 31 Jan 18:37 --  g510s.h
.rw-r--r--  61k usr_40476 31 Jan 18:38 -I  g510s.o
.rw-r--r--  93k usr_40476 31 Jan 18:37 -- 󰕙 g510s.svg
.rw-r--r--  35k usr_40476 31 Jan 18:37 --  LICENSE
.rw-r--r-- 2.9k usr_40476 31 Jan 18:37 --  Makefile
.rw-r--r-- 4.5k usr_40476 31 Jan 18:37 -- 󰂺 README.md
drwxr-xr-x    - usr_40476 31 Jan 18:37 --  tests
usr_40476@2xeon:~/Projects/G510s/durr/g510s> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants