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

Build Error on Debian #4

Open
nabulator opened this issue Jun 26, 2016 · 3 comments
Open

Build Error on Debian #4

nabulator opened this issue Jun 26, 2016 · 3 comments

Comments

@nabulator
Copy link

Using GCC 4.9.0 on a 64 bit machine.
First of all, I needed to add the -fpermissive flags since there's the "invalid conversion of a const pointer to a pointer".

Application/Instruments/SamplePool.cpp:8:
/home/nabulator/tools/LittleGPTracker/projects/../sources/Externals/Soundfont/DATATYPE.H:141:4: error: #error <datatype.h>: long is out of range!
   #error <datatype.h>: long is out of range!

It looks like the soundfont library disagrees about the fundamental datatype? I guess the library is designed for 32 bit compilers only?

Will attempt to force 32 bit compiling soon.

@Mdashdotdashn
Copy link
Owner

Yeah, the soundfont library dates from an age people didn't even know there might be 64-bit operating system some time.
I guess the easiest fix would be to disable soundfont if in a 64bit environment. The best one would be to 'retype' the library so it uses stdint's but that might be a hassle.

@ryanlaws
Copy link

I've been trying to get this to build for a few days, but I'm a total C++ noob so it's all been very naive. I went ahead and disabled soundfonts as well as updating some of the pointer types, added a couple null checks, etc. and now it doesn't segfault on song load, but I'm still not able to get any sound out of it w/ JACK (haven't tried other drivers).

@fgaz
Copy link
Contributor

fgaz commented Jul 31, 2020

Isn't that a "false alarm" since that check was made for <32bit archs and whatever would fit in 32 bits trivially fits in 64 too? I've got a nixos package here that just disables the checks and it seems to work

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

4 participants