disabling relaystation and webserver plugin build successfull now I start to create server packages, server need also -data package?
I not found where change QDir::setcurrent in server, can you tell me where I can put it on server code? There are also some spelling error on code, no problem with package but probably is good solve it: Server application name on src/Server/main.cpp on line 56: QCoreApplication::setApplicationName("Server for Pokeymon-Online"); And others found by lintian: I: libpo-battlemanager1: spelling-error-in-binary usr/lib/libpo-battlemanager.so.1.0.0 Extracter Extractor I: pokemon-online-server: spelling-error-in-binary usr/games/Pokemon-Online-Server seperated separated I: pokemon-online-server: spelling-error-in-binary usr/games/Pokemon-Online-Server functionnality functionality
Actually, I added static QString dbRepo = "./db" in server.cpp. You can change it to the correct one. I did that because there are other files, like config, tiers.xml and scripts.js which are file the server generates. I don't know if it should be in the same dir as the data files, but anyway you can change the current dir to what's appropriate at the beginning of main (around line 46) in main.cpp. That way you can have the database and the server-generated files at two different places.
Changed currentdir on main.cpp, applied your patch about db but gave segmentation error on start, after modified the patch with full path and start but gave segmentation error on close. Probably there are other path to change edit: probably found the problem, is for the files that create on dir where is launched binary, now I'll try to set it to home subdirectory edit2: tried with: QDir::setCurrent( QDir::homePath() + "/.po-server/" ); seem not work and create logs, config and db into current directory
Try : Code (text): QDir d(QDir::homePath()); d.mkdir(".po-server"); QDir::setCurrent( QDir::homePath() + "/.po-server/" ); [secret]coyotte508@coyotte508-VirtualBox:~/code/pkg-pokemononline$ debuild -i -b -us -uc dpkg-buildpackage -rfakeroot -D -us -uc -i -b dpkg-buildpackage: source package pokemon-online dpkg-buildpackage: source version 2.0.1-1 dpkg-buildpackage: source changed by Fabio Fantoni <fantonifabio@tiscali.it> dpkg-source -i --before-build pkg-pokemononline dpkg-buildpackage: host architecture amd64 dpkg-source: info: applying fix_data_dir.diff dpkg-source: info: applying fix_smogon_plugin.diff dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -g0 -E -b -B .pc/fix_smogon_plugin.diff/ --reject-file=- < pkg-pokemononline/debian/patches/fix_smogon_plugin.diff gave error exit status 1 patching file src/SmogonPlugin/teambuildersmogonplugin.cpp Reversed (or previously applied) patch detected! Skipping patch. 2 out of 2 hunks ignored dpkg-source: info: fuzz is not allowed when applying patches dpkg-source: info: if patch 'fix_smogon_plugin.diff' is correctly applied by quilt, use 'quilt refresh' to update it dpkg-buildpackage: error: dpkg-source -i --before-build pkg-pokemononline gave error exit status 2 debuild: fatal error at line 1357: dpkg-buildpackage -rfakeroot -D -us -uc -i -b failed [/secret]
This evening I'll try, package is based on 2.0.1, the error is probably because you use source of git after the version The patches for have server working is not complete and I haven't upload it, only client and its plugins is working and ready for test now. About homepath I have create path before test. Can be problem of this command not correct? QDir::setCurrent( QDir::homePath() + "/.po-server/" ); Tried also to insert also on src/Server/main.cpp on start of main function
The problem i think is because the repository doesn't already exist (that's why i use mkdir in the code of my previous post) Edit: Code (text): coyotte508@coyotte508-VirtualBox:~/code/pkg-pokemononline$ debuild -i -b -us -uc dpkg-buildpackage -rfakeroot -D -us -uc -i -b dpkg-buildpackage: source package pokemon-online dpkg-buildpackage: source version 2.0.1-1 dpkg-buildpackage: source changed by Fabio Fantoni <fantonifabio@tiscali.it> dpkg-source -i --before-build pkg-pokemononline dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean test -x debian/rules dh_testroot rm -f debian/stamp-makefile-build debian/stamp-makefile-install /usr/bin/make -C . -k distclean make[1]: Entering directory `/home/coyotte508/code/pkg-pokemononline' make[1]: *** No rule to make target `distclean'. make[1]: Leaving directory `/home/coyotte508/code/pkg-pokemononline' make: [makefile-clean] Error 2 (ignored) dh_clean /usr/bin/make -f debian/rules reverse-config make[1]: Entering directory `/home/coyotte508/code/pkg-pokemononline' make[1]: Nothing to be done for `reverse-config'. make[1]: Leaving directory `/home/coyotte508/code/pkg-pokemononline' if [ -d "." ]; then \ cd . && QUILT_PATCHES=/home/coyotte508/code/pkg-pokemononline/debian/patches quilt --quiltrc /dev/null pop -a -R || test $? = 2 ; \ fi Removing patch disable_qtwebsocket.diff Restoring PokemonOnline.pro Removing patch fix_smogon_plugin.diff Restoring src/SmogonPlugin/teambuildersmogonplugin.cpp Patch fix_data_dir.diff does not remove cleanly (refresh it or enforce with -f) make: *** [reverse-patches] Error 1 dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2 debuild: fatal error at line 1357:
follow the instruction of first post, I copy here: Now client is working and ready for test Basing on the dipendencies the test build is possible on Debian >= 7 (Wheezy now on testing but near to stable) and Ubuntu >= 12.04 LTS and all derivates with repository based on these. Procedure for test deb build is: - download 2.0.1 source https://github.com/po-devs/pokemon-online/archive/2.0.01.tar.gz - extract it and open terminal into extracted directory - take debian folder from https://github.com/Fantu/pkg-pokemononline and put into extracted directory - install all build dependencies: sudo apt-get install cdbs dpkg-dev debhelper quilt qt4-qmake libqt4-dev libzip-dev libphonon-dev libqt4-opengl-dev g++ libqrencode-dev - launch packages creation with: debuild -i -b -us -uc edit: retried change of path following you post but not work, I have done commit of actual patches if you need modify/add patches fast and easy on deb package follow this: http://wiki.debian.org/UsingQuilt
I still got this: Code (text): Patch fix_data_dir.diff does not remove cleanly (refresh it or enforce with -f Sorry! (I did follow all steps) Can you upload the amd64 packages? (client & client plugins & data & libs). Is there a way to make it so users have to download only one package to install all those four packages? I'll look into the server problem.
libqt4-sql-sqlite needs to be installed for server (runtime dependency i had to install on my xubuntu) https://github.com/po-devs/pokemon-online/commit/6827d9c4dbaa943d1183da0ad5609b4c3f92f4c3 This should fix the PO_HOMEDIR issue.
I have applied your patches and done commit. PO_HOME_DIR not work, server on start create directory "~" on current directory (where launch binary)
I added also server plugins packages, now remain PO_HOME_DIR not working before have server full ready for test
No one knows how to get this working PO_HOME_DIR? Recently I'm busy in other open source software but if I see answers here, new releases or important fixes in git, I'll resume the development of these packages.
Well, i don't know, and i don't have a linux computer to do stuff at the moment. Is it really necessary to have the server package for now?
I do not know this software in particular but many others having the server on linux makes big difference. For example in 2005 when I went with the first webserver from windows to linux on same hardware the difference was significant, with some big script was also several times more efficient. Here the big problem is only the configuration files to store on user home not working, probably fast thing to solve for how know the code and language. I unfortunately do not have sufficient knowledge and the time available at the moment I'm using it on urgent things for other open source projects. I will continue with packages with news and/or new version.
https://github.com/po-devs/pokemon-online/commit/e2a6ff9e Fixed the problem! The problem was that Qt doesn't recognize ~ as home folder... Now it writes configuration files at the right place. Anyway, next version is coming soon. (Do I need to do anything else for you to be able to test this?) Also, QR Code plugin is back in (at least for other versions), since android app is making a comeback.
I have updated with new version and updated the instruction to the testing build on first post. Client and server seem working but I only started them. Can someone test them more carefully and report please?
The best is build them on the systems when you want test, there are many versions, derivates (with differents prerequisite libraries versions) and architectures. I think that the packages need to be tested, improved and after uploaded on official debian repository.
dh_makeshlibs -plibpo-pokemoninfo1 dpkg-gensymbols: avertissement: certains nouveaux symboles sont apparus dans le fichier des symboles*:*Veuillez consulter le fichier de différences ci-dessous dpkg-gensymbols: avertissement: certains symboles ou motifs ont disparu du fichier des symboles*:*Veuillez consulter le fichier de différences ci-dessous dpkg-gensymbols: avertissement: debian/libpo-pokemoninfo1/DEBIAN/symbols ne correspond pas complètement à debian/libpo-pokemoninfo1.symbols Code (diff): --- debian/libpo-pokemoninfo1.symbols (libpo-pokemoninfo1_2.0.22-1_i386) +++ dpkg-gensymbolsNS6EIa 2013-05-04 22:32:26.674524126 +0200 @@ -810,7 +810,7 @@ _ZNK5QHashIi7QStringE6valuesEv@Base 2.0.22 _ZNK5QListI7QStringE7indexOfERKS0_i@Base 2.0.22 _ZNK5QListIiE7indexOfERKii@Base 2.0.22 - _ZNK5QListIiE8containsERKi@Base 2.0.22 +#MISSING: 2.0.22-1# _ZNK5QListIiE8containsERKi@Base 2.0.22 _ZNK7Pokemon8uniqueId6toLineERK7QString@Base 2.0.22 _ZNK7Pokemon8uniqueId8toStringEv@Base 2.0.22 _ZNK7Pokemon8uniqueId9toPokeRefEv@Base 2.0.22 @@ -844,8 +844,10 @@ _ZTV17ShallowBattlePoke@Base 2.0.22 _ZTV8PokeTeam@Base 2.0.22 _ZTV9TeamSaver@Base 2.0.22 - _ZTv0_n24_N8PokeTeamD0Ev@Base 2.0.22 - _ZTv0_n24_N8PokeTeamD1Ev@Base 2.0.22 + _ZTv0_n12_N8PokeTeamD0Ev@Base 2.0.22-1 + _ZTv0_n12_N8PokeTeamD1Ev@Base 2.0.22-1 +#MISSING: 2.0.22-1# _ZTv0_n24_N8PokeTeamD0Ev@Base 2.0.22 +#MISSING: 2.0.22-1# _ZTv0_n24_N8PokeTeamD1Ev@Base 2.0.22 _ZlsR10DataStreamRK10BattleMove@Base 2.0.22 _ZlsR10DataStreamRK10PlayerInfo@Base 2.0.22 _ZlsR10DataStreamRK10PokeBattle@Base 2.0.22 dh_makeshlibs: dpkg-gensymbols -plibpo-pokemoninfo1 -Idebian/libpo-pokemoninfo1.symbols -Pdebian/libpo-pokemoninfo1 -edebian/libpo-pokemoninfo1/usr/lib/libpo-pokemoninfo.so.1.0.0 returned exit code 1 make: *** [binary-fixup/libpo-pokemoninfo1] Erreur 1 dpkg-buildpackage: erreur: fakeroot debian/rules binary a produit une erreur de sortie de type 2 debuild: fatal error at line 1350: dpkg-buildpackage -rfakeroot -D -us -uc -i -b failed Apparently the generated symbols and the symbols in DEBIAN/pokemoninfo don't match. (everything is fresh, done as said in the OP)
I refreshed the symbols for 2.0.22 (https://github.com/po-devs/pokemon-online/archive/2.0.22.tar.gz), probably you use newest source
No I followed the OP exactly: - I downloaded the archive and extracted it - I cloned the pkg-pokemononline into a new repo - moved the debian folder in the source extracted folder - ran the debian command I in no way used any preexisting source. Maybe we have different compiler settings and that's why. I'll try again later but I expect the same result.
I had rebuild now the 2.0.22 clean on ubuntu 12.04 and works, based on your log you have used previous version because some symbols are missed.
But I did do as in the OP (downloading source from scratch), and even then PokemonInfo hasn't changed since last version... Anyway I'll try again.
Maybe it would be better to put everything in one package. I don't see any other program needing po's libraries, and the install is simpler that way. And the problems we have at the moment would be no more.