Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make test failing on Ubuntu 22.04 #279

Open
acassis opened this issue May 13, 2023 · 1 comment
Open

make test failing on Ubuntu 22.04 #279

acassis opened this issue May 13, 2023 · 1 comment

Comments

@acassis
Copy link

acassis commented May 13, 2023

Hi Mr. Chen,

Nice work creating this media-server using Android libraries in plain C.

Now that NuttX RTOS got support to DirectFB2 I want to create to RTSP demo application and I think this is a good candidate.

I decided to teste first on Linux and initially it failed because "http-reason.h wasn't found", then I downloaded the "sdk" and compiled it, the compilation was fine, but I didn't find how to "make install" to it.

Running "make test" I found a strange issue:

make ok, output: debug.ubuntu22.04-linux64/test
make[1]: Leaving directory '/home/alan/Media-Server/sdk/test'
cd libaio/debug.linux64 && ../../test/debug.linux64/test
/bin/sh: line 1: cd: libaio/debug.linux64: No such file or directory
make: *** [Makefile:47: test] Error 1

The libaio build platform to debug was created with incorrect name, it is looking for "libaio/debug.linux64" but it was created as "libaio/debug.ubuntu22.04-linux64"

$ ls libaio/debug.ubuntu22.04-linux64/
libaio.so  objs  source

Do you have some idea why "libaio/$(BUILD).$(PLATFORM)" is pointing to an incorrect name?

@ireader
Copy link
Owner

ireader commented May 15, 2023

$(BUILD).$(PLATFORM) get from gcc.mk file.

Here is the code:

ifdef PLATFORM
	CROSS:=$(PLATFORM)-
else 
	CROSS:=
	OSID := $(shell awk -F'=' '/^ID=/ {print $$2}' /etc/os-release | tr -d '"')
	OSVERSIONID := $(shell awk -F'=' '/^VERSION_ID=/ {print $$2}' /etc/os-release | tr -d '"')
	PLATFORM:=${OSID}$(OSVERSIONID)-linux$(ARCHBITS)
endif

By default, get os information form host OS file.

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

No branches or pull requests

2 participants