-
Notifications
You must be signed in to change notification settings - Fork 2
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
LoadImageFromPNG - how to #13
Comments
Why have you put the types of the parameters in the function calls? That's not valid C so there's no wonder the compiler is throwing errors. Just put the variables or values, the compiler uses the type information provided in the function declarations to make sure the values you pass are of the correct typesq.
It's perfectly fine to pass a char * as a filename, the const in CreateImageFromPng's declaration just says that CreateImageFromPng won't modify the string you pass it. CreateImageFromPng() only has one parameter, the filename. LoadImageFromPNG() used to have two additional pointers which would be the addresses where it would store the image's dimensions (so your attempt to pass w and h would be invalid). If you want to query a loaded image's dimensions you can with
|
Surely I'm missing something:
Then I've created the c script:
Then compile fail:
|
You need to switch to a recent branch (screenshot is the latest) which has the functions. I've got it set up so that the main branch is from when I forked ajstarks' code and the other branches are named from when certain key features were implemented. I realise this isn't the normal way for git but I'm used to constantly incrementing branches. You need to do a
and build it from there. Oh, and you shouldn't use sudo until the final make install, building the library doesn't require root privileges, only the installing to system directories requires it. Using sudo to build the library will mean you end up with a load of files owned by root in your directory.
|
Thanks for patience, but no luck, seems there is an error with that "font2openvg": Cloning into 'openvg'...
instead with ajstarks version it compile:
|
Ah, I must've removed the library target at some point. Instead of make library just do make, that should build both font2openvg and the library. Then (unless errors occured) do the sudo make install |
This is the prosecution of:
ajstarks#21
I've edited the function like this:
compilation will result in this error
The text was updated successfully, but these errors were encountered: