Comments (8)
@ophirHav I will try this out tomorrow (actually I already gave up so many thanks for your reply). Can you elaborate a bit?
so changing line 9 of the makefile from:
$(CC) $(CFLAG) $(INC) $(LIB) -o $(BASE) $(BASE).c
To:
$(CC) $(BASE).c $(CFLAG) $(INC) $(LIB) -o $(BASE)
It seems you only changed the order of the parameters passed to gcc, does this mean original make file was always incorrect or did gcc change or something.
How did you arrive at this fix if I may ask?
Update: It works now, I can compile the program without errors, thank you very much!
from lampify.
I had to replace line 3 of the Makefile to use pkg-config to build on Ubuntu 22.04 :
INC = -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include -I /usr/include/gdk-pixbuf-2.0
with
INC = $(shell pkg-config --cflags glib-2.0) $(shell pkg-config --cflags gdk-pixbuf-2.0)
from lampify.
to fix build fail #2
change the Makefile for the compilation to be -
$(CC) $(BASE).c $(CFLAG) $(INC) $(LIB) -o $(BASE)
from lampify.
Same problem with me :-(
from lampify.
worked for me as well :-)
from lampify.
Newer versions of GCC have made the order of arguments relevant for linking and optimization purposes. That's why your sources should go first and then reference libraries the code uses.
from lampify.
I had to replace line 3
For Ubuntu 24.04 also, this worked
from lampify.
Yup, it built. Anyone else having the problem where it outputs [I] Connecting to the lamp [E] Failed to set advertising parameters!
? I also tried running as root, but that didn't work. Also it doesn't make the light blink, and lights are unresponsive.
from lampify.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lampify.