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

Makefile is not available in the repo #1

Open
win32asm opened this issue Jan 15, 2020 · 6 comments
Open

Makefile is not available in the repo #1

win32asm opened this issue Jan 15, 2020 · 6 comments

Comments

@win32asm
Copy link
Contributor

Need to provide a makefile to compile the whole project. 8-)

@Asimov500
Copy link
Owner

I have added a Makefile. It doesn't work, but I have added it LOL.
This does compile ok in codeblocks and the server does work. I kept this as simple as possible so I could work out how to compile it in Centos. If I was going to use this in Ubuntu I could just use codeblocks, but obviously to compile it for centos I have to do it with a Makefile because my centos server is headless.

@win32asm
Copy link
Contributor Author

makefile provided.

@Asimov500
Copy link
Owner

@win32asm
Thank you I have just tested the Makefile in Ubuntu and it worked. Will this same Makefile work in Centos? Haven't got time to try it in Centos tonight, but will try tomorrow.

@win32asm
Copy link
Contributor Author

I have tested in centos 6.5 with cmake3 from EPEL and g++ 8 from SCL already installed, as per discussion in pistache issue.

@Asimov500
Copy link
Owner

I followed the instructions in the discussion and made the build folder and built the files, so I got that far as I have previously said. I cloned my git repo on the centos machine and it did compile from the Makefile, but when I run the program I get an error. ./myprogram: error while loading shared libraries: libpistache.so.0: cannot open object file: No such file or directory.

Obviously it is looking for the library and can't find it. What do I have to do so that it can see the library? I am sorry I am an amateur with linux.

@Asimov500
Copy link
Owner

Asimov500 commented Jan 19, 2020

Thankyou @win32asm I have got the server to work in centos. I didn't get back straight away as I didn't get an email when you updated the Makefile. Also it took me a while as I was having trouble accessing the port outside of virtualbox, but I have now managed it.

Now I got a single main.cpp to work, I should be able to adapt this to work with my proper program, which has multiple cpp files. This Makefile example should really be on a wiki or something as it is so useful.

Thanks for all the help.
PS.
Not only have I got the test file to work I have also got my full program working now. Which is a server to convert DST files to SVG and return it. Here is a screen shot
server

@Asimov500 Asimov500 reopened this Jan 19, 2020
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