Skip to content

Commit

Permalink
added a section related to the gnu-sed error message on Mac OS
Browse files Browse the repository at this point in the history
  • Loading branch information
RetroAntho committed Jul 11, 2024
1 parent bc35de6 commit c52900f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wiki/Community-FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ The remaining entries here on the unofficial FAQ are maintained by the community
- [How to build tcc 816 provided with PVSnesLib sources ?](#how-to-build-tcc-816-provided-with-pvsneslib-sources-)
- [I get the error "echo: command not found"](#i-get-the-error-echo-command-not-found)
- [On Linux i get : "fatal error: bits/libc-header-start.h"](#on-linux-i-get--fatal-error-bitslibc-header-starth)
- [On Mac OS i get : "sed: 1: "hello_world.sym": extra characters at the end of h command"](#on-Mac-OS-i-get--sed-1--hello-world-sym-extra-characters-at-the-end-of-h-command)
- [Using malloc with PVSneslib](#using-malloc-with-pvsneslib)
- [Maps](#maps)
- [How to create maps with 16x16 tiles ?](#how-to-create-maps-with-16x16-tiles-)
Expand Down Expand Up @@ -349,6 +350,11 @@ The value must be in unix style (**/c/snesdev** instead of **c:\\snesdev**) to a

When building some tools on Linux like **snestools**, if you get the error _/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: no such file or directory_, it is related to the -m32 CFLAG provided in the makefile, you probably forgot to install some libraries from gcc. For example on Ubuntu, you just have to install **gcc-multilib** by executing `sudo apt-get install gcc-multilib`

### On Mac OS i get : "sed: 1: "hello_world.sym": extra characters at the end of h command"

It is probably related to the version of `sed` command you use which is not the correct one.
Please read the [installation page](https://github.com/alekmaul/pvsneslib/wiki/Installation) which explain how to solve it.

### Using malloc with PVSneslib

I want to use malloc in my program, so I am trying something like this: u16 *myHudBuffer = (u16*)malloc(160*sizeof(u16)); but it is not working. malloc requires stdlib.h which I think does not work with PVSnesLib.
Expand Down

0 comments on commit c52900f

Please sign in to comment.