Skip to content

Use FTXUI without CMake #446

Discussion options

You must be logged in to vote

Hello. Thanks for using FTXUI!
I recommend using CMake. It would be easier for you. That's said, I am not a cop, happy hacking! Here is the solution:

You can try this Makefile:

run: link
	./main

link: compile 
	c++ \
		main.cpp.o \
		-o main \
		-lftxui-component \
		-lftxui-dom \
		-lftxui-screen \
		-lpthread

compile: main.cpp
	c++ \
		-std=gnu++17 \
		-o main.cpp.o \
		-c main.cpp

Here is what it gave me, assuming FTXUI is installed to the default system paths and you are using Linux.

arthursonzogni@arthursonzogni1:~/programmation/real/ftxui-starter/src$ make
c++ \
	-std=gnu++17 \
	-o main.cpp.o \
	-c main.cpp
c++ \
	main.cpp.o \
	-o main \
	-lftxui-component \
	-lftxui-dom \
	-lftxu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JanDalhuysen
Comment options

Answer selected by ArthurSonzogni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants