You are not logged in.

#1 2012-07-03 23:26:32

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 383
Website

Trying to compile from source, several cpp files, but not a developer

First of, I'd like to start with this- I'm not a developer (only do BASH scripting and Python). I've done some basic packages in AUR and am working on a new one. I have the source, mainly a bunch of cpp files. I'm used to seeing a configure or autogen script, however the source I have does not provide these. I can do a PKGBUILD that works with the .deb file package, but I'd like to compile from source for AUR. I've tried looking at other C++ packages in AUR but I can't seem to find one that doesn't have a configure script with the source files. Google also did not help much.

Any advice or pointers to resources would be greatly appreciated. I've also got a message out to the developer about it- the more I can learn on this the better. The source isn't on the site yet, but the application is fred, located at:

https://www.pinguin.lu/

Thanks in advance!


--
JSkier

Offline

#2 2012-07-03 23:30:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Trying to compile from source, several cpp files, but not a developer

Do you have a prerelease of the source or something?

The site says see the README file for compiling ... what's in the README?

Is there somewhere we can see what is in this package ... or how can we help??  My telepathy isn't telling me anything.

Last edited by Trilby (2012-07-03 23:31:33)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2012-07-03 23:40:55

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 383
Website

Re: Trying to compile from source, several cpp files, but not a developer

Correct, it is a pre-release, there is no readme file for it. The source has not been released on the site yet. The .deb files for the package are already compiled.


--
JSkier

Offline

#4 2012-07-03 23:50:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Trying to compile from source, several cpp files, but not a developer

So ... what kind of help do you want?  You have a problem with compiling software which the author has not even deemed ready for compiling and we cannot see the code nor how you have attempted to compile it ... but you want someone here to tell you what is wrong??

If the source is released tomorrow, then read the README that comes with it.  If you still have problems, come back with a link to the source.  But until then how do you expect anyone to help?

edit: I guess I'll still try.  You say it's "mainly" a bunch of .cpp files.  What else is there?

Last edited by Trilby (2012-07-03 23:51:59)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2012-07-04 00:04:04

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 383
Website

Re: Trying to compile from source, several cpp files, but not a developer

I sent you a message Trilby. If anyone wants to help with the source code I have, let me know and I'll get it out.

Last edited by jskier (2012-07-04 00:04:41)


--
JSkier

Offline

#6 2012-07-04 00:14:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Trying to compile from source, several cpp files, but not a developer

Sorry I can't help.  A list of filenames or at least file types could be useful.  But I just checked my email, downloaded whatever that was and found that it was not a proper tarball and could not be extracted.

Edit: I must be really bored tonight.  I passed whatever that was (the not-quite-tarball) through gnu strings and less, and sure enough I was able to scroll through most of the code.  Along the way I saw a Makefile hack with a initial line "#!/usr/bin/make -f" which would run make and treat the contents of that file as a Makefile.  Reading it in this way I could not determine what the filename was, but it may have ended in ".sh" or it might have been called "install".  In any case you can do `grep '/usr/bin/make' * and run whichever file matches.

I'd also ask the developer to consider dropping that hash-bang invocation and just properly naming that file "Makefile".

edit2: there is also a reference to the ".pro" file which is used by qmake (I think) like a Makefile.

edit3: I just verified on a few properly made tarballs: `strings <name>.tar.gz | less` does not show anything remotely readable in any other tarballs, but run on yours I can read *all* of the code directly. I'm not sure how you made that tarball, but you may want to look into that.

Last edited by Trilby (2012-07-04 00:33:20)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2012-07-04 00:59:49

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: Trying to compile from source, several cpp files, but not a developer

Trilby: is it just a tar? Making a small test example shows me that you can read the contents with strings (as it is not compressed like a .tar.gz would be). Also, try the file command and see what it says it is.

Other than that I can't be any help until "tomorrow". You won't really need a configure script since it will only be a package for Arch. I would worry about just getting the commands necessary to compile it on Arch specifically. The developer can make a configure script if they want it widely distributeable.

Offline

#8 2012-07-04 01:01:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Trying to compile from source, several cpp files, but not a developer

Ah, yes.  It was just a tar, but named ".tar.gz"

I may be back in a minute with more info now.

Well, that was easy - quite anticlimactic actually:
step 1) run 'qmake fred.pro'
step 2) run 'make'
step 3) have beer.

I was lacking some of the dependencies which lead to a failure of the build, but that is still the process.

Also, that script that struck me as odd with the "#!/usr/bin/make -f" hash-bang was under a debian folder in a file called "rules".  For all I know this may be normal for debian packages, it is not the 'normal' makefile.

Last edited by Trilby (2012-07-04 01:08:23)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2012-07-04 02:56:14

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 383
Website

Re: Trying to compile from source, several cpp files, but not a developer

Trilby wrote:

Ah, yes.  It was just a tar, but named ".tar.gz"

I may be back in a minute with more info now.

Well, that was easy - quite anticlimactic actually:
step 1) run 'qmake fred.pro'
step 2) run 'make'
step 3) have beer.

I was lacking some of the dependencies which lead to a failure of the build, but that is still the process.

Also, that script that struck me as odd with the "#!/usr/bin/make -f" hash-bang was under a debian folder in a file called "rules".  For all I know this may be normal for debian packages, it is not the 'normal' makefile.

Short time for beer, it compiled quickly- thank you for your help. I'll tweak it for Arch and see how it goes before putting it in the AUR. The dependency is hivex (in AUR) by the way. Not sure about the problems you were having with the file- I uploaded it and downloaded to confirm it worked (it still does for me).


--
JSkier

Offline

#10 2012-07-04 11:54:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Trying to compile from source, several cpp files, but not a developer

There was no problem with the file except a misleading extension.  It was a regular tar file but had a .tar.gz extension.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB